/* =========================================================================
   True Cards — сайт и Telegram Mini App
   Тёмная «голографическая» тема: aurora-фон, стекло, иридесцентные карты.
   ========================================================================= */

:root {
  --bg: #07080d;
  --bg-2: #0a0c15;
  --bg-3: #10131f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --panel-3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5fb;
  --muted: #a1a7bd;
  --dim: #6c7289;
  --violet: #7c5cff;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --lime: #b9f45a;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 52%, #f472b6 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, .22), rgba(34, 211, 238, .16) 55%, rgba(244, 114, 182, .2));
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  --glow: 0 0 0 1px rgba(124, 92, 255, .35), 0 18px 60px -12px rgba(124, 92, 255, .55);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 74px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 92, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Фон: графит, тонкая сетка и мягкий свет сверху --------------- */
/* Статичный многослойный фон: без анимаций и blur-фильтров — ничего не мерцает. */
#bg-aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 42% at 50% -6%, rgba(124, 92, 255, .40), rgba(124, 92, 255, .10) 45%, transparent 72%),
    radial-gradient(38% 34% at 0% 100%, rgba(34, 211, 238, .11), transparent 70%),
    radial-gradient(32% 30% at 100% 62%, rgba(244, 114, 182, .08), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, rgba(124, 92, 255, .10), transparent 70%),
    linear-gradient(180deg, #0b0c16 0%, #07080e 55%, #05060a 100%);
}
#bg-aurora .blob { display: none; }
/* Тонкая световая дуга под верхним свечением */
#bg-aurora::after {
  content: ""; position: absolute; left: 50%; top: -60vmax; width: 140vmax; height: 100vmax; margin-left: -70vmax; border-radius: 50%;
  box-shadow: 0 1px 0 rgba(167, 139, 250, .35), 0 30px 80px -20px rgba(124, 92, 255, .25);
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 50%, transparent 85%); mask-image: linear-gradient(90deg, transparent 15%, #000 50%, transparent 85%);
}
@keyframes drift1 { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-6vmax, 6vmax, 0); } }
@keyframes drift3 { to { transform: translate3d(6vmax, -5vmax, 0); } }
#bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
  background-size: 26px 26px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 72%);
}
#bg-stars { display: none; }
#noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* Курсор: точка + кольцо, которое догоняет курсор и раскрывается над кликабельным */
#cursor-glow { display: none; }
.c-dot, .c-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; will-change: transform; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 10px rgba(167, 139, 250, .9); }
.c-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 255, 255, .45);
  transition: opacity .3s, width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .3s, border-color .3s;
}
body.has-pointer .c-dot, body.has-pointer .c-ring { opacity: 1; }
.c-ring.hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: rgba(167, 139, 250, .8); background: rgba(124, 92, 255, .12); backdrop-filter: blur(2px); }
.c-ring.down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.c-ring.text { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 3px; border-color: transparent; background: rgba(167, 139, 250, .8); }
body.cursor-out .c-dot, body.cursor-out .c-ring { opacity: 0; }
#app { position: relative; z-index: 2; min-height: 100vh; }

