/* =========================================================
   Casper — showcase / live demo styles
   The Casper UI replicas use the same palette as the real
   extension (dark glass + ice blue).
   ========================================================= */
:root {
  --cp-bg: #0d0f13;
  --cp-card: #12151b;
  --cp-card-2: #181c23;
  --cp-line: rgba(255, 255, 255, 0.08);
  --cp-line-2: rgba(255, 255, 255, 0.14);
  --cp-text: #f4f7fb;
  --cp-muted: #8b93a1;
  --cp-dim: #5a606b;
  --cp-accent: #6cc8f0;
  --cp-accent-soft: rgba(108, 200, 240, 0.14);
  --cp-good: #4ade80;
  --cp-warn: #fbbf24;
  --cp-bad: #ff5a52;
}

/* ---------- misc additions to base ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { left: 16px; }
.hero-sub b { color: var(--text); font-weight: 600; }
.float-chip.chip-red span { color: var(--cp-bad); }
.float-chip.chip-red { border-color: rgba(255, 90, 82, 0.35); }
.runs-on { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 0 16px; }
.runs-on span { display: inline-flex; align-items: center; gap: 10px; font: 600 20px var(--display); color: #4a505b; letter-spacing: -0.02em; transition: color .3s; }
.runs-on span:hover { color: var(--text); }
.runs-on i { font-style: normal; font-size: 16px; opacity: .8; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.cta-form { margin-top: 4px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.co-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.co-check input { margin-top: 3px; accent-color: var(--sky); width: 16px; height: 16px; flex: none; }
.co-check a { color: var(--ice); text-decoration: underline; }
.faq a { color: var(--ice); text-decoration: underline; }
.footnote { line-height: 1.5; }

/* ---------- demo controls ---------- */
.demo-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 26px; flex-wrap: wrap; }
.demo-ctl-right { display: flex; gap: 8px; }
.ctl-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); font-size: 16px; cursor: pointer; transition: background .3s, transform .3s var(--ease);
}
.ctl-btn:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- demo stage ---------- */
.demo-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: stretch; }
.app-window {
  border-radius: 20px; border: 1px solid var(--border-2); background: #0a0b0e; overflow: hidden; min-width: 0;
  box-shadow: 0 60px 120px -40px rgba(108, 200, 240, 0.28), 0 0 0 1px rgba(255,255,255,.03);
  display: flex; flex-direction: column;
}
.aw-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: #111317; border-bottom: 1px solid var(--border); }
.aw-ext { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--border-2); background: #0a0b0e; transition: box-shadow .4s, transform .3s; flex: none; }
.aw-ext img { width: 78%; }
.aw-ext.pulse { box-shadow: 0 0 0 4px rgba(108,200,240,.25), 0 0 24px rgba(108,200,240,.6); transform: scale(1.08); }
.aw-body { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 560px; }

