/* ============================================================
   MFG CONGLOMERATE — Design System
   African-inspired premium platform UI
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f3ec;
  --bg-alt: #efe9dc;
  --surface: #ffffff;
  --surface-2: #f1ede3;
  --surface-3: #e9e3d4;
  --text: #152019;
  --text-2: #33433a;
  --text-muted: #68786e;
  --text-faint: #94a29a;
  --primary: #0e5a3c;
  --primary-600: #0b4a31;
  --primary-700: #073a27;
  --primary-100: #dcece3;
  --primary-50: #eff7f2;
  --accent: #c9a227;
  --accent-600: #a9851b;
  --accent-100: #f6eccb;
  --accent-50: #fbf6e4;
  --danger: #c0392b;
  --danger-100: #f8e3df;
  --success: #1e7b4f;
  --success-100: #ddf0e6;
  --warning: #b7791f;
  --warning-100: #f8ecd6;
  --info: #2c7da0;
  --info-100: #dceef6;
  --border: #e3dccd;
  --border-strong: #d5ccb9;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, 0.06), 0 1px 3px rgba(20, 32, 26, 0.08);
  --shadow: 0 4px 14px rgba(20, 32, 26, 0.08), 0 2px 4px rgba(20, 32, 26, 0.05);
  --shadow-lg: 0 14px 40px rgba(20, 32, 26, 0.16), 0 4px 10px rgba(20, 32, 26, 0.08);
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --grad-brand: linear-gradient(135deg, #0e5a3c 0%, #0b7a4f 55%, #0e8f5f 100%);
  --grad-gold: linear-gradient(135deg, #c9a227 0%, #e0b23c 60%, #e8c55a 100%);
  --grad-hero: radial-gradient(1100px 600px at 75% -10%, rgba(14, 90, 60, 0.55), transparent 60%),
    radial-gradient(800px 500px at 15% 110%, rgba(201, 162, 39, 0.35), transparent 55%),
    linear-gradient(150deg, #0a2016 0%, #0e3a27 55%, #0a2419 100%);
  --sidebar-w: 264px;
  --topbar-h: 66px;
}

[data-theme="dark"] {
  --bg: #0a100d;
  --bg-alt: #0c1410;
  --surface: #121b17;
  --surface-2: #0f1713;
  --surface-3: #1a2620;
  --text: #e7efe9;
  --text-2: #c2d0c7;
  --text-muted: #92a69b;
  --text-faint: #64786c;
  --primary: #22a06b;
  --primary-600: #1d8f60;
  --primary-700: #15704a;
  --primary-100: #1b3529;
  --primary-50: #12241c;
  --accent: #e0b23c;
  --accent-600: #c9a227;
  --accent-100: #3a3016;
  --accent-50: #2a2412;
  --danger: #e0614f;
  --danger-100: #3a201c;
  --success: #3fbf86;
  --success-100: #1a3428;
  --warning: #e0a72f;
  --warning-100: #3a2f16;
  --info: #5aa9cf;
  --info-100: #1c2e38;
  --border: #22302a;
  --border-strong: #30443a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
  --grad-brand: linear-gradient(135deg, #15704a 0%, #1d8f60 55%, #22a06b 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; font-weight: 750; line-height: 1.18; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img, svg { max-width: 100%; display: block; }
.icon:not([width]) { width: 1em; height: 1em; flex: none; }
ul, ol { padding-left: 1.2rem; }
button { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

::selection { background: var(--accent); color: #0a2016; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.62rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 0.92rem; cursor: pointer; line-height: 1.2;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); filter: brightness(1.05); color: #fff; }
.btn-gold { background: var(--grad-gold); color: #2a2006; box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: var(--shadow); filter: brightness(1.04); color: #2a2006; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a33025; color: #fff; }
.btn-danger-outline { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-100); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.6; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 650;
  line-height: 1.35; white-space: nowrap; border: 1px solid transparent;
}
.badge-success { background: var(--success-100); color: var(--success); }
.badge-danger { background: var(--danger-100); color: var(--danger); }
.badge-warning { background: var(--warning-100); color: var(--warning); }
.badge-info { background: var(--info-100); color: var(--info); }
.badge-primary { background: var(--primary-100); color: var(--primary); }
.badge-accent { background: var(--accent-100); color: var(--accent-600); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.card-pad { padding: 1.4rem; }
.card-header { padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-header h3, .card-header h4 { margin: 0; }
.card-body { padding: 1.4rem; }
.card-footer { padding: 0.9rem 1.4rem; border-top: 1px solid var(--border); }
.card-flat { box-shadow: none; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1rem; border: 1px solid transparent;
}
.alert-success { background: var(--success-100); color: var(--success); border-color: var(--success); }
.alert-danger { background: var(--danger-100); color: var(--danger); border-color: var(--danger); }
.alert-warning { background: var(--warning-100); color: var(--warning); border-color: var(--warning); }
.alert-info { background: var(--info-100); color: var(--info); border-color: var(--info); }
.alert p { margin: 0; }
.alert ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 650; margin-bottom: 0.35rem; color: var(--text-2); }
.field .help-text { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.3rem; }
.field .errorlist { list-style: none; margin: 0.35rem 0 0; padding: 0; color: var(--danger); font-size: 0.82rem; }
.input, .select, textarea.input {
  width: 100%; padding: 0.62rem 0.85rem; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.93rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100);
}
.input[readonly] { background: var(--surface-2); }
textarea.input { min-height: 110px; resize: vertical; }
.input-lg { padding: 0.8rem 1rem; font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.file-input {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 1.4rem; text-align: center; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.file-input:hover { border-color: var(--primary); background: var(--primary-50); }
.file-input input { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th {
  text-align: left; padding: 0.7rem 0.9rem; font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table .muted { color: var(--text-muted); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Nav / public header ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 60; backdrop-filter: blur(12px);
  background: rgba(10, 32, 22, 0.86); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .container { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-size: 1.05rem; }
.brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-gold); display: grid; place-items: center; font-weight: 900; color: #12200a; font-size: 1rem; flex: none; }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  color: #cfdcd3; padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.9rem; font-weight: 550;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links .btn { margin-left: 0.4rem; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.3rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0.4rem; padding: 88px 24px 24px; background: rgba(8, 22, 16, 0.98); z-index: 59;
    transform: translateX(-100%); transition: transform 0.28s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 0.85rem 1rem; border-radius: 12px; }
  .nav-links .btn { margin: 0.4rem 0 0; width: 100%; }
  .nav-close { display: inline-flex; margin-bottom: 0.5rem; align-self: flex-end; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--grad-hero);
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(224, 178, 60, 0.4); color: #f2d98a; font-size: 0.8rem; font-weight: 650; margin-bottom: 1.3rem;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.8rem); margin-bottom: 1rem; }
.hero h1 .gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #c3d4ca; font-size: 1.08rem; max-width: 30rem; margin-bottom: 1.8rem; }
.hero .cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero .stats-strip { display: flex; gap: 2.5rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 1.5rem; color: #fff; }
.hero .stat span { font-size: 0.82rem; color: #a9c0b2; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .orbit { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(224, 178, 60, 0.35); animation: spin 60s linear infinite; }
.hero-art .orbit.ring2 { width: 96%; border-color: rgba(255, 255, 255, 0.12); animation-direction: reverse; animation-duration: 90s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45)); }

/* ---------- Sections (public) ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-600); margin-bottom: 0.7rem;
}
[data-theme="dark"] .section-head .eyebrow { color: var(--accent); }
.section-head .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .hero .grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

.feature-card { padding: 1.7rem; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--primary-100); color: var(--primary); font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* Plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; align-items: stretch; }
@media (max-width: 1050px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { display: flex; flex-direction: column; padding: 1.7rem 1.5rem; position: relative; }
.plan-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-card.featured::before {
  content: "Most Popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #2a2006; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.28rem 0.9rem; border-radius: 999px; text-transform: uppercase;
}
.plan-card .plan-name { font-weight: 800; font-size: 1.15rem; }
.plan-card .plan-tagline { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.plan-price { margin: 0.4rem 0 1.2rem; }
.plan-price .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .sub { color: var(--text-muted); font-size: 0.8rem; display: block; }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.plan-benefits li { display: flex; gap: 0.55rem; font-size: 0.9rem; padding: 0.32rem 0; color: var(--text-2); }
.plan-benefits li::before { content: "✓"; color: var(--success); font-weight: 800; flex: none; }
.plan-currency { display: flex; gap: 0.35rem; }
.plan-currency .chip { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--surface-2); font-size: 0.8rem; font-weight: 650; }
.plan-currency .chip.active { background: var(--primary-100); color: var(--primary); }

/* Steps */
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .step-num {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Testimonials */
.testimonial { padding: 1.6rem; }
.testimonial .quote { font-size: 0.95rem; color: var(--text-2); font-style: italic; margin-bottom: 1.1rem; }
.testimonial .person { display: flex; align-items: center; gap: 0.75rem; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-100); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.testimonial .person b { display: block; font-size: 0.9rem; }
.testimonial .person span { font-size: 0.78rem; color: var(--text-faint); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.7rem; background: var(--surface); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--text-muted); font-size: 0.93rem; }