/* ---------- Загрузка ------------------------------------------------------ */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 22px; justify-items: center; }
.boot-logo { animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(124, 92, 255, .6)); }
.boot-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 3px; animation: bootbar 1.1s var(--ease) infinite; }
@keyframes bootbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Типографика --------------------------------------------------- */
.gradient-text {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradpan 8s linear infinite;
}
@keyframes gradpan { to { background-position: 200% 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet-2);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.h-lg { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; }
.h-md { font-size: clamp(20px, 2.4vw, 28px); }
.h-sm { font-size: 18px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; }

/* ---------- Панели -------------------------------------------------------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 60px -30px rgba(0, 0, 0, .7);
}
.tile { position: relative; padding: 20px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.tile.pad-lg { padding: 28px; }
.tile.interactive { transition: transform .5s var(--ease), border-color .3s, background .3s; cursor: pointer; }
.tile.interactive:hover { transform: translateY(-3px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)); }
.gborder { position: relative; }
.gborder::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(124, 92, 255, .7), rgba(34, 211, 238, .25) 40%, rgba(255, 255, 255, .04) 60%, rgba(244, 114, 182, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(124, 92, 255, .16), transparent 40%);
}
.spot:hover::after { opacity: 1; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Кнопки -------------------------------------------------------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: -.005em;
  white-space: nowrap; user-select: none; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--spring), box-shadow .3s, background .3s, opacity .2s, color .2s;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: #fff; background: var(--grad); background-size: 180% 100%; box-shadow: 0 10px 34px -10px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { background-position: 90% 0; box-shadow: 0 16px 44px -10px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%);
  transform: translateX(-120%); animation: sweep 4.5s var(--ease) infinite;
}
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { background: var(--panel); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-soft { background: rgba(124, 92, 255, .14); color: #d9d0ff; border: 1px solid rgba(124, 92, 255, .3); }
.btn-soft:hover { background: rgba(124, 92, 255, .22); }
.btn-success { color: #04130d; background: linear-gradient(120deg, #34d399, #b9f45a); box-shadow: 0 10px 30px -12px rgba(52, 211, 153, .8); }
.btn-danger { background: rgba(251, 113, 133, .12); color: #ffc2cc; border: 1px solid rgba(251, 113, 133, .35); }
.btn-white { background: #fff; color: #0a0c15; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-xs { --h: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-icon { --h: 42px; width: var(--h); padding: 0; }
.btn.loading { pointer-events: none; color: transparent !important; }
.btn.loading::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .7s var(--ease) forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(2.8); opacity: 0; } }
.link { color: var(--cyan); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Чипы / бейджи ------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip.active, .chip:hover { color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.badge.ok { background: rgba(52, 211, 153, .12); color: #7ff0c3; }
.badge.warn { background: rgba(251, 191, 36, .12); color: #ffd877; }
.badge.err { background: rgba(251, 113, 133, .12); color: #ffb3c0; }
.badge.info { background: rgba(34, 211, 238, .12); color: #8aeefc; }
.badge.violet { background: rgba(124, 92, 255, .16); color: #cfc2ff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: dotpulse 2s infinite; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Формы --------------------------------------------------------- */
.field { display: grid; gap: 8px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2);
  outline: none; font-size: 16px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); background: rgba(0, 0, 0, .38); }
textarea.input { height: auto; min-height: 120px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.amount-wrap { position: relative; }
.amount-wrap .cur { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 26px; color: var(--dim); pointer-events: none; }
.amount-input { height: 76px; padding-left: 52px; font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .chip { cursor: pointer; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--panel-3); transition: background .3s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .4s var(--spring); }
.switch.on { background: linear-gradient(120deg, var(--violet), var(--cyan)); }
.switch.on::after { transform: translateX(20px); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .3s; }
.seg button.active { color: #fff; }
.seg .seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--grad); box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .8); transition: left .5s var(--spring), width .5s var(--spring); }

/* ---------- Сетки --------------------------------------------------------- */
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* =========================================================================
   Лендинг
   ========================================================================= */