/* Snapchat-like sidebar */
.sc-side { border-right: 1px solid var(--border); background: #0c0d10; display: flex; flex-direction: column; min-width: 0; }
.sc-side-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.sc-me { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fff, var(--ice)); color: #000; font-weight: 700; font-size: 13px; }
.sc-side-head b { font-size: 15px; }
.sc-unread { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sky); color: #000; font-size: 12px; font-weight: 700; display: grid; place-items: center; transition: transform .3s var(--ease); }
.sc-unread.bump { transform: scale(1.25); }
.sc-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #2a2d33 transparent; }
.sc-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; position: relative;
  transition: background .35s, transform .35s var(--ease);
}
.sc-item.active { background: rgba(108,200,240,.1); box-shadow: inset 0 0 0 1px rgba(108,200,240,.3); }
.sc-item .av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; position: relative; }
.sc-item .meta { min-width: 0; flex: 1; }
.sc-item .nm { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-item .pv { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.sc-item.unread .nm { color: #fff; }
.sc-item.unread .pv { color: var(--ice); font-weight: 600; }
.sc-item .pv .sq { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.sq.chat { background: #0eadff; } .sq.snap { background: #ff3b5c; } .sq.open { background: transparent; border: 1.5px solid #6b7280; }
.sc-item .badge { font-size: 12px; flex: none; }
.sc-item .flag { position: absolute; right: 8px; top: 8px; font-size: 11px; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.flag.hold { background: rgba(255,90,82,.18); color: #ff8a84; }
.flag.link { background: rgba(251,191,36,.16); color: #fcd34d; }
.flag.conv { background: rgba(74,222,128,.16); color: #86efac; }
.flag.done { background: rgba(108,200,240,.14); color: var(--ice); }

/* Chat */
.sc-chat { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(ellipse at 50% 120%, rgba(108,200,240,.06), transparent 60%), #0a0b0e; }
.sc-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 61px; }
.sc-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1b1e24; font-weight: 700; color: #fff; flex: none; transition: background .3s; }
.sc-chat-head b { display: block; font-size: 14px; }
.sc-chat-head small { display: block; color: var(--muted); font-size: 12px; }
.sc-thread { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: #2a2d33 transparent; padding-right: 300px; }
.sc-empty { margin: auto; text-align: center; color: var(--dim); font-size: 13px; max-width: 240px; }
.sc-empty img { width: 60px; margin: 0 auto 12px; opacity: .5; animation: floaty 5s ease-in-out infinite; }
.msg { max-width: 78%; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.msg .who { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 2px; }
.msg.in .who { color: #ff5c8a; } .msg.out .who { color: #0eadff; }
.msg .txt { font-size: 14px; line-height: 1.45; border-left: 2px solid; padding: 1px 0 1px 10px; color: #e7eaf0; word-break: break-word; }
.msg.in .txt { border-color: #ff5c8a; } .msg.out .txt { border-color: #0eadff; }
.msg .txt a { color: var(--ice); text-decoration: underline; }
.msg.saved .txt { background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; }
.msg .meta-line { font-size: 10.5px; color: var(--dim); margin-top: 3px; padding-left: 12px; }
.snap-tile { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,59,92,.4); background: rgba(255,59,92,.08); color: #ff8aa1; font-size: 13px; font-weight: 600; transition: all .4s; }
.snap-tile .sq { width: 12px; height: 12px; border-radius: 3px; background: #ff3b5c; }
.snap-tile.opened { border-color: var(--border-2); background: transparent; color: var(--muted); }
.snap-tile.opened .sq { background: transparent; border: 1.5px solid #6b7280; }
.snap-view { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0,0,0,.82); opacity: 0; pointer-events: none; transition: opacity .35s; }
.snap-view.show { opacity: 1; }
.snap-view .pic {
  width: 200px; height: 300px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffb36b 0%, #ff7a8a 45%, #3a2b6b 75%, #121a3a 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.snap-view .pic::before { content: ""; position: absolute; left: 50%; top: 32%; width: 70px; height: 70px; border-radius: 50%; background: #ffe7a8; translate: -50% 0; box-shadow: 0 0 60px #ffd27a; }
.snap-view .pic::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 40%; background: #0e1430; clip-path: polygon(0 40%, 18% 10%, 35% 45%, 52% 5%, 70% 50%, 85% 20%, 100% 45%, 100% 100%, 0 100%); }
.snap-view .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: #fff; z-index: 2; text-shadow: 0 1px 4px #000; }
.snap-view .vision { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 6px 8px; border-radius: 8px; backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s .3s; }
.snap-view.show .vision { opacity: 1; }
.typing { display: inline-flex; gap: 4px; padding: 8px 0 4px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #0eadff; animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.sc-composer { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--border); padding-right: 300px; }
.sc-input {
  flex: 1; min-width: 0; min-height: 40px; padding: 9px 14px; border-radius: 20px; background: #15171c; border: 1px solid var(--border);
  font-size: 14px; color: var(--text); transition: border-color .3s, box-shadow .3s; display: flex; align-items: center; flex-wrap: wrap;
}
.sc-input .ph { color: var(--dim); }
.sc-input.focus { border-color: rgba(108,200,240,.55); box-shadow: 0 0 0 4px rgba(108,200,240,.1); }
.sc-input.draft { border-color: rgba(108,200,240,.7); box-shadow: 0 0 0 4px rgba(108,200,240,.14), 0 0 30px -6px rgba(108,200,240,.5); }
.sc-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #1b1e24; color: var(--muted); cursor: pointer; transition: background .3s, color .3s, transform .2s; flex: none; }
.sc-send.ready { background: var(--sky); color: #000; animation: sendPulse 1.4s infinite; }
.sc-send.press { transform: scale(.9); }
@keyframes sendPulse { 50% { box-shadow: 0 0 0 8px rgba(108,200,240,.18); } }

/* ---------- Casper overlay replica ---------- */
.cp-overlay {
  position: absolute; top: 14px; right: 14px; width: 270px; z-index: 5;
  background: linear-gradient(180deg, rgba(20,23,30,.94), rgba(13,15,19,.96));
  border: 1px solid var(--cp-line-2); border-radius: 18px; color: var(--cp-text);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(108,200,240,.06), 0 0 50px -20px rgba(108,200,240,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 12px; overflow: hidden;
}
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--cp-line); background: linear-gradient(135deg, rgba(108,200,240,.1), transparent 60%); }
.cp-title { display: flex; align-items: center; gap: 7px; font: 700 13px var(--display); letter-spacing: -.01em; }
.cp-title img { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(108,200,240,.6)); }
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: #3a3f48; box-shadow: 0 0 0 3px rgba(58,63,72,.25); transition: all .3s; }
.cp-dot.live { background: var(--cp-accent); box-shadow: 0 0 0 3px rgba(108,200,240,.22), 0 0 10px var(--cp-accent); animation: pulse 1.6s infinite; }
.cp-switch { display: flex; align-items: center; gap: 6px; border: 1px solid var(--cp-line); background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px 10px 3px 4px; cursor: pointer; color: var(--cp-muted); font: 700 11px var(--font); transition: all .25s; }
.cp-track { position: relative; width: 26px; height: 15px; border-radius: 999px; background: #2a2e36; transition: background .25s; }
.cp-thumb { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #8b93a1; transition: left .25s var(--ease), background .25s; }
.cp-switch.on { color: var(--cp-accent); border-color: rgba(108,200,240,.35); background: var(--cp-accent-soft); }
.cp-switch.on .cp-track { background: var(--cp-accent); }
.cp-switch.on .cp-thumb { left: 13px; background: #fff; }
.cp-status { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--cp-line); }
.cp-chip { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--cp-line); color: var(--cp-muted); white-space: nowrap; transition: all .3s; }
.cp-chip.cp-phase { color: var(--cp-text); font-weight: 700; background: rgba(255,255,255,.08); }
.cp-chip.cp-green { color: var(--cp-good); border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.1); font-weight: 700; }
.cp-chip.cp-amber { color: #fcd34d; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.1); font-weight: 700; }
.cp-chip.cp-acc { color: var(--cp-accent); border-color: rgba(108,200,240,.35); background: var(--cp-accent-soft); font-weight: 700; }
.cp-chip.flash { animation: chipFlash .8s var(--ease); }
@keyframes chipFlash { 30% { transform: scale(1.12); border-color: var(--cp-accent); color: #fff; } }
.cp-speed { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; color: var(--cp-muted); font-size: 10.5px; }
.cp-speed input { flex: 1; min-width: 0; accent-color: var(--cp-accent); height: 4px; }
.cp-speed b { color: var(--cp-text); font-size: 10.5px; white-space: nowrap; min-width: 62px; text-align: right; }
.cp-actions { display: flex; gap: 6px; padding: 8px 10px; }
.cp-btn {
  flex: 1; border: 0; border-radius: 10px; padding: 7px 8px; font: 700 12px var(--font); cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #fff, #dff3fc); color: #05070a; box-shadow: 0 6px 18px -8px rgba(108,200,240,.8);
  transition: transform .15s, box-shadow .2s;
}
.cp-btn:hover { box-shadow: 0 8px 22px -6px rgba(108,200,240,.95); }
.cp-btn:active { transform: scale(.97); }
.cp-btn.busy { opacity: .7; }
.cp-hold { flex: 0 0 auto; background: var(--cp-bad); color: #fff; box-shadow: 0 6px 18px -8px rgba(255,90,82,.9); animation: holdPulse 1.6s infinite; }
@keyframes holdPulse { 50% { box-shadow: 0 0 0 5px rgba(255,90,82,.18); } }
.cp-ghostbtn { flex: 0 0 auto; background: rgba(255,255,255,.06); color: var(--cp-text); border: 1px solid var(--cp-line); box-shadow: none; }
.cp-banner-slot:empty, .cp-work:empty { display: none; }
.cp-banner-slot { padding: 0 10px 8px; }
.cp-banner { border-radius: 12px; padding: 9px 10px; font-size: 11.5px; line-height: 1.4; animation: msgIn .4s var(--ease) both; }
.cp-banner b { display: block; font-size: 12px; margin-bottom: 2px; }
.cp-banner.red { background: rgba(255,90,82,.12); border: 1px solid rgba(255,90,82,.45); color: #ffb0ab; }
.cp-banner.green { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.4); color: #a7f3c0; }
.cp-banner.amber { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.4); color: #fde08a; }
.cp-banner.blue { background: var(--cp-accent-soft); border: 1px solid rgba(108,200,240,.4); color: #cdeefc; }
.cp-banner .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.cp-banner .acts button { border: 1px solid var(--cp-line-2); background: rgba(255,255,255,.06); color: var(--cp-text); border-radius: 8px; padding: 6px; font: 600 11px var(--font); cursor: pointer; transition: background .2s; }
.cp-banner .acts button:hover { background: rgba(255,255,255,.12); }
.cp-banner .acts button.good { background: var(--cp-good); color: #052e16; border-color: transparent; }
.cp-banner .acts button[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.cp-banner .note { font-size: 10.5px; opacity: .8; margin-top: 6px; }
.cp-work { padding: 0 10px 10px; }
.cp-variant { border-radius: 10px; background: var(--cp-card-2); border: 1px solid var(--cp-line); padding: 9px 10px; font-size: 12px; line-height: 1.4; color: var(--cp-text); animation: msgIn .4s var(--ease) both; }
.cp-variant .lbl { display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--cp-accent); font-weight: 700; margin-bottom: 4px; }
.cp-variant .lbl .spinner { width: 11px; height: 11px; border-width: 1.5px; }
.cp-variant.hold-v { border-color: rgba(255,90,82,.45); background: rgba(255,90,82,.08); color: #ffb0ab; }
.cp-variant.hold-v .lbl { color: #ff8a84; }
.cp-steps { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.cp-steps span { font-size: 10.5px; color: var(--cp-muted); display: flex; gap: 6px; align-items: center; }
.cp-steps span::before { content: "✓"; color: var(--cp-accent); font-weight: 700; }

/* ---------- Phone / Telegram ---------- */
.phone {
  position: relative; border-radius: 38px; padding: 12px; background: #050608; border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px -30px rgba(108,200,240,.3), inset 0 0 0 2px #15171c;
  display: flex; flex-direction: column; height: 616px; min-width: 0;
}
.phone-notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 90px; height: 22px; border-radius: 999px; background: #000; z-index: 3; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 40px 12px 10px; background: #17212b; border-radius: 28px 28px 0 0; }
.tg-back { color: #6ab3f3; font-size: 24px; line-height: 1; }
.tg-head img { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #1c2a3a, #0e1620); padding: 4px; }
.tg-head b { display: block; font-size: 14px; }
.tg-head small { color: #7f91a4; font-size: 11.5px; }
.tg-feed {
  flex: 1; overflow-y: auto; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none;
  background: #0e1621 radial-gradient(circle at 20% 20%, rgba(106,179,243,.06), transparent 40%);
}
.tg-feed::-webkit-scrollbar { display: none; }
.tg-day { align-self: center; font-size: 11px; color: #c7d3df; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 999px; margin: 2px 0 4px; }
.tg-msg { align-self: flex-start; max-width: 92%; background: #182533; border-radius: 14px 14px 14px 4px; padding: 8px 10px 6px; font-size: 12.5px; line-height: 1.42; color: #e9eef3; animation: tgIn .45s var(--ease) both; }
.tg-msg.me { align-self: flex-end; background: #2b5278; border-radius: 14px 14px 4px 14px; }
@keyframes tgIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.tg-msg b { color: #fff; }
.tg-msg .lvl { font-weight: 700; }
.tg-msg .conv { margin-top: 6px; padding: 6px 8px; border-left: 2px solid #6ab3f3; background: rgba(0,0,0,.2); border-radius: 0 8px 8px 0; font-size: 11.5px; color: #c5d3e0; }
.tg-msg .conv div { margin: 1px 0; }
.tg-msg .conv .f { color: #ff9eb5; } .tg-msg .conv .y { color: #8fd0ff; }
.tg-msg pre { margin: 6px 0 0; font: 11px/1.45 ui-monospace, Consolas, monospace; color: #cfe3f5; white-space: pre-wrap; }
.tg-msg time { display: block; text-align: right; font-size: 10px; color: #7f91a4; margin-top: 2px; }
.tg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.tg-btns button { border: 0; border-radius: 8px; padding: 7px 4px; background: rgba(106,179,243,.16); color: #cfe6fb; font: 600 11.5px var(--font); cursor: pointer; transition: background .2s, transform .15s; }
.tg-btns button:hover { background: rgba(106,179,243,.28); }
.tg-btns button:active { transform: scale(.96); }
.tg-btns .done { grid-column: 1 / -1; text-align: center; font-size: 11.5px; color: #8fd0a8; padding: 6px; background: rgba(74,222,128,.08); border-radius: 8px; }
.tg-note { font-size: 10.5px; color: #ff9a90; margin-top: 4px; }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; background: #17212b; border-radius: 0 0 28px 28px; padding-bottom: 14px; }
.tg-kb button { border: 0; border-radius: 8px; padding: 8px 4px; background: #232e3c; color: #e9eef3; font: 500 12px var(--font); cursor: pointer; transition: background .2s; }
.tg-kb button:hover { background: #2c3a4b; }
.tg-kb-3 { grid-template-columns: repeat(3, 1fr); }
.phone-lg { height: 640px; max-width: 360px; width: 100%; margin: 0 auto; }

/* ---------- Event log ---------- */
.demo-log { margin-top: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-2); padding: 14px 18px; }
.demo-log-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.demo-log-head small { color: var(--dim); font-weight: 400; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cp-bad); box-shadow: 0 0 10px var(--cp-bad); animation: pulse 1.4s infinite; }
#demoLog { list-style: none; margin: 0; padding: 0; height: 132px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; font: 12.5px/1.5 ui-monospace, Consolas, monospace; mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); }
#demoLog li { flex: none; color: var(--muted); animation: msgIn .4s var(--ease) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#demoLog li time { color: var(--dim); margin-right: 10px; }
#demoLog li.l-ok { color: #a7f3c0; } #demoLog li.l-warn { color: #fde08a; } #demoLog li.l-bad { color: #ffb0ab; } #demoLog li.l-info { color: var(--ice); }

/* ---------- Inside (panels) ---------- */
.inside-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cp-big { position: relative; top: auto; right: auto; width: 100%; font-size: 12.5px; }
.cp-big .cp-head { padding: 12px 14px; }
.cp-tabs { display: flex; gap: 5px; padding: 0 10px 10px; }
.cp-tab { position: relative; flex: 1; border: 1px solid var(--cp-line); background: rgba(255,255,255,.04); color: var(--cp-muted); border-radius: 9px; padding: 7px 2px; font: 600 11.5px var(--font); cursor: pointer; white-space: nowrap; transition: all .2s; }
.cp-tab:hover { color: var(--cp-text); background: rgba(255,255,255,.08); }
.cp-tab.active { background: var(--cp-accent-soft); border-color: rgba(108,200,240,.45); color: var(--cp-accent); }
.cp-badge { position: absolute; top: -6px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--cp-good); color: #052e16; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.cp-hold.active-panel { outline: 2px solid #fff; outline-offset: 1px; }
.cp-panel { margin: 0 10px 10px; padding: 12px; border-radius: 14px; background: var(--cp-card); border: 1px solid var(--cp-line); min-height: 380px; }
.cp-panel > * { animation: msgIn .35s var(--ease) both; }
.cp-seg { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--cp-line); margin-bottom: 10px; }
.cp-seg button { flex: 1; border: 0; background: none; color: var(--cp-muted); font: 600 11.5px var(--font); padding: 6px 4px; border-radius: 7px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.cp-seg button.on { background: rgba(255,255,255,.09); color: var(--cp-text); box-shadow: inset 0 0 0 1px var(--cp-line-2); }
.cp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cp-tile { padding: 10px 8px; border-radius: 10px; background: var(--cp-card-2); border: 1px solid var(--cp-line); text-align: center; }
.cp-tile b { display: block; font: 700 22px var(--display); letter-spacing: -.02em; }
.cp-tile span { font-size: 10.5px; color: var(--cp-muted); }
.cp-tile.good b { color: var(--cp-good); } .cp-tile.bad b { color: #ff8a84; }
.cp-usage { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--cp-muted); }
.cp-usage span { padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--cp-line); }
.cp-usage b { color: var(--cp-text); }
.cp-select { width: 100%; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--cp-line-2); background: var(--cp-card-2); color: var(--cp-text); font: 12px var(--font); margin-bottom: 8px; }
.cp-trend { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cp-trend b { font: 700 24px var(--display); }
.cp-trend .up { color: var(--cp-good); font-size: 12px; font-weight: 700; } .cp-trend .down { color: #ff8a84; font-size: 12px; font-weight: 700; }
.cp-trend small { color: var(--cp-muted); }
.cp-chart { height: 150px; display: flex; align-items: flex-end; gap: 3px; padding: 6px 2px 0; border-bottom: 1px solid var(--cp-line); }
.cp-chart i { flex: 1; min-width: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cp-accent), rgba(108,200,240,.25)); height: 0; transition: height .7s var(--ease); position: relative; cursor: default; }
.cp-chart i:hover { background: linear-gradient(180deg, #fff, var(--cp-accent)); }
.cp-chart i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; background: #fff; color: #000; font: 700 10px var(--font); padding: 2px 5px; border-radius: 5px; white-space: nowrap; }
.cp-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--cp-dim); margin-top: 4px; }
.cp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.cp-kpis div { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--cp-card-2); border: 1px solid var(--cp-line); }
.cp-kpis b { display: block; font: 700 18px var(--display); }
.cp-kpis span { font-size: 10px; color: var(--cp-muted); }
.cp-list { display: flex; flex-direction: column; gap: 6px; }
.cp-row { border-radius: 12px; background: var(--cp-card-2); border: 1px solid var(--cp-line); padding: 9px 10px; transition: opacity .35s, transform .35s var(--ease); }
.cp-row.leave { opacity: 0; transform: translateX(30px); }
.cp-row-top { display: flex; align-items: center; gap: 8px; }
.cp-row-top .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.cp-row-top b { font-size: 12.5px; }
.cp-row-top small { margin-left: auto; color: var(--cp-dim); font-size: 10.5px; white-space: nowrap; }
.cp-row-top .exp { border: 0; background: none; color: var(--cp-muted); cursor: pointer; font-size: 12px; padding: 0 2px; transition: transform .25s; }
.cp-row.open .exp { transform: rotate(90deg); }
.cp-row p { margin: 5px 0 0; color: var(--cp-muted); font-size: 11.5px; line-height: 1.4; }
.cp-row p q { color: var(--cp-text); }
.cp-row .tagx { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.tagx.red { background: rgba(255,90,82,.15); color: #ff8a84; } .tagx.amber { background: rgba(251,191,36,.14); color: #fcd34d; } .tagx.green { background: rgba(74,222,128,.14); color: #86efac; } .tagx.blue { background: var(--cp-accent-soft); color: var(--cp-accent); }
.cp-row .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.cp-row .acts button { border: 1px solid var(--cp-line-2); background: rgba(255,255,255,.05); color: var(--cp-text); border-radius: 8px; padding: 6px; font: 600 11px var(--font); cursor: pointer; transition: background .2s; }
.cp-row .acts button:hover { background: rgba(255,255,255,.11); }
.cp-row .acts button.good { background: var(--cp-good); color: #052e16; border-color: transparent; }
.cp-row .acts button.danger { background: rgba(255,90,82,.16); color: #ffb0ab; border-color: rgba(255,90,82,.4); }
.cp-row .acts .wide { grid-column: 1 / -1; }
.cp-convo { display: none; margin-top: 8px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.28); flex-direction: column; gap: 4px; }
.cp-row.open .cp-convo { display: flex; animation: msgIn .3s var(--ease); }
.cp-convo .b { max-width: 82%; padding: 5px 9px; border-radius: 12px; font-size: 11.5px; line-height: 1.35; }
.cp-convo .b.f { align-self: flex-start; background: #232833; }
.cp-convo .b.y { align-self: flex-end; background: rgba(108,200,240,.2); color: #e2f5fd; }
.cp-convo .b.l { border: 1px solid rgba(251,191,36,.5); }
.cp-search { width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--cp-line-2); background: rgba(0,0,0,.3); color: var(--cp-text); font: 12px var(--font); margin-bottom: 8px; outline: 0; }
.cp-search:focus { border-color: rgba(108,200,240,.55); }
.cp-hint { font-size: 10.5px; color: var(--cp-dim); margin-top: 10px; line-height: 1.45; }
.cp-empty { text-align: center; color: var(--cp-dim); padding: 20px 0; font-size: 12px; }
.cp-note { white-space: pre-line; font-size: 11.5px; color: var(--cp-text); background: rgba(0,0,0,.25); padding: 8px; border-radius: 8px; margin-top: 6px; line-height: 1.5; }
.cp-btn-line { display: flex; gap: 6px; margin-top: 8px; }
.cp-btn-line button { flex: 1; border: 1px solid var(--cp-line-2); background: rgba(255,255,255,.05); color: var(--cp-text); border-radius: 8px; padding: 7px; font: 600 11px var(--font); cursor: pointer; }
.cp-btn-line button.prim { background: linear-gradient(180deg, #fff, #dff3fc); color: #05070a; border-color: transparent; }
.cp-log-row { display: flex; gap: 8px; font-size: 11.5px; padding: 6px 0; border-bottom: 1px solid var(--cp-line); }
.cp-log-row time { color: var(--cp-dim); white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; }
.cp-pair { border-radius: 10px; background: var(--cp-card-2); border: 1px solid var(--cp-line); padding: 8px 10px; font-size: 11.5px; line-height: 1.45; }
.cp-pair .f { color: #ff9eb5; } .cp-pair .y { color: var(--cp-accent); }

/* ---------- Popup replica ---------- */
.popup-rep {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--cp-line-2); background: var(--cp-bg); color: var(--cp-text); font-size: 13px;
  box-shadow: 0 40px 100px -40px rgba(108,200,240,.35); display: flex; flex-direction: column; max-height: 760px;
}
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--cp-line); background: linear-gradient(135deg, rgba(108,200,240,.12), transparent 60%), var(--cp-card); }
.pp-head h4 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 16px var(--display); }
.pp-head h4 img { width: 26px; filter: drop-shadow(0 0 8px rgba(108,200,240,.6)); }
.pp-head small { color: var(--cp-muted); font-size: 11px; }
.pp-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; transition: all .3s; }
.pp-pill.on { background: var(--cp-accent-soft); color: var(--cp-accent); }
.pp-pill.off { background: rgba(255,90,82,.14); color: #ff8a84; }
.pp-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2d33 transparent; }
.pp-body section { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 14px; padding: 12px 14px; }
.pp-body h5 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--cp-muted); font-weight: 700; }
.pp-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; cursor: pointer; }
.pp-row + .pp-row { border-top: 1px solid var(--cp-line); }
.pp-row > span { flex: 1; }
.pp-row b { display: block; font-weight: 600; font-size: 13px; }
.pp-row small { display: block; color: var(--cp-muted); font-size: 11.5px; margin-top: 1px; }
.pp-sw { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #2a2e36; position: relative; cursor: pointer; flex: none; margin: 1px 0 0; transition: background .25s; }
.pp-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.pp-sw:checked { background: var(--cp-accent); box-shadow: 0 0 14px -2px rgba(108,200,240,.7); }
.pp-sw:checked::after { transform: translateX(16px); }
.pp-field { margin-top: 8px; }
.pp-field label { display: block; font-size: 12px; color: var(--cp-muted); margin-bottom: 4px; }
.pp-field small { display: block; font-size: 11px; color: var(--cp-dim); margin-top: 4px; }
.pp-field code { color: var(--cp-accent); }
.pp-input, .pp-select { width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--cp-line-2); background: var(--cp-card-2); color: var(--cp-text); font: 13px var(--font); }
.pp-input.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--cp-muted); }
.pp-speed { display: flex; align-items: center; gap: 10px; }
.pp-speed input { flex: 1; accent-color: var(--cp-accent); }
.pp-hint { display: block; font-size: 11px; color: var(--cp-dim); margin-top: 6px; }
.popup-rep textarea { width: 100%; min-height: 110px; resize: vertical; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--cp-line-2); background: var(--cp-card-2); color: var(--cp-text); font: 12px/1.5 var(--font); outline: 0; }
.popup-rep textarea:focus { border-color: rgba(108,200,240,.55); box-shadow: 0 0 0 3px rgba(108,200,240,.12); }
.pp-meter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-meter span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--cp-card-2); border: 1px solid var(--cp-line); color: var(--cp-muted); }
.pp-meter b { color: var(--cp-text); }
.pp-meter .pp-total { border-color: rgba(108,200,240,.4); color: var(--cp-accent); }
.pp-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--cp-line); background: var(--cp-card); }
.pp-save { flex: 1; padding: 10px; border: 0; border-radius: 10px; font: 700 13px var(--font); cursor: pointer; background: linear-gradient(180deg, #fff, #dff3fc); color: #05070a; box-shadow: 0 8px 24px -10px rgba(108,200,240,.9); transition: transform .15s; }
.pp-save:active { transform: scale(.98); }
#ppSaved { min-width: 90px; font-size: 12px; color: var(--cp-accent); }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.modes .lead b { color: var(--text); }
.mode-switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 26px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.mode-switch button { border: 0; background: none; color: var(--muted); padding: 10px 20px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; transition: all .3s; }
.mode-switch button.on { background: linear-gradient(180deg, #fff, #dff3fc); color: #05070a; box-shadow: 0 6px 24px -6px rgba(108,200,240,.7); }
.mode-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.mode-points li { display: flex; gap: 10px; color: #cdd3dc; animation: msgIn .4s var(--ease) both; }
.mode-points li::before { content: "✓"; color: var(--sky); font-weight: 700; }
.mode-visual { border-radius: 24px; border: 1px solid var(--border-2); background: radial-gradient(ellipse at 50% 0%, rgba(108,200,240,.1), transparent 60%), var(--bg-2); padding: 30px; min-height: 340px; display: flex; flex-direction: column; gap: 10px; }
.mv-bubble { max-width: 70%; padding: 10px 14px; border-radius: 18px; font-size: 14px; }
.mv-bubble.in { background: #1b1e24; border-bottom-left-radius: 6px; }
.mv-sent { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 1; justify-content: flex-start; }
.mv-sent .mv-bubble { background: linear-gradient(180deg, #8fd6f5, var(--sky)); color: #03121b; border-bottom-right-radius: 6px; animation: msgIn .45s var(--ease) both; }
.mv-composer { min-height: 48px; padding: 12px 16px; border-radius: 24px; background: #15171c; border: 1px solid var(--border-2); font-size: 14px; transition: border-color .3s, box-shadow .3s; }
.mv-composer.draft { border-color: rgba(108,200,240,.7); box-shadow: 0 0 0 4px rgba(108,200,240,.12); }
.mv-foot { min-height: 40px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mv-foot .kbd { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface); font: 600 12px ui-monospace, Consolas, monospace; color: var(--text); }
.mv-foot .tline { flex: 1; min-width: 160px; height: 4px; border-radius: 4px; background: #1b1e24; overflow: hidden; }
.mv-foot .tline i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), #fff); }

/* ---------- Persona tags ---------- */
.persona-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pd-tag { padding: 7px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(0,0,0,.35); border: 1px solid var(--border); color: var(--ice); animation: tagPop 4s var(--ease) infinite; }
.pd-tag:nth-child(2) { animation-delay: .4s; } .pd-tag:nth-child(3) { animation-delay: .8s; } .pd-tag:nth-child(4) { animation-delay: 1.2s; } .pd-tag:nth-child(5) { animation-delay: 1.6s; }
@keyframes tagPop { 0%, 70%, 100% { border-color: var(--border); box-shadow: none; } 10%, 30% { border-color: rgba(108,200,240,.5); box-shadow: 0 0 20px -6px rgba(108,200,240,.6); } }

/* ---------- Telegram section ---------- */
.tg-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hold-flow { padding: 28px; border-radius: 24px; border: 1px solid var(--border); background: var(--bg-2); }
.hf-step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.hf-step > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); border: 1px solid var(--border-2); font-weight: 700; }
.hf-step b { display: block; font-size: 15px; }
.hf-step small { color: var(--muted); font-size: 13px; }
.hf-red { border-color: rgba(255,90,82,.4); background: rgba(255,90,82,.07); }
.hf-red > span { background: rgba(255,90,82,.2); border-color: rgba(255,90,82,.5); animation: holdPulse 1.6s infinite; }
.hf-ok { border-color: rgba(108,200,240,.4); background: rgba(108,200,240,.07); }
.hf-ok > span { background: var(--sky); color: #000; border: 0; }
.hf-arrow { text-align: center; color: var(--dim); padding: 4px 0; }
.safety-cards { display: grid; gap: 14px; }
.s-card { padding: 22px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.s-card b { font-size: 16px; }
.s-card p { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; }

/* ---------- Docs page ---------- */
.docs { width: min(1120px, 100%); margin: 0 auto; padding: 130px 24px 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; }
.docs-nav { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: all .2s; }
.docs-nav a:hover, .docs-nav a.on { color: var(--text); background: var(--surface-2); }
.docs-body h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.docs-body h2 { font-size: 28px; margin: 56px 0 14px; scroll-margin-top: 110px; }
.docs-body h3 { font-size: 18px; margin: 26px 0 8px; }
.docs-body p, .docs-body li { color: #c3c9d3; }
.docs-body li { margin: 6px 0; }
.docs-body code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; color: var(--ice); }
.docs-body a { color: var(--ice); text-decoration: underline; }
.callout { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(108,200,240,.35); background: rgba(108,200,240,.07); color: #d6effb; margin: 16px 0; }
.callout.warn { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.07); color: #fde9b0; }
.cmd-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.cmd-table th, .cmd-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmd-table th { color: var(--dim); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cmd-table td:first-child { white-space: nowrap; }
.docs-steps { counter-reset: s; list-style: none; padding: 0; }
.docs-steps > li { counter-increment: s; position: relative; padding: 4px 0 14px 46px; }
.docs-steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--display); background: linear-gradient(180deg, #fff, var(--ice)); color: #000; }
.changelog { border-left: 2px solid var(--border-2); padding-left: 20px; }
.changelog h3 { display: flex; align-items: center; gap: 10px; }
.changelog h3 span { font: 500 12px var(--font); color: var(--dim); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf img { width: 140px; margin: 0 auto 24px; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(108,200,240,.4)); }
.nf h1 { font-size: clamp(60px, 12vw, 120px); }
.nf p { color: var(--muted); margin: 10px 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .demo-stage { grid-template-columns: 1fr; }
  .phone { height: 520px; max-width: 380px; width: 100%; margin: 0 auto; }
  .inside-grid { grid-template-columns: 1fr; }
  .popup-rep { max-width: 520px; width: 100%; margin: 0 auto; }
  .cp-big { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 960px) {
  .modes, .tg-section, .safety-grid { grid-template-columns: 1fr; gap: 40px; }
  .modes-copy, .tg-copy { text-align: center; }
  .mode-points { align-items: center; }
  .tg-copy .crypto-points { text-align: left; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .aw-body { grid-template-columns: 1fr; height: auto; }
  .sc-side { display: none; }
  .sc-chat { min-height: 420px; }
  .sc-thread, .sc-composer { padding-right: 16px; }
  .cp-overlay:not(.cp-big) { position: relative; top: auto; right: auto; width: auto; margin: 10px; order: -1; }
  .aw-body { display: flex; flex-direction: column; }
  .sc-thread { max-height: 330px; min-height: 260px; }
  .runs-on span { font-size: 16px; }
  .cp-tiles { grid-template-columns: repeat(2, 1fr); }
  .cp-kpis { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .demo-controls { flex-direction: column; }
  .tabs { width: 100%; }
  .tab { padding: 9px 12px; font-size: 13px; }
  .hold-flow { padding: 16px; }
  .mode-visual { padding: 18px; }
  .cmd-table td:first-child { white-space: normal; }
}

.demo-log + .footnote { margin-top: 14px; }

/* ---------- Checkout: credit packs ---------- */
.co-demo { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: #fde08a; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }
.co-demo code { color: #ffe9b0; }
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pack { position: relative; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.pack:hover { transform: translateY(-2px); border-color: var(--border-2); }
.pack.on { border-color: rgba(108,200,240,.65); background: rgba(108,200,240,.08); box-shadow: 0 0 24px -8px rgba(108,200,240,.6); }
.pack b { display: block; font: 700 22px var(--display); letter-spacing: -.02em; }
.pack span { font-size: 12px; color: var(--muted); }
.pack em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 700; color: #052e16; background: #4ade80; padding: 2px 7px; border-radius: 999px; }
.co-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.co-p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
#coNewBox, #coTopBox { margin-top: 8px; }
#coCoinWrap { margin-top: 10px; }
.keybox { display: grid; gap: 8px; margin-bottom: 16px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(108,200,240,.14), rgba(108,200,240,.03)); border: 1px solid rgba(108,200,240,.4); }
.keybox small { color: var(--muted); font-size: 12px; }
.tx-row { display: flex; gap: 8px; }
.tx-row .co-input { flex: 1; min-width: 0; }
.co-input.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.done .keybox { text-align: left; margin-top: 6px; }
.done .btn + .btn { margin-top: 10px; }

/* ---------- Pricing: credit packs ---------- */
.packs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.packs-row .plan { padding: 26px 22px; }
.packs-row .price { margin-bottom: 18px; }
.packs-row .price .amt { font-size: 48px; }
.packs-row li b { color: var(--text); }
.bonus { font-style: normal; font-size: 11px; font-weight: 700; color: #052e16; background: #4ade80; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 30px auto 26px; color: var(--muted); font-size: 14px; }
.included span:first-child { color: var(--text); font-weight: 600; }
.ci.card { background: #1b1e24; font-size: 11px; }
@media (max-width: 1100px) { .packs-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .packs-row { grid-template-columns: 1fr; } }

/* ---------- Account page ---------- */
.acct { width: min(1000px, 100%); margin: 0 auto; padding: 130px 24px 80px; }
.acct h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.acct .lead { margin-top: 0; }
.acct-login { display: flex; gap: 10px; margin: 26px 0; max-width: 620px; }
.acct-login .co-input { flex: 1; min-width: 0; }
.acct-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 10px; }
.acct-card { padding: 22px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); min-width: 0; }
.acct-card h3 { font-size: 15px; color: var(--muted); font-family: var(--font); font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.acct-bal { font: 700 clamp(44px, 7vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.acct-bal.low { color: #ff8a84; }
.acct-sub { color: var(--muted); margin: 10px 0 18px; }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.acct-stats div { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.acct-stats b { display: block; font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.acct-stats span { font-size: 12px; color: var(--muted); }
.acct-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 1px solid var(--border); margin-top: 8px; }
.acct-chart i { flex: 1; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--sky), rgba(108,200,240,.2)); position: relative; }
.acct-chart i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; background: #fff; color: #000; font: 700 11px var(--font); padding: 2px 6px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.acct-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; margin-top: 4px; }
.acct-orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.acct-orders td, .acct-orders th { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.acct-orders th { color: var(--dim); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.acct-orders td.num { font-variant-numeric: tabular-nums; }
.st-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.st-pill.ok { background: rgba(74,222,128,.14); color: #86efac; }
.st-pill.wait { background: rgba(251,191,36,.12); color: #fcd34d; }
.acct-msg { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(108,200,240,.4); background: rgba(108,200,240,.08); margin: 18px 0; }
.acct-empty { color: var(--muted); }
.tw { overflow-x: auto; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } .acct-login { flex-direction: column; } }
.pp-credit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(108,200,240,.14), rgba(108,200,240,.03)); border: 1px solid rgba(108,200,240,.35); }
.pp-credit b { display: block; font: 800 20px var(--display); letter-spacing: -.02em; }
.pp-credit small { color: var(--cp-muted); font-size: 11.5px; }
.pp-credit button { border: 0; border-radius: 9px; padding: 8px 12px; font: 700 12px var(--font); cursor: pointer; background: linear-gradient(180deg, #fff, #dff3fc); color: #05070a; white-space: nowrap; }
.launch-pill { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #052e16; background: linear-gradient(90deg, #86efac, #6cc8f0); }
.cardhelp { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(108,200,240,.35); background: rgba(108,200,240,.06); }
.cardhelp summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); padding: 0; }
.cardhelp summary::after { content: none; }
.cardhelp ol { margin: 10px 0 6px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: #cdd3dc; }
.cardhelp a { color: var(--ice); text-decoration: underline; }
.cardhelp p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
