/* ═══════════════════════════════════════════════════════════════════
   ATHIX DASHBOARD – style.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Sidebar */
  --sb-bg:        #0f172a;
  --sb-border:    #1e293b;
  --sb-text:      #94a3b8;
  --sb-text-active:#e2e8f0;
  --sb-active-bg: rgba(14,138,122,0.18);
  --sb-width:     220px;
  --sb-width-col: 60px;

  /* Main */
  --bg:           #f1f5f9;
  --card:         #ffffff;
  --ink:          #1e293b;
  --muted:        #64748b;
  --accent:       #0e8a7a;
  --accent-2:     #ef7c32;
  --line:         #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:       0 4px 12px rgba(0,0,0,0.08);
  --radius:       10px;
  --radius-lg:    14px;
}

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sb-width);
  min-width: var(--sb-width);
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.22s ease, min-width 0.22s ease;
  z-index: 200;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Collapsed state */
.sidebar.collapsed {
  width: var(--sb-width-col);
  min-width: var(--sb-width-col);
}
.sidebar.collapsed .sidebar-link-text,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-nav-label,
.sidebar.collapsed .sidebar-footer-text,
.sidebar.collapsed .sidebar-select,
.sidebar.collapsed .sidebar-section {
  display: none;
}
.sidebar.collapsed .sidebar-header { justify-content: center; padding: 0 0 0 0; }
.sidebar.collapsed .sidebar-collapse-btn { margin: 0 auto; }
.sidebar.collapsed .sidebar-link { justify-content: center; padding: 11px 0; }
.sidebar.collapsed .sidebar-config-btn { justify-content: center; padding: 10px 0; }

/* Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--sb-border);
  min-height: 56px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon { font-size: 1.3rem; }
.logo-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}
.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--sb-text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover { color: var(--sb-text-active); background: rgba(255,255,255,0.07); }

/* Nav */
.sidebar-nav {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  padding: 8px 8px 4px;
  display: block;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sb-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: var(--sb-text-active); }
.sidebar-link.active { background: var(--sb-active-bg); color: #5eead4; }
.sidebar-link-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-link-text { overflow: hidden; text-overflow: ellipsis; }

.sidebar-divider { border-top: 1px solid var(--sb-border); margin: 8px 0; }

/* Sidebar sections (dataset/integrations) */
.sidebar-section {
  padding: 4px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-select {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--sb-text-active);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
}
.sidebar-config-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: none;
  border: none;
  color: var(--sb-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-config-btn:hover { background: rgba(255,255,255,0.07); color: var(--sb-text-active); }

/* Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--sb-border);
}
.sidebar-footer-text {
  font-size: 0.75rem;
  color: #475569;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN WRAPPER + TOP BAR
   ═══════════════════════════════════════════════════════════════════ */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.topbar-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
}
.topbar-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white 70%);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-content {
  flex: 1;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.card-header.collapsible { cursor: pointer; user-select: none; }
.card-header.collapsible:hover { background: #f5f5f5; }
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.card-collapse-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  pointer-events: none;
}

.card-body { padding: 18px; }

/* ═══════════════════════════════════════════════════════════════════
   FIELDS / FORM CONTROLS
   ═══════════════════════════════════════════════════════════════════ */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.field input,
.field select,
.modal-field input,
.modal-field select,
.sidebar-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent 85%);
}
.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1rem;
}

/* Filter grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}
.filter-grid .span-2 { grid-column: span 2; }

.filter-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.filter-actions-left,
.filter-actions-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.12s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(0.96); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary    { background: var(--accent); color: #fff; }
.btn-danger     { background: #dc2626; color: #fff; }
.btn-export     { background: var(--accent-2); color: #fff; }
.btn-email      { background: #2563eb; color: #fff; }
.btn-whatsapp   { background: #16a34a; color: #fff; }

.btn-ghost      { background: #f1f5f9; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #e8edf4; }

.btn-outline    { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 8%, transparent 92%); }

.btn-outline-green { background: transparent; color: #16a34a; border: 1.5px solid #16a34a; }
.btn-outline-green:hover { background: color-mix(in srgb, #16a34a 8%, transparent 92%); }

/* Smaller variants */
.btn-ghost-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.25);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent 70%);
  border-radius: 7px;
}
.btn-accent-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
}
.btn-green-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
  background: #16a34a;
  color: #fff;
  border-radius: 7px;
}
.btn-ghost-sm:hover, .btn-accent-sm:hover, .btn-green-sm:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* ═══════════════════════════════════════════════════════════════════
   LEAD LISTS
   ═══════════════════════════════════════════════════════════════════ */
.lists-layout {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px 20px;
  align-items: start;
}
.lists-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}
.lists-hint {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Active list indicator */
.list-active-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white 70%);
  border-radius: 8px;
  font-size: 0.82rem;
}
.list-active-name {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.list-active-count {
  color: var(--muted);
  white-space: nowrap;
}
.list-clear-btn {
  padding: 3px 9px !important;
  font-size: 0.75rem !important;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   SELECTION BAR
   ═══════════════════════════════════════════════════════════════════ */
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--accent) 10%, white 90%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, white 72%);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  gap: 10px;
  flex-wrap: wrap;
  animation: riseIn 0.2s ease;
}
.sel-info { font-weight: 600; color: var(--accent); white-space: nowrap; font-size: 0.85rem; }
.sel-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: center; }
.sel-send { display: flex; gap: 6px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   EXPORT BOX
   ═══════════════════════════════════════════════════════════════════ */
.export-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.export-fields { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.export-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}
.export-check:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, white 95%); }
.export-check input { cursor: pointer; accent-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════════ */
.table-card { overflow: hidden; }

.table-wrap {
  overflow: auto;
  max-height: 65vh;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
  font-size: 0.85rem;
}

thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
}

