/* BoothHQ – Admin UI · Design System v2 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ════════════════════════════════════════════════════
   BOOTHHQ DESIGN TOKENS  (geteilt mit Portal)
   ════════════════════════════════════════════════════ */
:root {
  color-scheme: light;

  /* ── Typo ── */
  --font: 'DM Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   18px;
  --text-xl:   22px;

  /* ── Farben: Primär ── */
  --accent:      #111827;   /* near-black, klare Hierarchie */
  --accent-soft: #F3F4F6;   /* hover / aktive Fläche */
  --accent-mid:  #374151;   /* sekundäre Akzente */

  /* ── Farben: Hintergründe ── */
  --bg:          #F9FAFB;   /* Seiten-BG */
  --bg-card:     #FFFFFF;   /* Card-Oberfläche */
  --bg-hover:    #F3F4F6;   /* Hover-Zustand */
  --bg-subtle:   #F9FAFB;   /* alternative zu --bg */

  /* ── Farben: Text ── */
  --text:        #111827;
  --text-muted:  #6B7280;
  --text-faint:  #9CA3AF;

  /* ── Farben: Borders ── */
  --border:      #E5E7EB;
  --border-subtle: #F3F4F6;

  /* ── Farben: Semantik ── */
  --green:       #16A34A;
  --green-bg:    #F0FDF4;
  --green-border:#BBF7D0;
  --red:         #DC2626;
  --red-bg:      #FEF2F2;
  --red-border:  #FECACA;
  --blue:        #2563EB;
  --blue-bg:     #EFF6FF;
  --blue-border: #BFDBFE;
  --amber-bg:    #FFFBEB;
  --amber-border:#FDE68A;
  --amber-text:  #92400E;

  /* ── Brand Gold (minimaler Funktionsakzent) ── */
  --gold:        #B8955A;
  --gold-light:  #FEF9EC;
  --gold-mid:    #DBC99A;
  --gold-dark:   #92702E;

  /* ── Radius ── */
  --radius-sm:   6px;    /* Buttons, Inputs, kleine Elemente */
  --radius:      10px;   /* Cards, Sections, Panels */
  --radius-lg:   14px;   /* Login-Box, große Modals */
  --radius-full: 9999px; /* Pills, Badges */

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10);

  /* ── Übergänge ── */
  --transition: .15s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--text-md); -webkit-font-smoothing: antialiased; }

/* ── App Layout (Sidebar + Content) ──────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Left Sidebar */
.app-sidebar {
  width: 220px; flex-shrink: 0;
  background: #FAFAFA; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; transition: width 0.2s ease;
  z-index: 100;
}
.app-sidebar.collapsed { width: 56px; }
.app-content { flex: 1; min-width: 0; }

/* Sidebar Header */
.sidebar-header {
  height: 56px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  background: #FAFAFA;
}
.sidebar-logo { display: flex; align-items: center; gap: 8px; flex: 1; overflow: hidden; min-width: 0; }
.sidebar-logo img { height: 28px; flex-shrink: 0; display: block; }
.sidebar-logo-text { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.app-sidebar.collapsed .sidebar-logo-text { opacity: 0; pointer-events: none; }
.sidebar-toggle {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 5px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s, color .12s;
}
.sidebar-toggle:hover { background: rgba(17,24,39,0.05); color: var(--text); }

/* Sidebar Navigation */
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 7px 16px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 8px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: background .12s, color .12s; white-space: nowrap;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  overflow: hidden; position: relative;
}
.sidebar-nav-item:hover { background: rgba(17,24,39,0.05); color: var(--text); }
.sidebar-nav-item.active {
  background: rgba(17, 24, 39, 0.09);
  color: var(--text);
  font-weight: 600;
}
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2.5px;
  background: var(--text);
  border-radius: 0 2px 2px 0;
}
/* Icons: slightly receded so text leads; restored on interaction */
.sidebar-nav-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.sidebar-nav-icon svg { opacity: 0.55; transition: opacity .12s; }
.sidebar-nav-item:hover .sidebar-nav-icon svg,
.sidebar-nav-item.active .sidebar-nav-icon svg,
.sidebar-nav-group.open > .sidebar-nav-item .sidebar-nav-icon svg { opacity: 0.9; }
.app-sidebar.collapsed .sidebar-nav-icon svg { opacity: 0.75; }
.sidebar-nav-label { flex: 1; min-width: 0; overflow: hidden; max-width: 9999px; transition: opacity .2s, max-width .2s; }
.sidebar-nav-arrow {
  font-size: 9px; line-height: 1; margin-left: auto; flex-shrink: 0;
  color: var(--text-faint); transition: transform .22s ease, opacity .2s, width .2s, color .12s;
  overflow: hidden;
}
.app-sidebar.collapsed .sidebar-nav-label { opacity: 0; pointer-events: none; max-width: 0; }
.app-sidebar.collapsed .sidebar-nav-arrow { opacity: 0; pointer-events: none; width: 0; }
.app-sidebar.collapsed .sidebar-nav-item { gap: 0; justify-content: center; padding: 9px 0; }
.app-sidebar.collapsed .sidebar-nav { padding: 10px 4px; }

