/* Boss Trades Research: navy & gold. Three shells share these tokens:
   .shell-site (landing, plans: light ivory sections on a navy frame), .shell-app (terminal, dashboard,
   admin: left rail, dark navy), .shell-auth (split screen: brand panel + form). */
:root {
  --navy-950: #060b1d;
  --navy-900: #0b1430;
  --navy-850: #0e1938;
  --navy-800: #122046;
  --navy-700: #1a2b5c;
  --navy-600: #24397a;
  --line: #1d2a52;
  --line-soft: rgba(255, 255, 255, .06);
  --gold: #c9952a;
  --gold-2: #e3b55a;
  --gold-soft: rgba(201, 149, 42, .14);
  --ivory: #f7f3ea;
  --ivory-2: #efe7d6;
  --ink: #0b1430;
  --ink-muted: #5b6684;
  --text: #edf0f8;
  --muted: #8e98b8;
  --up: #16c784;
  --down: #ef4351;
  --warn: #f0b13b;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --rail-w: 76px;
  --topbar-h: 64px;
  --chart-h: 420px;
  --font-ui: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(3, 7, 20, .35);
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; line-height: 1.55; -webkit-font-smoothing: antialiased; background: var(--navy-900); color: var(--text);
  font-variant-numeric: lining-nums; /* the serif's old-style "1" reads like "I" in prices and counts */ }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.gold { color: var(--gold-2); }
