/* =========================================================================
   Lead Collector — style.css
   Layout, controls, captions and all UI mock-up components.
   Scene canvas is 1600×900 and scaled to fit (see js/main.js → layout()).
   ========================================================================= */
:root {
  --bg: #06070b;
  --bg-2: #0a0d15;
  --panel: rgba(17, 21, 33, .86);
  --panel-2: rgba(24, 29, 45, .92);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2fb;
  --muted: #9aa3b8;
  --dim: #646d84;
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #22c55e;
  --red: #f43f5e;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #4f7cff 0%, #7a5cff 55%, #a855f7 100%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --ctrl-h: 68px;
  --s: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }

/* ------------------------------------------------------------- layout -- */
#app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(79, 124, 255, .10), transparent 60%),
    radial-gradient(900px 600px at 85% 90%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(600px 400px at 60% 40%, rgba(34, 211, 238, .04), transparent 70%),
    var(--bg);
}
#viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; cursor: pointer; }
#frame { position: absolute; overflow: hidden; }
#stage {
  position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px);
  background-size: 32px 32px;
  background-position: 16px 16px;
}
#frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 100% 95% at 50% 50%, transparent 62%, rgba(6, 7, 11, .85) 100%); }
body.portrait #frame::after { display: none; }
.scene { position: absolute; inset: 0; display: none; transform-origin: 50% 55%; }
.scene.active { display: block; }
.cam { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.abs { position: absolute; }
.ov { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; overflow: visible; pointer-events: none; }
svg * { transform-box: fill-box; transform-origin: center; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ------------------------------------------------------------ caption -- */
#caption {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  padding: calc(var(--s) * 40px) calc(var(--s) * 120px) 0;
  text-align: center; pointer-events: none;
}
.cap-kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 calc(var(--s) * 14px)/1 var(--font); letter-spacing: .22em; text-transform: uppercase;
  color: #8fb3ff;
  padding: calc(var(--s) * 8px) calc(var(--s) * 14px);
  border: 1px solid rgba(120, 150, 255, .22); border-radius: 999px;
  background: rgba(79, 124, 255, .08);
}
.cap-h {
  font: 800 calc(var(--s) * 46px)/1.12 var(--display); letter-spacing: -.025em;
  margin-top: calc(var(--s) * 16px);
  text-wrap: balance;
}
.cap-h.long { font-size: calc(var(--s) * 39px); }
.cap-h .w { display: inline-block; }
.cap-h .hl {
  background: linear-gradient(100deg, #7da2ff 0%, #a78bfa 50%, #5eead4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cap-sub { font: 400 calc(var(--s) * 19px)/1.45 var(--font); color: var(--muted); margin-top: calc(var(--s) * 10px); }

/* --------------------------------------------------------- controls -- */
#controls {
  position: relative; z-index: 20; height: var(--ctrl-h); flex: none;
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: linear-gradient(180deg, rgba(12, 15, 24, .7), rgba(10, 12, 20, .95));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .4s, transform .4s;
}
.c-left, .c-right { display: flex; align-items: center; gap: 4px; flex: none; }
.c-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.c-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; }
#scene-num { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
#scene-name { overflow: hidden; text-overflow: ellipsis; }
#time { margin-left: auto; font-variant-numeric: tabular-nums; }
.cb {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px; color: #c9d1e4; transition: background .2s, color .2s, transform .15s;
}
.cb:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cb:active { transform: scale(.94); }
.cb:focus-visible, .pseg:focus-visible, .pop button:focus-visible, .cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cb-main { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 18px; box-shadow: 0 6px 24px rgba(79, 124, 255, .4); }
.cb-main:hover { background: var(--grad); filter: brightness(1.12); }
.cb-main .i { display: none; }
.cb-main[data-state="playing"] .i-pause, .cb-main[data-state="paused"] .i-play, .cb-main[data-state="ended"] .i-replay { display: block; }
.cb-main .i-play { margin-left: 2px; }
#btn-sound .i-vol, #btn-sound[data-on="0"] .i-mute { display: block; }
#btn-sound .i-mute, #btn-sound[data-on="0"] .i-vol { display: none; }
#btn-fs .i-compress, .is-fs #btn-fs .i-expand { display: none; }
.is-fs #btn-fs .i-compress { display: block; }