/* Sidebar Badge (Posteingang) */
.sidebar-nav-badge {
  background: var(--red); color: #fff; border-radius: 10px;
  padding: 1px 5px; font-size: 10px; font-weight: 700; line-height: 1.4;
  flex-shrink: 0; margin-left: 4px;
}
.sidebar-nav-badge-dot {
  position: absolute; top: -2px; right: -2px;
  background: var(--red); border-radius: 50%; width: 8px; height: 8px;
  border: 1px solid #FAFAFA;
}

/* Sidebar Groups */
.sidebar-nav-group { display: flex; flex-direction: column; }
.sidebar-nav-group + .sidebar-nav-group { margin-top: 7px; }
.sidebar-nav-group.open .sidebar-nav-arrow { transform: rotate(180deg); color: var(--text-muted); }
/* Group header: chapter-level presence */
.sidebar-nav-group > .sidebar-nav-item {
  color: var(--text); font-weight: 600; letter-spacing: -0.01em;
}
/* Submenu: no indent line, spacing does the hierarchy work */
.sidebar-nav-submenu {
  display: none; padding: 3px 0 5px 30px;
  flex-direction: column; gap: 1px;
}
.sidebar-nav-group.open .sidebar-nav-submenu { display: flex; }
.app-sidebar.collapsed .sidebar-nav-submenu { display: none !important; }
/* Subitems: lightweight, clearly subordinate */
.sidebar-nav-subitem {
  font-size: 12px; font-weight: 400; padding: 5px 9px; line-height: 1.45;
  color: var(--text-muted); text-decoration: none;
  border-radius: var(--radius-sm); display: flex; align-items: center;
  transition: background .1s, color .1s;
}
.sidebar-nav-subitem:hover { background: rgba(17,24,39,0.05); color: var(--text); }
.sidebar-nav-subitem.active {
  color: var(--text); font-weight: 600;
  background: rgba(17, 24, 39, 0.08);
  box-shadow: inset 2px 0 0 rgba(17, 24, 39, 0.22);
}

/* Sidebar Divider */
.sidebar-divider { border-top: 1px solid rgba(0,0,0,0.06); margin: 8px 0; flex-shrink: 0; }

/* Container */
.container { width: 95%; max-width: 1800px; margin: 0 auto; padding: 32px 24px; }

/* Page Header */
.page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.page-header h1 { font-size: var(--text-xl); font-weight: 700; flex: 1; color: var(--text); letter-spacing: -.02em; line-height: 1.25; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: var(--text-base); font-weight: 600; font-family: var(--font);
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition);
  line-height: 1.4; white-space: nowrap;
}
.btn:disabled, .btn[disabled] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
.btn-primary { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-mid); border-color: var(--accent-mid); }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: #D1D5DB; }
.btn-large { padding: 11px 24px; font-size: var(--text-md); }
.btn-full { width: 100%; justify-content: center; }
.btn-ghost { background: none; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: transparent; }
.btn-sm { padding: 5px 12px; font-size: var(--text-sm); }
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; }
.btn-active { background: var(--accent-soft); color: var(--accent); border-color: var(--border); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-number { font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1; }
.stat-label { color: var(--text-muted); margin-top: 5px; font-size: var(--text-sm); font-weight: 500; }

/* Cards (für Finance/CRM) */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card h2 { font-size: var(--text-lg); font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.card h3 { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); margin: 16px 0 10px; text-transform: uppercase; letter-spacing: .06em; }

/* Grid 2-spaltig */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
/* Grid 3-spaltig */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--bg); color: var(--text-muted);
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-base); color: var(--text);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