.hidden { display: none !important; }
.serif { font-family: var(--font-display); }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- buttons, inputs, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--navy-800); color: var(--text);
  font-weight: 700; font-size: 14px; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { border-color: var(--navy-600); background: var(--navy-700); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: linear-gradient(180deg, #edc46c, #d6a33a); border-color: var(--gold-2); color: var(--ink); }
.btn-outline { background: transparent; border-color: rgba(227, 181, 90, .55); color: var(--gold-2); }
.btn-outline:hover { background: var(--gold-soft); border-color: var(--gold-2); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { background: var(--line-soft); color: var(--text); border-color: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 11px; font-size: 12px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.link { color: var(--gold-2); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }

.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--navy-950); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
select.input { padding-right: 32px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-error { color: var(--down); font-size: 13px; min-height: 18px; margin: -2px 0 10px; }
.otp-input { font-size: 24px; letter-spacing: 10px; text-align: center; font-weight: 800; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: var(--line-soft); color: var(--muted); border: 1px solid var(--line);
}
.chip.ok { background: rgba(22, 199, 132, .12); color: var(--up); border-color: rgba(22, 199, 132, .3); }
.chip.warn { background: rgba(240, 177, 59, .12); color: var(--warn); border-color: rgba(240, 177, 59, .3); }
.chip.bad { background: rgba(239, 67, 81, .12); color: var(--down); border-color: rgba(239, 67, 81, .3); }
.chip.gold { background: var(--gold-soft); color: var(--gold-2); border-color: rgba(227, 181, 90, .35); }
.chip.plain { text-transform: none; letter-spacing: 0; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.live { background: var(--up); box-shadow: 0 0 0 3px rgba(22, 199, 132, .2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; max-width: min(520px, 92vw);
  padding: 12px 18px; border-radius: 12px; background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); border-left: 4px solid var(--gold); animation: rise .2s ease;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- panels (dark) ---------- */
.panel { background: var(--navy-850); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { margin: 0 0 12px; }
.panel h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .005em; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.kv { display: grid; gap: 10px; }
.kv .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv .row:first-child { border-top: 0; padding-top: 0; }
.kv .t { font-weight: 700; }
.kv .m { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--navy-850); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; background: var(--navy-900); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
code, .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; }

/* =====================================================================
   SITE SHELL (landing, plans)
   ===================================================================== */
.shell-site { background: var(--ivory); color: var(--ink); }
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(11, 20, 48, .94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 181, 90, .22); color: var(--text); }
.topbar .wrap { height: var(--topbar-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 40px; width: auto; }
.brand .word { display: grid; line-height: 1.05; }
.brand .word b { font-family: var(--font-display); font-size: 21px; letter-spacing: .08em; font-weight: 700; }
.brand .word b span { color: var(--gold-2); }
.brand .word small { font-size: 9.5px; letter-spacing: .32em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.topnav { display: flex; gap: 4px; margin-inline: auto; }
.topnav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #c3cae0; }
.topnav a:hover, .topnav a.on { color: var(--gold-2); background: rgba(227, 181, 90, .08); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-800); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
/* India / Forex switch: one pill per subdomain */
.site-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--navy-950); border: 1px solid var(--line); flex: none; }
.site-switch a { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.site-switch a.on { background: var(--navy-700); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(227, 181, 90, .35); }
.site-switch a:not(.on):hover { color: var(--gold-2); }
.topnav .site-switch { display: none; }

.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 520px at 85% 10%, rgba(201, 149, 42, .22), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(36, 57, 122, .65), transparent 60%), var(--navy-900); color: var(--text); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; margin: 18px 0 18px; letter-spacing: -.005em; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .lead { font-size: 18px; color: #c3cae0; max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-proof div { display: grid; }
.hero-proof b { font-family: var(--font-display); font-size: 30px; color: var(--gold-2); line-height: 1; }
.hero-proof span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-top: 6px; }

.showcase { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, #0a1229, #071026); border: 1px solid rgba(227, 181, 90, .25);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.showcase-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.showcase-bar b { color: var(--text); font-size: 13px; }
.showcase-bar .chip { margin-left: auto; }
.showcase svg { width: 100%; height: auto; }
.showcase-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.showcase-foot div { padding: 12px 16px; font-size: 12px; color: var(--muted); }
.showcase-foot div + div { border-left: 1px solid var(--line); }
.showcase-foot b { display: block; color: var(--text); font-size: 15px; }

.markets-strip { background: var(--navy-950); color: #aab3cf; border-top: 1px solid rgba(227, 181, 90, .2); overflow: hidden; }
.markets-strip .track { display: flex; gap: 44px; padding: 14px 0; width: max-content; animation: marquee 38s linear infinite; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.markets-strip .track span::before { content: "◆"; color: var(--gold); margin-right: 14px; font-size: 9px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 96px 0; }
.section-dark { background: var(--navy-900); color: var(--text); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 14px 0 12px; font-weight: 700; }
.section-head p { font-size: 17px; color: var(--ink-muted); margin: 0; }
.section-dark .section-head p { color: var(--muted); }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.way { position: relative; background: #fff; border: 1px solid var(--ivory-2); border-radius: var(--r-lg); padding: 30px 28px 28px; box-shadow: 0 1px 0 rgba(11,20,48,.04); }
.way .num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--ivory-2); font-weight: 700; }
.way .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); margin-bottom: 20px; }
.way .ico svg { width: 24px; height: 24px; }
.way h3 { font-family: var(--font-display); font-size: 27px; margin: 0 0 8px; }
.way p { margin: 0 0 14px; color: var(--ink-muted); }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.way li { display: flex; gap: 10px; }
.way li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1430' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }

.systems { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.system { border-radius: var(--r-lg); padding: 34px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.system::before { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(201,149,42,.25), transparent 70%); }
.system .tag { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.system h3 { font-family: var(--font-display); font-size: 40px; margin: 8px 0 10px; line-height: 1; }
.system p { color: #c3cae0; margin: 0 0 18px; }
.system ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.system li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.system li i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--gold-soft); border: 1px solid rgba(227,181,90,.35); display: grid; place-items: center; font-style: normal; color: var(--gold-2); font-size: 12px; font-weight: 800; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tl { text-align: center; padding: 0 16px; position: relative; }
.tl::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--ink); color: var(--gold-2); font-family: var(--font-display); font-size: 26px; font-weight: 700; border: 1px solid var(--gold); position: relative; }
.tl h4 { margin: 0 0 6px; font-size: 17px; }
.tl p { margin: 0; color: var(--ink-muted); font-size: 14px; }

/* plans (light) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ivory-2); border-radius: var(--r-lg); padding: 28px 24px 24px; position: relative; }
.plan.featured { background: var(--ink); color: var(--text); border-color: var(--gold); box-shadow: 0 30px 60px rgba(11, 20, 48, .25); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-size: 30px; margin: 0; line-height: 1.1; }
.plan .tagline { color: var(--ink-muted); font-size: 14px; margin: 6px 0 18px; min-height: 42px; }
.plan.featured .tagline { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.price b { font-family: var(--font-display); font-size: 46px; line-height: 1; }
.price span { color: var(--ink-muted); font-size: 14px; }
.plan.featured .price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✦"; color: var(--gold); flex: none; }
.plan .btn { margin-top: auto; }
.plan .own { text-align: center; font-size: 13px; margin-top: 10px; color: var(--up); font-weight: 700; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--ivory-2); border-radius: var(--r-lg); overflow: hidden; font-size: 14px; }
.compare th { background: var(--ivory); color: var(--ink-muted); border-bottom: 1px solid var(--ivory-2); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td { border-bottom: 1px solid var(--ivory-2); text-align: center; vertical-align: middle; }
.compare tbody tr:hover td { background: #fcfaf5; }
.compare .yes { color: var(--gold); font-size: 18px; }
.compare .no { color: #c9cdd8; }
.compare small { display: block; color: var(--ink-muted); }

.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--ivory-2); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-muted); margin: 10px 0 0; }

.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-950)); color: var(--text); border-radius: var(--r-lg); padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border: 1px solid rgba(227,181,90,.3); }
.cta-band h3 { font-family: var(--font-display); font-size: 38px; margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }

.footer { background: var(--navy-950); color: var(--muted); padding: 56px 0 30px; font-size: 13px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h5 { color: var(--text); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--gold-2); }
.footer .legal { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; }

.notice { background: #fff; border: 1px solid var(--ivory-2); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; font-size: 14px; color: var(--ink); }
.section-dark .notice, .shell-app .notice { background: var(--navy-850); border-color: var(--line); border-left-color: var(--gold); color: var(--text); }
/* Admin overview: who owns the website, shown to every admin. */
.owner-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-850); color: var(--text); font-size: 14px; overflow-wrap: anywhere; }

/* =====================================================================
   AUTH SHELL
   ===================================================================== */
.shell-auth { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100dvh; background: var(--ivory); color: var(--ink); }
.auth-brand { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text);
  background: radial-gradient(700px 500px at 100% 0%, rgba(201,149,42,.22), transparent 60%), var(--navy-900); }
.auth-brand .logo-big { width: min(300px, 70%); }
.auth-brand h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.08; margin: 0 0 18px; }
.auth-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #c3cae0; }
.auth-brand li { display: flex; gap: 12px; }
.auth-brand li::before { content: "✦"; color: var(--gold-2); }
.auth-brand .fine { font-size: 12px; color: var(--muted); }
.auth-brand svg.bg-chart { position: absolute; inset: auto 0 0 0; width: 100%; opacity: .5; pointer-events: none; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-family: var(--font-display); font-size: 40px; margin: 0 0 6px; line-height: 1.05; }
.auth-card .sub { color: var(--ink-muted); margin: 0 0 26px; }
.auth-card .input { background: #fff; border-color: #ddd5c3; color: var(--ink); }
.auth-card .input:focus { border-color: var(--gold); }
.auth-card .field label { color: var(--ink-muted); }
.auth-card .switch { margin-top: 18px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.auth-card .switch a, .auth-card .switch .link { color: var(--gold); }
.auth-card .btn-quiet { color: var(--ink-muted); }
.auth-mobile-head { display: none; }
.tfa-qr { background: #fff; border: 1px solid #ddd5c3; border-radius: 12px; padding: 12px; width: 200px; margin: 12px auto; }
.tfa-qr svg { width: 100%; height: auto; }
.tfa-key { display: inline-block; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px dashed #c9b98f; font-size: 13px; letter-spacing: .08em; }

/* =====================================================================
   APP SHELL (terminal, dashboard, admin)
   ===================================================================== */
.shell-app { background: var(--navy-950); }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 70; display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 6px; background: var(--navy-900); border-right: 1px solid var(--line); }
.rail .home { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--navy-850); border: 1px solid rgba(227,181,90,.25); }
.rail .home img { width: 36px; height: auto; }
.rail a.item, .rail button.item { width: 62px; padding: 9px 0 7px; border-radius: 12px; display: grid; justify-items: center; gap: 4px; color: var(--muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; border: 0; background: none; cursor: pointer; position: relative; }
.rail .item svg { width: 22px; height: 22px; }
.rail .item:hover { color: var(--text); background: var(--line-soft); }
.rail .item.on { color: var(--gold-2); background: var(--gold-soft); }
.rail .item.on::before { content: ""; position: absolute; left: -7px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--gold); }
.rail .grow { flex: 1; }
.rail .me { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); font-weight: 800; border: 0; cursor: pointer; }
.rail-menu { position: fixed; left: calc(var(--rail-w) + 8px); bottom: 14px; z-index: 90; min-width: 230px; padding: 8px; border-radius: 14px; background: var(--navy-800); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rail-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.rail-menu .who b { display: block; }
.rail-menu .who span { font-size: 12px; color: var(--muted); }
.rail-menu a, .rail-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.rail-menu a:hover, .rail-menu button:hover { background: var(--line-soft); }
.app-main { margin-left: var(--rail-w); min-height: 100dvh; }
.app-head { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--navy-900); position: sticky; top: 0; z-index: 40; }
.app-head h1 { font-family: var(--font-display); font-size: 28px; margin: 0; font-weight: 700; letter-spacing: .01em; }
.app-head .crumb { color: var(--muted); font-size: 13px; }
.app-head .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app-body { padding: 28px; max-width: 1440px; }

/* dashboard */
.greet { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; border-radius: var(--r-lg); margin-bottom: 22px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(201,149,42,.2), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-850)); border: 1px solid var(--line); }
.greet h2 { font-family: var(--font-display); font-size: 38px; margin: 2px 0 6px; line-height: 1.05; }
.greet .ring { width: 116px; height: 116px; position: relative; }
.greet .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.greet .ring div { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.greet .ring b { font-family: var(--font-display); font-size: 32px; display: block; }
.greet .ring small { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.prod { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--navy-900); display: flex; flex-direction: column; gap: 10px; }
.prod.locked { opacity: .62; }
.prod .top { display: flex; gap: 12px; align-items: center; }
.prod .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.prod .ic svg { width: 21px; height: 21px; }
.prod h3 { margin: 0; font-size: 16px; }
.prod .meta { font-size: 12px; color: var(--muted); }
.prod p { margin: 0; font-size: 13px; color: var(--muted); }
.prod .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.keys { display: grid; gap: 8px; }
.keyrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--navy-950); border: 1px solid var(--line); }
.keyrow .acc { font-weight: 800; font-size: 13px; }
.keyrow code { color: var(--gold-2); font-size: 12px; letter-spacing: .02em; word-break: break-all; }
.keyrow small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.addkey { display: flex; gap: 8px; }
.addkey .input { height: 36px; }
.plan-mini { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-mini:first-of-type { border-top: 0; padding-top: 0; }
.plan-mini .h { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.bar { height: 6px; border-radius: 6px; background: var(--navy-950); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.steps-v { display: grid; gap: 0; }
.steps-v .s { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.steps-v .s:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: -6px; width: 1px; background: var(--line); }
.steps-v .s i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: var(--navy-950); border: 1px solid var(--line); color: var(--muted); }
.steps-v .s.done i { background: var(--up); border-color: var(--up); color: var(--navy-950); }
.steps-v .s.now i { border-color: var(--gold); color: var(--gold-2); }
.steps-v b { display: block; font-size: 14px; }
.steps-v span { font-size: 13px; color: var(--muted); }

/* admin */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.subnav { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 2px; padding: 10px; border-radius: var(--r); background: var(--navy-900); border: 1px solid var(--line); }
.subnav button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.subnav button svg { width: 18px; height: 18px; flex: none; }
.subnav button:hover { color: var(--text); background: var(--line-soft); }
.subnav button.on { color: var(--ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.subnav button .n { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--navy-950); color: var(--gold-2); }
.subnav button.on .n { background: rgba(11,20,48,.2); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px; border-radius: var(--r); background: var(--navy-850); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.kpi .l { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.kpi .h { font-size: 12px; color: var(--muted); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.toolbar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-row .input { height: 38px; width: auto; min-width: 220px; flex: 1; }
.toolbar-row select.input { flex: 0 1 230px; min-width: 180px; }
.grant { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 6px 0; }
.grant .input { height: 36px; width: auto; }
.feed-h { font-family: var(--font-display); font-size: 24px; margin: 30px 0 12px; display: flex; align-items: center; gap: 12px; }
.feed-h:first-child { margin-top: 0; }
.seg-pick { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--navy-950); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg-pick button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.seg-pick button.on { background: var(--gold); color: var(--ink); }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text); font-size: 13px; }
.checks input, .grant input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }
.drop { border: 1.5px dashed rgba(227,181,90,.45); border-radius: 12px; padding: 14px; display: grid; gap: 8px; background: rgba(201,149,42,.04); }

/* ---------- gate (no access) ---------- */
.gate { min-height: calc(100dvh - var(--topbar-h)); display: grid; place-items: center; padding: 24px; }
.gate .panel { max-width: 520px; text-align: center; padding: 36px; }
.gate h2 { font-size: 34px; }
.gate .inline { justify-content: center; margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .ways, .systems { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .timeline::before { display: none; }
  .dash { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .subnav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .subnav button { flex: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topnav, .top-actions .hide-m { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .topbar.open .topnav { display: grid; position: absolute; top: var(--topbar-h); left: 0; right: 0; padding: 12px 20px 18px; background: var(--navy-900); border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .shell-auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-head { display: flex; justify-content: center; padding: 22px; background: var(--navy-900); }
  .auth-mobile-head img { height: 54px; }
  .auth-main { align-items: start; }
  .cols2 { grid-template-columns: 1fr; }
  /* rail becomes a floating bottom bar */
  .rail { inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; width: auto; height: 64px; flex-direction: row; justify-content: space-around; padding: 0 6px;
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .rail .home, .rail .grow { display: none; }
  .rail .item.on::before { left: 18px; right: 18px; top: auto; bottom: -1px; width: auto; height: 3px; }
  .rail .me { width: 36px; height: 36px; }
  .rail-menu { left: auto; right: 12px; bottom: 86px; }
  .app-main { margin-left: 0; padding-bottom: 92px; }
  .app-head { padding: 0 16px; }
  .app-head h1 { font-size: 24px; }
  .app-body { padding: 16px; }
  .greet { grid-template-columns: 1fr; padding: 22px; }
  .greet .ring { display: none; }
  .greet h2 { font-size: 30px; }
}
@media (max-width: 560px) {
  .topbar .wrap > .site-switch { display: none; }
  .topbar.open .topnav .site-switch { display: inline-flex; justify-self: start; margin-bottom: 8px; }
  .wrap { width: calc(100% - 32px); }
  .brand .word small { display: none; }
  .brand img { height: 34px; }
  .hero h1 { font-size: 40px; }
  .timeline { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .showcase-foot { grid-template-columns: 1fr 1fr; }
  .showcase-foot div:last-child { display: none; }
  .kpi .v { font-size: 30px; }
}
