/* ==========================================================================
   FXRAID - Trading desk design: navy panels, one gold accent, plain type.
   Dark by default, light via prefers-color-scheme or [data-theme="light"].
   ========================================================================== */

:root {
  --bg: #0c1424;
  --panel: #121d33;
  --panel2: #18253f;
  --line: #25334f;
  --fg: #e8ecf4;
  --muted: #93a0b8;
  --faint: #6f7d97;
  --gold: #e3b04b;
  --gold-ink: #1b1405;
  --up: #3fbf8a;
  --down: #ef6b6b;
  --blue: #6aa3ff;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Aliases for older inline styles and the admin views */
  --bg-primary: var(--bg);
  --bg-secondary: var(--panel);
  --bg-card: var(--panel);
  --bg-card-hover: var(--panel2);
  --border-color: var(--line);
  --border-subtle: var(--line);
  --accent-green: var(--up);
  --accent-green-bright: var(--up);
  --accent-green-glow: transparent;
  --accent-gold: var(--gold);
  --accent-gold-bright: var(--gold);
  --accent-gold-glow: transparent;
  --accent-blue: var(--blue);
  --accent-red: var(--down);
  --text-primary: var(--fg);
  --text-secondary: var(--muted);
  --text-muted: var(--faint);
  --font-sans: var(--body);
  --font-mono: var(--mono);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fa; --panel: #ffffff; --panel2: #eef1f7; --line: #d7dde8;
    --fg: #111a2c; --muted: #5a6780; --faint: #74809a; --gold: #a8740f; --gold-ink: #ffffff;
    --up: #13855a; --down: #c63d3d; --blue: #2f63c9;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6fa; --panel: #ffffff; --panel2: #eef1f7; --line: #d7dde8;
  --fg: #111a2c; --muted: #5a6780; --faint: #74809a; --gold: #a8740f; --gold-ink: #ffffff;
  --up: #13855a; --down: #c63d3d; --blue: #2f63c9;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; text-wrap: balance; color: var(--fg); }
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 700; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  display: inline-block;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section.first { border-top: 0; padding-top: 48px; }
.section-title { display: grid; gap: 10px; margin-bottom: 28px; max-width: 70ch; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-title h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-title p { color: var(--muted); }
.page-head { display: grid; gap: 14px; max-width: 72ch; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.page-head p { color: var(--muted); font-size: 17px; }
.prose { max-width: 72ch; color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--fg); }

.grid-2, .grid-3 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Badges (kept quiet: mono labels, no colour blocks) */
.badge {
  display: inline-block;
  font: 600 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--panel2);
  color: var(--muted);
  margin-bottom: 12px;
}
.badge-gold { color: var(--gold); }
.badge-green { color: var(--up); }
.badge-blue { color: var(--blue); }
a.badge:hover { color: var(--fg); }
.badge.is-active { background: var(--gold); color: var(--gold-ink); }

/* Top banner */
.top-banner { background: var(--panel2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.top-banner-content { display: flex; gap: 12px; justify-content: center; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; text-align: center; }
.top-banner a { color: var(--gold); font-weight: 600; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-container { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; position: relative; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -.02em; color: var(--fg); }
.logo > span:not(.logo-badge):not(.logo-text) { color: var(--gold); }
.logo-badge { font: 600 10px/1 var(--mono); letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 4px 6px; border-radius: 4px; }
.nav-menu { display: flex; gap: 20px; list-style: none; padding: 0; align-items: center; }
.nav-link { font-size: 14px; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); border-bottom-color: var(--gold); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mobile-only-menu-item { display: none; }
.mobile-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 10px; background: transparent;
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.mobile-toggle span { display: block; height: 2px; width: 100%; background: var(--fg); transition: transform .2s, opacity .2s; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .desktop-only { display: none !important; }
  .mobile-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
  }
  .nav-menu.show { display: flex; }
  .nav-link { display: block; padding: 10px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-link.active { border-bottom-color: var(--line); color: var(--gold); }
  .mobile-only-menu-item { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
}

/* Buttons: one gold primary per section, everything else outlined */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; padding: 10px 16px;
  font: 600 14px/1.2 var(--body); text-align: center;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn-gold, .btn-exness {
  background: var(--gold); color: var(--gold-ink); border-color: var(--gold);
}
.btn-gold:hover, .btn-exness:hover { background: color-mix(in srgb, var(--gold) 88%, var(--fg)); border-color: var(--gold); }
.btn-primary, .btn-secondary, .btn-telegram { background: transparent; color: var(--fg); }
.btn-primary { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.disclosure { font-size: 12px; color: var(--faint); margin-top: 8px; line-height: 1.5; }
.disclosure a { text-decoration: underline; }
.text-accent { color: var(--gold); }
.underline { text-decoration: underline; }
.font-semibold { font-weight: 600; }
a.inline, .prose a, .faq-answer a, .article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* Ticker */
.ticker-bar { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 36px; padding: 9px 0; animation: tickerScroll 45s linear infinite; }
.ticker-item { font: 13px var(--mono); color: var(--muted); }
.ticker-name { font-weight: 600; color: var(--fg); margin-right: 8px; }
.ticker-price { color: var(--fg); }
.ticker-change { margin-left: 6px; }
.ticker-change.up { color: var(--up); }
.ticker-change.down { color: var(--down); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 20px 0 28px; }
.proof { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.proof div { display: grid; gap: 4px; }
.proof .num { font-size: 20px; font-weight: 600; }
.proof a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 36px; } }

/* Panels / cards */
.card, .panel, .calc-card, .tool, .vip-form-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; min-width: 0;
}
.card h3, .tool h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card p + p { margin-top: 10px; }
.card .btn { margin-top: 16px; }
.card-gold, .card-highlight { border-color: var(--line); }
.card-icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px;
  font: 600 14px var(--mono); background: var(--panel2); color: var(--gold); margin-bottom: 14px;
}
.card-list { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.card-list li { padding-left: 16px; position: relative; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); }

.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 13px/36px var(--mono); text-align: center; background: var(--panel2); border-radius: 6px; color: var(--gold); }
.steps h3 { font-size: 16px; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: 14px; }

/* Session clock */
.clock { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-width: 0; }
.clock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.clock-top .now { font: 600 30px/1 var(--mono); margin-top: 6px; }
.clock-utc { margin-top: 6px; font: 500 12px/1.2 var(--mono); color: var(--faint); }
.clock-top .tz-pick { width: 180px; }
.clock-top .tz-pick label { display: block; margin-bottom: 6px; }
.bars { position: relative; display: grid; gap: 10px; }
.sess { display: grid; grid-template-columns: 78px 1fr 70px; align-items: center; gap: 10px; font-size: 13px; }
.track { position: relative; height: 22px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--blue) 35%, transparent); border-left: 2px solid var(--blue); }
.sess.open .seg { background: color-mix(in srgb, var(--gold) 45%, transparent); border-left-color: var(--gold); }
.state { font: 600 11px/1.3 var(--mono); text-align: right; color: var(--muted); }
.sess.open .state { color: var(--gold); }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fg); pointer-events: none; }
.hours { display: grid; grid-template-columns: 78px 1fr 70px; gap: 10px; margin-top: 6px; }
.hours .scale { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--muted); }
.verdict { margin-top: 16px; padding: 12px 14px; border-radius: 6px; background: var(--panel2); font-size: 14px; }
.verdict b { color: var(--gold); }
.clock-foot { margin-top: 10px; font-size: 12px; color: var(--faint); }
@media (max-width: 480px) { .sess, .hours { grid-template-columns: 64px 1fr 58px; } }