/* Badge / Status */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; line-height: 1.4;
}
.badge-green, .badge-confirmed, .badge-completed, .badge-paid, .badge-accepted {
  background: var(--green-bg); color: #15803D;
}
.badge-gray, .badge-inquiry, .badge-draft {
  background: var(--accent-soft); color: var(--text-muted);
}
.badge-red, .badge-cancelled, .badge-overdue, .badge-rejected {
  background: var(--red-bg); color: #B91C1C;
}
.badge-blue, .badge-quote_sent, .badge-sent {
  background: var(--blue-bg); color: #1D4ED8;
}
.badge-expired { background: var(--amber-bg); color: var(--amber-text); }
.badge-orange  { background: #FFEDD5; color: #C2410C; }
.link-small { font-size: 13px; color: var(--text); text-decoration: none; margin-right: 8px; }
.link-small:hover { text-decoration: underline; }

/* Filter Bar + Chips */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.filter-chip:hover { background: var(--bg-hover); color: var(--text); border-color: #D1D5DB; }
.filter-chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 32px; }
.form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); }
.form-section h3 { margin-bottom: 20px; font-size: var(--text-md); font-weight: 600; color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: var(--text-sm); color: var(--text); font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; color: var(--text); font-size: var(--text-base); font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,.09);
}
/* Disabled state */
.form-group input:disabled, .form-group select:disabled, .form-group textarea:disabled,
.form-control:disabled {
  background: var(--bg); color: var(--text-muted); cursor: not-allowed; opacity: .75;
}
/* Error / invalid state */
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea,
.form-control.is-invalid {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.10);
}
.form-group.has-error label { color: var(--red); }
.form-error-msg {
  display: block; font-size: var(--text-sm); color: #B91C1C;
  margin-top: 4px; line-height: 1.4;
}
.form-group small { display: block; color: var(--text-muted); font-size: var(--text-sm); margin-top: 4px; line-height: 1.5; }
.form-group small a { color: var(--text); text-decoration: underline; }
.checkbox-label { display: flex !important; align-items: center; gap: 10px; cursor: pointer; color: var(--text) !important; font-size: var(--text-base) !important; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.form-actions { text-align: right; }

/* Info Cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-xs); }
.info-card strong { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info-card a { color: var(--text); text-decoration: underline; }

/* Detail List */
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 9px 12px; font-size: var(--text-base); }
.detail-list dt { color: var(--text-muted); font-weight: 400; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; }
.detail-list dd { color: var(--text); font-weight: 500; }
.detail-list dd a { color: var(--text); text-decoration: underline; }

/* Action Group */
.action-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.action-group form { display: contents; }

/* Photo Grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-item-wrap { display: flex; flex-direction: column; gap: 4px; }
.photo-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/2; cursor: pointer; background: var(--bg); border: 1px solid var(--border); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.photo-item:hover img { transform: scale(1.04); }
.photo-actions { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.photo-meta { font-size: 11px; color: var(--text-muted); }

/* Login Page */
body.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.login-box h1 { font-size: var(--text-xl); font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -.02em; }
.login-box h2 { color: var(--text-muted); font-size: var(--text-md); margin-bottom: 32px; font-weight: 400; }

