/* ===== ТоргСтим / TorgStim — Dark Dashboard design system v3 ===== */
:root {
  /* accent (tweakable) — dashboard blue */
  --accent: #3b82f6;
  --accent-2: #5b9bff;
  --accent-strong: #2f6fe0;
  --radius: 16px;

  /* fonts (tweakable) */
  --font-ui: "Onest", system-ui, sans-serif;
  --font-display: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* surfaces — deep dark navy */
  --bg: #080b10;
  --surface: #0e131b;
  --surface-2: #0b0f16;
  --surface-3: #161c26;
  --ink: #e7ecf3;
  --ink-2: #8a94a6;
  --ink-3: #586273;
  --line: #1b2230;
  --line-2: #283041;

  /* hero / featured dark */
  --hero-1: #0d121a;
  --hero-2: #080b10;

  /* semantic */
  --green: #3fb84f;
  --green-2: #56cf66;
  --green-ink: #6fd97c;
  --green-bg: rgba(63,184,79,.13);
  --green-line: rgba(63,184,79,.30);

  --warn: #e0b13a;
  --warn-ink: #ecc663;
  --warn-bg: rgba(224,177,58,.12);
  --warn-line: rgba(224,177,58,.30);

  --danger: #f0524b;
  --danger-ink: #ff7a73;
  --danger-bg: rgba(240,82,75,.12);
  --danger-line: rgba(240,82,75,.32);

  --blue-bg: rgba(59,130,246,.13);
  --blue-line: rgba(59,130,246,.32);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 10px 34px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -24px rgba(0,0,0,.75);
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
::selection { background: color-mix(in oklab, var(--accent) 40%, black); }
.mono { font-family: var(--font-mono); }

/* ---------- prototype shell ---------- */
.shell { display: flex; min-height: 100vh; background: #05070a; }
.rail {
  width: 272px; flex: 0 0 272px; background: #07090d; color: #c5cbd3;
  border-right: 1px solid #131922; padding: 20px 14px 48px; overflow-y: auto;
  position: sticky; top: 0; height: 100vh;
}
.rail::-webkit-scrollbar { width: 8px; }
.rail::-webkit-scrollbar-thumb { background: #161d27; border-radius: 99px; }
.rail-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.rail-brand b { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.01em; display:block; }
.rail-brand b span { color: var(--accent-2); }
.rail-brand span.sub { color: #4d5666; font-size: 10.5px; letter-spacing: .02em; }
.rail-group { margin-top: 18px; }
.rail-group h4 {
  font-size: 10px; text-transform: uppercase; letter-spacing: .15em;
  color: #4a5362; margin: 0 0 8px 10px; font-weight: 700;
}
.rail-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 11px; border-radius: 10px; border: none; background: transparent;
  color: #8a94a6; font-size: 13px; font-weight: 500; line-height: 1.2; transition: .12s;
}
.rail-item:hover { background: #0f141c; color: #dde3ea; }
.rail-item.active { background: #11161f; color: #fff; box-shadow: inset 0 0 0 1px #222a38; }
.rail-item .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; transition: .12s; }
.rail-item.active .dot { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent); }
.rail-item small { margin-left: auto; opacity: .7; font-size: 11px; }

.stage { flex: 1; display: flex; flex-direction: column; min-width: 0; background: radial-gradient(120% 70% at 50% -8%, #11161f, var(--bg) 55%); }
.stage-bar {
  display: flex; align-items: center; gap: 12px; padding: 13px 22px;
  background: rgba(8,11,16,.7); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.stage-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stage-title { font-weight: 700; font-size: 14px; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.stage-sub { color: var(--ink-2); font-size: 12px; line-height: 1.2; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 6px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: .12s; }
.seg button.on { background: var(--accent); color: #fff; }
.spacer { flex: 1; }

.stage-scroll { flex: 1; overflow-y: auto; padding: 34px 22px 72px; display: flex; justify-content: center; }
.viewport { width: 100%; transition: max-width .3s cubic-bezier(.2,.8,.3,1); }
.viewport.mobile { max-width: 414px; }
.viewport.desktop { max-width: 760px; }
.viewport.desktop .body { max-width: 620px; margin: 0 auto; }
.device {
  background: var(--bg); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.viewport.mobile .device { border-radius: 30px; }

/* ---------- product header ---------- */
.ph { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(14,19,27,.6); border-bottom: 1px solid var(--line); }
.ph-logo { display: flex; align-items: center; gap: 10px; }
.ph-logo .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-2), var(--accent-strong)); color: #fff; position: relative; overflow:hidden; box-shadow: 0 6px 16px -6px var(--accent); }
.ph-logo b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.ph-logo b span { color: var(--accent-2); }
.ph-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-tog { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 2px; gap: 2px; }
.lang-tog button { border: none; background: transparent; padding: 5px 10px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); border-radius: 7px; transition: .12s; }
.lang-tog button.on { background: var(--accent); color: #fff; }
.ph-support { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 7px 9px; border-radius: 9px; transition: .12s; }
.ph-support:hover { background: var(--surface-3); color: var(--ink); }

/* ---------- hero / page header ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-1); color: #fff; padding: 28px 20px 26px; border-bottom: 1px solid var(--line); }
.hero::before { content:""; position:absolute; inset:0; background: radial-gradient(110% 110% at 88% -20%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 50%); }
.hero-grid { position:absolute; inset:0; opacity:.5; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(120% 100% at 85% 0%, #000, transparent 70%); }
.hero > * { position: relative; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--accent-2); background: var(--blue-bg); border: 1px solid var(--blue-line); padding: 5px 11px; border-radius: 8px; }
.hero h1 { font-family: var(--font-display); font-size: 27px; line-height: 1.1; margin: 15px 0 8px; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.hero p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 34ch; line-height: 1.45; }

/* ---------- card / sections ---------- */
.body { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: transparent; }
.viewport.desktop .body { padding: 28px 20px; }
.viewport.desktop .hero { padding: 40px 40px 36px; }
.viewport.desktop .hero h1 { font-size: 34px; }
.viewport.desktop .hero p { font-size: 15px; max-width: 44ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 20px; }
.card-h { display:flex; align-items:center; gap:11px; margin-bottom: 4px; }
.card-h .ico-chip { flex: 0 0 auto; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); }

/* icon chip (dashboard) */
.ico-chip { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; }
.chip.mono { letter-spacing: -.02em; }

/* amount card — featured stat */
.amount-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.amount-card::before { content:""; position:absolute; left:0; right:0; bottom:0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-2)); box-shadow: 0 0 18px var(--green); }
.amount-card::after { content:""; position:absolute; inset:0; background: radial-gradient(80% 120% at 100% -20%, var(--green-bg), transparent 60%); pointer-events:none; }
.amount-card > * { position: relative; }
.amount-label { font-size: 12px; font-weight: 600; color: var(--ink-2); display:flex; align-items:center; gap:7px; }
.amount-value { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--green-ink); letter-spacing: -.03em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.amount-value .cur { color: var(--green); margin-left: 4px; font-weight: 700; }
.amount-meta { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); display:flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-2); }
.amount-meta b { color: var(--ink); font-weight: 600; }
.amount-meta .mono { letter-spacing: -.02em; color: var(--ink); }

/* tabs (delivery method) */
.method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.method { position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 13px; padding: 15px; display: flex; flex-direction: column; gap: 7px; transition: .16s; }
.method:hover { border-color: var(--line-2); transform: translateY(-1px); }
.method.sel { border-color: var(--accent); background: var(--blue-bg); box-shadow: var(--ring); }
.method .mt-ico { width: 36px; height: 36px; border-radius: 10px; display:grid; place-items:center; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink-2); transition: .16s; }
.method.sel .mt-ico { background: var(--accent); border-color: var(--accent); color: #fff; }
.method .mt-title { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; color: var(--ink); }
.method .mt-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.method .mt-check { position: absolute; top: 13px; right: 13px; color: var(--accent-2); opacity: 0; transform: scale(.6); transition: .16s; }
.method.sel .mt-check { opacity: 1; transform: scale(1); }

/* inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.field-label a { margin-left: auto; font-size: 11.5px; color: var(--accent-2); text-decoration: none; font-weight: 600; }
.field-label a:hover { text-decoration: underline; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .lead { position: absolute; left: 13px; color: var(--ink-3); display:flex; }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 14px; font-size: 14px; color: var(--ink); background: var(--surface-2); outline: none; transition: .14s; }
.input.has-lead { padding-left: 40px; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.input.error { border-color: var(--danger); }
.input.error:focus { box-shadow: 0 0 0 3px var(--danger-bg); }
.input.ok { border-color: var(--green); }
.field-msg { font-size: 11.8px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.field-msg.err { color: var(--danger-ink); }
.field-msg.ok { color: var(--green-ink); }
.field-msg.hint { color: var(--ink-2); }
.field-msg svg { flex: 0 0 auto; margin-top: 1px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none; border-radius: 12px; font-weight: 700; font-size: 14.5px; padding: 14px 18px; transition: .15s; line-height: 1; letter-spacing: -.01em; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--green-2), var(--green)); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px -8px var(--green); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 30px -8px var(--green); }
.btn-secondary { background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-retry { background: linear-gradient(180deg, #f86660, var(--danger)); color: #fff; box-shadow: 0 10px 24px -8px var(--danger); }
.btn-retry:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--accent-2); padding: 10px 12px; }
.btn-ghost:hover { background: var(--blue-bg); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn-sm { padding: 9px 13px; font-size: 13px; border-radius: 10px; }

/* warning banner */
.banner { display: flex; align-items: flex-start; gap: 11px; border-radius: 12px; padding: 13px 15px; font-size: 12.8px; line-height: 1.45; }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.banner.warn b { color: #f3d48a; }
.banner .b-ico { flex: 0 0 auto; margin-top: 1px; }

/* badges — dark tinted */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.badge.green { background: var(--green-bg); color: var(--green-ink); border-color: var(--green-line); }
.badge.blue { background: var(--blue-bg); color: var(--accent-2); border-color: var(--blue-line); }
.badge.amber { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.badge.red { background: var(--danger-bg); color: var(--danger-ink); border-color: var(--danger-line); }
.badge.gray { background: var(--surface-3); color: var(--ink-2); border-color: var(--line); }
.badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; box-shadow: 0 0 8px currentColor; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

/* stepper */
.stepper { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-node { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; border: 2px solid var(--line-2); background: var(--surface-2); color: var(--ink-3); transition: .25s; font-family: var(--font-mono); }
.step-line { width: 2px; flex: 1; background: var(--line-2); margin: 5px 0; min-height: 14px; border-radius: 2px; transition: .25s; }
.step.future .step-node { border-color: var(--line-2); color: var(--ink-3); }
.step.active .step-node { border-color: var(--accent); color: var(--accent-2); background: var(--blue-bg); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.step.done .step-node { border-color: var(--green); background: var(--green); color: #06250b; }
.step.error .step-node { border-color: var(--danger); background: var(--danger); color: #2a0606; }
.step.done .step-line, .step.active .step-line { background: var(--green); }
.step-body { padding-bottom: 20px; min-width: 0; }
.step:last-child .step-body { padding-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; min-height: 30px; letter-spacing: -.01em; color: var(--ink); }
.step.future .step-title { color: var(--ink-3); font-weight: 600; }
.step.error .step-title { color: var(--danger-ink); }
.step-content { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; animation: expand .28s ease; }
@keyframes expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; } }

/* timer */
.timer { display: flex; align-items: center; gap: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.timer .ring { position: relative; width: 48px; height: 48px; flex: 0 0 auto; }
.timer .ring svg { transform: rotate(-90deg); }
.timer .ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent-2); font-family: var(--font-mono); }
.timer-text b { font-family: var(--font-mono); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); }
.timer-text div { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.timer.danger { background: var(--danger-bg); border-color: var(--danger-line); }
.timer.danger .num { color: var(--danger-ink); }
.timer.danger .timer-text b { color: var(--danger-ink); }

/* item card */
.item-card { display: flex; gap: 14px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.item-img { width: 66px; height: 66px; border-radius: 12px; flex: 0 0 auto; background: linear-gradient(140deg, #1a2230, #0c1118); display: grid; place-items: center; color: #7e93b5; position: relative; overflow: hidden; border: 1px solid var(--line-2); }
.item-img::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 25%, var(--blue-bg), transparent 60%); }
.item-img .glint { position:absolute; inset:0; background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.1) 50%, transparent 58%); }
.item-info { min-width: 0; }
.item-info .nm { font-weight: 700; font-size: 13.5px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.item-info .sub { font-size: 12px; color: var(--ink-2); margin-top: 4px; display:flex; align-items:center; gap:6px; }
.item-info .sub .av { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(150deg, var(--accent-2), var(--accent-strong)); }

/* numbered instructions */
.steps-num { display: flex; flex-direction: column; gap: 11px; counter-reset: s; margin: 0; padding: 0; }
.steps-num li { list-style: none; display: grid; grid-template-columns: 24px 1fr; gap: 11px; font-size: 13px; line-height: 1.45; color: var(--ink); align-items: start; }
.steps-num li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--accent-2); font-weight: 700; font-size: 11.5px; display: grid; place-items: center; font-family: var(--font-mono); }
.steps-num.compact { gap: 8px; }

/* price callout */
.price-call { border-radius: 13px; padding: 15px 17px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.price-call::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.price-call .pc-lab { font-size: 12px; font-weight: 600; color: var(--ink-2); display:flex; align-items:center; gap:7px; }
.price-call .pc-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.price-call .pc-val { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.price-call .pc-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); background: var(--green-bg); border: 1px solid var(--green-line); padding: 4px 8px; border-radius: 6px; }
.price-call .pc-note { margin-top: 9px; font-size: 11.8px; color: var(--ink-2); line-height: 1.4; }
.copy-btn { margin-left: auto; border: 1px solid var(--line-2); background: var(--surface-3); border-radius: 9px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); display:inline-flex; gap:5px; align-items:center; transition: .12s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent-2); }

/* alert box */
.alert { display:flex; gap:11px; border-radius: 12px; padding: 12px 14px; font-size: 12.6px; line-height: 1.45; }
.alert.err { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger-ink); }
.alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.alert.info { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.alert b { font-weight: 700; }
.alert .a-ico { flex: 0 0 auto; margin-top: 1px; }

/* spinner / progress */
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spin.lg { width: 54px; height: 54px; border-width: 5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan { display:flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; padding: 24px 10px; }
.scan .ttl { font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.progress-bar { height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; width: 100%; }
.progress-bar i { display:block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-strong), var(--accent-2), var(--accent-strong)); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }

/* success check */
.success-mark { width: 80px; height: 80px; border-radius: 50%; background: var(--green-bg); border: 2px solid var(--green-line); display:grid; place-items:center; margin: 0 auto; animation: pop .45s cubic-bezier(.2,.8,.3,1.5); box-shadow: 0 0 40px -6px var(--green); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* skeleton */
.sk { background: linear-gradient(90deg, #11161f 25%, #1a212d 37%, #11161f 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* support block */
.support { display:flex; align-items:center; gap:13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; }
.support .s-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-bg); border: 1px solid var(--blue-line); color: var(--accent-2); display:grid; place-items:center; flex:0 0 auto; }
.support .s-txt b { font-size: 13px; letter-spacing: -.01em; color: var(--ink); }
.support .s-txt div { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.support a.s-link { margin-left:auto; font-size: 13px; font-weight: 700; color: var(--accent-2); text-decoration:none; white-space:nowrap; }
.support a.s-link:hover { text-decoration: underline; }

/* footer */
.pf { padding: 20px; text-align: center; background: rgba(14,19,27,.5); border-top: 1px solid var(--line); }
.pf .pf-brand { display:inline-flex; align-items:center; gap:7px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pf .pf-disc { margin-top: 8px; font-size: 11px; color: var(--ink-3); line-height: 1.45; max-width: 46ch; margin-left:auto; margin-right:auto; }

/* trust panel */
.trust { display:flex; gap:11px; border-radius: 12px; padding: 13px 15px; background: var(--green-bg); border: 1px solid var(--green-line); color: var(--green-ink); font-size: 12.6px; line-height: 1.45; }
.trust .t-ico { flex:0 0 auto; margin-top:1px; }
.steam-login { display:flex; align-items:center; gap:10px; justify-content:center; }

/* guard code input */
.code-row { display: flex; gap: 9px; justify-content: center; }
.code-cell { width: 48px; height: 58px; border: 1.5px solid var(--line-2); border-radius: 12px; text-align: center; font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--ink); outline: none; background: var(--surface-2); transition: .14s; }
.code-cell:focus { border-color: var(--accent); box-shadow: var(--ring); }
.code-cell.filled { border-color: var(--accent); background: var(--blue-bg); }

/* toast */
.toast-wrap { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 60; padding: 0 16px; }
.toast { display:flex; align-items:center; gap:10px; background: #1a212d; border: 1px solid var(--line-2); color: #fff; border-radius: 12px; padding: 12px 15px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2,.8,.3,1.2); max-width: 100%; }
.toast.ok { border-color: var(--green-line); }
.toast.err { border-color: var(--danger-line); }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

/* modal */
.modal-scrim { position: absolute; inset: 0; background: rgba(3,5,8,.72); backdrop-filter: blur(5px); display: grid; place-items: center; z-index: 80; padding: 18px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; width: 100%; max-width: 384px; overflow: hidden; box-shadow: var(--shadow-lg); animation: modalIn .28s cubic-bezier(.2,.8,.3,1.1); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: #fff; display:grid; place-items:center; z-index:2; transition: .12s; }
.modal-x:hover { background: rgba(0,0,0,.5); }
@keyframes modalIn { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.tut-hero { position: relative; overflow: hidden; background: var(--hero-1); padding: 24px; color: #fff; border-bottom: 1px solid var(--line); }
.tut-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(110% 90% at 90% -10%, var(--blue-bg), transparent 55%); }
.tut-hero > * { position: relative; }
.tut-shot { aspect-ratio: 16/10; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); display:grid; place-items:center; color:#5f7393; position:relative; overflow:hidden; }
.tut-shot .ph-grid { position:absolute; inset:0; opacity:.6; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 24px 24px; }
.tut-body { padding: 20px; }
.tut-body .ttl-row { color: var(--ink); }
.tut-dots { display:flex; gap:6px; justify-content:center; margin: 6px 0 16px; }
.tut-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: .25s; }
.tut-dots i.on { background: var(--accent); width: 22px; }

/* empty state */
.empty { display:flex; flex-direction:column; align-items:center; text-align:center; gap: 13px; padding: 36px 18px; }
.empty .e-ico { width: 66px; height: 66px; border-radius: 17px; background: var(--surface-2); border:1px solid var(--line); display:grid; place-items:center; color: var(--ink-3); }
