:root {
  --bg: #f4f6fb;
  --bg-grad-from: #eef2ff;
  --bg-grad-to:   #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #f1f4f9;

  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --border: #e8ebf1;
  --border-strong: #d6dae3;

  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-soft: #dcfce7;
  --accent-soft-text: #166534;

  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --warn-soft-text: #92400e;

  --error: #dc2626;
  --error-soft: #fee2e2;
  --error-soft-text: #991b1b;

  --info: #3b82f6;
  --info-soft: #dbeafe;
  --info-soft-text: #1d4ed8;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);

  --sidebar-w: 248px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at -10% -10%, #e0e7ff 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, #d1fae5 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
button { font-family: inherit; }

/* ======================================================== Sidebar */
.sidebar {
  position: fixed; top: 16px; left: 16px; bottom: 16px;
  width: var(--sidebar-w);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  box-shadow: var(--shadow-md);
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center;
  padding: 6px 8px; margin-bottom: 18px;
}
.brand:hover { text-decoration: none; }
.brand-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
}
.brand-plate-lg { padding: 12px 20px; border-radius: 16px; }
.brand-logo {
  display: block;
  height: 26px; width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-plate-lg .brand-logo { height: 36px; }

/* Legacy brand-mark/text — kept for back-compat if referenced elsewhere */
.brand-mark {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  font-weight: 700; padding: 8px 11px;
  border-radius: 10px; font-size: 13px; letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}
.brand-text { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

.nav-section { margin-bottom: 16px; }
.nav-section-title {
  font-size: 11px; font-weight: 600;
  color: var(--text-faint); letter-spacing: 0.08em;
  padding: 6px 12px 8px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: flex; align-items: center; gap: 11px;
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: background-color 0.12s, color 0.12s;
  position: relative;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.nav-link.active .nav-chevron { color: var(--text-muted); opacity: 1; }
.nav-link .nav-label { flex: 1; }
.nav-link .nav-chevron { color: var(--text-faint); opacity: 0; transition: opacity 0.12s; }
.nav-link:hover .nav-chevron { opacity: 0.7; }

.nav-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-link[data-color="blue"]   .nav-icon { background: #dbeafe; color: #2563eb; }
.nav-link[data-color="green"]  .nav-icon { background: #dcfce7; color: #16a34a; }
.nav-link[data-color="orange"] .nav-icon { background: #ffedd5; color: #ea580c; }
.nav-link[data-color="purple"] .nav-icon { background: #ede9fe; color: #7c3aed; }
.nav-link[data-color="teal"]   .nav-icon { background: #ccfbf1; color: #0d9488; }
.nav-link[data-color="slate"]  .nav-icon { background: #e2e8f0; color: #475569; }
.nav-link[data-color="red"]    .nav-icon { background: #fee2e2; color: #dc2626; }

.sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.sidebar-footer { font-size: 11px; color: var(--text-faint); padding: 12px 12px 4px; }

/* Support card in sidebar */
.support-card {
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfeff 100%);
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.support-card-title {
  font-size: 12px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.support-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  padding: 5px 0;
}
.support-link:hover { color: var(--accent); text-decoration: none; }
.support-link svg { color: var(--accent); flex-shrink: 0; }
.support-cta {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}
.support-cta:hover { background: var(--accent-hover); color: white; text-decoration: none; }

/* ======================================================== App + Topbar */
.app {
  margin-left: calc(var(--sidebar-w) + 32px);
  padding: 16px 16px 16px 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  height: var(--topbar-h);
}
.topbar-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-muted);
  transition: border-color 0.12s, background-color 0.12s;
}
.topbar-search:focus-within { background: white; border-color: var(--accent); }
.topbar-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--text); font-family: inherit;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: none; color: var(--text-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  background: var(--surface-2);
  border-radius: 999px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.user-name { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-muted); line-height: 1.2; }

/* ======================================================== Main */
.main {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 0 16px 16px;
}

/* Page header */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-header h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.page-header p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  flex-shrink: 0;
}
.stat-balance .stat-icon { background: linear-gradient(135deg, #dcfce7, #86efac); color: #166534; }
.stat-total   .stat-icon { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #1d4ed8; }
.stat-active  .stat-icon { background: linear-gradient(135deg, #cffafe, #67e8f9); color: #0e7490; }
.stat-level   .stat-icon { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #92400e; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 2px; }
.stat-value { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.01em; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* Panel (table card) */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel-toolbar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.panel-title { display: flex; align-items: center; gap: 10px; }
.panel-title h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.muted-pill {
  font-size: 11px; padding: 3px 10px;
  background: var(--surface-2); color: var(--text-muted);
  border-radius: 999px; font-weight: 500;
}

.filter-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.filter-tabs a {
  padding: 6px 12px; font-size: 13px; font-weight: 500;
  border-radius: 7px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.filter-tabs a:hover { color: var(--text); text-decoration: none; }
.filter-tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.filter-tabs a span {
  font-size: 11px; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-muted); font-weight: 600;
}
.filter-tabs a.active span { background: var(--accent-soft); color: var(--accent-soft-text); }

.search-active { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.search { position: relative; margin-left: auto; }
.search input {
  padding: 9px 12px 9px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; min-width: 240px; font-family: inherit;
  background: var(--surface);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

/* Table */
.table-wrap { overflow-x: auto; }
.lic-table { width: 100%; border-collapse: collapse; }
.lic-table th, .lic-table td { padding: 14px 20px; text-align: left; }
.lic-table thead th {
  background: var(--surface-2);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.lic-table tbody td { border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.lic-table tbody tr:last-child td { border-bottom: none; }
.lic-table tbody tr:hover { background: var(--surface-2); }
.lic-table .text-right { text-align: right; }

.cell-product { display: flex; align-items: center; gap: 12px; }
.product-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #4338ca;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.lic-table code {
  background: var(--surface-2);
  padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12.5px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
}
.pill::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.pill-active  { background: var(--accent-soft); color: var(--accent-soft-text); }
.pill-expired { background: var(--error-soft);  color: var(--error-soft-text); }
.pill-unknown { background: var(--warn-soft);   color: var(--warn-soft-text); }

.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 13px; font-weight: 500;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  background: var(--surface); color: var(--text);
  border-color: var(--border);
  transition: background-color 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 10px rgba(22, 163, 74, 0.18); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-secondary { background: #1f2937; color: white; border-color: #1f2937; }
.btn-secondary:hover { background: #111827; border-color: #111827; color: white; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }

/* Forms (action pages) */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text); }
.form input, .form select {
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: white;
}
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.form button { align-self: flex-start; }
.hint { color: var(--text-muted); font-size: 13px; margin-top: 12px; max-width: 480px; }

/* Account / contact */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.card-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.account-list { display: grid; grid-template-columns: 140px 1fr; row-gap: 10px; column-gap: 16px; margin: 0; }
.account-list dt { font-size: 13px; color: var(--text-muted); }
.account-list dd { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }

.contact-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.flash-error { background: var(--error-soft); color: var(--error-soft-text); border-color: #fecaca; }
.flash-success { background: var(--accent-soft); color: var(--accent-soft-text); border-color: #bbf7d0; }

.empty { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.empty .btn { margin-top: 12px; }
.muted { color: var(--text-muted); font-size: 12px; }

/* Footer */
.page-footer {
  margin-top: auto; padding-top: 32px;
  font-size: 12px; color: var(--text-muted);
  text-align: center;
}
.page-footer a { color: var(--text-muted); }

/* Page footer dot separators */
.page-footer .dot { margin: 0 8px; opacity: 0.5; }

/* ======================================================== Auth pages */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
  margin: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr);
  min-height: 100vh;
}

/* ----- Hero side */
.auth-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 500px at 20% 0%, rgba(34, 197, 94, 0.18) 0%, transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(59, 130, 246, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #0f172a 60%, #111c33 100%);
  color: #e2e8f0;
  padding: 44px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }

.auth-hero-brand {
  display: inline-flex; align-items: center;
}
.auth-hero-brand:hover { text-decoration: none; }
.auth-hero-brand .brand-plate {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.auth-hero-body { max-width: 520px; }
.auth-hero-body h1 {
  margin: 0 0 16px;
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  color: white;
}
.auth-hero-body p {
  margin: 0 0 32px;
  color: #cbd5e1; font-size: 15px; line-height: 1.6;
  max-width: 460px;
}
.auth-hero-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-hero-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #e2e8f0;
}
.auth-hero-ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.auth-hero-footer {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
}
.auth-hero-footer a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #94a3b8; font-size: 13px;
}
.auth-hero-footer a:hover { color: white; text-decoration: none; }
.auth-hero-footer svg { color: #38bdf8; }

/* ----- Form pane */
.auth-pane {
  background: var(--surface);
  display: flex; flex-direction: column;
  padding: 28px 48px;
  position: relative;
}
.auth-pane-top {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; font-size: 13px; color: var(--text-muted);
}
.auth-pane-top a {
  font-weight: 600; color: var(--text);
  padding: 8px 14px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: background-color 0.12s, border-color 0.12s;
}
.auth-pane-top a:hover { background: var(--surface-3); border-color: var(--border-strong); text-decoration: none; }

.auth-form-wrap {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 380px; width: 100%;
  margin: 0 auto;
  padding: 24px 0;
}
.auth-form-wrap h2 {
  margin: 0 0 6px;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
}
.auth-sub { margin: 0 0 28px; color: var(--text-muted); font-size: 14px; }

.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.auth-form input {
  padding: 13px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit;
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.auth-form input::placeholder { color: var(--text-faint); }
.auth-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.auth-submit {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
  justify-content: center;
  color: white !important;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-actions .btn { justify-content: center; }

.auth-fineprint {
  margin: 24px 0 0;
  font-size: 11.5px; color: var(--text-muted); line-height: 1.6;
  text-align: center;
}

.auth-pane-foot {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center;
  padding-top: 24px;
  font-size: 12px; color: var(--text-muted);
}
.auth-pane-foot a { color: var(--text-muted); }
.auth-pane-foot a:hover { color: var(--accent); text-decoration: none; }

/* ----- Logout / mini auth */
.auth-mini {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 20% -10%, rgba(34, 197, 94, 0.15) 0%, transparent 55%),
    radial-gradient(700px 400px at 110% 110%, rgba(59, 130, 246, 0.15) 0%, transparent 55%),
    var(--bg);
}
.auth-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 380px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.auth-mini-brand { display: inline-flex; margin-bottom: 18px; }
.auth-mini-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--error-soft);
  color: var(--error);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.auth-mini-card h2 { margin: 0 0 6px; font-size: 20px; }
.auth-mini-card p { margin: 0 0 20px; color: var(--text-muted); font-size: 14px; }
.auth-mini-actions { display: flex; gap: 8px; justify-content: center; }
.auth-mini-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px; }
  .auth-hero-body h1 { font-size: 26px; }
  .auth-hero-body { margin: 24px 0; }
  .auth-pane { padding: 24px; }
  .auth-pane-top { justify-content: center; }
}

/* ============================================ Responsive */
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .app { margin-left: calc(220px + 28px); }
}
@media (max-width: 900px) {
  .sidebar {
    position: relative; top: 0; left: 0; bottom: auto;
    width: auto; margin: 12px;
    border-radius: var(--r-md);
  }
  .nav-section-title { display: none; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .nav-link .nav-label, .nav-link .nav-chevron { display: none; }
  .sidebar-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
  .sidebar-footer { display: none; }
  .app { margin-left: 0; padding: 0 12px 12px; }
  .topbar-search { max-width: none; }
  .user-meta { display: none; }
  .panel-toolbar { flex-direction: column; align-items: stretch; }
  .search { margin-left: 0; }
  .search input { width: 100%; min-width: 0; }
}