/* Tools */
.desk { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .desk { grid-template-columns: 1fr; } }
.tool { display: grid; gap: 16px; align-content: start; }
.tool .why { font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.out > div { background: var(--panel2); border-radius: 6px; padding: 12px; display: grid; gap: 4px; min-width: 0; }
.out .num { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.out .big .num { color: var(--gold); }
canvas.sim { width: 100%; height: 220px; display: block; background: var(--panel2); border-radius: 6px; }
@media (max-width: 480px) { .out { grid-template-columns: 1fr 1fr; } .fields.three { grid-template-columns: 1fr 1fr; } }

.tool-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.tool-section .prose h2 { font-size: clamp(24px, 3vw, 34px); color: var(--fg); margin-bottom: 14px; }
.tool-section .prose h3 { font-size: 17px; color: var(--fg); margin: 18px 0 6px; }
@media (max-width: 900px) { .tool-section { grid-template-columns: 1fr; gap: 24px; } }

/* Forms */
.form-group { margin-bottom: 14px; display: grid; gap: 6px; }
.form-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.form-control, select, input, textarea {
  font: 14px var(--mono); background: var(--panel2); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; width: 100%;
}
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea.form-control, textarea { font-family: var(--body); }
.form-control:focus, select:focus, input:focus, textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 12px; color: var(--faint); }
.calc-result-box { margin-top: 16px; background: var(--panel2); border-radius: 6px; padding: 14px; text-align: center; }
.calc-result-num { font: 600 24px var(--mono); color: var(--gold); margin: 4px 0; }

/* Tables */
.tier-table-container, .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tier-table, .ledger { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.tier-table th, .tier-table td, .ledger th, .ledger td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tier-table th, .ledger th { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier-table tr:last-child td, .ledger tr:last-child td { border-bottom: 0; }
.ledger td.num, .ledger th.r { text-align: right; }
.pill { font: 600 11px var(--mono); padding: 3px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.pill.win { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.pill.loss { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.stats-row div { display: grid; gap: 2px; }
.stats-row .num { font-size: 22px; font-weight: 600; }
.empty-state { border: 1px dashed var(--line); border-radius: 10px; padding: 36px 22px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty-state h2 { font-size: 22px; }

/* FAQ */
.faq-list { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; cursor: pointer; font: 600 16px/1.4 var(--display); color: var(--fg);
  background: transparent; border: 0; text-align: left;
}
.faq-question::after { content: "+"; font: 400 20px var(--mono); color: var(--muted); }
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-answer { display: block; }

/* Blog */
.blog-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; min-width: 0; }
.blog-card:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.blog-card-content { padding: 22px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.blog-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 12px var(--mono); color: var(--faint); }
.blog-title { font-size: 19px; line-height: 1.3; }
.blog-title a:hover { color: var(--gold); }
.blog-excerpt { color: var(--muted); font-size: 14px; }
.blog-card .more { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.blog-card .more a { color: var(--gold); font-weight: 600; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row .badge { margin: 0; padding: 8px 10px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } }
.post-aside { position: sticky; top: 84px; display: grid; gap: 16px; }
@media (max-width: 960px) { .post-aside { position: static; } }
.crumbs { font: 12px var(--mono); color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a:hover { color: var(--fg); }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: clamp(30px, 4vw, 44px); }
.article-header .blog-meta { margin-top: 14px; }
.article-container { min-width: 0; }
.article-body { font-size: 17px; line-height: 1.75; color: color-mix(in srgb, var(--fg) 86%, var(--muted)); }
.article-body h2 { font-size: 26px; margin: 36px 0 12px; }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; }
.article-body h4 { font-size: 17px; margin: 0 0 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; display: grid; gap: 6px; }
.article-body code { font: 14px var(--mono); background: var(--panel2); padding: 2px 6px; border-radius: 4px; }
.article-body table { border-collapse: collapse; width: 100%; margin-bottom: 16px; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.callout-box { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; padding: 16px 18px; margin: 20px 0; }
.callout-box h4 { font-size: 16px; margin-bottom: 8px; }
.callout-box p, .callout-box li { color: var(--muted); font-size: 15px; }
.callout-box.error { border-left-color: var(--down); }
.author-box { display: flex; gap: 16px; align-items: center; margin: 36px 0; }
.author-box .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; font: 700 18px var(--display); color: var(--gold); flex-shrink: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 28px 0 0; }
.tags .badge { margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-links a:hover { color: var(--fg); }
.footer p { line-height: 1.7; }
.risk-warning { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); line-height: 1.7; }
.risk-warning strong { color: var(--muted); }

/* Legacy pieces still used by older content */
.gradient-text, .gold-text { color: var(--gold); }
.exness-hero-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }

/* ==========================================================================
   Admin (views/admin/*) - kept functional on the new palette
   ========================================================================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--panel); border-right: 1px solid var(--line); padding: 28px 20px; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-main { flex: 1; padding: 32px; background: var(--bg); overflow-y: auto; min-width: 0; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--muted); border-radius: 6px; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.admin-nav-item:hover, .admin-nav-item.active { background: var(--panel2); color: var(--fg); }
.admin-stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.admin-stat-num { font: 800 30px var(--mono); margin: 6px 0; }
@media (max-width: 968px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
}
.local-time { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