/* Footer */
.site-footer { background: #081b13; color: #a9c0b2; padding: 3.5rem 0 0; margin-top: auto; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2.2rem; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.site-footer a { color: #a9c0b2; display: block; padding: 0.25rem 0; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #7a9084; }

/* ---------- Auth pages ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--grad-hero); }
.auth-brand-side { color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; position: relative; overflow: hidden; }
.auth-brand-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.5; }
.auth-brand-side > * { position: relative; }
.auth-brand-side h2 { color: #fff; font-size: 2rem; max-width: 24rem; }
.auth-brand-side p { color: #b9cdc1; max-width: 26rem; }
.auth-side { background: var(--bg); display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .card { padding: 2rem; }
.auth-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--text); font-size: 1.1rem; margin-bottom: 1.6rem; }
.auth-logo .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-gold); display: grid; place-items: center; color: #12200a; font-weight: 900; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-brand-side { display: none; } }

/* ---------- App shell (dashboards) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: #0b2016; color: #b6c9bd; flex: none;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 70;
  transition: transform 0.28s ease; overflow-y: auto;
}
[data-theme="dark"] .sidebar { background: #08130e; }
.sidebar .sidebar-brand { display: flex; align-items: center; gap: 0.65rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff; font-weight: 800; }
.sidebar .sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-gold); display: grid; place-items: center; color: #12200a; font-weight: 900; }
.sidebar .sidebar-brand small { display: block; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; font-weight: 650; }
.sidebar nav { padding: 0.8rem 0.75rem; flex: 1; }
.sidebar .nav-group-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6d8a7b; padding: 0.9rem 0.7rem 0.35rem; font-weight: 700; }
.sidebar nav a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.58rem 0.75rem; border-radius: 10px;
  color: #b6c9bd; font-size: 0.9rem; font-weight: 550; margin-bottom: 2px; transition: background 0.15s ease, color 0.15s ease;
}
.sidebar nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.sidebar nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(34,160,107,0.28), rgba(34,160,107,0.08)); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar nav a .count { margin-left: auto; background: var(--accent); color: #12200a; font-size: 0.68rem; font-weight: 800; border-radius: 999px; padding: 0.05rem 0.5rem; }
.sidebar .sidebar-foot { padding: 0.9rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: #6d8a7b; }

.app-main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
}
.topbar .topbar-title { font-weight: 750; font-size: 1.02rem; letter-spacing: -0.01em; }
.topbar .spacer { flex: 1; }
.topbar .icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: transparent; color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; position: relative; transition: background 0.15s ease;
}
.topbar .icon-btn:hover { background: var(--surface-2); }
.topbar .icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }
.app-content { padding: 1.6rem 1.5rem; flex: 1; }

.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 69; }
.sidebar-toggle { display: none; }

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .app-main { margin-left: 0; }
  .sidebar-toggle { display: grid; }
}

/* ---------- Small-screen polish (phones) ---------- */
@media (max-width: 700px) {
  .d-none-sm { display: none !important; }
  .topbar { padding: 0 0.9rem; gap: 0.6rem; }
  .topbar .topbar-title { font-size: 0.94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-content { padding: 1.1rem 0.9rem; }
  .card-pad { padding: 1rem; }
  .card-header, .card-body { padding-left: 1rem; padding-right: 1rem; }
}

/* Prevent iOS Safari auto-zoom when focusing small inputs */
@media (max-width: 700px) {
  .input, .select, textarea.input, input[type="text"], input[type="email"],
  input[type="password"], input[type="tel"], input[type="number"], input[type="search"], select {
    font-size: 16px;
  }
}

/* Stat cards */
.stat-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.15rem 1.25rem; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 0.45rem; }
.stat-card .stat-label svg { width: 15px; height: 15px; opacity: 0.7; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--text-faint); }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.stat-card .stat-icon.success { background: var(--success-100); color: var(--success); }
.stat-card .stat-icon.primary { background: var(--primary-100); color: var(--primary); }
.stat-card .stat-icon.accent { background: var(--accent-100); color: var(--accent-600); }
.stat-card .stat-icon.info { background: var(--info-100); color: var(--info); }
.stat-card .stat-icon.danger { background: var(--danger-100); color: var(--danger); }

