@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #6C3CE1;
  --primary-light: #EEE8FD;
  --primary-hover: #5a2ec7;
  --primary-gradient: linear-gradient(135deg, #7C4DFF 0%, #6C3CE1 55%, #5A2EC7 100%);
  --accent: #00C389;
  --accent-light: #E6FAF4;
  --danger: #F04438;
  --danger-light: #FEF3F2;
  --warning: #F79009;
  --warning-light: #FFFAEB;
  --info: #0BA5EC;
  --info-light: #E0F2FE;
  --n900: #14101F;
  --n700: #3D3852;
  --n500: #736C89;
  --n300: #C8C4D6;
  --n100: #F3F1F8;
  --n50:  #FAFAFB;
  --white: #FFFFFF;
  --sidebar-w: 245px;
  --topbar-h: 58px;
  --border: 1px solid #ECEAF3;
  --radius: 14px;
  --radius-sm: 9px;
  /* Layered, softer shadows — closer to how modern SaaS dashboards build
     depth (a tight contact shadow + a wider ambient one), instead of one
     flat single-layer shadow. */
  --shadow-sm: 0 1px 2px rgba(20,16,31,0.04), 0 2px 6px rgba(20,16,31,0.05);
  --shadow: 0 2px 6px rgba(20,16,31,0.05), 0 8px 20px rgba(108,60,225,0.08);
  --shadow-md: 0 4px 12px rgba(20,16,31,0.06), 0 16px 36px rgba(20,16,31,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif; color: var(--n900); font-size: 14px; line-height: 1.5;
  background: linear-gradient(180deg, #F6F4FB 0%, #F3F1F8 100%);
  background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
  transition: transform 0.2s ease;
}
.sidebar.sidebar-hidden { transform: translateX(-100%); }

/* Toggle button — a separate fixed element (not inside .sidebar) so it
   stays visible and clickable even while the sidebar itself is hidden. */
.sidebar-toggle-btn {
  position: fixed; top: 16px; z-index: 150;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 12px; color: var(--n500);
  transition: left 0.2s ease;
}
.sidebar-toggle-btn:hover { background: var(--n100); color: var(--n700); }

.sidebar-logo {
  padding: 18px 18px 14px;
  border-bottom: var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-name { font-weight: 700; font-size: 15px; color: var(--n900); }
.logo-tag { font-size: 10px; color: var(--n500); font-weight: 400; }

.sidebar-nav { padding: 10px 10px; flex: 1; }
.nav-section-label {
  font-size: 10px; font-weight: 700; color: var(--n300);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px 9px 9px; border-radius: var(--radius-sm);
  color: var(--n500); font-weight: 500; font-size: 13.5px;
  cursor: pointer; margin-bottom: 1px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--n100); color: var(--n700); transform: translateX(1px); }
.nav-item.active {
  background: var(--primary-light); color: var(--primary); font-weight: 600;
  border-left: 3px solid var(--primary);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--primary); color: white;
  font-size: 10px; font-weight: 700; border-radius: 20px; padding: 1px 7px;
  min-width: 20px; text-align: center;
}
.nav-badge.red { background: var(--danger); }

.sidebar-footer {
  padding: 12px 14px; border-top: var(--border); flex-shrink: 0;
}
.user-card {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 6px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background 0.13s;
}
.user-card:hover { background: var(--n100); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 700; font-size: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-weight: 600; font-size: 13px; color: var(--n900); }
.user-role { font-size: 11px; color: var(--n500); }
.sap-dot {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--accent-light);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--white); border-bottom: var(--border);
  height: var(--topbar-h); padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.page-title { font-size: 15px; font-weight: 700; color: var(--n900); }