/* Alerts — left-border Stil (konsistent mit Portal) */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: var(--text-base); line-height: 1.55;
  border: 1px solid transparent; border-left-width: 3px;
}
.alert-error   { background: var(--red-bg);   border-color: var(--red-border);   border-left-color: var(--red);   color: #991B1B; }
.alert-success { background: var(--green-bg); border-color: var(--green-border); border-left-color: var(--green); color: #15803D; }
.alert-info    { background: var(--blue-bg);  border-color: var(--blue-border);  border-left-color: var(--blue);  color: #1D4ED8; }
.alert-warning { background: var(--amber-bg); border-color: var(--amber-border); border-left-color: #F59E0B;      color: var(--amber-text); }

/* Inline Form */
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.inline-form input, .inline-form select {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; color: var(--text); font-size: var(--text-base); font-family: var(--font);
}
.inline-form input:focus, .inline-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,.09);
}

/* Info Box */
.info-box { background: var(--blue-bg); border: 1px solid var(--blue-border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 16px; margin-top: 24px; font-size: var(--text-sm); line-height: 1.6; color: #1D4ED8; }
.info-box code { background: rgba(255,255,255,.7); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 12px; }

/* API Key / Code */
.api-key { font-family: monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--border); padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px; color: var(--text); }
code { font-family: monospace; font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 4px; color: var(--text); }

/* Asset Grid */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.asset-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; }
.asset-preview { width: 100%; aspect-ratio: 1; object-fit: contain; background: #F0F0F0; }
.asset-name { padding: 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.asset-type { padding-bottom: 8px; font-size: 11px; color: var(--text-muted); }

/* Empty State */
.empty-state { color: var(--text-muted); padding: 48px 40px; text-align: center; }
.empty-state-icon { font-size: 32px; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: var(--text-md); margin-bottom: 12px; line-height: 1.55; }
.empty-state a { color: var(--text); text-decoration: underline; }

/* ── Utility-Klassen (global) ─────────────────────────── */
.form-label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: 5px; color: var(--text); }
.form-control {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text);
  font-size: var(--text-base); font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,.09);
}
.form-control:disabled {
  background: var(--bg); color: var(--text-muted); cursor: not-allowed; opacity: .75;
}
.form-control.is-invalid {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.10);
}
/* Table wrapper for horizontal scroll */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 480px; }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--accent); border-top-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fokus-Styles (Tastatur-Navigation / Accessibility) ── */
.btn:focus-visible,
.form-control:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,24,39,.12);
  border-color: var(--accent);
}
.sidebar-nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ── Passwort-Reveal-Toggle ──────────────────────────── */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { flex: 1; padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 10px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px; padding: 4px; line-height: 1;
}
.pw-toggle:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .page-header { flex-wrap: wrap; gap: 8px; }
  .page-header .header-actions { width: 100%; }
  .docs-layout { grid-template-columns: 1fr !important; }
  .docs-pdf-pane { min-height: 300px; }
  .breadcrumb { font-size: 12px; }
}
@media (max-width: 500px) {
  .table { font-size: 12px; }
  .table th, .table td { padding: 8px 10px; }
  .btn-sm { font-size: 11px; padding: 5px 9px; }
}

/* Upload Form */
.upload-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 500px; margin-bottom: 32px; box-shadow: var(--shadow-xs); }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* HR Divider */
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ── Events-Ansicht (bookitup-Stil) ─────────────────────────────────── */
.container--full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.events-layout {
  display: flex;
  gap: 0;
  min-height: 100vh;
}

/* Sidebar */
.events-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  padding: 24px 0 32px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 0 8px;
  margin-bottom: 4px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item-active { color: var(--text); font-weight: 600; }
.sidebar-indicator {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
  transition: background .15s;
}
.sidebar-item-active .sidebar-indicator { background: var(--accent); }
.sidebar-divider { border-top: 1px solid var(--border); margin: 8px 0 16px; }

/* Hauptbereich */
.events-main {
  flex: 1;
  padding: 28px 32px 48px 24px;
  min-width: 0;
}
.events-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.events-title { font-size: var(--text-xl); font-weight: 700; color: var(--text); letter-spacing: -.02em; }

/* Monats-Gruppe */
.month-group { margin-bottom: 32px; }
.month-group-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.month-group-label { font-size: 16px; font-weight: 700; color: var(--text); }
.month-group-count { font-size: 12px; color: var(--text-muted); }

/* Event-Card */
.event-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }

.event-card-strip {
  width: 4px;
  align-self: stretch;
  flex-shrink: 0;
}
.event-date-col {
  width: 62px;
  flex-shrink: 0;
  text-align: center;
  padding: 14px 0;
}
.event-dow { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: .5px; }
.event-day { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.event-mon { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: .5px; margin-top: 1px; }

.event-card-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 8px 0;
  flex-shrink: 0;
}
.event-info {
  flex: 1;
  padding: 12px 16px;
  min-width: 0;
}
.event-type-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.event-name { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-name a { color: inherit; text-decoration: none; }
.event-name a:hover { color: var(--accent); }
.event-venue { font-size: 12px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.event-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.event-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px; white-space: nowrap;
}
.event-chip-muted { color: var(--text-muted); font-style: italic; }

.event-card-actions { padding: 0 14px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.event-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.event-link-btn:hover { background: var(--bg); color: var(--text); }

/* ── Kalender-Ansicht ─────────────────────────────────────── */
.cal-view { padding: 0 24px 32px; width: 100%; box-sizing: border-box; }

.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 20px;
}
.cal-month-label { font-size: 18px; font-weight: 700; color: var(--text); }
.cal-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
  color: var(--text); text-decoration: none; font-size: 20px;
  transition: background .15s;
}
.cal-nav-btn:hover { background: var(--bg); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
}
.cal-dow {
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--text-muted); padding: 4px 0 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.cal-day {
  min-height: 88px; padding: 6px 6px 4px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-sizing: border-box;
}
.cal-day-empty {
  min-height: 88px; background: var(--bg);
  border: 1px solid transparent; border-radius: 8px;
}
.cal-day-today { border-color: var(--accent); background: var(--accent-soft); }
.cal-day-num {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 4px;
}
.cal-day-today .cal-day-num { color: var(--accent); }
.cal-event {
  display: block; padding: 2px 6px; margin-bottom: 2px;
  background: var(--bg); border-radius: 4px;
  font-size: 11px; line-height: 1.4; color: var(--text);
  text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: opacity .15s;
}
.cal-event:hover { opacity: .7; }