/* Wallet cards */
.wallet-card { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; position: relative; overflow: hidden; }
.wallet-card::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-100), transparent 70%); opacity: 0.7;
}
.wallet-card .wallet-type { font-size: 0.78rem; color: var(--text-muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-card .wallet-balance { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wallet-card .wallet-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }

/* Page header */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.page-head p { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* Empty state */
.empty-state { text-align: center; padding: 3.4rem 1.5rem; }
.empty-state .empty-icon {
  width: 74px; height: 74px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--surface-2);
  color: var(--text-faint); display: grid; place-items: center;
}
.empty-state .empty-icon svg { width: 32px; height: 32px; }
.empty-state h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.empty-state p { color: var(--text-muted); max-width: 26rem; margin: 0 auto 1.2rem; font-size: 0.92rem; }

/* Toasts */
.toast-region { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 200; display: flex; flex-direction: column; gap: 0.6rem; max-width: 360px; }
.toast {
  display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease; font-size: 0.88rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.danger { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }
.toast.out { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 16, 11, 0.55); z-index: 120; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); animation: modal-in 0.22s ease; max-height: 90vh; overflow-y: auto; }
.modal.modal-lg { max-width: 760px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 1.05rem; }
.modal-close { background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 1.4rem; }
.modal-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.6rem; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 0.4rem; z-index: 90; display: none;
}
.dropdown.open .dropdown-menu { display: block; animation: modal-in 0.16s ease; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; border-radius: 8px;
  color: var(--text); font-size: 0.88rem; background: none; border: none; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 0.3rem 0.4rem; }

