/* CandleFlux panels: member dashboard + owner console.
   Direction: a luxury trading terminal. Obsidian field, gold as the single hot accent,
   teal/red only for market meaning, glass instruments with live data in mono. */
:root {
  --ink-0: #04050a;
  --ink-1: #090c13;
  --ink-2: #0e121b;
  --glass: rgba(16, 20, 30, 0.62);
  --glass-2: rgba(22, 27, 40, 0.78);
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.11);
  --text: #edf2f9;
  --soft: #b9c3d2;
  --mute: #7d889b;
  --gold: #f5b942;
  --gold-2: #ff8a3d;
  --gold-glow: rgba(245, 185, 66, 0.28);
  --bull: #2ad6a4;
  --bear: #ff5d6c;
  --info: #6aa8ff;
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.px {
  margin: 0; min-height: 100vh; background: var(--ink-0); color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.px a { color: inherit; text-decoration: none; }
.px button { font: inherit; color: inherit; }
.px h1, .px h2, .px h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.mute { color: var(--mute); }
.soft { color: var(--soft); }
.tiny { font-size: 12px; }
.sm { font-size: 13.5px; }
.up { color: var(--bull); }
.dn { color: var(--bear); }
.gold { color: var(--gold); }

/* ---------- atmosphere ---------- */
.px-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.px-sky::before, .px-sky::after, .px-sky i {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform;
}
.px-sky::before { width: 58vw; height: 58vw; left: -16vw; top: -24vw; background: radial-gradient(circle, rgba(245, 185, 66, 0.22), transparent 62%); animation: drift 26s var(--ease) infinite alternate; }
.px-sky::after { width: 50vw; height: 50vw; right: -18vw; top: 18vh; background: radial-gradient(circle, rgba(42, 214, 164, 0.12), transparent 64%); animation: drift 32s var(--ease) infinite alternate-reverse; }
.px-sky i { width: 44vw; height: 44vw; left: 30vw; bottom: -30vw; background: radial-gradient(circle, rgba(255, 138, 61, 0.14), transparent 64%); animation: drift 38s var(--ease) infinite alternate; }
.px-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: 0.6;
}
.px-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }

/* ---------- glass instrument ---------- */
.pn {
  position: relative; border-radius: var(--r); padding: 22px; min-width: 0; isolation: isolate;
  background: linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 38%, rgba(245, 185, 66, 0.16) 100%) border-box;
  border: 1px solid transparent; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pn::before { /* cursor spotlight, driven by --mx/--my */
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 185, 66, 0.09), transparent 45%);
}
.pn:hover::before { opacity: 1; }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pn-h h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--soft); display: flex; align-items: center; gap: 9px; }
.pn-h h2 svg { width: 16px; height: 16px; color: var(--gold); }
.kicker { font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ---------- controls ---------- */
.b {
  --bg: rgba(255, 255, 255, 0.05);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.b:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
.b:active { transform: scale(0.97); }
.b:disabled { opacity: 0.5; pointer-events: none; }
.b svg { width: 16px; height: 16px; }
.b-gold {
  border: 0; color: #1b1000; background: linear-gradient(100deg, #ffd27a, var(--gold) 40%, var(--gold-2));
  box-shadow: 0 10px 30px -8px rgba(245, 160, 66, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); position: relative; overflow: hidden;
}
.b-gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.b-gold:hover { background: linear-gradient(100deg, #ffdc92, #ffc34f 40%, #ff964f); box-shadow: 0 14px 40px -8px rgba(245, 160, 66, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.b-gold:hover::after { transform: translateX(120%); }
.b-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.b-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.b-full { width: 100%; }
.b-ghost { background: transparent; border-color: transparent; color: var(--soft); }
.b-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text); }
.b-danger { color: var(--bear); }
.b-danger:hover { background: rgba(255, 93, 108, 0.1); border-color: rgba(255, 93, 108, 0.35); }
.kbd { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mute); background: rgba(255, 255, 255, 0.03); }

.in {
  width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(4, 5, 10, 0.55); color: var(--text);
  padding: 0 14px; font: 500 14.5px Inter, sans-serif; outline: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.in:focus { border-color: rgba(245, 185, 66, 0.7); box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.12); }
.in.mono { font-family: var(--mono); }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--soft); }
.field small { color: var(--mute); font-size: 12px; }
.at { position: relative; }
.at::before { content: '@'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-family: var(--mono); }
.at .in { padding-left: 32px; }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px Inter, sans-serif; white-space: nowrap; background: rgba(255, 255, 255, 0.06); color: var(--soft); border: 1px solid var(--line); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.chip.ok { color: var(--bull); background: rgba(42, 214, 164, 0.1); border-color: rgba(42, 214, 164, 0.22); }
.chip.gold { color: var(--gold); background: rgba(245, 185, 66, 0.1); border-color: rgba(245, 185, 66, 0.25); }
.chip.warn { color: var(--gold-2); background: rgba(255, 138, 61, 0.1); border-color: rgba(255, 138, 61, 0.25); }
.chip.bad { color: var(--bear); background: rgba(255, 93, 108, 0.1); border-color: rgba(255, 93, 108, 0.25); }
.chip.live::before { animation: beat 1.6s infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(4, 5, 10, 0.5); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; color: var(--mute); height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button em { font-style: normal; font: 600 11px var(--mono); color: var(--mute); }
.seg button.on { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.seg button.on em { color: var(--gold); }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(245, 185, 66, 0.2); border-top-color: var(--gold); animation: rot 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.sk { border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* entrance: children of [data-stagger] rise in sequence */
[data-stagger] > * { opacity: 0; transform: translateY(14px) scale(0.99); animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: var(--glass-2); border: 1px solid rgba(42, 214, 164, 0.35); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -20px #000;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast::before { content: '✓'; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(42, 214, 164, 0.15); color: var(--bull); font-size: 12px; font-weight: 800; }
.toast.bad { border-color: rgba(255, 93, 108, 0.4); }
.toast.bad::before { content: '!'; background: rgba(255, 93, 108, 0.15); color: var(--bear); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- top bar (member) ---------- */
.tb { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); background: rgba(4, 5, 10, 0.6); border-bottom: 1px solid var(--line); }
.tb-row { width: min(1240px, 100% - 32px); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); letter-spacing: -0.03em; }
.brand img { width: 26px; height: 26px; }
.brand small { font: 600 10px var(--mono); letter-spacing: 0.16em; color: var(--gold); border: 1px solid rgba(245, 185, 66, 0.3); padding: 3px 6px; border-radius: 6px; }
.tape { flex: 1; display: flex; justify-content: center; gap: 6px; min-width: 0; overflow: hidden; }
.tape span { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--mono); color: var(--mute); padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; white-space: nowrap; }
.tape span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3a4456; }
.tape span.open { color: var(--soft); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.tape span.open::before { background: var(--bull); box-shadow: 0 0 10px var(--bull); animation: beat 1.8s infinite; }
.tape b { color: var(--text); font-weight: 600; }
.me { position: relative; margin-left: auto; }
.me > button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.me > button:hover { border-color: var(--line-2); }
.ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); color: #1b1000; background: linear-gradient(135deg, #ffd98a, var(--gold) 50%, var(--gold-2)); flex: none; }
.ava.lg { width: 44px; height: 44px; font-size: 16px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: 0 30px 70px -20px #000; transform-origin: top right; animation: pop 0.25s var(--ease); }
.me-menu p { margin: 4px 8px 8px; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.me-menu a, .me-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: 0; background: none; cursor: pointer; font-size: 14px; text-align: left; }
.me-menu a:hover, .me-menu button:hover { background: rgba(255, 255, 255, 0.06); }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }

/* ---------- member dashboard ---------- */
.ms { position: relative; z-index: 1; width: min(1240px, 100% - 32px); margin: 0 auto; padding: 38px 0 80px; }
.ms-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center; margin-bottom: 30px; }
.ms-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; margin: 14px 0 14px; }
.ms-hero h1 em { font-style: normal; background: linear-gradient(100deg, #ffe2a3, var(--gold) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-hero p { color: var(--soft); font-size: 16.5px; max-width: 520px; margin: 0 0 20px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* holographic membership card */
.cc-stage { perspective: 1200px; display: grid; place-items: center; }
.cc {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; width: min(440px, 100%); aspect-ratio: 1.586; border-radius: 22px; padding: 26px 28px; overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 0.6s var(--ease);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 185, 66, 0.28), transparent 50%),
    radial-gradient(90% 90% at 100% 100%, rgba(42, 214, 164, 0.16), transparent 55%),
    linear-gradient(145deg, #1a1408, #0d0f16 45%, #0a0d14);
  border: 1px solid rgba(245, 185, 66, 0.35);
  box-shadow: 0 50px 100px -40px rgba(245, 160, 66, 0.35), 0 30px 60px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cc::before { /* holo foil that follows the pointer */
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.55;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 236, 190, 0.45), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255, 120, 60, 0.0) 0 12px, rgba(255, 210, 120, 0.12) 18px, rgba(120, 255, 220, 0.1) 26px, rgba(255, 120, 60, 0) 34px);
  background-size: 100% 100%, 220% 220%; background-position: 0 0, var(--gx) var(--gy);
}
.cc::after { /* fine guilloche lines */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background: repeating-radial-gradient(circle at 85% 20%, transparent 0 9px, rgba(245, 185, 66, 0.5) 10px, transparent 11px);
  mask-image: linear-gradient(120deg, transparent 30%, #000 80%);
}
.cc > * { position: relative; z-index: 1; transform: translateZ(30px); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cc-logo { display: flex; align-items: center; gap: 9px; font: 700 16px var(--display); letter-spacing: -0.02em; }
.cc-logo img { width: 22px; height: 22px; }
.cc-tier { font: 700 10.5px var(--mono); letter-spacing: 0.24em; color: #1b1000; background: linear-gradient(100deg, #ffe2a3, var(--gold), var(--gold-2)); padding: 5px 9px; border-radius: 7px; }
.cc-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f7d58b, #b98a2e 60%, #f1c86a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); position: relative; }
.cc-chip::before, .cc-chip::after { content: ''; position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(60, 40, 0, 0.45); top: 11px; }
.cc-chip::after { top: 22px; }
.cc-user { font: 600 clamp(17px, 2.2vw, 22px) var(--mono); letter-spacing: 0.04em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-meta { display: flex; justify-content: space-between; gap: 12px; }
.cc-meta div { display: grid; gap: 2px; }
.cc-meta span { font: 600 9.5px var(--mono); letter-spacing: 0.18em; color: rgba(237, 242, 249, 0.55); text-transform: uppercase; }
.cc-meta b { font: 600 13px var(--mono); }
.cc.off { filter: grayscale(0.85) brightness(0.8); }

.ms-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }

/* period ring */
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .trk { stroke: rgba(255, 255, 255, 0.06); }
.ring .val { stroke: url(#goldGrad); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.45)); }
.ring-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; align-content: center; }
.ring-c b { font: 700 38px/1 var(--display); letter-spacing: -0.04em; }
.ring-c span { font: 600 10.5px var(--mono); letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; margin-top: 4px; }
.plan { display: flex; gap: 22px; align-items: center; }
.plan dl { margin: 0; display: grid; gap: 12px; flex: 1; min-width: 0; }
.plan dt { font: 600 10.5px var(--mono); letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; }
.plan dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.note { margin: 16px 0 0; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; color: var(--soft); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; gap: 10px; }
.note::before { content: 'i'; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); color: var(--gold); border: 1px solid rgba(245, 185, 66, 0.4); }
.note.bad { color: #ffc2c8; border-color: rgba(255, 93, 108, 0.25); }
.note.bad::before { content: '!'; color: var(--bear); border-color: rgba(255, 93, 108, 0.5); }

/* connection link: CandleFlux ── data ──> TradingView */
.link { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 14px; padding: 18px 0 8px; }
.node { display: flex; align-items: center; gap: 12px; min-width: 0; }
.node-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); position: relative; }
.node-ic img, .node-ic svg { width: 26px; height: 26px; }
.node-ic.on::after { content: ''; position: absolute; inset: -5px; border-radius: 20px; border: 1px solid rgba(42, 214, 164, 0.45); animation: halo 2.4s var(--ease) infinite; }
@keyframes halo { 0% { opacity: 0.9; transform: scale(0.94); } 100% { opacity: 0; transform: scale(1.18); } }
.node b { display: block; font: 600 15px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.node span { font-size: 12.5px; color: var(--mute); }
.wire { position: relative; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 6px, transparent 6px 12px); }
.wire.on { background: linear-gradient(90deg, rgba(245, 185, 66, 0.7), rgba(42, 214, 164, 0.8)); box-shadow: 0 0 14px rgba(42, 214, 164, 0.35); }
.wire.on::before, .wire.on::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff, 0 0 24px var(--bull); animation: packet 2.2s linear infinite; }
.wire.on::after { animation-delay: 1.1s; }
@keyframes packet { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.wire.wait::before { content: ''; position: absolute; inset: -1px 40%; background: var(--gold); border-radius: 2px; animation: scan 1.4s var(--ease) infinite alternate; }
@keyframes scan { from { left: 0; right: 80%; } to { left: 80%; right: 0; } }
.tv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tv-steps li { list-style: none; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.tv-steps li b { display: block; font: 600 10.5px var(--mono); letter-spacing: 0.14em; color: var(--gold); margin-bottom: 4px; }
.tv-steps { padding: 0; margin-bottom: 0; }
.swap { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.swap summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--soft); }
.swap summary::-webkit-details-marker { display: none; }
.swap summary::after { content: '+'; color: var(--gold); font-size: 18px; transition: transform 0.3s var(--ease); }
.swap[open] summary::after { transform: rotate(45deg); }
.swap form { display: flex; gap: 10px; margin-top: 12px; }
.swap .at { flex: 1; }
.msg { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.msg.err { color: var(--bear); }
.msg.ok { color: var(--bull); }

/* telegram preview */
.tg { margin-top: 4px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(42, 120, 200, 0.12), rgba(42, 120, 200, 0.03)); border: 1px solid rgba(106, 168, 255, 0.18); display: grid; gap: 8px; }
.tg-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.tg-head i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3aa0ff, #1d6fd6); font-style: normal; }
.tg-head i svg { width: 15px; height: 15px; }
.tg-head span { color: var(--mute); font-weight: 500; font-size: 12px; margin-left: auto; }
.bub { justify-self: start; max-width: 100%; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: rgba(22, 30, 46, 0.92); font: 500 12.5px/1.6 var(--mono); color: var(--soft); border: 1px solid var(--line); animation: rise 0.6s var(--ease) both; }
.bub b { color: var(--text); }

/* market session dial */
.dial-w { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: center; }
.dial { position: relative; width: 190px; height: 190px; }
.dial svg { width: 100%; height: 100%; }
.dial .arc { fill: none; stroke-width: 12; stroke-linecap: round; opacity: 0.35; transition: opacity 0.4s; }
.dial .arc.on { opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
.dial .tick { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.dial .hand { stroke: var(--text); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); }
.dial-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.dial-c b { font: 700 26px/1 var(--mono); letter-spacing: -0.02em; }
.dial-c span { font: 600 10px var(--mono); letter-spacing: 0.16em; color: var(--mute); margin-top: 6px; }
.legend { display: grid; gap: 9px; margin: 0; padding: 0; }
.legend li { list-style: none; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.legend li i { width: 10px; height: 10px; border-radius: 3px; }
.legend li.on { border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.legend li span { font: 500 12px var(--mono); color: var(--mute); }
.legend li.on span { color: var(--bull); }

/* onboarding */
.ob { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: start; }
.ob .ring { width: 120px; height: 120px; }
.ob .ring-c b { font-size: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps label { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.steps label:hover { border-color: var(--line-2); }
.steps input { position: absolute; opacity: 0; pointer-events: none; }
.steps i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 12px var(--mono); font-style: normal; color: var(--gold); border: 1px solid rgba(245, 185, 66, 0.35); transition: all 0.35s var(--ease); }
.steps i::before { content: counter(s, decimal-leading-zero); }
.steps b { display: block; font-size: 14px; font-weight: 600; }
.steps span { font-size: 13px; color: var(--mute); }
.steps li.done label { border-color: rgba(42, 214, 164, 0.25); background: rgba(42, 214, 164, 0.04); }
.steps li.done i { background: var(--bull); border-color: var(--bull); color: #032018; }
.steps li.done i::before { content: '✓'; }
.steps li.done b { color: var(--soft); }

/* sign-in */
.gate { position: relative; z-index: 1; min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 40px; width: min(1180px, 100% - 32px); margin: 0 auto; padding: 40px 0; }
.gate h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; margin: 16px 0; }
.gate h1 em { font-style: normal; background: linear-gradient(100deg, #ffe2a3, var(--gold) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate p.lead { color: var(--soft); font-size: 17px; max-width: 500px; }
.gate-feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.gate-feats li { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 14.5px; }
.gate-feats li::before { content: ''; width: 22px; height: 22px; flex: none; border-radius: 7px; background: rgba(42, 214, 164, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ad6a4' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; border: 1px solid rgba(42, 214, 164, 0.25); }
.gate-card { padding: 34px; }
.gate-card h2 { font-size: 26px; margin: 18px 0 8px; }
.gate-card .b-lg { margin-top: 22px; }
.whop-ic { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.spark-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }

/* ---------- owner console ---------- */
.oc { position: relative; z-index: 1; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns 0.4s var(--ease); }
.oc.mini { grid-template-columns: 78px minmax(0, 1fr); }
.sb { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(9, 12, 19, 0.85), rgba(4, 5, 10, 0.85)); backdrop-filter: blur(18px); }
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.sb-col { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.sb-col:hover { color: var(--text); border-color: var(--line-2); }
.sb-col svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.oc.mini .sb-col svg { transform: rotate(180deg); }
.oc.mini .brand span, .oc.mini .brand small, .oc.mini .nv span, .oc.mini .nv em, .oc.mini .sb-label, .oc.mini .health div { display: none; }
.oc.mini .sb-top { flex-direction: column; gap: 14px; }
.sb-label { font: 600 10px var(--mono); letter-spacing: 0.18em; color: var(--mute); padding: 0 10px; margin-bottom: -12px; }
.nav { display: grid; gap: 3px; }
.nv { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px; border: 0; background: none; color: var(--mute); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; transition: color 0.2s, background 0.2s; }
.nv svg { width: 18px; height: 18px; flex: none; }
.nv:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nv.on { color: var(--text); background: linear-gradient(90deg, rgba(245, 185, 66, 0.14), rgba(245, 185, 66, 0.02)); }
.nv.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.nv.on svg { color: var(--gold); }
.nv em { margin-left: auto; font: 700 11px var(--mono); font-style: normal; padding: 2px 7px; border-radius: 999px; background: rgba(255, 93, 108, 0.16); color: var(--bear); }
.health { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.health i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--bull); box-shadow: 0 0 0 4px rgba(42, 214, 164, 0.15), 0 0 14px var(--bull); animation: beat 2s infinite; }
.health.bad i { background: var(--gold-2); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.15), 0 0 14px var(--gold-2); }
.health div { display: grid; font-size: 12.5px; min-width: 0; }
.health b { font-size: 13px; }
.health span { color: var(--mute); }
.main { min-width: 0; padding: 0 clamp(16px, 2.6vw, 36px) 70px; }
.hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 72px; margin: 0 calc(-1 * clamp(16px, 2.6vw, 36px)) 26px; padding: 0 clamp(16px, 2.6vw, 36px); background: rgba(4, 5, 10, 0.55); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.hd h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hd .crumb { font: 600 11px var(--mono); letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; }
.hd-l { display: grid; gap: 3px; }
.menu-btn { display: none !important; }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 10px; height: 40px; min-width: 260px; padding: 0 10px 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(4, 5, 10, 0.5); color: var(--mute); cursor: pointer; font-size: 13.5px; }
.search svg { width: 16px; height: 16px; }
.search .kbd { margin-left: auto; }
.search:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--soft); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px 18px 0; overflow: hidden; display: flex; flex-direction: column; }
.kpi-h { display: flex; align-items: center; justify-content: space-between; color: var(--mute); font-size: 13px; font-weight: 500; }
.kpi-h svg { width: 16px; height: 16px; color: var(--mute); }
.kpi b { display: block; font: 700 34px/1.1 var(--display); letter-spacing: -0.04em; margin: 10px 0 4px; }
.kpi.hero b { background: linear-gradient(100deg, #ffe2a3, var(--gold) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi small { font-size: 12.5px; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.kpi small .d { font: 600 11.5px var(--mono); padding: 2px 6px; border-radius: 6px; }
.kpi small .d.up { background: rgba(42, 214, 164, 0.1); }
.kpi small .d.dn { background: rgba(255, 93, 108, 0.1); }
.kpi .spark { height: 52px; margin: 10px -18px 0; }
.kpi .spark svg { width: 100%; height: 100%; display: block; }

.row2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.chart { position: relative; height: 270px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .gl { stroke: rgba(255, 255, 255, 0.05); }
.chart .ax { fill: var(--mute); font: 500 10.5px var(--mono); }
.chart .bar { fill: rgba(245, 185, 66, 0.22); transition: fill 0.2s; }
.chart .bar.hl { fill: rgba(245, 185, 66, 0.55); }
.chart .ln { fill: none; stroke: url(#lnGrad); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s var(--ease) forwards 0.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .cross { stroke: rgba(255, 255, 255, 0.25); stroke-dasharray: 3 4; }
.chart .pt { fill: var(--ink-0); stroke: var(--gold); stroke-width: 2.5; }
.tip { position: absolute; pointer-events: none; z-index: 3; min-width: 150px; padding: 10px 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(12px); font-size: 12.5px; box-shadow: 0 18px 40px -16px #000; transform: translate(-50%, calc(-100% - 14px)); transition: opacity 0.15s; }
.tip b { display: block; font: 600 11px var(--mono); color: var(--mute); margin-bottom: 6px; letter-spacing: 0.06em; }
.tip div { display: flex; justify-content: space-between; gap: 14px; }
.tip i { font-style: normal; font-family: var(--mono); color: var(--text); }
.leg { display: flex; gap: 14px; font-size: 12px; color: var(--mute); }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.leg span::before { content: ''; width: 10px; height: 3px; border-radius: 2px; background: var(--c, var(--gold)); }

.donut-w { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut { position: relative; width: 150px; height: 150px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray 1.2s var(--ease), stroke-width 0.2s; }
.donut circle:hover { stroke-width: 20; }
.donut-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.donut-c b { font: 700 30px/1 var(--display); }
.donut-c span { font: 600 10px var(--mono); letter-spacing: 0.14em; color: var(--mute); margin-top: 4px; }
.mix { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mix li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.mix li i { width: 10px; height: 10px; border-radius: 3px; }
.mix li b { font: 600 13px var(--mono); }

.row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ints { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ints li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.ints li > i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-style: normal; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ints li > i svg { width: 18px; height: 18px; }
.ints li div { display: grid; min-width: 0; }
.ints li b { font-size: 14px; }
.ints li span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }

.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.tl li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; padding: 8px 0; align-items: start; }
.tl li > i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 13px; background: var(--ink-2); border: 1px solid var(--line-2); position: relative; z-index: 1; }
.tl li.t-grant > i { color: var(--bull); border-color: rgba(42, 214, 164, 0.35); }
.tl li.t-revoke > i, .tl li.t-error > i, .tl li.t-block > i, .tl li.t-delete > i { color: var(--bear); border-color: rgba(255, 93, 108, 0.35); }
.tl li.t-warn > i, .tl li.t-payment > i { color: var(--gold); border-color: rgba(245, 185, 66, 0.35); }
.tl li p { margin: 5px 0 0; font-size: 13.5px; color: var(--soft); line-height: 1.45; overflow-wrap: anywhere; }
.tl li time { font: 500 11.5px var(--mono); color: var(--mute); white-space: nowrap; margin-top: 7px; }
.day { font: 600 10.5px var(--mono); letter-spacing: 0.16em; color: var(--mute); text-transform: uppercase; margin: 18px 0 4px 46px; }
.day:first-child { margin-top: 0; }

/* members */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .q { position: relative; flex: 1; min-width: 220px; }
.toolbar .q svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--mute); }
.toolbar .q .in { padding-left: 38px; }
.tbl-w { padding: 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th[data-sort]:hover { color: var(--soft); }
.tbl th.on { color: var(--gold); }
.tbl th.on::after { content: ' ↓'; }
.tbl th.on.asc::after { content: ' ↑'; }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background 0.2s; animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who div { display: grid; min-width: 0; }
.who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.who span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; font: 700 13px var(--display); color: #fff; background: hsl(var(--h, 40) 55% 32%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tvc b { font: 600 13.5px var(--mono); display: block; }
.tvc span { font-size: 12px; color: var(--mute); }
.tvc span.warn { color: var(--gold); }
.tvc span.bad { color: var(--bear); }
.bar-d { width: 90px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 6px; }
.bar-d i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--bull)); }
.empty { padding: 56px 20px; text-align: center; color: var(--mute); }
.empty svg { width: 42px; height: 42px; color: var(--line-2); margin-bottom: 10px; }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(2, 3, 6, 0.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 61; width: min(480px, calc(100% - 20px)); border-radius: 22px; overflow-y: auto; padding: 24px; transform: translateX(calc(100% + 20px)); transition: transform 0.5s var(--ease); background: rgba(12, 15, 23, 0.94); border: 1px solid var(--line-2); box-shadow: -40px 0 100px -30px #000; }
.drawer.on { transform: none; }
.dr-x { position: absolute; top: 18px; right: 18px; }
.dr-id { display: flex; gap: 14px; align-items: center; margin: 6px 0 20px; padding-right: 40px; }
.dr-id .av { width: 54px; height: 54px; border-radius: 16px; font-size: 19px; }
.dr-id h2 { font-size: 20px; overflow-wrap: anywhere; }
.dr-id p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.facts div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.facts span { display: block; font: 600 10px var(--mono); letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; margin-bottom: 4px; }
.facts b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.facts b.mono { font-size: 13px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dr-sec { font: 600 10.5px var(--mono); letter-spacing: 0.16em; color: var(--mute); text-transform: uppercase; margin: 0 0 10px; }
.inline { display: flex; gap: 8px; margin: -10px 0 18px; }
.inline .at { flex: 1; }

/* modal + command palette */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(2, 3, 6, 0.6); backdrop-filter: blur(6px); animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal > .pn { width: min(560px, 100%); animation: pop 0.35s var(--ease); background: linear-gradient(rgba(14, 18, 27, 0.96), rgba(14, 18, 27, 0.96)) padding-box, linear-gradient(150deg, rgba(245, 185, 66, 0.4), rgba(255, 255, 255, 0.05) 40%) border-box; }
.modal h2 { font-size: 20px; margin-bottom: 6px; }
.modal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.modal .grid2 .span2 { grid-column: span 2; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.modal footer .msg { margin: 0 auto 0 0; }
.cmd { padding: 0 !important; overflow: hidden; }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmd-in svg { width: 18px; height: 18px; color: var(--mute); }
.cmd-in input { flex: 1; height: 58px; background: none; border: 0; outline: 0; color: var(--text); font: 500 16px Inter, sans-serif; }
.cmd ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmd li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: 14px; }
.cmd li svg { width: 16px; height: 16px; color: var(--mute); flex: none; }
.cmd li span { margin-left: auto; font-size: 12px; color: var(--mute); }
.cmd li.on { background: rgba(245, 185, 66, 0.1); }
.cmd li.on svg { color: var(--gold); }
.cmd .grp { font: 600 10px var(--mono); letter-spacing: 0.16em; color: var(--mute); padding: 10px 12px 4px; cursor: default; }
.cmd footer { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

/* tradingview + settings */
.tvh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.st-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.st-grid:first-of-type { padding-top: 0; }
.st-grid h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.st-grid p { margin: 0; font-size: 13px; color: var(--mute); }
.st-grid .fields { display: grid; gap: 14px; }
.lock { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--mute); font-size: 13px; }
.lock svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.oc-login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.oc-login .pn { width: min(400px, 100%); padding: 34px 30px; }
.oc-login h1 { font-size: 26px; margin: 18px 0 6px; }
.oc-login form { display: grid; gap: 14px; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .tape span:not(.open) { display: none; }
}
@media (max-width: 980px) {
  .ms-hero, .gate { grid-template-columns: minmax(0, 1fr); }
  .cc-stage { order: -1; }
  .c-4, .c-5, .c-6, .c-7, .c-8 { grid-column: span 12; }
  .oc, .oc.mini { grid-template-columns: minmax(0, 1fr); }
  .sb { position: fixed; z-index: 70; width: 270px; left: 0; transform: translateX(-100%); transition: transform 0.4s var(--ease); }
  .sb.open { transform: none; box-shadow: 40px 0 100px -20px #000; }
  .sb-col { display: none; }
  .menu-btn { display: grid !important; }
  .search { min-width: 0; }
  .search > span:not(.kbd) { display: none; }
  .search .kbd { display: none; }
  .st-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tvh { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tape { display: none; }
  .me > button span:not(.ava) { display: none; }
  .me > button { padding: 4px; }
  .plan { flex-direction: column; align-items: stretch; }
  .plan .ring { align-self: center; }
  .link { grid-template-columns: minmax(0, 1fr); }
  .wire { width: 2px; height: 34px; margin-left: 25px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0 6px, transparent 6px 12px); }
  .wire.on { background: linear-gradient(180deg, rgba(245, 185, 66, 0.7), rgba(42, 214, 164, 0.8)); }
  .wire.on::before, .wire.on::after { left: -3px !important; animation-name: packetv; }
  @keyframes packetv { from { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
  .tv-steps { grid-template-columns: minmax(0, 1fr); }
  .dial-w, .ob { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .dial-w .legend, .ob .steps { width: 100%; }
  .swap form { flex-direction: column; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi b { font-size: 26px; }
  .donut-w { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mix { width: 100%; }
  .hd h1 { font-size: 18px; }
  .hd-r .b span { display: none; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 5px 16px; }
  .tbl td.c-plan, .tbl td.c-end { display: inline-block; width: auto; color: var(--mute); font-size: 12.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .modal .grid2 { grid-template-columns: minmax(0, 1fr); }
  .modal .grid2 .span2 { grid-column: auto; }
  .gate-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

/* email-code sign-in */
.login-form { display: grid; gap: 12px; margin-top: 20px; }
.login-form .b-ghost { justify-self: center; }
.code-in { font-size: 26px; letter-spacing: 0.5em; text-align: center; height: 56px; }
.whop-alt { display: block; margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--mute); }
.whop-alt:hover { color: var(--soft); }