/* ================================================================== */
/*  Produkte & Preis (Event Pricing)                                    */
/* ================================================================== */

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .pricing-layout { grid-template-columns: 1fr; }
}

/* Produkt-Zeilen */
.pricing-resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-resource-row:last-of-type { border-bottom: none; }
.pricing-resource-active { background: var(--accent-soft); margin: 0 -12px; padding: 10px 12px; border-radius: 6px; border-bottom-color: transparent; }
.pricing-resource-name { font-weight: 600; font-size: 14px; }
.pricing-resource-price { color: var(--text-muted); font-size: 13px; font-weight: 600; }

/* Freie Position */
.pricing-free-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pricing-input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg-card);
  font-family: var(--font);
  flex: 1;
  min-width: 120px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,.09);
}
.pricing-input-price { max-width: 90px; min-width: 70px; }
.pricing-input-qty  { max-width: 60px; min-width: 50px; }
.pricing-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition);
}
.pricing-select:focus { outline: none; border-color: var(--accent); }

/* Positionen-Tabelle (Draft) */
.pricing-items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pricing-items-table tr { border-bottom: 1px solid var(--border); }
.pricing-items-table tr:last-child { border-bottom: none; }
.pricing-items-table td { padding: 7px 4px; vertical-align: middle; }
.pricing-item-pos  { width: 28px; color: var(--text-muted); text-align: center; }
.pricing-item-desc { flex: 1; }
.pricing-item-price, .pricing-item-total { text-align: right; white-space: nowrap; }
.pricing-item-qty  { text-align: right; color: var(--text-muted); width: 36px; }
.pricing-item-del  { width: 28px; text-align: center; }
.btn-icon-del {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 14px; padding: 2px 6px;
  border-radius: 4px; line-height: 1;
}
.btn-icon-del:hover { background: var(--red-bg); color: var(--red); }

/* Summen */
.pricing-totals { font-size: 14px; }
.pricing-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-muted);
}
.pricing-discount-row { color: var(--red); }
.pricing-total-gross {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  padding-top: 8px;
  border-top: 2px solid var(--border);
  margin-top: 4px;
}

/* Dokument-Buttons */
.pricing-doc-buttons { display: flex; flex-direction: column; gap: 8px; }

/* Rabatt-Form */
.pricing-discount-form { margin: 0; }