.l-nav {
  position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(10, 12, 21, .55); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  transition: background .4s, box-shadow .4s, top .4s var(--ease);
}
.l-nav.scrolled { background: rgba(10, 12, 21, .82); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .8); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg, #1b1f33, #0b0d16); border: 1px solid var(--line-2); box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .7); }
.logo-mark svg { width: 22px; height: 22px; }
.l-links { display: flex; gap: 4px; }
.l-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .25s, background .25s; }
.l-links a:hover { color: var(--text); background: var(--panel); }
@media (max-width: 860px) { .l-links { display: none; } }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.hero-copy { display: grid; gap: 26px; position: relative; z-index: 3; }
.hero-copy .h-xl { font-size: clamp(38px, 5.4vw, 80px); }
.hero-copy .h-xl .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-copy .h-xl .line > span { display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats .s b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats .s small { display: block; color: var(--dim); font-size: 13px; font-weight: 600; }
.hero-scene { position: relative; height: min(78vh, 680px); min-height: 420px; }
.hero-scene canvas {
  position: absolute; inset: -10% -20% -10% -10%; width: 130% !important; height: 120% !important;
  /* края canvas растворяются в фоне — никаких видимых прямоугольников */
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%);
}
.hero-badge { position: absolute; z-index: 4; padding: 12px 16px; border-radius: 18px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; animation: float 5s ease-in-out infinite; }
.hero-badge .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); font-size: 18px; }
.hero-badge small { display: block; color: var(--dim); font-weight: 600; font-size: 11.5px; }
.hero-badge.b1 { left: 2%; top: 16%; }
.hero-badge.b2 { right: 0; top: 44%; animation-delay: -1.6s; }
.hero-badge.b3 { left: 12%; bottom: 10%; animation-delay: -3s; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line-2); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scene { height: 400px; min-height: 0; order: -1; margin: -30px -20px -40px; }
  .hero-badge.b1 { left: 4%; top: 6%; } .hero-badge.b2 { right: 2%; top: 58%; } .hero-badge.b3 { display: none; }
}

.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .m-item { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; color: var(--muted); white-space: nowrap; }
.marquee .m-item .m-ic { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; color: #fff; background: var(--grad-soft), rgba(124, 92, 255, .25); border: 1px solid var(--line-2); }
.marquee .m-logo { width: 22px; height: 22px; flex: none; filter: invert(1); opacity: .9; transition: opacity .3s; }
.marquee .m-item:hover .m-logo { opacity: 1; }
.marquee .m-item:hover { color: var(--text); }
.marquee-wrap { position: relative; }
.marquee-cap { text-align: center; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { position: relative; padding: clamp(70px, 10vw, 130px) 0; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product { padding: 22px; display: grid; gap: 20px; border-radius: 28px; }
.product .vcard { width: 100%; }
.product-meta { display: grid; gap: 10px; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.product-price b { font-family: var(--display); font-size: 32px; letter-spacing: -.03em; }
.feat-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.feat-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; background: var(--grad-soft) center/12px no-repeat, rgba(124, 92, 255, .15); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5f3fc' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>"); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bento .b { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; border-radius: 26px; }
.bento .b h3 { font-size: 20px; }
.bento .b p { color: var(--muted); font-size: 14.5px; }
.bento .b .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--grad-soft); border: 1px solid var(--line-2); }
.bento .w2 { grid-column: span 2; } .bento .w3 { grid-column: span 3; } .bento .w4 { grid-column: span 4; } .bento .h2 { grid-row: span 2; }
.bento .visual { position: relative; flex: 1; min-height: 120px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .w2, .bento .w3, .bento .w4 { grid-column: span 2; } .bento .h2 { grid-row: auto; } }

.code-demo { font-family: var(--mono); font-size: 34px; letter-spacing: .3em; font-weight: 700; display: flex; gap: 8px; }
.code-demo span { width: 46px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); letter-spacing: 0; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 100%; min-height: 110px; }
.mini-chart i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(34, 211, 238, .9), rgba(124, 92, 255, .2)); transform-origin: bottom; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); animation: spin 30s linear infinite; }
.orbit .ring i { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 20px rgba(124, 92, 255, .9); }
.orbit .core { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; background: var(--grad); box-shadow: var(--glow); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps .st { padding: 24px; display: grid; gap: 14px; border-radius: 24px; }
.steps .st .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .9); }
.steps .st h3 { font-size: 18px; }
.steps .st p { color: var(--muted); font-size: 14px; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink)); transform-origin: left; opacity: .5; z-index: -1; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps-line { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; font-weight: 700; }