#progress { display: flex; gap: 4px; height: 14px; align-items: center; }
.pseg { position: relative; flex: 1 1 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); transition: height .2s; padding: 0; }
.pseg::before { content: ''; position: absolute; inset: -6px 0; }
.pseg .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--grad); }
.pseg.on .fill { box-shadow: 0 0 10px rgba(110, 140, 255, .7); }
#progress:hover .pseg { height: 7px; }
.pseg .tip {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(4px);
  white-space: nowrap; font-size: 12px; padding: 6px 10px; border-radius: 8px;
  background: #151a28; border: 1px solid var(--line-2); color: var(--text);
  opacity: 0; pointer-events: none; transition: .18s;
}
.pseg:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.pop {
  position: absolute; right: 16px; bottom: calc(var(--ctrl-h) + 10px); width: 320px; max-height: 70vh; overflow: auto;
  background: rgba(16, 20, 32, .97); border: 1px solid var(--line-2); border-radius: 16px; padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.pop button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left; font-size: 14px; color: #cfd6e6; }
.pop button:hover { background: rgba(255, 255, 255, .06); }
.pop button.on { background: rgba(79, 124, 255, .16); color: #fff; }
.pop .n { font-weight: 700; color: #8fb3ff; font-variant-numeric: tabular-nums; }
.pop .t { flex: 1; }
.pop .d { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

body.idle #controls { opacity: 0; transform: translateY(12px); }
body.idle #viewport { cursor: none; }
body.no-controls #controls { display: none; }

#rotate-hint { display: none; }

/* Portrait (phones / tall windows): caption sits below the stage */
body.portrait #caption { top: 100%; padding: 22px 20px 0; }
body.portrait #frame { overflow: visible; }
body.portrait #stage { clip-path: inset(175px 0 0 0); }
body.portrait .cap-kicker { font-size: 10.5px; padding: 6px 10px; }
body.portrait .cap-h { font-size: clamp(20px, 5.6vw, 30px); margin-top: 12px; }
body.portrait .cap-sub { font-size: clamp(13px, 3.6vw, 16px); }
body.portrait #rotate-hint {
  display: block; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 11.5px; color: var(--dim); white-space: nowrap; pointer-events: none;
}
@media (max-width: 720px) {
  #controls { gap: 10px; padding: 0 10px; --ctrl-h: 62px; }
  .hide-sm, #scene-name { display: none; }
  .cb { width: 36px; height: 36px; font-size: 17px; }
  .cb-main { width: 42px; height: 42px; }
  .pop { right: 8px; width: calc(100vw - 16px); }
}
@media (max-height: 460px) {
  :root { --ctrl-h: 54px; }
  .c-meta { display: none; }
  .cb { width: 34px; height: 34px; }
  .cb-main { width: 38px; height: 38px; }
}

/* ===================================================== UI COMPONENTS == */
.card {
  background: linear-gradient(180deg, rgba(30, 36, 56, .78), rgba(16, 20, 32, .86));
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tile {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px;
  color: var(--c, #9db6ff);
  background: color-mix(in srgb, var(--c, #4f7cff) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #4f7cff) 32%, transparent);
}
.tile.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: #c6d4ff; background: rgba(79, 124, 255, .14); border: 1px solid rgba(79, 124, 255, .28);
}
.pill .i { font-size: 13px; }
.pill.blue { color: #b4c7ff; background: rgba(79, 124, 255, .14); border-color: rgba(79, 124, 255, .3); }
.pill.cyan { color: #a5f3fc; background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .3); }
.pill.violet { color: #d8c8ff; background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .32); }
.pill.pink { color: #f6c6ff; background: rgba(217, 70, 239, .14); border-color: rgba(217, 70, 239, .3); }
.pill.green { color: #a7f3c4; background: rgba(34, 197, 94, .13); border-color: rgba(34, 197, 94, .32); }
.pill.amber { color: #fde2a8; background: rgba(245, 158, 11, .13); border-color: rgba(245, 158, 11, .32); }
.pill.red { color: #fecdd6; background: rgba(244, 63, 94, .15); border-color: rgba(244, 63, 94, .38); }
.pill.dim { color: #b7bfd2; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.av {
  --h: 220; display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  font: 700 14px/1 var(--font); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 50%), hsl(calc(var(--h) + 40) 65% 40%));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.av.sm { width: 30px; height: 30px; font-size: 11px; }
.av.xs { width: 22px; height: 22px; font-size: 9px; }
.av.lg { width: 56px; height: 56px; font-size: 19px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--grad);
}
.btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: #d6dcef; }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn.full { width: 100%; }
.ln { fill: none; stroke: rgba(120, 150, 255, .38); stroke-width: 2; stroke-linecap: round; }
.ln.glow { stroke: #6f93ff; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(79, 124, 255, .85)); }
.ln.dash { stroke: rgba(140, 160, 220, .45); stroke-width: 1.6; stroke-dasharray: .012 .012; }
.ln.dash.draw { stroke-dasharray: 1; }
.pdot { fill: #c7d5ff; stroke: rgba(120, 160, 255, .35); stroke-width: 6; }
.pdot.cyan { fill: #a5f3fc; stroke: rgba(34, 211, 238, .35); }
.vdot { stroke: rgba(255, 255, 255, .85); stroke-width: 2; }
.fol { left: 0; top: 0; }
.fol > .ctr { transform: translate(-50%, -50%); }
.mark { display: block; filter: drop-shadow(0 10px 30px rgba(99, 102, 241, .55)); }
.orb {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 130, 255, .55) 0%, rgba(124, 92, 255, .22) 35%, rgba(79, 124, 255, 0) 70%);
}

/* Cursor */
.cursor { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; }
.cursor .arrow { display: block; transform-origin: 4px 2px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.cursor .arrow path { fill: #fff; stroke: #0b0e16; stroke-width: 1.5; stroke-linejoin: round; }
.cursor .rip { position: absolute; left: -16px; top: -16px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(125, 211, 252, .95); background: rgba(56, 189, 248, .18); }

/* ============================================================ SCENE 1 == */
.s1-unread {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 17px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 0 0 4px rgba(244, 63, 94, .2), 0 6px 20px rgba(244, 63, 94, .5);
}
.visitor .vin {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  color: #dce6ff; background: rgba(40, 50, 80, .9); border: 1.5px solid rgba(140, 170, 255, .55);
  box-shadow: 0 0 18px rgba(79, 124, 255, .45);
}
.visitor .vin.c1 { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 18px rgba(34, 211, 238, .4); }
.visitor .vin.c2 { border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 18px rgba(139, 92, 246, .45); }
.inq { display: flex; align-items: center; gap: 14px; padding: 0 18px; transition: border-color .3s, background .3s; }
.inq-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(79, 124, 255, .16); color: #9db6ff; flex: none; transition: .3s; }
.inq-tx { flex: 1; min-width: 0; }
.inq .t1 { font-size: 14.5px; font-weight: 600; }
.inq .t2 { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inq-st { position: absolute; right: 14px; top: -12px; }
.inq .st-late { display: none; }
.inq.late { border-color: rgba(244, 63, 94, .4); background: linear-gradient(180deg, rgba(60, 24, 36, .8), rgba(26, 14, 22, .9)); }
.inq.late .inq-ic { background: rgba(244, 63, 94, .16); color: #fda4af; }
.inq.late .st-wait { display: none; }
.inq.late .st-late { display: inline-flex; }
.stamp {
  position: absolute; right: 16px; bottom: 12px; font: 800 15px/1 var(--display); letter-spacing: .2em; color: #fb7185;
  border: 2px solid #fb7185; border-radius: 6px; padding: 5px 8px 4px 10px; transform: rotate(-8deg); opacity: 0;
}
.note {
  width: 190px; padding: 16px 16px 18px; border-radius: 4px 4px 14px 4px;
  background: linear-gradient(170deg, #3b3420, #2b2614); border: 1px solid rgba(253, 224, 71, .22);
  color: #fde68a; font-size: 14px; line-height: 1.45; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
}
.note b { font-weight: 600; font-style: italic; }
.scrap {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px; white-space: nowrap;
  font-size: 14px; color: #cfd6e6; background: rgba(22, 27, 41, .92); border: 1px solid var(--line-2);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .7);
}
.scrap .i { font-size: 18px; color: var(--muted); }
.scrap .ic-red .i { color: #fb7185; }
.s1-counter { padding: 20px 22px; border-color: rgba(244, 63, 94, .35); background: linear-gradient(180deg, rgba(56, 20, 32, .85), rgba(22, 12, 20, .92)); }
.s1-counter .lbl { font-size: 13px; font-weight: 600; color: #fda4af; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .08em; }
.s1-counter .big { font: 800 64px/1 var(--display); margin-top: 10px; color: #fff; font-variant-numeric: tabular-nums; }
.s1-counter .sm { font-size: 14px; color: #fecdd6; margin-top: 8px; }

/* ============================================================ SCENE 2 == */
.s2-mark .glowring { position: absolute; inset: -24px; border-radius: 38px; border: 1px solid rgba(140, 160, 255, .35); box-shadow: 0 0 60px rgba(99, 102, 241, .5); }
.s2-word, .s2-tag { text-shadow: 0 0 24px #06070b, 0 0 10px #06070b, 0 0 4px #06070b; }
.s2-word { text-align: center; font: 800 64px/1 var(--display); letter-spacing: -.03em; }
.s2-tag { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #8fb3ff; }
.s2-card .card { padding: 16px 18px; height: 124px; }
.s2-card .row { display: flex; gap: 12px; align-items: center; }
.s2-card .t1 { font-size: 16px; font-weight: 700; }
.s2-card .t2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.s2-card .mv { margin-top: 12px; height: 40px; }
.s2-card .mv svg { width: 100%; height: 40px; overflow: visible; }
.mv-bar { transform-origin: 50% 100%; }

/* ============================================================ SCENE 3 == */
.src { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 16px; }
.src .t1 { font-size: 15px; font-weight: 600; }
.src .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.src .live { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.page {
  border-radius: 18px; overflow: hidden; background: #0d111c; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(79, 124, 255, .08);
  transition: box-shadow .6s;
}
.page.busy { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(79, 124, 255, .35); }
.pg-sec { position: absolute; }
.pg-chrome { left: 0; right: 0; top: 0; height: 40px; background: #131826; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.pg-chrome > i { width: 10px; height: 10px; border-radius: 50%; background: #2c3346; }
.pg-chrome .url { margin-left: 18px; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: 8px; background: #0c101a; color: var(--muted); font-size: 12px; width: 300px; }
.pg-live { margin-left: auto; font-size: 11.5px; color: #a7f3c4; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.pg-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.pg-nav { left: 0; right: 0; top: 40px; height: 54px; display: flex; align-items: center; gap: 26px; padding: 0 28px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pg-nav .brand { font: 700 16px var(--display); display: flex; align-items: center; gap: 8px; }
.pg-nav .dia { width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #22d3ee, #4f7cff); }
.pg-nav .links { font-size: 12.5px; color: var(--muted); flex: 1; }
.pg-hero { left: 36px; top: 116px; width: 410px; }
.pg-hero .eyebrow { font-size: 11px; font-weight: 700; color: #7dd3fc; letter-spacing: .14em; text-transform: uppercase; }
.pg-hero .h { font: 800 30px/1.12 var(--display); letter-spacing: -.02em; margin-top: 10px; }
.pg-hero .p { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.pg-hero .ctas { display: flex; gap: 10px; margin-top: 16px; }
.pg-services { left: 36px; top: 322px; width: 414px; }
.pg-sec .lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pg-services .svc { display: inline-flex; flex-direction: column; gap: 6px; width: 128px; height: 92px; margin: 10px 8px 0 0; padding: 12px; border-radius: 12px; background: #141a29; border: 1px solid var(--line); vertical-align: top; }
.pg-services .svc .i { font-size: 18px; color: #8fb3ff; }
.pg-services .svc b { font-size: 12.5px; }
.pg-services .svc i { display: block; height: 5px; border-radius: 3px; background: #232c42; }
.pg-services .svc i.s { width: 60%; }
.pg-form { left: 470px; top: 112px; width: 262px; height: 330px; padding: 18px; border-radius: 14px; background: #141a2b; border: 1px solid rgba(120, 150, 255, .22); transition: box-shadow .5s, border-color .5s; }
.pg-form.glow { border-color: rgba(125, 211, 252, .7); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 0 40px rgba(34, 211, 238, .35); }
.pg-form .h { font: 700 16px var(--display); margin-bottom: 12px; }
.pg-form .in { height: 36px; border-radius: 8px; background: #0e1320; border: 1px solid #263049; margin-bottom: 9px; font-size: 11.5px; color: var(--dim); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.pg-form .btn { height: 38px; margin-top: 6px; }
.pg-test { left: 36px; top: 460px; width: 700px; }
.pg-test .tst { display: inline-block; width: 220px; height: 96px; margin: 10px 8px 0 0; padding: 12px 14px; border-radius: 12px; background: #121827; border: 1px solid var(--line); vertical-align: top; }
.pg-test .stars { color: #fbbf24; font-size: 12px; display: flex; gap: 2px; }
.pg-test p { font-size: 12.5px; margin-top: 8px; color: #dbe2f3; }
.pg-test small { display: block; font-size: 11px; color: var(--dim); margin-top: 6px; }
.pg-foot { left: 36px; right: 36px; top: 590px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 13.5px; font-weight: 600; background: linear-gradient(90deg, rgba(79, 124, 255, .16), rgba(139, 92, 246, .16)); border: 1px solid rgba(120, 140, 255, .2); }

/* ============================================================ SCENE 4 == */
.s4-form { padding: 0; }
.s4-form > * { position: absolute; left: 32px; right: 32px; }
.f-head { top: 30px; font: 800 28px/1 var(--display); letter-spacing: -.02em; }
.f-sub { top: 70px; font-size: 14px; color: var(--muted); }
.f-lbl { font-size: 13px; font-weight: 600; color: #c5cde0; }
.f-in {
  height: 52px; border-radius: 12px; background: #0d121f; border: 1.5px solid #273149;
  display: flex; align-items: center; padding: 0 16px; font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.f-in .ph { color: #4f5870; }
.f-in.filled .ph { display: none; }
.f-in.focus { border-color: #6f93ff; box-shadow: 0 0 0 4px rgba(79, 124, 255, .2); }
.typed { white-space: pre; }
.typed.caret::after, .notes .typed.caret::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: #9db6ff; animation: blink .8s steps(1) infinite; }
.f-sel { justify-content: space-between; }
.f-sel .val { display: none; }
.f-sel.filled .val { display: inline; }
.f-sel .i { color: var(--muted); font-size: 18px; }
.f-btn {
  top: 488px; height: 58px; border-radius: 14px; background: var(--grad); display: grid; place-items: center;
  font-size: 17px; font-weight: 700; box-shadow: 0 12px 30px -8px rgba(99, 102, 241, .7);
}
.f-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; }
.f-btn .sending { display: none; }
.f-btn.sending .lbl { display: none; }
.f-btn.sending .sending { display: inline-flex; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.f-note { top: 566px; font-size: 12.5px; color: var(--dim); text-align: center; }
.f-drop {
  top: 464px; padding: 8px; border-radius: 14px; background: #151b2c; border: 1px solid var(--line-2); z-index: 3;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .6); opacity: 0;
}
.opt { height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; font-size: 15px; color: #cfd6e6; }
.opt.hi { background: rgba(79, 124, 255, .2); color: #fff; }
.f-success {
  inset: 0 !important; left: 0 !important; right: 0 !important; border-radius: 18px; z-index: 4; opacity: 0;
  background: linear-gradient(180deg, rgba(20, 26, 42, .97), rgba(14, 18, 30, .98));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.f-success svg { overflow: visible; margin-bottom: 8px; }
.f-success .sc { fill: rgba(34, 197, 94, .1); stroke: #22c55e; stroke-width: 4; }
.f-success .sk { fill: none; stroke: #4ade80; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.f-success .h { font: 800 30px var(--display); }
.f-success .p { font-size: 16px; color: var(--muted); }
.s4-node { display: grid; place-items: center; }
.s4-node .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(120, 150, 255, .45); }
.s4-node .ring.r2 { inset: 16px; border: 1px solid rgba(34, 211, 238, .3); }
.s4-node .core { width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; background: rgba(20, 26, 44, .9); border: 1px solid rgba(120, 150, 255, .35); box-shadow: 0 0 50px rgba(79, 124, 255, .45); }
.s4-node .flash { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(125, 211, 252, .7), transparent 65%); opacity: 0; }
.s4-node .nlbl { position: absolute; top: 184px; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.s4-node .nlbl b { display: block; font-size: 17px; }
.s4-node .nlbl span { font-size: 13px; color: var(--muted); }
.s4-node .got { position: absolute; top: -44px; left: 50%; margin-left: -66px; }
.lead-card { display: flex; gap: 14px; align-items: center; padding: 16px 20px; width: 320px; border-color: rgba(120, 150, 255, .45); box-shadow: 0 0 40px rgba(79, 124, 255, .45), 0 20px 50px rgba(0, 0, 0, .6); }
.lead-card .t1 { font-size: 17px; font-weight: 700; }
.lead-card .t2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lead-card .chips, .pd-hero .chips { display: flex; gap: 6px; margin-top: 8px; }

/* ============================================================ SCENE 5 == */
.lane { stroke: rgba(120, 150, 255, .28); stroke-width: 2; }
.s5-hub { display: grid; place-items: center; }
.hub-rings { position: absolute; inset: 0; width: 200px; height: 200px; overflow: visible; }
.hub-core { width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 35%, rgba(60, 80, 160, .9), rgba(18, 22, 38, .95)); border: 1px solid rgba(140, 170, 255, .4); box-shadow: 0 0 60px rgba(79, 124, 255, .5); font-size: 30px; color: #c7d5ff; }
.hub-core b { font-size: 12px; color: #fff; letter-spacing: .02em; }
.pulse-ring { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgba(125, 211, 252, .8); opacity: 0; }
.s5-hublbl { text-align: center; }
.s5-hublbl b { display: block; font-size: 16px; }
.s5-hublbl span { font-size: 12.5px; color: var(--muted); }
.lmini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; white-space: nowrap; }
.lmini b { font-size: 14px; }
.packet { display: block; width: 14px; height: 14px; border-radius: 50%; background: #a5f3fc; box-shadow: 0 0 16px 4px rgba(34, 211, 238, .8); }
.s5-table { padding: 0; overflow: hidden; }
.th-bar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.th-bar b { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulseDot 1.6s infinite; }
.th-bar .tot { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr { display: grid; grid-template-columns: 172px 116px 150px 76px 1fr; align-items: center; height: 62px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13.5px; transition: background .4s; }
.tr.th { height: 38px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, .02); }
.tr .c-lead { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tr .c-svc { color: #cfd6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.tr .c-dim { color: var(--muted); font-size: 12.5px; }
.tr.old { opacity: .6; }
.tr.flash { background: rgba(79, 124, 255, .16); }
.tr.sel { background: rgba(34, 211, 238, .08); box-shadow: inset 3px 0 0 var(--cyan); }
.s5-table .saved { position: absolute; left: 38px; top: 258px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: #16a34a; box-shadow: 0 0 0 2px #141a2b, 0 0 12px rgba(34,197,94,.8); }
.s5-table .saved .i { stroke-width: 3; }
.s5-detail { padding: 18px 22px; border-color: rgba(34, 211, 238, .3); }
.d-head { display: flex; align-items: center; gap: 12px; }
.d-head b { display: block; font-size: 17px; }
.d-head span { font-size: 12.5px; color: var(--muted); }
.d-head .ok { margin-left: auto; }
.d-head .ok .i { font-size: 14px; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.kv span { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kv b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; margin-top: 4px; white-space: nowrap; }

/* ============================================================ SCENE 6 == */
.s6-buzz { border-radius: 50%; border: 2px solid rgba(125, 211, 252, .8); opacity: 0; }
.s6-glow { border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, .35), transparent); opacity: 0; }
.phone-rig { transform-origin: 50% 50%; }
.phone {
  width: 300px; height: 610px; border-radius: 48px; padding: 10px; position: relative;
  background: linear-gradient(145deg, #2a3044, #11151f 40%, #1c2232);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px #05070b;
  transition: box-shadow .4s;
}
.phone-rig.lit .phone { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 60px rgba(79, 124, 255, .55); }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: radial-gradient(120% 80% at 30% 0%, #2b2f7a 0%, #141a3a 45%, #0a0d1c 100%); }
.ph-status { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 13px; font-weight: 600; z-index: 3; }
.ph-status .isl { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; }
.ph-status .sig { font-size: 15px; }
.ph-lock { position: absolute; inset: 0; text-align: center; }
.lk-date { margin-top: 70px; font-size: 15px; font-weight: 500; color: #d7dcf5; }
.lk-time { font: 700 76px/1 var(--display); letter-spacing: -.02em; margin-top: 4px; color: #f2f4ff; }
.ph-banner {
  position: absolute; left: 10px; right: 10px; top: 210px; padding: 12px 14px 14px; border-radius: 22px; text-align: left;
  background: rgba(36, 40, 70, .78); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.bn-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #c9cfe8; }
.bn-top .mark { filter: none; border-radius: 6px; }
.bn-top em { margin-left: auto; font-style: normal; color: #98a0bf; letter-spacing: 0; }
.bn-title { margin-top: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: #7dd3fc; }
.bn-name { font-size: 19px; font-weight: 700; margin-top: 4px; }
.bn-line { font-size: 12.5px; color: #c4cae0; margin-top: 4px; }
.bn-line b { color: #fff; font-weight: 600; }
.lk-hint { position: absolute; left: 0; right: 0; bottom: 30px; font-size: 12px; color: #9aa3c8; }
.ph-tap { position: absolute; left: 140px; top: 280px; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: rgba(255, 255, 255, .45); z-index: 5; }
.ph-detail { position: absolute; inset: 0; padding: 48px 16px 16px; background: #0c1020; }
.pd-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #8fb3ff; }
.pd-nav .pill { margin-left: auto; }
.pd-hero { display: flex; flex-direction: column; align-items: center; margin-top: 14px; text-align: center; }
.pd-hero b { font-size: 20px; margin-top: 8px; }
.pd-hero > span { font-size: 13px; color: var(--muted); }
.pd-acts { display: flex; justify-content: space-between; margin-top: 16px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 58px; font-size: 19px; }
.act .i { width: 44px; height: 44px; padding: 12px; border-radius: 14px; background: rgba(79, 124, 255, .16); color: #b4c7ff; }
.act i { font-style: normal; font-size: 11px; color: var(--muted); }
.act.call .i { background: #16a34a; color: #fff; }
.act.call.pulse .i { animation: callPulse 1.2s infinite; }
.pd-list { margin-top: 16px; border-radius: 16px; background: #121830; border: 1px solid var(--line); }
.pd-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pd-row:last-child { border-bottom: 0; }
.pd-row > .i { font-size: 16px; color: #8fb3ff; }
.pd-row span { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.pd-row b { font-size: 13px; font-weight: 600; }
.s6-chip { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 16px; }
.s6-chip b { display: block; font-size: 14px; }
.s6-chip span:not(.tile) { font-size: 12px; color: var(--muted); }

/* ============================================================ SCENE 7 == */
.crm { overflow: hidden; border-radius: 18px; }
.crm > * { position: absolute; }
.win-bar { left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: rgba(10, 13, 22, .7); border-bottom: 1px solid var(--line); }
.win-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #2c3346; }
.win-bar .url { margin: 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); height: 24px; padding: 0 14px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.side { left: 0; top: 40px; bottom: 0; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 16px; border-right: 1px solid var(--line); background: rgba(8, 10, 18, .4); }
.side .mark { margin-bottom: 10px; filter: none; }
.side span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; font-size: 19px; color: var(--dim); }
.side span.on { background: rgba(79, 124, 255, .18); color: #b4c7ff; }
.list { left: 64px; top: 40px; bottom: 0; width: 280px; border-right: 1px solid var(--line); }
.list > * { position: absolute; left: 8px; right: 8px; }
.list .lh { top: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; }
.list .lh b { font-size: 18px; }
.list .search { top: 56px; left: 16px; right: 16px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; color: var(--dim); }
.li { height: 70px; margin-top: -40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 12px; transition: background .25s; }
.li b { display: block; font-size: 14px; }
.li span { font-size: 12px; color: var(--muted); }
.li em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--dim); align-self: flex-start; margin-top: 16px; }
.li .dot { position: absolute; right: 14px; bottom: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.li.sel { background: rgba(79, 124, 255, .16); box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .35); }
.li.sel .dot { display: none; }
.empty { left: 344px; top: 40px; width: 528px; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--dim); font-size: 14px; }
.empty .i { font-size: 38px; }
.detail { left: 0; top: 0; width: 872px; height: 100%; opacity: 0; pointer-events: none; }
.detail > * { position: absolute; }
.dh { left: 372px; right: 28px; display: flex; align-items: center; gap: 14px; }
.dh b { display: block; font-size: 22px; font-weight: 700; }
.dh span { font-size: 13px; color: var(--muted); }
.dh .status { margin-left: auto; position: relative; width: 96px; height: 24px; }
.status .pill { position: absolute; right: 0; top: 0; }
.status .s-con { opacity: 0; }
.btns { left: 372px; display: flex; gap: 10px; }
.b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 11px; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: #dbe2f3; }
.b .i { font-size: 16px; }
.b-call { background: #16a34a; border-color: #22c55e; color: #fff; width: 92px; }
.btns .b:nth-child(2) { width: 92px; }
.b-asg { width: 104px; }
.b-fu { width: 128px; }
.b.primary { background: var(--grad); border: 0; color: #fff; }
.crm .grid { left: 372px; width: 472px; display: grid; grid-template-columns: 244px 1fr; row-gap: 20px; }
.crm .kv b .i { color: #8fb3ff; }
.swap { position: relative; transition: background .3s; border-radius: 8px; }
.swap b { height: 22px; }
.swap .v1 { position: absolute; left: 0; top: 16px; opacity: 0; }
.swap.flash { background: rgba(34, 211, 238, .1); box-shadow: 0 0 0 6px rgba(34, 211, 238, .1); }
.nl { left: 372px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.notes { left: 372px; width: 472px; height: 100px; padding: 12px 14px; border-radius: 12px; background: rgba(8, 11, 20, .6); border: 1.5px solid #273149; font-size: 14px; line-height: 1.5; color: #dbe2f3; transition: .2s; }
.notes .typed { white-space: normal; }
.notes .ph { color: #4f5870; }
.notes.filled .ph { display: none; }
.notes.focus { border-color: #6f93ff; box-shadow: 0 0 0 4px rgba(79, 124, 255, .2); }
.save { left: 764px; width: 80px; height: 36px; }
.activity { left: 872px; top: 40px; right: 0; bottom: 0; border-left: 1px solid var(--line); background: rgba(8, 10, 18, .3); }
.activity > * { position: absolute; }
.ah { left: 24px; right: 24px; top: 20px; display: flex; justify-content: space-between; align-items: center; }
.ah b { font-size: 16px; }
.ah span { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.tl-line { left: 39px; top: 80px; width: 2px; height: 392px; background: linear-gradient(var(--blue), var(--violet)); transform-origin: 50% 0; opacity: .6; }
.ai { left: 24px; right: 18px; display: flex; gap: 14px; margin-top: -40px; padding: 8px; margin-left: -8px; border-radius: 12px; transition: background .4s; }
.ai.new { background: rgba(79, 124, 255, .12); }
.ad { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 15px; background: #18203a; border: 1px solid rgba(120, 150, 255, .4); color: #b4c7ff; position: relative; z-index: 1; }
.ai b { display: block; font-size: 14px; }
.ai span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 260px; }
.ai em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.modal { z-index: 5; border-radius: 16px; background: rgba(20, 25, 40, .98); border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .7); opacity: 0; }
.call-modal { left: 404px; top: 190px; width: 408px; height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cm-av { position: relative; margin-bottom: 8px; }
.cm-av i { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .7); animation: ringOut 1.4s infinite; }
.call-modal b { font-size: 17px; }
.call-modal > span { font-size: 13px; color: var(--muted); }
.call-modal .timer { font: 600 15px var(--font); color: #a7f3c4; font-variant-numeric: tabular-nums; }
.call-modal .end { position: absolute; left: 50%; bottom: -26px; margin-left: -26px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e11d48; color: #fff; font-size: 22px; box-shadow: 0 10px 24px rgba(225, 29, 72, .5); }
.call-modal .end .i { transform: rotate(135deg); }
.drop { left: 576px; top: 192px; width: 230px; padding: 8px; }
.dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 6px 8px 8px; }
.dr { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px; border-radius: 10px; }
.dr b { display: block; font-size: 13.5px; }
.dr span { font-size: 11.5px; color: var(--muted); }
.dr.hi { background: rgba(79, 124, 255, .2); }
.fu-drop { left: 560px; width: 300px; height: 170px; padding: 12px 16px; }
.fu-drop .dt { padding: 0 0 10px; }
.days { display: flex; gap: 4px; }
.day { width: 52px; height: 54px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.day i { font-style: normal; font-size: 11px; color: var(--muted); }
.day b { font-size: 16px; }
.day.on { background: var(--grad); border-color: transparent; }
.day.on i { color: #e6e9ff; }
.times { display: flex; gap: 6px; margin-top: 12px; }
.tm { width: 84px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tm.on { background: rgba(34, 211, 238, .18); border-color: rgba(34, 211, 238, .5); color: #a5f3fc; }
.mirror .m-phone { width: 210px; height: 400px; border-radius: 32px; padding: 34px 14px 14px; position: relative; background: #0c1020; border: 6px solid #1d2232; box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.m-top { display: flex; align-items: center; gap: 10px; }
.m-top b { display: block; font-size: 13px; }
.m-top span { font-size: 11px; color: var(--muted); }
.m-status { position: relative; height: 24px; margin: 12px 0 10px; }
.m-status .pill { position: absolute; left: 0; top: 0; }
.m-status .s-con { opacity: 0; }
.m-row { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; margin-bottom: 6px; border-radius: 10px; background: #141a30; font-size: 11.5px; color: #cfd6e6; white-space: nowrap; overflow: hidden; }
.m-row .i { font-size: 13px; color: #8fb3ff; flex: none; }
.m-sync { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #a5f3fc; padding: 5px 10px; border-radius: 999px; background: rgba(34, 211, 238, .14); opacity: 0; white-space: nowrap; }
.m-lbl { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ============================================================ SCENE 8 == */
.kcol { border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: background .4s, border-color .4s, box-shadow .4s; }
.kcol.hot { background: color-mix(in srgb, var(--c) 8%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.kcol.glow { background: rgba(34, 197, 94, .07); border-color: rgba(34, 197, 94, .45); box-shadow: 0 0 50px -10px rgba(34, 197, 94, .45); }
.kh { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); position: relative; }
.kh > i { position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.kh b { font-size: 13.5px; }
.kh .cnt { margin-left: auto; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); color: #cfd6e6; font-variant-numeric: tabular-nums; }
.kcard { border-radius: 12px; padding: 12px 14px; background: rgba(24, 30, 46, .92); border: 1px solid var(--line); border-left: 3px solid color-mix(in srgb, var(--c) 70%, transparent); }
.kcard b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.kcard span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.kcard em { position: absolute; right: 12px; top: 12px; font-style: normal; font-size: 12px; font-weight: 600; color: #cfd6e6; }
.kcard.bg { opacity: .75; }
.kcard.john { z-index: 5; --c: #4f7cff; background: linear-gradient(180deg, rgba(40, 52, 92, .98), rgba(24, 30, 54, .98)); border: 1px solid rgba(120, 150, 255, .6); border-left: 3px solid #6f93ff; box-shadow: 0 0 30px rgba(79, 124, 255, .45), 0 14px 30px rgba(0, 0, 0, .5); transform-origin: 50% 50%; }
.kcard.john.drag { box-shadow: 0 0 40px rgba(79, 124, 255, .6), 0 30px 50px rgba(0, 0, 0, .65); }
.kcard.john.won { border-color: rgba(74, 222, 128, .8); border-left-color: #22c55e; background: linear-gradient(180deg, rgba(22, 70, 46, .98), rgba(16, 38, 30, .98)); box-shadow: 0 0 44px rgba(34, 197, 94, .6); }
.jbar { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.jbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f7cff, #22d3ee); }
.won .jbar i { background: #22c55e; }
.drag-cur { position: absolute; right: 18px; bottom: -10px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.kcard.john .won-toast { position: absolute; left: 12px; top: 34px; opacity: 0; z-index: 2; background: #14532d; border-color: rgba(74, 222, 128, .6); color: #dcfce7; }
.kcard.john.won > span { visibility: hidden; }
.burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #22c55e; }
.burst i:nth-child(3n) { background: #67e8f9; box-shadow: 0 0 10px #22d3ee; width: 7px; height: 7px; }
.burst i:nth-child(4n) { background: #c4b5fd; border-radius: 2px; }
.kstats { display: flex; gap: 12px; }
.kstats > div { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.kstats span { font-size: 13px; color: var(--muted); }
.kstats b { font: 700 20px var(--display); font-variant-numeric: tabular-nums; }

/* ============================================================ SCENE 9 == */
.dash { padding: 0; }
.dash > * { position: absolute; }
.kpi { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.kl { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .kv { font: 800 36px/1 var(--display); margin-top: 12px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kd { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #e7ebf5; }
.kd .i { color: #4ade80; }
.kd span { display: none; }
.panel { border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.panel .ph { position: absolute; left: 20px; right: 20px; top: 16px; display: flex; align-items: baseline; justify-content: space-between; }
.panel .ph b { font-size: 15px; }
.panel .ph span { font-size: 12px; color: var(--dim); }
.chart { position: absolute; left: 0; top: 30px; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .base { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.chart .ax { fill: #7d869b; font: 500 11px var(--font); }
.chart .area { fill: url(#g-area); fill: rgba(57, 135, 229, .12); }
.chart .line { fill: none; stroke: #3987e5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: #3987e5; stroke: #121726; stroke-width: 2; }
.chart .pt.last { fill: #fff; stroke: #3987e5; stroke-width: 3; }
.endlbl rect { fill: #1b2236; stroke: rgba(255, 255, 255, .14); }
.endlbl text { fill: #eef2fb; font: 600 13px var(--font); }
.donut { position: absolute; overflow: visible; transform: rotate(-90deg); }
.donut .track { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 26; }
.donut .seg { fill: none; stroke-width: 26; stroke-dasharray: 0 100; transform: none; }
.donut text { transform: rotate(90deg); transform-origin: 110px 110px; transform-box: view-box; }
.dn-v { fill: #eef2fb; font: 800 34px var(--display); }
.dn-l { fill: #8a93a8; font: 500 12px var(--font); }
.legend, .int { position: absolute; }
.legend .lg { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 4px 10px; margin-bottom: 16px; }
.legend .lg > i { width: 12px; height: 12px; border-radius: 3px; }
.legend .lg span { font-size: 14px; color: #dbe2f3; }
.legend .lg b { font-size: 15px; font-variant-numeric: tabular-nums; }
.legend .lb { grid-column: 2 / 4; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); }
.legend .lb u { display: block; height: 100%; width: 0; border-radius: 2px; }
.ints .int-ov { position: absolute; left: 0; top: 0; overflow: visible; }
.int { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: border-color .4s, background .4s; }
.int b { display: block; font-size: 13.5px; white-space: nowrap; }
.int span:not(.tile) { font-size: 11.5px; color: var(--muted); }
.int .st { position: absolute; right: 12px; bottom: 9px; display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--dim); }
.int .st i { width: 7px; height: 7px; border-radius: 50%; background: #3a4256; transition: .3s; }
.int.on { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .05); }
.int.on .st { color: #a7f3c4; }
.int.on .st i { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

/* =========================================================== SCENE 10 == */
.eco-base { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 2; stroke-dasharray: 4 8; }
.comet { fill: #e0f2fe; stroke: rgba(34, 211, 238, .6); stroke-width: 4; }
.comet-halo { fill: rgba(34, 211, 238, .2); }
.eco { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 18px; background: rgba(18, 22, 36, .92); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); transition: border-color .5s, box-shadow .5s, background .5s; }
.eco b { display: block; font-size: 14.5px; line-height: 1.2; }
.eco span:not(.tile) { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.eco em { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--dim); }
.eco.lit { border-color: rgba(120, 150, 255, .55); box-shadow: 0 0 34px -4px rgba(79, 124, 255, .5), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.eco.lit em { color: #8fb3ff; }
.eco.win { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 34px -4px rgba(34, 197, 94, .5); }
.eco.win .tile { --c: #22c55e; }
.eco.wide { justify-content: center; }
.loop-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #a5b4d6; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(140, 160, 220, .4); }

/* =========================================================== SCENE 11 == */
.s11-net line { stroke: rgba(120, 150, 255, .18); stroke-width: 1; }
.s11-net circle { fill: rgba(140, 170, 255, .5); }
.conv i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #a5b8ff; box-shadow: 0 0 12px #6f93ff; }
.s11-mark .pring { position: absolute; inset: -20px; border-radius: 46px; border: 1.5px solid rgba(140, 160, 255, .4); animation: ringOut 2.6s infinite; }
.s11-mark .pring.b { animation-delay: 1.3s; }
.s11-word { text-align: center; font: 800 62px/1 var(--display); letter-spacing: -.03em; }
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 70px; border-radius: 18px; text-decoration: none; color: #fff;
  font: 700 21px var(--display); background: var(--grad);
  box-shadow: 0 20px 50px -10px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -10px rgba(99, 102, 241, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); opacity: 0; }
.shine .cta::after { opacity: 1; animation: shine 3.2s 0s infinite; }
.s11-tag { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .36em; color: #8fb3ff; }
.s11-f .card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; }
.s11-f b { display: block; font-size: 14px; }
.s11-f span:not(.tile) { font-size: 12px; color: var(--muted); }

/* ===================================================== START SCREEN == */
#cover { position: absolute; inset: 0; z-index: 15; display: none; place-items: center; cursor: default;
  background: radial-gradient(800px 500px at 50% 45%, rgba(79, 124, 255, .16), transparent 70%), rgba(6, 7, 11, .9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.cover #cover { display: grid; }
body.cover #controls { opacity: .35; pointer-events: none; }
.cv-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.cv-mark { filter: drop-shadow(0 12px 40px rgba(99, 102, 241, .6)); }
.cv-title { font: 800 clamp(34px, 6vw, 60px)/1 var(--display); letter-spacing: -.03em; margin-top: 22px; }
.cv-tag { font-size: clamp(12px, 1.6vw, 15px); letter-spacing: .22em; text-transform: uppercase; color: #8fb3ff; margin-top: 12px; }
.cv-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; height: 60px; padding: 0 30px; border-radius: 16px;
  font: 700 18px var(--display); color: #fff; background: var(--grad); box-shadow: 0 18px 44px -10px rgba(99, 102, 241, .75); transition: transform .2s, filter .2s; }
.cv-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cv-btn .i { font-size: 18px; }
.cv-link { margin-top: 16px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cv-link:hover { color: #fff; }
.cv-btn:focus-visible, .cv-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
#btn-vo[data-on="0"] { color: var(--dim); }
#btn-vo[data-on="0"] .i { opacity: .55; }
#btn-vo[data-on="1"] { color: #a5f3fc; }