/* Tabs */
.tabs { display: flex; gap: 0.35rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs button, .tabs a.tab {
  padding: 0.6rem 0.95rem; border: none; background: none; color: var(--text-muted); font-weight: 650;
  font-size: 0.9rem; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button:hover, .tabs a.tab:hover { color: var(--text); }
.tabs button.active, .tabs a.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 0.4rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.pagination a, .pagination .page-current {
  min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border-strong); color: var(--text); font-size: 0.88rem; padding: 0 0.5rem;
}
.pagination a:hover { background: var(--surface-2); }
.pagination .page-current { background: var(--grad-brand); color: #fff; border-color: transparent; font-weight: 700; }

/* List rows */
.list-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .list-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.list-row .list-main { flex: 1; min-width: 0; }
.list-row .list-title { font-weight: 650; font-size: 0.92rem; }
.list-row .list-sub { font-size: 0.8rem; color: var(--text-muted); }
.list-row .list-value { font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.list-row .list-value.credit { color: var(--success); }
.list-row .list-value.debit { color: var(--danger); }

/* Avatar */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-100); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; flex: none; }

/* Charts */
.chart-wrap { position: relative; width: 100%; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 10px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .bar { width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--primary), var(--primary-600)); min-height: 3px; transition: height 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.bar-chart .bar.accent { background: var(--grad-gold); }
.bar-chart .bar-label { font-size: 0.68rem; color: var(--text-faint); white-space: nowrap; }
.bar-chart .bar-value { font-size: 0.7rem; font-weight: 700; color: var(--text-2); }
.donut-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.donut-wrap .donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center b { display: block; font-size: 1.35rem; }
.donut-center span { font-size: 0.72rem; color: var(--text-faint); }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Progress */
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }

/* Misc utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent-600); }
[data-theme="dark"] .text-accent { color: var(--accent); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.grid-stack { display: grid; gap: 1.4rem; }
.grid-main-side { display: grid; grid-template-columns: 2fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 980px) { .grid-main-side { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.bg-gradient-brand { background: var(--grad-brand); }

/* Profile chip */
.profile-chip { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.55rem 0.35rem 0.35rem; border-radius: 999px; cursor: pointer; }
.profile-chip:hover { background: var(--surface-2); }
.profile-chip b { font-size: 0.88rem; display: block; line-height: 1.2; }
.profile-chip span { font-size: 0.72rem; color: var(--text-muted); }