.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 20px; padding: 0 22px; transition: background .3s; }
.faq details[open] { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--panel-2); transition: transform .4s var(--spring), background .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: rgba(124, 92, 255, .25); }
.faq .ans { padding: 0 0 20px; color: var(--muted); }

.cta-final { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 90px) clamp(24px, 6vw, 80px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.cta-final::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, rgba(124, 92, 255, .4), rgba(34, 211, 238, .25), rgba(244, 114, 182, .35), rgba(124, 92, 255, .4)); animation: spin 18s linear infinite; z-index: -2; filter: blur(60px); }
.cta-final::after { content: ""; position: absolute; inset: 1px; border-radius: 35px; background: rgba(8, 9, 16, .82); z-index: -1; }

.footer { padding: 50px 0 calc(40px + var(--safe-bottom)); border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(30px); }
.no-motion .reveal { opacity: 1; transform: none; }

/* =========================================================================
   Виртуальная карта
   ========================================================================= */
.vcard {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 440px; border-radius: 22px; padding: 22px 24px; overflow: hidden; isolation: isolate;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between; user-select: none;
  background: var(--card-bg, linear-gradient(135deg, #2b1d6b, #0e1a3a 55%, #082833));
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 1px 0 rgba(255, 255, 255, .25) inset;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .4s;
}
.vcard.tilting { transition: transform .08s linear; }
/* Мягкий блик без полос: полосатый голографический слой мерцал при движении курсора. */
.vcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .28; transition: opacity .4s;
  background: radial-gradient(70% 90% at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 60%);
}
.vcard.tilting::before { opacity: .4; }
.vcard::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 50%), radial-gradient(80% 60% at 0% 100%, rgba(0, 0, 0, .35), transparent 60%);
}
.vcard .vc-top, .vcard .vc-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vcard .vc-name { font-family: var(--display); font-size: 14px; font-weight: 600; opacity: .95; max-width: 70%; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.vcard .vc-flag { flex: none; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.vcard .vc-status-inline { flex: none; }
.vcard .vc-chip { width: 46px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f5d98b, #b98a2c 45%, #f8e3a5 70%, #a8781f); position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.vcard .vc-chip::before { content: ""; position: absolute; inset: 7px 9px; border: 1.5px solid rgba(80, 50, 0, .45); border-radius: 4px; }
.vcard .vc-chip::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: rgba(80, 50, 0, .45); }
.vcard .vc-mid { display: flex; align-items: center; gap: 14px; }
.vcard .vc-nfc { width: 26px; height: 26px; opacity: .8; }
.vcard .vc-number { font-family: var(--mono); font-size: clamp(15px, 4.6cqw, 22px); letter-spacing: .12em; font-weight: 600; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); white-space: nowrap; }
.vcard .vc-label { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; font-weight: 700; }
.vcard .vc-val { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.vcard .vc-brand { height: 30px; }
.vcard .vc-balance { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.vcard { container-type: inline-size; }
.vcard.sm { padding: 16px 18px; border-radius: 18px; }
.vcard.sm .vc-name { font-size: 12.5px; }
.vcard.sm .vc-chip { width: 36px; height: 27px; }
.vcard.sm .vc-balance { font-size: 18px; }
.vcard.pending { filter: saturate(.4) brightness(.8); }
.vcard .vc-status { position: absolute; top: 14px; right: 14px; }
.vc-t-visa { --card-bg: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.14), transparent 45%), linear-gradient(135deg, #5532e8 0%, #2433a6 48%, #0b5a80 100%); }
.vc-t-eur { --card-bg: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.14), transparent 45%), linear-gradient(135deg, #0e9aa0 0%, #15488c 50%, #45229a 100%); }
.vc-t-sg { --card-bg: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.14), transparent 45%), linear-gradient(135deg, #d42c6c 0%, #6a20a3 50%, #1f3290 100%); }
.vc-t-mc { --card-bg: linear-gradient(135deg, #1f2937 0%, #0b1220 55%, #3b0d2c 100%); }
.vc-t-lime { --card-bg: linear-gradient(135deg, #234a11 0%, #0d2a24 50%, #0c1b3c 100%); }

/* Переворот карты */
.flip { perspective: 1400px; width: 100%; max-width: 440px; }
.flip-inner { position: relative; transition: transform .9s var(--ease); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .face.back { position: absolute; inset: 0; transform: rotateY(180deg); }
.vcard.back-side { justify-content: flex-start; padding: 0; }
.vcard .stripe { height: 46px; background: #050505; margin-top: 24px; }
.vcard .sign { margin: 18px 22px 0; display: flex; align-items: center; gap: 12px; }
.vcard .sign .strip { flex: 1; height: 38px; border-radius: 6px; background: repeating-linear-gradient(135deg, #f3f0e6 0 8px, #e2ddd0 8px 16px); }
.vcard .sign .cvv { width: 74px; height: 38px; border-radius: 6px; background: #fff; color: #111; font-family: var(--mono); font-weight: 700; display: grid; place-items: center; font-size: 17px; letter-spacing: .1em; }

/* =========================================================================
   Оболочка приложения
   ========================================================================= */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); background: rgba(6, 7, 13, .55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.sidebar .logo { padding: 4px 8px; }
.nav { display: grid; gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; color: var(--muted); font-weight: 700; font-size: 14.5px; transition: color .25s, background .25s; }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .08)); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .3); }
.nav a.active::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--grad); }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 800; font-family: var(--display); background: var(--grad); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.main { min-width: 0; padding: 26px clamp(18px, 3vw, 44px) 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.topbar .title { display: grid; gap: 4px; }
.balance-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; }
.balance-pill .plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); }
.page { animation: pagein .55s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.page-title { font-size: clamp(24px, 3vw, 34px); }
.back-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; margin-bottom: 14px; white-space: nowrap; }
.back-btn svg { width: 18px; height: 18px; }
.grid-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.back-btn:hover { color: var(--text); }

.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: calc(14px + var(--safe-top)) 16px calc(var(--tabbar-h) + 28px + var(--safe-bottom)); }
  .topbar { margin-bottom: 18px; }
  .tabbar {
    display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); height: var(--tabbar-h);
    padding: 8px; gap: 2px; border-radius: 26px; background: rgba(12, 14, 24, .78); border: 1px solid var(--line-2);
    backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9);
  }
  .tabbar a { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 18px; color: var(--dim); font-size: 10.5px; font-weight: 700; transition: color .3s; }
  .tabbar a svg { width: 22px; height: 22px; transition: transform .45s var(--spring); }
  .tabbar a.active { color: #fff; }
  .tabbar a.active svg { transform: translateY(-1px) scale(1.08); }
  .tabbar .tab-pill { position: absolute; z-index: 0; top: 8px; bottom: 8px; border-radius: 18px; background: linear-gradient(140deg, rgba(124, 92, 255, .5), rgba(34, 211, 238, .25)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px -8px rgba(124, 92, 255, .9); transition: left .55s var(--spring), width .55s var(--spring); }
}

/* ---------- Дашборд ------------------------------------------------------- */
.balance-hero { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 34px); border-radius: 30px; display: grid; gap: 22px; }
.balance-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 65%); filter: blur(20px); z-index: -1; animation: drift1 16s var(--ease) infinite alternate; }
.balance-hero::after { content: ""; position: absolute; width: 360px; height: 360px; left: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .4), transparent 65%); filter: blur(20px); z-index: -1; }
.big-balance { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.big-balance .cents { opacity: .5; font-size: .55em; }
.sub-balances { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-balances .sb { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.sub-balances .sb b { font-family: var(--mono); }
@media (max-width: 520px) {
  .sub-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .sub-balances .sb { flex-wrap: wrap; gap: 2px 6px; padding: 10px 12px; font-size: 12px; }
  .sub-balances .sb b { font-size: 13px; width: 100%; }
  .balance-hero .row.wrap .btn { flex: 1; }
}
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.action { display: grid; justify-items: center; gap: 10px; padding: 18px 8px; border-radius: 22px; text-align: center; font-weight: 700; font-size: 13.5px; }
.action .ai { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); transition: transform .5s var(--spring); }
.action .ai svg { width: 24px; height: 24px; }
.action:hover .ai { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
@media (max-width: 520px) { .actions { gap: 8px; } .action { padding: 14px 4px; font-size: 12px; } .action .ai { width: 46px; height: 46px; } }

.cards-rail { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards-rail::-webkit-scrollbar { display: none; }
.cards-rail > * { flex: 0 0 min(320px, 80%); scroll-snap-align: start; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h2 { font-size: 19px; }

.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: background .25s, transform .4s var(--ease); }
.list-row.clickable { cursor: pointer; }
.list-row.clickable:hover { background: var(--panel-2); transform: translateX(3px); }
.list-row .li-ic { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--panel-2); font-size: 18px; }
.list-row .li-ic svg { width: 20px; height: 20px; }
.list-row .li-main { flex: 1; min-width: 0; }
.list-row .li-main b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .li-main span { color: var(--dim); font-size: 13px; }
.list-row .li-end { text-align: right; font-weight: 700; white-space: nowrap; }

.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 50px 20px; }
.empty .em-ic { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; font-size: 38px; background: var(--grad-soft); border: 1px solid var(--line-2); animation: float 4s ease-in-out infinite; }

/* ---------- Магазин ------------------------------------------------------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.shop-item { padding: 18px; border-radius: 28px; display: grid; gap: 18px; cursor: pointer; transition: transform .6s var(--ease), border-color .3s; }
.shop-item:hover { transform: translateY(-6px); border-color: var(--line-2); }
.shop-item .si-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-item .price { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; gap: 2px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); }
.kv-row b { text-align: right; font-weight: 700; }
.kv-row.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 6px; padding-top: 16px; font-size: 17px; }
.kv-row.total b { font-family: var(--display); font-size: 22px; }
.tiers { display: grid; gap: 6px; }
.tier { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--spring); }
.tier.active { background: linear-gradient(90deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .1)); border-color: rgba(124, 92, 255, .45); transform: scale(1.02); }
.html-text { color: var(--muted); line-height: 1.65; }
.html-text b, .html-text strong { color: var(--text); }
.html-text code { background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 6px; color: var(--text); font-size: .92em; }
.html-text a { color: var(--cyan); }

/* ---------- Детали карты -------------------------------------------------- */
.card-stage { display: grid; justify-items: center; gap: 18px; position: sticky; top: 26px; }
.reqs { display: grid; gap: 10px; }
.req { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.req .rq-main { flex: 1; min-width: 0; }
.req .rq-main small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.req .rq-main b { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .03em; word-break: break-all; }
.req .rq-main b.blur { filter: blur(7px); user-select: none; }
.copy-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); flex: none; transition: background .25s, transform .3s var(--spring); }
.copy-btn:hover { background: var(--panel-3); }
.copy-btn:active { transform: scale(.9); }
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn.done { background: rgba(52, 211, 153, .2); color: var(--green); }
.otp-box { display: grid; justify-items: center; gap: 12px; padding: 24px; border-radius: 24px; background: radial-gradient(120% 120% at 50% 0%, rgba(124, 92, 255, .25), rgba(0, 0, 0, .2)); border: 1px solid rgba(124, 92, 255, .3); }
.otp-code { font-family: var(--mono); font-size: clamp(34px, 8vw, 48px); font-weight: 700; letter-spacing: .18em; }
.tx-row .li-ic.ok { background: rgba(52, 211, 153, .14); color: var(--green); }
.tx-row .li-ic.pending { background: rgba(251, 191, 36, .14); color: var(--amber); }
.tx-row .li-ic.err { background: rgba(251, 113, 133, .14); color: var(--red); }
.countdown { display: grid; place-items: center; width: 120px; height: 120px; position: relative; }
.countdown svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.countdown b { font-family: var(--display); font-size: 26px; }

/* ---------- Кошелёк ------------------------------------------------------- */
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.method { position: relative; padding: 18px; border-radius: 22px; display: grid; gap: 12px; text-align: left; cursor: pointer; transition: transform .5s var(--spring), border-color .3s, background .3s; }
.method:hover { transform: translateY(-3px); }
.method.selected { border-color: rgba(124, 92, 255, .7); background: linear-gradient(160deg, rgba(124, 92, 255, .22), rgba(34, 211, 238, .06)); box-shadow: var(--glow); }
.method .m-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: var(--panel-2); border: 1px solid var(--line); }
.method .m-fee { position: absolute; top: 16px; right: 16px; }
.pay-wait { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 10px 0; }
.radar { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34, 211, 238, .6); animation: radar 2.4s var(--ease) infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
.radar .r-core { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; background: var(--grad); box-shadow: var(--glow); }
@keyframes radar { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.swap-box { display: grid; gap: 10px; position: relative; }
.swap-box .swap-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); transition: transform .6s var(--spring); }
.swap-box .swap-arrow:hover { transform: translate(-50%, -50%) rotate(180deg); }
.swap-side { padding: 16px 18px; border-radius: 20px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); display: grid; gap: 6px; }
.swap-side input { background: none; border: 0; outline: none; font-family: var(--display); font-size: 28px; font-weight: 600; width: 100%; padding: 0; }