.page-breadcrumb { font-size: 12px; color: var(--n500); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* ── MAIN LAYOUT ── */
.app-shell { display: flex; min-height: 100vh; }
.main-area { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left 0.2s ease; }
.main-area.sidebar-hidden { margin-left: 0; }
.page-content { padding: 22px 26px; flex: 1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; border: none;
  transition: all 0.15s; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary {
  background: var(--primary-gradient); color: white;
  box-shadow: 0 2px 8px rgba(108,60,225,0.28);
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(108,60,225,0.38); transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--n700); border: var(--border); }
.btn-outline:hover { background: var(--n100); }
.btn-success { background: var(--accent); color: white; }
.btn-success:hover { background: #00a873; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #d63c31; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-xs { padding: 3px 9px; font-size: 11px; font-weight: 600; }

/* ── CARDS ── */
.card {
  background: var(--white); border: var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: fadeInUp 0.35s ease both;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.card-header {
  padding: 15px 18px; border-bottom: var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-weight: 700; font-size: 14px; color: var(--n900); }
.card-body { padding: 18px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger card entrance slightly when several sit next to each other, so
   they don't all pop in as one flat block. */
.stats-grid .stat-card:nth-child(1) { animation-delay: 0s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.05s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.15s; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: fadeInUp 0.35s ease both;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card.purple::before { background: linear-gradient(90deg, #7C4DFF, #6C3CE1); }
.stat-card.green::before  { background: linear-gradient(90deg, #34E5B0, #00C389); }
.stat-card.orange::before { background: linear-gradient(90deg, #FFB648, #F79009); }
.stat-card.red::before    { background: linear-gradient(90deg, #FF7A6E, #F04438); }
.stat-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; box-shadow: 0 4px 10px rgba(20,16,31,0.08);
}
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.purple { background: linear-gradient(135deg, #8B5CF6, #6C3CE1); color: white; }
.stat-icon.green  { background: linear-gradient(135deg, #34E5B0, #00A873); color: white; }
.stat-icon.orange { background: linear-gradient(135deg, #FFC069, #F79009); color: white; }
.stat-icon.red    { background: linear-gradient(135deg, #FF8A80, #E03A2F); color: white; }
.stat-label { font-size: 11.5px; color: var(--n500); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 25px; font-weight: 800; color: var(--n900); letter-spacing: -0.6px; }
.stat-sub { font-size: 11px; color: var(--n500); margin-top: 4px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-open    { background: var(--warning-light); color: #92400e; }
.badge-open::before    { background: var(--warning); }
.badge-partial { background: var(--primary-light); color: var(--primary); }
.badge-partial::before { background: var(--primary); }
.badge-closed  { background: var(--accent-light);  color: #065f46; }
.badge-closed::before  { background: var(--accent); }
.badge-overdue { background: var(--danger-light);  color: var(--danger); }
.badge-overdue::before { background: var(--danger); }
.badge-posted  { background: var(--accent-light);  color: #065f46; }
.badge-posted::before  { background: var(--accent); }
.badge-pending { background: var(--warning-light); color: #92400e; }
.badge-pending::before { background: var(--warning); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--n50); padding: 10px 15px;
  text-align: left; font-size: 11px; font-weight: 700;
  color: var(--n500); text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: var(--border); white-space: nowrap;
}
tbody tr { border-bottom: var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--n50); }
td { padding: 12px 15px; font-size: 13px; color: var(--n700); vertical-align: middle; }
td.fw { font-weight: 600; color: var(--n900); }
td.mono { font-family: 'Courier New', monospace; font-size: 12px; }
td.amt { font-weight: 700; color: var(--n900); }
td.amt-out { font-weight: 700; color: var(--danger); }
td.amt-paid { font-weight: 600; color: var(--accent); }

/* Bulk Receive Payment modal — was relying entirely on browser
   auto-sizing across 14 columns, which cramped every amount input
   and cell so full numbers weren't visible. */
.bulk-input { width: 100%; min-width: 100px; box-sizing: border-box; padding: 6px 8px; font-size: 12.5px; }
.bulk-amt-cell { min-width: 110px; }
.bulk-row-total { min-width: 100px; white-space: nowrap; font-weight: 700; }
td.amt, td.amt-out, td.amt-paid { white-space: nowrap; min-width: 95px; }

/* ── FILTERS ── */
.filter-bar {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.search-wrap {
  display: flex; align-items: center; gap: 7px;
  background: var(--n100); border: var(--border); border-radius: var(--radius-sm);
  padding: 7px 11px; flex: 1; min-width: 180px;
}
.search-wrap svg { width: 14px; height: 14px; color: var(--n500); flex-shrink: 0; }
.search-wrap input { border: none; background: none; outline: none; font-family: inherit; font-size: 13px; color: var(--n900); width: 100%; }
.search-wrap input::placeholder { color: var(--n500); }
.filter-select {
  border: var(--border); border-radius: var(--radius-sm); padding: 7px 11px;
  font-family: inherit; font-size: 13px; color: var(--n700);
  background: var(--white); outline: none; cursor: pointer;
}
.tab-group { display: flex; gap: 3px; background: var(--n100); border-radius: var(--radius-sm); padding: 3px; }
.tab-btn {
  padding: 5px 13px; border-radius: 5px; font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--n500); border: none; background: none;
  transition: all 0.13s; white-space: nowrap;
}
.tab-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ── MODAL ── */
.overlay {
  position: fixed; inset: 0; background: rgba(15,12,26,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: 14px; width: 480px; max-width: 95vw;
  box-shadow: var(--shadow-md); transform: translateY(20px); transition: transform 0.22s;
  max-height: 90vh; overflow-y: auto;
}
.overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 18px 22px 14px; border-bottom: var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-close {
  width: 28px; height: 28px; border-radius: 6px; border: var(--border);
  background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--n500); line-height: 1; flex-shrink: 0;
}
.modal-footer {
  padding: 14px 22px; border-top: var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--white);
}
.modal-body { padding: 18px 22px; }

/* ── FORM ── */
.form-row { margin-bottom: 14px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--n700); display: block; margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: var(--border); border-radius: var(--radius-sm);
  padding: 8px 11px; font-family: inherit; font-size: 13px; color: var(--n900); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { color: var(--danger); }
.inp-prefix { position: relative; }
.inp-prefix-text { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--n500); font-weight: 600; font-size: 13px; pointer-events: none; }
.inp-prefix input { padding-left: 24px; }
.hint { font-size: 11px; color: var(--n500); margin-top: 3px; }

/* ── INV SUMMARY BOX ── */
.inv-summary-box {
  background: var(--n100); border-radius: var(--radius-sm); padding: 12px 14px;
  margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.inv-field label { font-size: 10.5px; color: var(--n500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.inv-field span { font-size: 13px; font-weight: 700; color: var(--n900); display: block; margin-top: 1px; }
.inv-field span.red { color: var(--danger); }
.inv-field span.green { color: var(--accent); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  background: var(--n900); color: white; padding: 11px 16px;
  border-radius: 10px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 9px;
  transform: translateY(70px) scale(0.95); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22); max-width: 340px;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toast-dot.green { background: var(--accent); }
.toast-dot.red   { background: var(--danger); }
.toast-dot.orange{ background: var(--warning); }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1472 50%, #6C3CE1 100%);
}
.login-left {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 60px; color: white;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 60px; }
.login-brand .logo-icon { width: 42px; height: 42px; font-size: 18px; background: rgba(255,255,255,0.15); }
.login-brand .logo-name { font-size: 20px; font-weight: 800; color: white; }
.login-headline { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.login-headline span { color: #D96B6F; }
.login-desc { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.65; max-width: 380px; }
.login-features { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.login-feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 13.5px; }
.login-feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.login-right {
  width: 420px; background: var(--white); display: flex; align-items: center; justify-content: center;
  padding: 40px; flex-shrink: 0;
}
.login-box { width: 100%; }
.login-title { font-size: 22px; font-weight: 800; color: var(--n900); margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--n500); margin-bottom: 28px; }
.login-box .form-row { margin-bottom: 16px; }
.login-box .form-row input { padding: 10px 13px; font-size: 14px; }
.login-btn { width: 100%; padding: 11px; font-size: 14px; font-weight: 700; margin-top: 6px; border-radius: var(--radius-sm); }
.login-sap-note {
  margin-top: 20px; padding: 10px 13px; background: var(--accent-light);
  border-radius: var(--radius-sm); font-size: 12px; color: #065f46;
  display: flex; align-items: center; gap: 8px;
}
.login-sap-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── EMPTY STATE ── */
.empty-state {
  padding: 60px 20px; text-align: center; color: var(--n500);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 14px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ── AUDIT ── */
.audit-row td:first-child { font-size: 12px; color: var(--n500); white-space: nowrap; }
.action-pill {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em;
}
.action-pill.full    { background: var(--accent-light); color: #065f46; }
.action-pill.partial { background: var(--primary-light); color: var(--primary); }

/* ── SAP STATUS BAR ── */
.sap-status-bar {
  background: var(--accent-light); border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm); padding: 8px 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #065f46; font-weight: 500;
}
.sap-status-bar svg { width: 14px; height: 14px; flex-shrink: 0; }
.sap-status-bar .sap-live { font-weight: 700; margin-left: auto; font-size: 11px; }

/* ── UTILS ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--n500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--accent); }
.text-primary { color: var(--primary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.separator { border: none; border-top: var(--border); margin: 14px 0; }

/* ── DARK MODE ──
   Same variable names every page already uses for color — flipping them
   here means most of the app adapts automatically, without touching
   individual page CSS. Toggled via [data-theme="dark"] on <html>. */
[data-theme="dark"] {
  --primary-light: rgba(124,77,255,0.18);
  --accent-light: rgba(0,195,137,0.16);
  --danger-light: rgba(240,68,56,0.16);
  --warning-light: rgba(247,144,9,0.16);
  --info-light: rgba(11,165,236,0.16);
  --n900: #F1EEF8;
  --n700: #C7C1DA;
  --n500: #93899E;
  --n300: #423C54;
  --n100: #2A2438;
  --n50:  #221D2C;
  --white: #251F31;
  --border: 1px solid rgba(255,255,255,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.18);
  --shadow: 0 2px 6px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.28);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.24), 0 16px 36px rgba(0,0,0,0.34);
}
[data-theme="dark"] body {
  background: linear-gradient(180deg, #18131F 0%, #14101A 100%);
  background-attachment: fixed;
}
[data-theme="dark"] .sidebar { background: #1C1726; }
[data-theme="dark"] .stat-icon.purple,
[data-theme="dark"] .stat-icon.green,
[data-theme="dark"] .stat-icon.orange,
[data-theme="dark"] .stat-icon.red { filter: brightness(0.92); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--n100); border: var(--border); cursor: pointer;
  color: var(--n700); transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { background: var(--n300); }
.theme-toggle-btn:active { transform: scale(0.92); }
.theme-toggle-btn svg { width: 15px; height: 15px; }