/* Theme toggle */
.theme-toggle { cursor: pointer; }
.theme-toggle svg { transition: transform 0.3s ease; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: rgba(9, 24, 17, 0.94);
  backdrop-filter: blur(12px);
  opacity: 1; visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
[data-theme="light"] .page-loader { background: rgba(246, 249, 247, 0.96); }
.page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader-inner { display: flex; flex-direction: column; align-items: center; }
.page-loader-ring { position: relative; width: 118px; height: 118px; }
.loader-ring { position: absolute; border-radius: 50%; }
.loader-ring-outer {
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(232, 188, 74, 0.25);
  animation: loader-spin 1.5s cubic-bezier(0.65, 0.2, 0.35, 0.8) infinite;
}
.loader-ring-inner {
  inset: 13px;
  border: 3px solid transparent;
  border-bottom-color: var(--primary);
  border-left-color: rgba(34, 160, 107, 0.3);
  animation: loader-spin 1.1s cubic-bezier(0.65, 0.2, 0.35, 0.8) infinite reverse;
}
.loader-core {
  position: absolute; inset: 29px; border-radius: 18px;
  background: var(--grad-brand); color: #ffffff;
  font-weight: 900; font-size: 0.92rem; letter-spacing: 0.04em;
  display: grid; place-items: center;
  box-shadow: 0 0 44px rgba(34, 160, 107, 0.5);
  animation: loader-core 1.6s ease-in-out infinite;
}
.loader-brand {
  margin-top: 20px; font-weight: 800; letter-spacing: 0.3em;
  text-transform: uppercase; font-size: 0.68rem; color: var(--text-2);
}
.loader-brand small {
  display: block; text-align: center; letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--text-faint); font-size: 0.52rem; margin-top: 5px; font-weight: 700;
  animation: loader-blink 1.2s ease-in-out infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-core {
  0%, 100% { transform: scale(1); box-shadow: 0 0 44px rgba(34, 160, 107, 0.5); }
  50% { transform: scale(0.9); box-shadow: 0 0 16px rgba(34, 160, 107, 0.3); }
}
@keyframes loader-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Button spinner ---------- */
.btn.loading { position: relative; pointer-events: none; }
.btn.loading svg { opacity: 0; }
.btn.loading::before {
  content: ""; position: absolute; width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  animation: loader-spin 0.7s linear infinite;
}
.btn-outline.loading::before, .btn-ghost.loading::before,
.btn-danger-outline.loading::before {
  border-color: rgba(34, 160, 107, 0.28);
  border-top-color: var(--primary);
}

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utility helpers ---------- */
.ml-1 { margin-left: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 0.6rem; }
.list-stack { display: grid; gap: 0.7rem; }

/* ---------- Badges ---------- */
.badge-soft { background: var(--surface-2); color: var(--text-2); }
.badge-muted { background: transparent; border-color: var(--border-strong); color: var(--text-muted); }
.badge-link {
  background: transparent; color: var(--primary); text-decoration: none; border: none; cursor: pointer;
}
.badge-link:hover { text-decoration: underline; }

/* ---------- Search / filter row ---------- */
.filter-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 0.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.9rem 0.15rem 0.6rem; flex: 1; min-width: 220px;
}
.search-box input { border: none; outline: none; background: transparent; padding: 0.5rem 0; font-size: 0.9rem; width: 100%; }
.search-box svg { width: 16px; height: 16px; color: var(--text-faint); flex: none; }

/* ---------- Stat grids (admin) ---------- */
.stat-grid { display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: 0.35rem; -webkit-overflow-scrolling: touch; }
.stat-grid > * { flex: 1 0 200px; min-width: 0; }

/* ---------- 3-col stat grid (admin) ---------- */
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .stat-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stat-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Bar charts (admin) ---------- */
.chart-bars {
  display: flex; align-items: flex-end; gap: 0.5rem; height: 180px;
  padding: 0.6rem 0.4rem 0; border-bottom: 1px solid var(--border);
  overflow-x: auto; overflow-y: hidden; min-width: 0;
}
.chart-col { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1 0 38px; min-width: 0; height: 100%; justify-content: flex-end; }
.chart-col .chart-bar {
  width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--accent-600));
  min-height: 4px; transition: height 0.4s ease;
}
.chart-col:nth-child(2n) .chart-bar { background: linear-gradient(180deg, var(--primary), var(--primary-700)); }
.chart-col .chart-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.chart-col .chart-value { font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Cell user (admin tables) ---------- */
.cell-user { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.cell-user .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--primary-100); color: var(--primary-700);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em;
}
.cell-user b { display: block; font-size: 0.9rem; line-height: 1.25; }
.cell-user span { font-size: 0.76rem; color: var(--text-muted); }

/* ---------- Checkbox (admin) ---------- */
.checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.88rem; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

/* ---------- Details / summary ---------- */
.details { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.details > summary {
  cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 650; font-size: 0.95rem;
  background: var(--surface-2); list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.details > summary::-webkit-details-marker { display: none; }
.details > summary::after { content: "+"; color: var(--text-muted); font-weight: 800; }
.details[open] > summary::after { content: "−"; }
.details .details-body { padding: 1.1rem; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 6rem 1.5rem; max-width: 640px; margin: 0 auto; }
.error-page .error-code {
  font-size: 5.5rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: 1.6rem; margin: 0.8rem 0 0.5rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.6rem; }
