:root {
  --bg: #0b0620;
  --ink: #f7f4ff;
  --dim: #d9d0f0;
  --muted: #a99bc4;
  --line: rgba(192, 132, 252, .22);
  --line-strong: rgba(168, 85, 247, .55);
  --magenta: #c084fc;
  --gold: #8b5cf6;
  --gold-2: #c084fc;
  --up: #34d399;
  --down: #f43f5e;
  --chrome: rgba(11, 6, 32, .82);
  --panel: rgba(26, 16, 64, .92);
  --soft: rgba(192, 132, 252, .08);
  color-scheme: dark;
  --pad: clamp(14px, 2.6vw, 34px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hw: min(56vw, 640px);
  --persp: 1150px;
  --cw: 160px;
  --tap: 44px;
  --max: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --serif: "Syne", "Segoe UI", sans-serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="light"] body::before {
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(76,29,149,.28), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(124,58,237,.22), transparent),
    radial-gradient(1.4px 1.4px at 74% 16%, rgba(76,29,149,.2), transparent),
    radial-gradient(1px 1px at 86% 58%, rgba(124,58,237,.18), transparent);
}
html[data-theme="light"] body {
  background:
    radial-gradient(820px 380px at 88% -8%, rgba(255, 186, 92, .55), transparent 62%),
    radial-gradient(640px 320px at 8% -4%, rgba(126, 186, 255, .4), transparent 58%),
    linear-gradient(180deg, #e7f3ff 0%, #f4f0ff 46%, #f7f4ff 100%);
}
html[data-theme="light"] {
  --bg: #f4f0ff;
  --ink: #1a1033;
  --dim: #3b2a5c;
  --muted: #5c4d78;
  --line: rgba(76, 29, 149, .14);
  --line-strong: rgba(109, 40, 217, .4);
  --gold: #6d28d9;
  --gold-2: #7c3aed;
  --up: #0d7a45;
  --down: #c42332;
  --chrome: rgba(246, 243, 255, .92);
  --panel: #fffbff;
  --soft: rgba(255, 255, 255, .72);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  background: var(--bg);
  overflow-x: hidden; min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100dvh; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(192,132,252,.4), transparent),
    radial-gradient(1.4px 1.4px at 74% 16%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 86% 58%, rgba(139,92,246,.35), transparent);
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 64px); }
h2 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 42px); }
p { margin: 0 0 .8em; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 400; padding: 10px 14px; background: var(--ink); color: #2a1020; text-decoration: none; border-radius: 999px; transform: translateY(-140%); }
.skip:focus { transform: none; }
header.chrome {
  position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(12px + var(--safe-top)) var(--pad) 12px;
  background: var(--chrome); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
body.academy-home header.chrome { position: fixed; left: 0; right: 0; background: linear-gradient(#000, transparent); border-bottom-color: transparent; }
html[data-theme="light"] body.academy-home header.chrome { background: linear-gradient(rgba(231, 243, 255, .92), transparent); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(15px, 1.5vw, 20px); letter-spacing: .12em; line-height: 1; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.wordmark img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 18px rgba(76, 29, 149, .28); }
.hero-logo { width: 92px; height: 92px; margin: 0 auto 4px; border-radius: 24px; object-fit: cover; box-shadow: 0 18px 40px rgba(147, 18, 255, .4); }
.wordmark .word { display: flex; flex-direction: column; gap: 4px; }
.wordmark small { font-family: var(--sans); font-size: 10px; letter-spacing: .28em; opacity: .78; }
.desk { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.nav-links, .nav-tools { display: flex; gap: 4px; align-items: center; }
.nav-links { margin: 0 auto; }
.nav-tools { flex-shrink: 0; }
.desk a, .lang, .enter, .solid, .ghost { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; text-decoration: none; border-radius: 999px; font-size: 13px; }
.desk a { font-size: 13px; font-weight: 500; }
.desk a[aria-current="page"] { color: #fff; background: linear-gradient(90deg, #6d28d9, #a855f7); }
.lang, .enter, .ghost { border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); }
.solid { background: linear-gradient(90deg, #a020ff, #7a1cf8); color: #fff; border: 0; font-weight: 600; }
.solid:hover, .ghost:hover, .desk a[aria-current="page"]:hover { box-shadow: 0 0 22px rgba(147, 18, 255, .55); }
.lang { min-width: 0; padding: 0 9px; font-size: 12px; letter-spacing: .02em; }
.hero-actions .solid, .hero-actions .ghost, form .solid { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; min-width: 44px; min-height: 44px; color: var(--ink); }
body.nav-open .desk { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 16px; right: 16px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
body.nav-open .nav-links, body.nav-open .nav-tools { flex-direction: column; align-items: stretch; margin: 0; }
#scrolltrack { height: 116vh; pointer-events: none; }
#stage { position: fixed; inset: 0; z-index: 10; perspective: var(--persp); perspective-origin: 50% 50%; overflow: hidden; touch-action: none; }
@media (pointer: coarse) { #stage { touch-action: pan-y; } }
#world, #orb { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform-style: preserve-3d; }
#orb { top: 0; left: 0; }
#headline { position: absolute; top: 0; left: 0; width: var(--hw); margin-left: calc(var(--hw) / -2); text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3.7vw, 52px); line-height: 1.08; color: #fff; text-shadow: 0 2px 28px rgba(40, 0, 30, .55); pointer-events: none; user-select: none; }
#headline .inner { position: absolute; top: 0; left: 0; width: 100%; transform: translateY(-50%); text-wrap: balance; }
#headline .inner span { display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(7px); }
body.revealed #headline .inner span { opacity: 1; transform: none; filter: blur(0); transition: opacity 1.05s var(--ease), transform 1.15s var(--ease), filter 1.05s var(--ease); transition-delay: calc(.35s + var(--i) * .085s); }
#orb .card { position: absolute; top: 0; left: 0; width: var(--cw); height: calc(var(--cw) / 1.5); margin-left: calc(var(--cw) / -2); margin-top: calc(var(--cw) / -3); border-radius: 14px; text-decoration: none; color: #fff; }
#orb .card.tall { height: calc(var(--cw) * 1.25); margin-top: calc(var(--cw) * -.625); }
#orb .card figure, .face { position: relative; width: 100%; height: 100%; margin: 0; overflow: hidden; border-radius: 14px; }
.face { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; text-align: left; }
.face .bolt { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
#film { width: min(860px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: var(--ink); background: var(--panel); }
#film::backdrop { background: rgba(10, 2, 16, .72); }
#film form { display: flex; justify-content: flex-end; }
.frame { position: relative; aspect-ratio: 16/9; margin: 8px 0 12px; border-radius: 14px; overflow: hidden; background: #100216; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.face .eyebrow { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.face strong { font-family: var(--serif); font-weight: 400; font-size: clamp(13px, 1.15vw, 18px); line-height: 1.15; text-shadow: 0 8px 16px rgba(0,0,0,.28); }
#orb .card figure::after { content: ""; position: absolute; inset: 0; border-radius: 14px; background: rgba(20, 4, 24, var(--d, 0)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); pointer-events: none; }
#orb .card figure { transition: transform .5s var(--ease); }
#orb .card:hover figure, #orb .card:focus-visible figure { transform: scale(1.045); }
.g0 { background: linear-gradient(160deg, #4c1d95, #140a33 58%, #0b0620); }
.g1 { background: linear-gradient(155deg, #3b176e, #1a1040); }
.g2 { background: linear-gradient(160deg, #5b21b6, #160b2e); }
.g3 { background: linear-gradient(150deg, #6d28d9, #12081f); }
.g4 { background: linear-gradient(165deg, #2e1065, #0b0620); }
.g5 { background: linear-gradient(155deg, #7e22ce, #1a1030); }
.g6 { background: linear-gradient(160deg, #312e81, #100818); }
.g7 { background: linear-gradient(150deg, #86198f, #140818); }
.g8 { background: linear-gradient(160deg, #4a1d6e, #0c0618); }
.vig { position: fixed; inset: 0; z-index: 12; pointer-events: none; background: radial-gradient(ellipse 88% 92% at 50% 50%, transparent 46%, rgba(28, 4, 36, .22) 78%, rgba(16, 2, 22, .62) 100%); }
body.gridview #stage, body.gridview .vig { opacity: 0 !important; pointer-events: none; }
.bio, .colophon { position: fixed; z-index: 55; bottom: calc(var(--pad) + var(--safe-bottom)); transition: opacity .45s var(--ease); }
.bio { left: calc(var(--pad) + var(--safe-left)); max-width: min(340px, 42vw); }
.colophon { right: calc(var(--pad) + var(--safe-right)); max-width: min(380px, 40vw); text-align: right; }
.bio p, .colophon p { margin: 0; font-size: 13.5px; color: var(--dim); }
.quote { font-family: var(--serif); font-style: italic; font-size: 16px !important; }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.who img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; object-position: center 18%; }
.who b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; }
.who span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.deep .bio, body.deep .colophon, body.past .bio, body.past .colophon, body.gridview .bio, body.gridview .colophon { opacity: 0; pointer-events: none; }
.cue { position: fixed; left: 50%; bottom: calc(var(--pad) + var(--safe-bottom)); transform: translateX(-50%); z-index: 54; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247,241,232,.72); }
body.deep .cue, body.past .cue, body.gridview .cue { opacity: 0; }
.gridbtn { position: fixed; left: calc(var(--pad) + var(--safe-left)); bottom: calc(var(--pad) + var(--safe-bottom)); z-index: 56; width: 44px; height: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; opacity: 0; pointer-events: none; }
body.deep .gridbtn, body.gridview .gridbtn { opacity: 1; pointer-events: auto; }
.gridbtn b { background: var(--ink); border-radius: 2px; }
#grid { position: fixed; inset: 0; z-index: 20; overflow: auto; background: rgba(16, 4, 24, .94); padding: 110px var(--pad) 48px; }
#grid[hidden] { display: none !important; }
.rows { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rows a { display: block; min-height: 150px; border-radius: 14px; text-decoration: none; color: #fff; }
.rows .face { min-height: 150px; }
.rows .face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(6, 2, 18, .82)); pointer-events: none; }
.rows .eyebrow, .rows strong, .cover, .cover span { position: relative; z-index: 1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
#intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(226, 75, 154, .55), transparent 42%), radial-gradient(circle at 50% 60%, rgba(124, 58, 237, .45), transparent 46%), #1a0824; }
.mark { font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; text-align: center; font-size: clamp(28px, 4vw, 48px); }
.mark small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .42em; }
#skip { position: absolute; right: var(--pad); bottom: var(--pad); min-height: var(--tap); padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(247,241,232,.4); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: #fff; }
#intro.gone { opacity: 0; pointer-events: none; transition: opacity .5s linear; }
main { position: relative; z-index: 5; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
body.academy-home main { width: min(var(--max), calc(100% - var(--pad) * 2)); }
.kicker { margin: 0 0 8px; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--gold-2); }
.lead { max-width: 68ch; color: var(--dim); font-size: 18px; }
.muted, .meta, small { color: var(--muted); }
.num { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.risk, .note, main .card, .lesson, .buy { border: 1px solid var(--line); background: var(--soft); border-radius: 18px; }
.risk, .note { padding: 14px 16px; color: var(--dim); }
main .card, .lesson { display: block; padding: 16px; color: inherit; text-decoration: none; }
.cover { aspect-ratio: 16/9; border-radius: 14px; margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px; }
.grid, .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.stats article { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); }
.stats strong, .price { display: block; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; list-style: none; }
.steps li { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); }
.steps b { color: var(--gold-2); font-family: var(--serif); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.buy { position: sticky; top: 84px; display: grid; gap: 10px; padding: 14px; }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
.docs aside, .side { position: sticky; top: 84px; align-self: start; }
.panel { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
.side { display: grid; gap: 8px; }
.side a { text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.board { overflow: auto; border: 1px solid var(--line); border-radius: 16px; max-height: 360px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-size: .82rem; }
tr.pin td { background: rgba(231, 177, 90, .12); }
.tape { overflow: hidden; border-block: 1px solid var(--line); margin: 22px 0; }
.tape div { display: flex; gap: 28px; width: max-content; animation: tape 28s linear infinite; padding: 10px 0; }
.tape span { white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes tape { to { transform: translateX(-50%); } }
.row, .filters, .inline, .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
input, select, textarea { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; min-height: 42px; }
textarea { min-height: 90px; }
.stack { display: grid; gap: 12px; }
.ajustes { max-width: 520px; }
.ajustes .hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ajustes .solid { width: 100%; margin-top: 4px; }
.narrow { max-width: 460px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.checks { padding-left: 1.1rem; }
details { border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.plain { list-style: none; padding: 0; display: grid; gap: 10px; }
.ops-scroll { max-height: 280px; overflow: auto; padding-right: 8px; }
.plot { width: 100%; height: auto; display: block; margin: 8px 0 14px; border-radius: 12px; background: #07060e; }
.bot-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; align-items: start; }
.bot-shot { width: 100%; height: auto; display: block; border-radius: 16px; background: #07060e; }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.order-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.orders .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.orders .hero-actions form { margin: 0; }
.orders .check { display: flex; gap: 8px; align-items: center; }
@media (max-width: 800px) { .order-grid { grid-template-columns: 1fr; } }
.plain li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; width: min(480px, calc(100% - 24px)); display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 18px; background: rgba(16, 8, 28, .94); color: #f7f4ff; border: 1px solid rgba(167, 139, 250, .45); box-shadow: 0 18px 48px rgba(0, 0, 0, .42); }
.toast p { margin: 0; line-height: 1.4; }
.toast-mark { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.toast-ok .toast-mark { background: #16a34a; color: #fff; }
.toast-note .toast-mark { background: #f5c16c; color: #2a1020; }
html[data-theme="light"] .toast { background: rgba(255, 251, 255, .96); color: #2a1020; border-color: rgba(147, 18, 255, .35); }
.toast { transition: opacity .4s ease, transform .4s ease; }
.toast.toast-hide { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.desk-fig { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.desk-fig .pair { font-size: clamp(16px, 1.6vw, 24px); letter-spacing: -0.02em; }
.book-wrap { overflow: auto; max-height: 260px; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; }
table.book { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.book th, table.book td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.book th { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
table.book td.num, table.book th:nth-child(n+2) { text-align: right; }
table.book tr.up td:first-child { color: #34d399; }
table.book tr.down td:first-child { color: #f87171; }
table.book tr.inside td:last-child { color: #34d399; }
table.book tr.over td:last-child { color: #f5c16c; }
table.book tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 800px) { .desk-fig { grid-template-columns: 1fr 1fr; } }
.bal { display: grid; gap: 10px; margin: 12px 0 18px; }
.bal-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bal-row .up { color: #34d399; }
.bal-row .down { color: #f87171; text-align: right; }
.bal-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(248, 113, 113, .85); }
.bal-bar i { display: block; height: 100%; }
.bal-bar i.up { background: #34d399; }
.cap-move { display: grid; gap: 10px; }
@media (min-width: 720px) { .cap-move { grid-template-columns: 1fr 140px 1fr auto; align-items: end; } }
footer.foot { position: relative; z-index: 5; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 18px; color: var(--muted); }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: none; }
.socials { list-style: none; padding: 8px 0 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(147, 18, 255, .55); color: #f7f4ff; background: rgba(8, 6, 16, .72); }
.socials a:hover { box-shadow: 0 0 18px rgba(147, 18, 255, .55); }
.socials svg { width: 18px; height: 18px; display: block; }
html[data-theme="light"] .socials a { color: #3b0764; background: #fff; }
.auth-card { width: min(920px, 100%); margin: 12px auto 40px; display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid rgba(147, 18, 255, .55); border-radius: 22px; overflow: hidden; background: rgba(8, 6, 16, .86); box-shadow: inset 0 1px 0 #f3e8ff, 0 24px 60px rgba(147, 18, 255, .22); }
.auth-brand { padding: 36px 28px; display: grid; align-content: center; gap: 10px; background: radial-gradient(420px 220px at 20% 0%, rgba(160, 32, 255, .55), transparent 70%), #12081f; }
.auth-brand img { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; }
.auth-brand h1 { font-size: clamp(32px, 4vw, 46px); }
.auth-brand p:last-child { color: #d9d0f0; margin: 0; }
.auth-card form { padding: 32px 28px; align-content: center; }
.auth-card .solid, .auth-card .ghost { width: 100%; }
.auth-switch { margin: 4px 0 0; }
html[data-theme="light"] .auth-card { background: rgba(255, 251, 255, .94); }
html[data-theme="light"] .auth-brand p:last-child { color: #3b2a5c; }
.tutorials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tutorial { position: relative; display: flex; align-items: flex-end; min-height: 210px; text-decoration: none; color: #fff; border: 1px solid rgba(243, 232, 255, .45); border-radius: 16px; overflow: hidden; background: #140a33; box-shadow: 0 14px 30px rgba(147, 18, 255, .22); }
.tutorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tutorial::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6, 2, 18, .88)); }
.tutorial strong { position: relative; z-index: 1; padding: 16px; font-family: var(--serif); font-size: 20px; line-height: 1.15; text-shadow: 0 8px 16px rgba(0,0,0,.45); }
html[data-theme="light"] .tutorial { background: #fff; }
.pending { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
progress { width: 100%; height: 10px; accent-color: var(--gold); }
blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--magenta); }
button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 980px) {
  .desk a, .lang, .enter, .ghost { padding: 0 8px; font-size: 13px; }
  .wordmark { letter-spacing: .08em; }
}
@media (max-width: 900px) {
  .desk { display: none; }
  .menu-btn { display: inline-flex; }
  .grid, .steps, .stats, .split, .docs, .panel, footer.foot, .grid.two, .auth-card, .tutorials { grid-template-columns: 1fr; }
  .bio, .colophon, .cue { display: none; }
  #headline { font-size: clamp(22px, 6.4vw, 34px); }
  .buy, .docs aside, .side { position: static; }
  .filters, .inline, .actions { align-items: stretch; }
  .filters > *, .inline > *, .actions > * { flex: 1 1 140px; }
  #film { width: calc(100% - 16px); max-height: calc(100dvh - 24px); overflow: auto; padding: 12px; }
  #film h2 { font-size: 22px; }
  main, footer.foot { width: min(var(--max), calc(100% - 20px)); }
}
@media (max-width: 420px) {
  h1 { font-size: 32px; }
  .wordmark { font-size: 15px; }
  .stats strong, .price { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .tape div, #headline .inner span, .hero .line span, .lede, .hero-actions, .dash, .dash > * { animation: none; transition: none; filter: none; opacity: 1; transform: none; }
  .cupido-precio img { transition: none; }
}
@media print {
  header.chrome, footer.foot, #stage, .vig, .bio, .colophon, .cue, #intro { display: none; }
  body { background: white; color: black; }
}

body.exchange main { width: min(1440px, calc(100% - 28px)); }
.x-top { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.x-top h1 { margin-bottom: 6px; }
.x-pill { margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.x-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.x-stats article, .x-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.x-stats article { padding: 12px 14px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.x-stats span, .x-legend { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.x-stats strong { display: block; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; }
.x-stats small { display: block; color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.x-grid { display: grid; grid-template-columns: 1fr 1.15fr .9fr; gap: 12px; align-items: stretch; }
.x-panel { padding: 16px; }
.x-panel h2 { font-size: 26px; margin-bottom: 8px; }
.x-empty { display: grid; gap: 4px; min-height: 160px; place-content: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); }
.x-empty b { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 22px; }
.x-track { position: relative; height: 88px; margin: 28px 8px 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(182, 243, 200, .18), rgba(255, 180, 196, .18)); box-shadow: inset 0 0 0 1px var(--line); }
.x-track i { position: absolute; top: 18px; width: 2px; height: 52px; border-radius: 2px; }
.x-track i::after { content: ""; position: absolute; left: -5px; top: -8px; width: 12px; height: 12px; border-radius: 50%; }
.x-track .buy { left: var(--buy); background: var(--up); }
.x-track .buy::after { background: var(--up); }
.x-track .mid { left: var(--mid); background: var(--gold); }
.x-track .mid::after { background: var(--gold); }
.x-track .sell { left: var(--sell); background: var(--down); }
.x-track .sell::after { background: var(--down); }
.x-legend { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 980px) {
  .x-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-grid, .x-top { grid-template-columns: 1fr; display: grid; }
  .x-pill { white-space: normal; }
}

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; overflow: hidden; }
html[data-theme="light"] .sky { background: transparent; }
.sky canvas { width: 100%; height: 100%; display: block; }
.sky-video {
  position: absolute; left: 50%; top: 0; width: 100vw; height: 76vh;
  transform: translateX(-50%); object-fit: cover; object-position: center top;
  mix-blend-mode: screen; opacity: 0; transition: opacity .8s linear; pointer-events: none;
}
.sky-video.ready { opacity: 1; }
html[data-theme="light"] .sky-video { display: none; }
@media (max-width: 900px) { .sky-video { height: 62vh; } }
@media (prefers-reduced-motion: reduce) { .sky-video { display: none; } }
body.academy-home { background: #000; }
body.academy-home::before { display: none; }
html[data-theme="light"] body.academy-home { background: transparent; }
html[data-theme="light"] body.academy-home::before { display: none; }
body.academy-home main { width: 100%; max-width: none; padding: 0 0 72px; }
body.academy-home main > section,
body.academy-home main > .risk { width: min(1120px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
body.academy-home .hero { width: 100%; }
.hero { position: relative; z-index: 2; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 78px var(--pad) 0; }
.hero-copy { text-align: center; width: min(920px, 100%); margin: 0 auto 8px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 64px); font-weight: 800; letter-spacing: -.04em; }
.hero .line { display: block; overflow: hidden; }
.hero .line span { display: inline-block; }
.hero .phrase span { font-size: .46em; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.grad { background: linear-gradient(90deg, #d7b0ff, #9312ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 68ch; margin: 8px auto 12px; color: #c8c4c2; font-size: 15px; }
html[data-theme="light"] .lede { color: var(--dim); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .ghost { background: rgba(12, 8, 20, .72); color: #f7f7f8; border-color: rgba(255,255,255,.16); }
html[data-theme="light"] .hero-actions .ghost { background: rgba(255,255,255,.72); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  body.academy-home header.chrome { animation: drop .55s var(--ease) both; }
  .hero .line span { animation: wipe .7s var(--ease) both; }
  .hero .line:nth-child(2) span { animation-delay: .12s; }
  .lede { animation: rise .6s var(--ease) .28s both; }
  .hero-actions { animation: rise .6s var(--ease) .38s both; }
  .dash { animation: rise .85s var(--ease) .2s both; }
  .dash > * { animation: rise .6s var(--ease) both; }
  .dash > *:nth-child(1) { animation-delay: .32s; }
  .dash > *:nth-child(2) { animation-delay: .42s; }
  .dash > *:nth-child(3) { animation-delay: .52s; }
  .rows a { animation: rise .55s var(--ease) both; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes wipe {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.dash { position: relative; width: min(1204px, 100%); margin: 22px auto 0; display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; gap: 16px; padding: 16px 16px 22px; border: 1px solid rgba(147, 18, 255, .7); border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(8, 6, 16, .82); box-shadow: 0 -1px 0 #f3e8ff, 0 -30px 80px rgba(147, 18, 255, .38); backdrop-filter: blur(18px); }
.dash::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #fff, #c084fc, #9312ff, transparent); box-shadow: 0 0 18px #9312ff; }
html[data-theme="light"] .dash { background: rgba(255, 251, 255, .9); border-color: rgba(109, 40, 217, .4); }
.dash aside { display: grid; align-content: start; gap: 8px; }
.dash aside b { font-family: var(--serif); font-size: 22px; }
.dash aside a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: #f7f7f8; }
html[data-theme="light"] .dash aside a { color: var(--ink); }
.dash aside a[aria-current="page"] { background: rgba(147, 18, 255, .22); box-shadow: inset 0 0 0 1px rgba(192, 132, 252, .55); color: #f3e8ff; }
.dash-promo { display: grid; gap: 4px; margin-top: 8px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(160, 32, 255, .35), rgba(10, 6, 20, .4)); border: 1px solid rgba(192, 132, 252, .4); }
.dash-promo strong { font-family: var(--serif); font-size: 16px; }
.dash-promo span { font-size: 13px; color: #e9d5ff; }
.dash-note h2 { font-size: 22px; margin-bottom: 6px; }
.dash-note p { font-size: 14px; color: #c8c4c2; }
html[data-theme="light"] .dash-note p { color: var(--dim); }
.dash-top { display: flex; justify-content: space-between; gap: 12px; color: #8b8988; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dash .x-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash .x-stats article { background: rgba(255,255,255,.03); padding: 8px 10px; gap: 4px; }
.dash .x-stats strong { font-size: clamp(20px, 1.8vw, 30px); }
.chart-well { min-height: 0; display: block; }
.cupido-precio {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 700;
  overflow: hidden;
  border-radius: 16px;
  background: #07060e;
}
.cupido-precio img {
  position: absolute;
  width: 108%;
  height: auto;
  max-width: none;
  left: -4%;
  top: calc(-388 / 700 * 100%);
  transition: opacity 0.6s ease;
}
.cupido-precio img.oculta { opacity: 0; }
.gain-float { perspective: 900px; margin: 0 0 14px; }
.gain-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #d8ffe4;
  background: linear-gradient(165deg, rgba(18, 48, 28, .96), rgba(6, 14, 10, .92));
  border: 1px solid rgba(90, 230, 130, .7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 24px rgba(61, 222, 106, .28);
  transform: rotateX(8deg);
  transform-origin: center top;
  animation: gain-rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.gain-card span, .gain-card small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #b7f7c4; }
.gain-card small { display: block; margin-top: 4px; }
.gain-card strong {
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  color: #3dde6a;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(61, 222, 106, .55);
}
.gain-card.loss { border-color: rgba(240, 59, 42, .6); box-shadow: 0 16px 0 rgba(0, 0, 0, .28), 0 22px 40px rgba(0, 0, 0, .45); }
.gain-card.loss strong { color: #ff6b5a; text-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
@keyframes gain-rise {
  from { opacity: 0; transform: rotateX(28deg) translateY(16px); }
  to { opacity: 1; transform: rotateX(8deg); }
}
.spark { width: 100%; height: 150px; display: block; }
.spark .sell { fill: none; stroke: #f03b2a; stroke-width: 2; }
.spark .buy { fill: none; stroke: #45b558; stroke-width: 2; }
.rows a { border: 1px solid var(--line); }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 88px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero .phrase span { font-size: .62em; }
  .wordmark img { width: 40px; height: 40px; border-radius: 10px; }
  .hero-logo { width: 72px; height: 72px; }
  .rows { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rows a, .rows .face { min-height: 132px; }
  .dash { grid-template-columns: 1fr; border-bottom: 1px solid rgba(147, 18, 255, .55); border-radius: 14px; margin-bottom: 28px; }
  .dash .x-stats { grid-template-columns: 1fr 1fr; }
  .dash aside:not(.dash-note) { grid-auto-flow: column; grid-auto-columns: max-content; overflow: auto; }
  .dash-promo { min-width: 180px; }
  body.academy-home main { width: 100%; }
}

[hidden] { display: none !important; }
.term { display: grid; gap: 16px; }
.term-head, .panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #f0b93a; }
.status-pill.ok i { background: var(--up); }
.status-pill.bad i { background: var(--down); }
.view-tabs { display: flex; gap: 8px; overflow-x: auto; }
.view-tabs button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.view-tabs button.on { color: #fff; background: #6d28d9; border-color: #6d28d9; }
.term-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 16px; }
.term-grid.one { grid-template-columns: 1fr; }
.x-panel, .board { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.x-panel { padding: 16px; }
.board { overflow: auto; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 8px 10px; text-align: right; white-space: nowrap; }
.board th:first-child, .board td:first-child { text-align: left; }
.min-filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.min-filter select, .narrow input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; }
.depth { display: grid; gap: 4px; }
.depth i { display: block; height: 8px; border-radius: 99px; }
.depth i.down { background: rgba(244, 63, 94, .45); }
.depth i.up { background: rgba(52, 211, 153, .45); }
.book-mid { text-align: center; font-variant-numeric: tabular-nums; }
.credit-line a { color: var(--gold-2); }
tr.pin td { background: rgba(139, 92, 246, .12); }
.x-panel, .x-stats article, .board, main .card, .lesson, .steps li, .risk, .note, .buy, .stats article, details {
  position: relative;
  border: 1px solid rgba(147, 18, 255, .55);
  border-radius: 14px;
  background: rgba(8, 6, 16, .78);
  box-shadow: inset 0 1px 0 #f3e8ff, 0 16px 36px rgba(147, 18, 255, .16);
  backdrop-filter: blur(16px);
}
.x-panel::before, .x-stats article::before, main .card::before, .lesson::before, .steps li::before, .risk::before, .note::before, .buy::before, .stats article::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, #c084fc, #9312ff, transparent);
  box-shadow: 0 0 14px #9312ff;
  pointer-events: none;
}
html[data-theme="light"] .x-panel,
html[data-theme="light"] .x-stats article,
html[data-theme="light"] .board,
html[data-theme="light"] main .card,
html[data-theme="light"] .lesson,
html[data-theme="light"] .steps li,
html[data-theme="light"] .risk,
html[data-theme="light"] .note,
html[data-theme="light"] .buy,
html[data-theme="light"] .stats article,
html[data-theme="light"] details {
  background: rgba(255, 251, 255, .9);
  border-color: rgba(109, 40, 217, .35);
}
.rows a { border: 1px solid rgba(243, 232, 255, .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 14px 30px rgba(147, 18, 255, .22); }
.board { background: rgba(0, 0, 0, .28); }
html[data-theme="light"] .board { background: rgba(255, 255, 255, .66); }
@media (max-width: 800px) {
  .term-grid { grid-template-columns: 1fr; }
  .x-stats { grid-template-columns: 1fr 1fr; }
}
.pay, .pay-grid, .pay-side, .pay-account, .pay-chip, .pay-file { min-width: 0; max-width: 100%; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pay-switch { display: flex; gap: 8px; margin: 16px 0; }
.pay-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-lines strong { white-space: nowrap; }
.pay-total strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.pay-side { display: grid; gap: 12px; }
.pay-side h3, .pay-side p, .pay-kicker { margin: 0; }
.pay-kicker { font-weight: 600; color: var(--ink); }
.pay-account { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .28); overflow: hidden; display: grid; gap: 8px; }
.pay-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pay-addr { display: block; min-width: 0; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; line-height: 1.35; letter-spacing: 0; white-space: nowrap; overflow-x: auto; }
.pay-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pay-go { width: 100%; }
.file-pick { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(0, 0, 0, .28); overflow: hidden; }
.file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.file-btn { position: relative; z-index: 1; pointer-events: none; padding: 8px 12px; border-radius: 999px; background: #6d28d9; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.file-name { position: relative; z-index: 1; pointer-events: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.file-pick:has(input:disabled) { opacity: .55; }
.x-panel input, .x-panel select, .x-panel textarea { width: 100%; max-width: 100%; min-width: 0; }
.pay { overflow: hidden; }
.tg-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 20px 24px; }
.tg-person img, .tg-face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #2aabee, 0 14px 30px rgba(42, 171, 238, .28); }
.tg-face { display: grid; place-items: center; background: #2aabee; color: #fff; font-weight: 700; font-size: 34px; }
.tg-face[hidden], #tg-photo[hidden] { display: none; }
.tg-person h2 { margin: 8px 0 0; }
.tg-person .kicker, .tg-person .muted { margin: 0; }
.tg-person .tg-bot { margin-top: 8px; }
.ops .receipt { display: block; max-width: 280px; margin: 8px 0; border-radius: 12px; }
#entrar .tg-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 8px;
  min-height: 48px;
  padding: 0 22px 0 16px;
  border: 0;
  border-radius: 999px;
  background: #2aabee;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(42, 171, 238, .38);
  gap: 8px;
}
#entrar .tg-auth-button::before {
  content: "";
  width: 22px;
  height: 22px;
  margin: 0;
  background: center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M2.81 10.59c4.56-1.98 7.6-3.29 9.11-3.92 4.34-1.81 5.24-2.12 5.83-2.13.13 0 .42.03.61.18.15.13.2.3.22.42.02.12.05.4.03.62-.24 2.47-1.26 8.46-1.77 11.23-.22 1.17-.65 1.56-1.07 1.6-.9.08-1.59-.6-2.47-1.18-1.38-.9-2.15-1.46-3.49-2.34-1.54-1.02-.54-1.58.34-2.49.23-.24 4.23-3.87 4.3-4.2.01-.04.02-.2-.07-.28-.09-.08-.23-.05-.32-.03-.14.03-2.34 1.48-6.59 4.36-.62.43-1.19.64-1.69.63-.56-.01-1.63-.3-2.43-.56-1-.32-1.76-.49-1.69-1.03.04-.28.42-.57 1.16-.86Z' fill='white'/%3E%3C/svg%3E");
}
#entrar .tg-auth-button:hover { background: #229ed9; box-shadow: 0 14px 32px rgba(34, 158, 217, .48); }
@media (max-width: 800px) {
  .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15px; line-height: 1.45; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  .lead, .lede { font-size: 14px; }
  .kicker { font-size: 11px; letter-spacing: .14em; }
  main { padding: 16px 0 40px; }
  header.chrome { gap: 8px; padding: calc(8px + var(--safe-top)) 12px 8px; }
  .wordmark { font-size: 13px; letter-spacing: .04em; gap: 8px; }
  .wordmark img { width: 32px; height: 32px; border-radius: 8px; }
  .wordmark small { font-size: 9px; letter-spacing: .14em; }
  .menu-btn { min-width: 0; min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 999px; border: 1px solid var(--line-strong); }
  body.nav-open .desk { top: 54px; left: 10px; right: 10px; padding: 8px; gap: 2px; }
  body.nav-open .desk a,
  body.nav-open .lang,
  body.nav-open .ghost,
  body.nav-open .solid,
  body.nav-open button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
    justify-content: flex-start;
  }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: 28px; }
  .hero .phrase span { font-size: .55em; }
  .hero-logo { width: 52px; height: 52px; border-radius: 14px; }
  .hero-actions { gap: 8px; }
  .hero-actions .solid,
  .hero-actions .ghost,
  form .solid,
  form .ghost,
  .pay-switch .solid,
  .pay-switch .ghost,
  .view-tabs button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
  .pay-go { min-height: 42px; font-size: 14px; }
  .pay { font-size: 14px; }
  .pay h2 { font-size: 22px; }
  .pay h3 { font-size: 16px; }
  .pay .muted, .pay-note, .pay-kicker { font-size: 13px; line-height: 1.4; }
  .pay-account { padding: 12px; }
  .pay-chip { grid-template-columns: minmax(0, 1fr); }
  .pay-chip .ghost { justify-self: start; }
  .pay-lines { font-size: 14px; }
  .pay-total strong { font-size: 1.15rem; }
  .x-top { flex-direction: column; align-items: stretch; gap: 12px; }
  input, select, textarea { font-size: 16px; min-height: 42px; padding: 8px 10px; }
  label { font-size: 13px; }
  #entrar .tg-auth-button { width: 100%; min-height: 48px; font-size: 16px; justify-content: center; }
  .x-panel, .x-stats article { padding: 12px; }
  .x-panel h2 { font-size: 20px; }
  .x-stats strong, .dash .x-stats strong, .stats strong, .price { font-size: 20px; }
  .pay-grid { gap: 16px; }
  .tutorial { min-height: 140px; }
  .tutorial strong { font-size: 15px; padding: 12px; }
  .rows a, .rows .face { min-height: 104px; }
  .dash { padding: 12px; gap: 10px; margin-bottom: 20px; }
  .dash aside b, .dash-note h2 { font-size: 17px; }
  .dash aside a { padding: 6px 10px; font-size: 13px; }
  .auth-brand, .auth-card form { padding: 18px 16px; }
  .auth-brand img { width: 52px; height: 52px; }
  .auth-brand h1 { font-size: 26px; }
  footer.foot { padding: 18px 0 28px; gap: 12px; font-size: 14px; }
  .socials a { width: 34px; height: 34px; }
  .filters > *, .inline > *, .actions > * { flex: 0 1 auto; }
  summary { min-height: 34px; font-size: 15px; }
  body.academy-home main > section,
  body.academy-home main > .risk { width: min(1120px, calc(100% - 20px)); }
}
.sell-note { margin: 12px 0; padding: 14px 16px; border: 1px solid rgba(147, 18, 255, .45); border-radius: 16px; background: rgba(88, 28, 135, .18); display: grid; gap: 8px; }
.sell-note p, .sell-note ol { margin: 0; }
.sell-note ol { padding-left: 1.2em; display: grid; gap: 6px; }
.sell-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(0, 0, 0, .22); }
.entrar-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 8px; }
.entrar-actions .ghost { min-height: 48px; padding: 0 18px; }
.entrar-actions form { margin: 0; }
.x-top .entrar-actions { margin: 0; }
#entrar .entrar-actions .tg-auth-button { margin: 0; }
.tour { display: grid; gap: 14px; max-width: 720px; }
.tour-actions, .tour-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tour-poster { width: min(280px, 100%); border-radius: 18px; border: 1px solid var(--line); }
.tour-stage { min-height: 220px; }
.tour-step { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(147, 18, 255, .55); border-radius: 16px; background: rgba(8, 6, 16, .78); }
.tour-step h2 { margin: 0; font-size: 28px; }
.tour-step p { margin: 0; }
.tour-dots { display: flex; gap: 8px; margin: 0; }
.tour-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(192, 132, 252, .35); }
.ob-card { display: grid; gap: 12px; }
.ob-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.ob-toolbar .muted { margin: 0; max-width: 42ch; }
.ob-hill { display: flex; align-items: flex-end; height: 76px; gap: 2px; padding: 0 4px; }
.ob-hill b { flex: 1 1 0; min-width: 3px; border-radius: 3px 3px 0 0; }
.ob-hill b.up { background: linear-gradient(180deg, rgba(52, 211, 153, .95), rgba(52, 211, 153, .28)); }
.ob-hill b.down { background: linear-gradient(180deg, rgba(244, 63, 94, .95), rgba(244, 63, 94, .28)); }
.ob-price { display: grid; justify-items: center; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .28); }
.ob-price strong { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ob-price small { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.ob-price .up { color: var(--up); }
.ob-price .down { color: var(--down); }
.ob { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(6, 4, 16, .72); }
.ob-col { min-width: 0; }
.ob-col + .ob-col { border-left: 1px solid var(--line); }
.ob-headrow, .ob-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.ob-headrow { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ob-headrow span, .ob-row span { text-align: right; }
.ob-scroll { max-height: 320px; overflow: auto; }
.ob-row { position: relative; font-size: 13px; line-height: 1.35; }
.ob-row i { position: absolute; inset: 1px 0; pointer-events: none; }
.ob-col.bids .ob-row i { left: auto; right: 0; width: var(--d); background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .22)); }
.ob-col.asks .ob-row i { width: var(--d); background: linear-gradient(90deg, rgba(244, 63, 94, .22), transparent); }
.ob-row span { position: relative; z-index: 1; }
.ob-row .ob-px { font-weight: 650; }
.ob-col.bids .ob-px { color: var(--up); }
.ob-col.asks .ob-px { color: var(--down); }
.ob-empty { margin: 0; padding: 28px 12px; text-align: center; color: var(--muted); }
.ob-mine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ob-mine li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ob-mine li.up { color: var(--up); }
.ob-mine li.down { color: var(--down); }
html[data-theme="light"] .ob { background: rgba(255, 251, 255, .86); }
html[data-theme="light"] .ob-price { background: rgba(255, 255, 255, .7); }
@media (max-width: 720px) {
  .ob { grid-template-columns: 1fr; }
  .ob-col + .ob-col { border-left: 0; border-top: 1px solid var(--line); }
  .ob-scroll { max-height: 220px; }
}
.tour-dot.on { background: #c084fc; }
@media (max-width: 700px) {
  .tour-step h2 { font-size: 22px; }
  .tour-poster { width: min(220px, 70%); }
  .tour-nav .solid, .tour-nav .ghost, .tour-actions .solid, .tour-actions .ghost, .entrar-actions .ghost { flex: 1 1 140px; width: 100%; }
}