/* ---------- Прогресс задач ------------------------------------------------ */
.timeline { display: grid; gap: 4px; }
.tl-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; position: relative; padding-bottom: 14px; animation: popin .5s var(--spring) both; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line-2); }
.tl-dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); }
.tl-dot svg { width: 16px; height: 16px; }
.tl-item.ok .tl-dot { background: rgba(52, 211, 153, .18); color: var(--green); border-color: rgba(52, 211, 153, .4); }
.tl-item.error .tl-dot { background: rgba(251, 113, 133, .18); color: var(--red); border-color: rgba(251, 113, 133, .4); }
.tl-item.run .tl-dot::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
.tl-body { padding-top: 5px; min-width: 0; }
.tl-body .html-text { font-size: 14.5px; color: var(--text); }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.big-status { display: grid; justify-items: center; gap: 14px; text-align: center; }
.big-status .bs-ic { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; }
.big-status .bs-ic svg { width: 46px; height: 46px; }
.big-status.ok .bs-ic { background: radial-gradient(circle at 30% 20%, #6ef0bd, #129a6c); box-shadow: 0 20px 60px -15px rgba(52, 211, 153, .8); animation: popin .7s var(--spring) both; }
.big-status.error .bs-ic { background: radial-gradient(circle at 30% 20%, #ff9aae, #c2334f); box-shadow: 0 20px 60px -15px rgba(251, 113, 133, .7); }
.check-path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Онбординг ----------------------------------------------------- */
.onb { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(30px + var(--safe-top)) 18px calc(30px + var(--safe-bottom)); }
.onb-card { width: min(560px, 100%); padding: clamp(26px, 5vw, 42px); border-radius: 32px; display: grid; gap: 22px; }
.onb-steps { display: flex; gap: 6px; }
.onb-steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--panel-3); overflow: hidden; position: relative; }
.onb-steps i.on::after { content: ""; position: absolute; inset: 0; background: var(--grad); animation: fillbar .8s var(--ease) both; }
@keyframes fillbar { from { transform: translateX(-100%); } }
.lang-opt { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; font-weight: 700; font-size: 17px; text-align: left; width: 100%; }
.lang-opt .fl { font-size: 30px; }
.scroll-box { max-height: 46vh; overflow: auto; padding-right: 6px; }
.scroll-box::-webkit-scrollbar { width: 6px; } .scroll-box::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 6px; }

/* ---------- Оверлеи ------------------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 3, 8, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 50%; top: 50%; width: min(540px, calc(100% - 28px)); max-height: min(88vh, 860px); overflow: auto;
  padding: 26px; border-radius: 30px; background: linear-gradient(180deg, rgba(22, 25, 40, .96), rgba(12, 14, 24, .97)); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95); transform: translate(-50%, -46%) scale(.96); opacity: 0;
  transition: transform .55s var(--spring), opacity .3s;
}
.sheet.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet-head h3 { font-size: 20px; }
.sheet-grab { display: none; }
@media (max-width: 640px) {
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 30px 30px 0 0; padding: 14px 20px calc(24px + var(--safe-bottom)); transform: translateY(100%); }
  .sheet.show { transform: translateY(0); }
  .sheet-grab { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--panel-3); margin: 0 auto 14px; }
}
.close-x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); flex: none; }
.close-x svg { width: 18px; height: 18px; }

#toasts { position: fixed; z-index: 90; left: 50%; top: calc(16px + var(--safe-top)); transform: translateX(-50%); display: grid; gap: 10px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(18, 20, 33, .95); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .9); backdrop-filter: blur(20px); pointer-events: auto; animation: toastin .5s var(--spring) both; font-weight: 600; font-size: 14px; }
.toast.out { animation: toastout .35s var(--ease) forwards; }
.toast .t-ic { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.toast .t-ic svg { width: 15px; height: 15px; }
.toast.ok .t-ic { background: rgba(52, 211, 153, .2); color: var(--green); }
.toast.error .t-ic { background: rgba(251, 113, 133, .2); color: var(--red); }
.toast.info .t-ic { background: rgba(34, 211, 238, .2); color: var(--cyan); }
@keyframes toastin { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes toastout { to { opacity: 0; transform: translateY(-12px) scale(.96); } }
#confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100vw; height: 100vh; display: none; }

/* ---------- Вход / регистрация -------------------------------------------- */
.auth { gap: 18px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.pw-eye:hover { color: var(--text); background: var(--panel-2); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--panel-3); transition: background .3s; }
.pw-meter[data-score="1"] i.on { background: var(--red); }
.pw-meter[data-score="2"] i.on { background: var(--amber); }
.pw-meter[data-score="3"] i.on, .pw-meter[data-score="4"] i.on { background: var(--green); }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .25s, border-color .25s, color .25s; margin-top: 1px; }
.check .box svg { width: 14px; height: 14px; }
.check input:checked + .box { background: var(--grad); border-color: transparent; color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.auth-err { color: var(--red); text-align: center; }
.g-btn { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.g-btn[hidden] { display: none; }
.fineprint { font-size: 11.5px; color: var(--dim); line-height: 1.45; }
.hero-badge .ic svg { width: 18px; height: 18px; }
.orbit .core svg { width: 30px; height: 30px; color: #fff; }
.bento .b .ico svg { width: 24px; height: 24px; }

/* ---------- Скелетоны ----------------------------------------------------- */
.skel { position: relative; overflow: hidden; background: var(--panel); border-radius: 14px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Mini App ------------------------------------------------------ */
body.tg { --safe-top: var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)); }
body.tg #cursor-glow { display: none; }
body.tg .main { padding-top: calc(12px + var(--tg-content-safe-area-inset-top, 0px) + var(--tg-safe-area-inset-top, 0px)); }
body.tg .topbar .tg-hide { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #bg-aurora .blob { animation: none; }
}