/* Aktivitäts-Feed */
.activity-feed { display: flex; flex-direction: column; gap: 6px; }
.activity-item {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: var(--text-base); padding: 6px 0; border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child { border-bottom: none; }
.activity-date { color: var(--text-muted); font-size: var(--text-sm); white-space: nowrap; min-width: 42px; }
.activity-author { color: var(--text-muted); font-size: var(--text-sm); }
.activity-action { font-size: var(--text-xs) !important; }
.activity-text { flex: 1; color: var(--text); }

/* Flash-Messages (Query-Parameter-basiert) */
.flash-container { position: fixed; top: 16px; right: 24px; z-index: 999; min-width: 220px; }
.flash { animation: flashIn .2s ease, flashOut .4s ease 3.6s forwards; }
@keyframes flashIn  { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
@keyframes flashOut { from { opacity:1; } to { opacity:0; transform:translateY(-8px); } }

/* ── Availability Calendar ─────────────────────────────── */
.avail-page { padding: 24px; }
.avail-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.avail-month-label { font-size:18px; font-weight:700; color:var(--text); margin:0; }
.cal-nav-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid var(--border); border-radius:6px; font-size:18px; text-decoration:none; color:var(--text); background:#fff; }
.cal-nav-btn:hover { background:var(--bg); }
.avail-conflict-banner { background:var(--red-bg,#FEF2F2); border-left:4px solid var(--red,#DC2626); padding:10px 16px; border-radius:0 8px 8px 0; margin-bottom:16px; font-weight:600; color:var(--red,#DC2626); font-size:14px; }
.avail-scroll-wrapper { overflow-x:auto; padding-bottom:8px; }
.avail-grid { display:grid; grid-template-columns: 160px repeat(var(--num-days), minmax(44px,1fr)); gap:2px; min-width:max-content; }
.avail-corner,.avail-day-head { padding:4px 2px; }
.avail-day-head { text-align:center; font-size:11px; color:var(--text-muted); }
.avail-dow { display:block; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.avail-date { display:block; font-size:13px; color:var(--text); }
.avail-day-head.avail-today .avail-date { color:var(--accent); font-weight:700; }
.avail-day-head.avail-weekend .avail-date { color:var(--text-muted); }
.avail-resource-label { display:flex; align-items:center; gap:6px; padding:6px 8px; font-size:12px; font-weight:600; background:#fff; border:1px solid var(--border); border-radius:6px; white-space:nowrap; }
.avail-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.avail-type-fotobox         { background:var(--accent); }
.avail-type-eventspiegel    { background:var(--blue,#2563EB); }
.avail-type-audio_guestbook { background:#7C3AED; }
.avail-type-letters         { background:#DB2777; }
.avail-cell { min-height:46px; background:#fff; border:1px solid var(--border); border-radius:4px; padding:2px; }
.avail-cell.avail-cell-booked    { background:#F0FDF4; }
.avail-cell.avail-cell-buffer    { background:#FFFBEB; border-color:#FCD34D; }
.avail-cell.avail-cell-conflict  { background:var(--red-bg,#FEF2F2); border-color:var(--red,#DC2626); }
.avail-cell.avail-today          { border-color:var(--accent); }
.avail-cell.avail-weekend        { background:var(--bg); }
.avail-chip { display:block; padding:2px 4px; border-radius:3px; font-size:10px; text-decoration:none; color:#fff; margin-bottom:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.avail-chip:hover { opacity:.85; }
.avail-chip.avail-status-confirmed  { background:var(--green,#16A34A); }
.avail-chip.avail-status-quote_sent { background:var(--accent); }
.avail-chip.avail-status-inquiry    { background:var(--blue,#2563EB); }
.avail-chip.avail-status-completed  { background:var(--text-muted); }
.avail-legend { display:flex; gap:16px; margin-top:14px; font-size:12px; flex-wrap:wrap; align-items:center; }

/* ================================================================== */
/*  Mobile Layout (≤ 768px)                                            */
/* ================================================================== */

/* Mobile Top Bar (nur auf Mobile sichtbar) */
.mobile-topbar {
  display: none; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px; background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200; flex-shrink: 0;
}
.mobile-hamburger {
  background: none; border: none; cursor: pointer; color: var(--text);
  padding: 6px; border-radius: 6px; display: flex; align-items: center;
  flex-shrink: 0; -webkit-tap-highlight-color: transparent;
}
.mobile-hamburger:active { background: var(--bg); }
.mobile-topbar-title { font-size: 15px; font-weight: 700; flex: 1; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Backdrop für Sidebar-Drawer */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 299;
}
.sidebar-backdrop.visible { display: block; }

/* Filter-Button im Events-Topbar (nur Mobile) */
.events-filter-btn { display: none; }

@media (max-width: 768px) {
  /* Mobile Topbar einblenden */
  .mobile-topbar { display: flex; }

  /* App-Sidebar: Drawer-Overlay */
  .app-sidebar {
    position: fixed !important;
    left: -240px; top: 0; bottom: 0;
    width: 220px !important;
    z-index: 300; height: 100vh;
    transition: left 0.25s ease;
    box-shadow: none;
  }
  .app-sidebar.mobile-open { left: 0 !important; box-shadow: 4px 0 24px rgba(0,0,0,.18); }

  /* Auf Mobile: Labels immer vollständig anzeigen, collapsed ignorieren */
  .app-sidebar.collapsed { width: 220px !important; left: -240px; }
  .app-sidebar.collapsed .sidebar-nav-label,
  .app-sidebar.collapsed .notif-bell-label { opacity: 1 !important; max-width: 9999px !important; pointer-events: auto !important; }
  .app-sidebar.collapsed .sidebar-nav-arrow { opacity: 1 !important; width: auto !important; pointer-events: auto !important; }
  .app-sidebar.collapsed .sidebar-nav-item,
  .app-sidebar.collapsed .notif-bell-btn { gap: 9px !important; justify-content: flex-start !important; padding: 8px 7px !important; }
  .app-sidebar.collapsed .sidebar-nav { padding: 10px 6px !important; }
  .app-sidebar.collapsed .sidebar-nav-submenu { display: flex !important; }
  .app-sidebar.collapsed .sidebar-logo-text { opacity: 1 !important; }


  /* Container: kompakteres Padding */
  .container { padding: 16px 14px; }

  /* Events-Dashboard: Filter-Sidebar als ausklappbarer Block */
  .events-layout { flex-direction: column; margin: -16px -14px; }
  .events-sidebar {
    display: none;
    width: 100% !important;
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 16px 14px 20px;
    background: #fff;
  }
  .events-sidebar.mobile-open { display: block; }
  .events-main { padding: 16px 14px 40px; }
  .events-topbar { margin-bottom: 12px; }
  .events-filter-btn { display: inline-flex !important; }

  /* Tabellen horizontal scrollbar — .table-wrap ist global definiert, gilt auch hier */
  .table { min-width: 480px; }

  /* Sonstige Layout-Anpassungen */
  .page-header { margin-bottom: 20px; }
  .card { padding: 16px; }

  /* Überschriften */
  h1 { font-size: 20px !important; }
  .stat-number { font-size: 28px !important; }

  /* iOS Safari: verhindert Auto-Zoom beim Fokussieren von Inputs */
  input, select, textarea { font-size: 16px !important; }

  /* Tap-Targets: mindestens 44px hoch */
  .btn { min-height: 44px; }
  .filter-chip { min-height: 36px; padding: 8px 14px; }

  /* Notifications-Panel: kein overflow auf schmalen Bildschirmen */
  .notif-panel {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
    left: 12px !important;
  }

  /* Flash-Nachrichten: volle Breite auf Mobile */
  .flash-container {
    left: 12px !important;
    right: 12px !important;
  }
}

@media (max-width: 400px) {
  .container { padding: 12px 10px; }
  h1 { font-size: 18px !important; }
  .card { padding: 12px; }
  .page-header { margin-bottom: 14px; }
}

/* ════════════════════════════════════════════════════
   BHQ SUBSCRIPTION LOCK OVERLAY
   ════════════════════════════════════════════════════ */

.bhq-lock-bd {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  backdrop-filter: blur(3px);
}
.bhq-lock-bd--open { display: block; }

.bhq-lock-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  padding: 32px 36px 36px;
  z-index: 9001;
  flex-direction: column;
  gap: 0;
  transition: transform .18s, opacity .18s;
  opacity: 0;
}
.bhq-lock-panel--open {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.bhq-lock-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
}
.bhq-lock-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.bhq-lock-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--green-border);
}

.bhq-lock-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.bhq-lock-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.bhq-lock-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.bhq-lock-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bhq-lock-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.bhq-lock-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.bhq-lock-price-unit {
  font-size: 13px;
  color: var(--text-muted);
}
.bhq-lock-price-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bhq-lock-price-wrap--centered {
  align-items: center;
  text-align: center;
}
.bhq-lock-price-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  margin-bottom: 8px;
}

.bhq-lock-cta {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .15s;
  margin-bottom: 20px;
}
.bhq-lock-cta:hover { background: #1d4ed8; color: #fff; }
.bhq-lock-cta--secondary {
  margin-top: 12px;
  background: var(--bg);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.bhq-lock-cta--secondary:hover { background: var(--blue-bg); color: var(--blue); }

.bhq-lock-limits {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.bhq-lock-limits-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.bhq-lock-limits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bhq-lock-limits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.bhq-lock-limits li::before {
  content: '✕';
  color: var(--red);
  font-size: 11px;
  flex-shrink: 0;
}

.bhq-lock-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .12s, color .12s;
}
.bhq-lock-close:hover { background: var(--bg); color: var(--text); }

@media (max-width: 520px) {
  .bhq-lock-panel { padding: 24px 20px 28px; }
}