td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 10px;
  color: var(--ink);
  vertical-align: top;
}

tbody tr {
  opacity: 0;
  animation: rowIn 0.28s ease forwards;
  transition: background 0.1s;
}
tbody tr:hover { background: #f8fafc; }
tbody tr.row-selected { background: color-mix(in srgb, var(--accent) 7%, white 93%); }

.col-check { width: 36px; text-align: center; }

.cell-email { color: var(--ink); }
.cell-no-email { color: var(--muted); font-style: italic; }

/* CNAE description cell */
.cell-cnae-desc {
  max-width: 220px;
  white-space: normal;
  font-size: 0.8rem;
  color: var(--muted);
}
.cnae-principal-desc { display: block; font-size: 0.82rem; color: var(--ink); font-weight: 500; }
.cnae-sec-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  padding-left: 7px;
  border-left: 2px solid var(--line);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Email badges */
.badge-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 700; cursor: default;
}
.badge-verified.valid   { background: #dcfce7; color: #16a34a; }
.badge-verified.invalid { background: #fee2e2; color: #dc2626; }
.badge-verified.unchecked { background: #f1f5f9; color: #94a3b8; }

/* WhatsApp badges */
.badge-wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.badge-wa.valid   { background: #dcfce7; color: #16a34a; }
.badge-wa.mobile  { background: #d1fae5; color: #059669; font-size: 10px; }
.badge-wa.invalid { background: #fee2e2; color: #dc2626; }
.badge-wa.unchecked { background: #f1f5f9; color: #94a3b8; }

.phone-link { color: var(--ink); text-decoration: none; }
.phone-link:hover { color: #16a34a; text-decoration: underline; }

/* Footer / Pagination */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fafafa;
  gap: 10px;
}
.summary-text { color: var(--muted); font-size: 0.82rem; }
.pagination-btns { display: flex; gap: 8px; }

/* CNAE prefetch bar */
.cnae-prefetch-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  width: min(490px, 94vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: riseIn 0.2s ease;
}
.modal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-box-header h2 { font-size: 1.05rem; font-weight: 700; }
.modal-close-x {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.modal-close-x:hover { background: #f1f5f9; }
.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.field-grow { grid-column: 1 / -1; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.modal-field.full-width { grid-column: 1 / -1; }
.modal-field label { font-size: 0.78rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes riseIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes rowIn {
  from { transform: translateY(4px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    height: 100vh;
    z-index: 300;
  }
  .sidebar.sidebar-mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .topbar-menu-btn { display: flex; }
  .filter-grid .span-2 { grid-column: span 1; }
  .main-content { padding: 14px 14px 28px; }
}

@media (max-width: 640px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid .span-2 { grid-column: span 2; }
  .filter-actions-row { flex-direction: column; align-items: stretch; }
  .filter-actions-left, .filter-actions-right { justify-content: stretch; }
  .lists-layout { grid-template-columns: 1fr; }
  .lists-actions-col { padding-top: 0; flex-direction: row; flex-wrap: wrap; }
  .sel-actions { justify-content: flex-start; }
  .topbar { padding: 0 14px; }
  .main-content { padding: 10px 10px 24px; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SUBPAGES – email.html / whatsapp.html / history.html
   All pages now use the dashboard-layout + sidebar
   ═══════════════════════════════════════════════════════════════════ */

/* Back button in topbar */
.btn-back {
  font-size: 0.82rem;
  padding: 6px 12px;
  gap: 4px;
  color: var(--muted);
  border-color: var(--line);
}
.btn-back:hover { color: var(--accent); border-color: var(--accent); }

/* Status chip inside topbar (smtp/atalk status) */
.topbar-status {
  font-size: 0.78rem;
  font-weight: 500;
}

/* Subpage main scrollable area */
.subpage-content {
  padding: 20px 24px 40px;
  overflow-y: auto;
}

/* compose-shell: replace app-shell inside dashboard layout */
.compose-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: riseIn 0.35s ease;
}

/* app-shell used standalone on subpages inside compose-shell */
.compose-shell.app-shell,
.main-wrapper .app-shell {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* History page – stat cards & table need breathing room */
.subpage-content .stat-grid { margin-top: 0; }

/* .app-shell kept for legacy (standalone use) */
.app-shell {
  position: relative;
  z-index: 1;
  width: min(1500px, 97vw);
  margin: 20px auto;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  animation: riseIn 0.45s ease;
}

.background-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.25;
  z-index: 0;
}
.shape-a { width: 320px; height: 320px; background: #78e5b8; top: -120px; right: -80px; }
.shape-b { width: 280px; height: 280px; background: #ffbf96; bottom: -120px; left: -70px; }

/* top-nav kept for fallback */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 24px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.top-nav-brand { font-weight: 700; font-size: 1rem; color: var(--accent); font-family: 'IBM Plex Mono', monospace; }
.top-nav-links { display: flex; gap: 4px; }
.top-nav-link { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.top-nav-link:hover, .top-nav-link.active { background: color-mix(in srgb, var(--accent) 12%, white 88%); color: var(--accent); }

