:root {
  --bg: #07070c;
  --bg2: #0e0e18;
  --card: rgba(255, 255, 255, .06);
  --card-strong: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .1);
  --text: #f4f4f8;
  --muted: #9b9bb0;
  --accent: #ff3d6e;
  --accent2: #ff8a3d;
  --ok: #2fd18b;
  --warn: #ffb547;
  --err: #ff5470;
  --gold: #ffd166;
  --radius: 18px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------- фон ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1a0f24 0%, var(--bg) 60%);
}
.bg::before, .bg::after {
  content: ''; position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%;
  filter: blur(80px); opacity: .55; animation: drift 22s ease-in-out infinite alternate;
}
.bg::before { background: radial-gradient(circle, #ff3d6e 0%, transparent 60%); top: -45vmax; left: -30vmax; }
.bg::after { background: radial-gradient(circle, #5b3dff 0%, transparent 60%); bottom: -50vmax; right: -35vmax; animation-delay: -11s; }
.bg .orb { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35;
  background: radial-gradient(circle, #ff8a3d 0%, transparent 60%); top: 30%; left: 40%; animation: drift2 26s ease-in-out infinite alternate; }
.bg .img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.bg .grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bg .vignette { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,7,12,.9) 100%); }
@keyframes drift { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-25vmax, -10vmax) scale(.85); } }

/* ---------- каркас ---------- */
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; max-width: 560px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(255, 61, 110, .35); }
.logo-mark svg { width: 18px; height: 18px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; font-size: 14px; font-weight: 600; backdrop-filter: blur(12px); cursor: pointer; white-space: nowrap; }
.pill-btn.premium { color: var(--gold); border-color: rgba(255, 209, 102, .35); }
.demo-banner { background: repeating-linear-gradient(45deg, #3a2a00, #3a2a00 12px, #2a1f00 12px, #2a1f00 24px); color: var(--gold);
  font-size: 12px; font-weight: 700; text-align: center; padding: 6px 12px; }
.debug-banner { background: #10324a; color: #8fd3ff; }

/* ---------- главная ---------- */
.hero { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0 40px; }
.hero h1 { font-family: 'Unbounded', 'Manrope', sans-serif; font-size: clamp(30px, 9vw, 44px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.03em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); margin: 0 0 26px; font-size: 16px; line-height: 1.5; }

.search-box { background: rgba(20, 20, 32, .6); border: 1px solid var(--line); border-radius: 22px; padding: 8px; backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 14px 12px; font-size: 17px; }
.search-row input::placeholder { color: #6f6f86; }
.btn { border: 0; cursor: pointer; border-radius: 16px; padding: 14px 18px; font-weight: 700; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 16px; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.icon { padding: 14px; }
.btn svg { width: 20px; height: 20px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 4px 4px; }
.chip { padding: 7px 12px; border-radius: 999px; background: transparent; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip.on { background: #fff; color: #111; border-color: #fff; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 4px; }
.filters select, .filters input { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 14px; outline: 0; }
.filters select option { background: #15151f; }
.toggle-filters { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 6px 8px; cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 4px 0; }
.ask-id { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .3); font-size: 14px; }
.ask-id .row { display: flex; gap: 8px; margin-top: 8px; }

/* ---------- AI-подбор ---------- */
.mode-tabs { display: flex; gap: 4px; background: rgba(20, 20, 32, .6); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 10px; backdrop-filter: blur(16px); }
.mode-tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 12px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.mode-tabs button.on { background: #fff; color: #111; }
.mode-tabs button[data-mode="ai"].on { background: linear-gradient(135deg, #8b5cf6, #ff3d6e); color: #fff; }
.ai-box { padding: 10px; }
.ai-box textarea { width: 100%; background: transparent; border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.45; padding: 6px 4px; color: var(--text); min-height: 76px; }
.ai-box textarea::placeholder { color: #6f6f86; }
.ai-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ai-row .chips { padding: 0; }
.ai-row .btn { background: linear-gradient(135deg, #8b5cf6, #ff3d6e); padding: 12px 18px; }
.ai-quota { font-size: 12px; color: var(--muted); margin: 10px 4px 0; line-height: 1.5; }
.ai-quota b { color: var(--text); }
.ai-quota a { color: var(--gold); }
.ai-box .msg-err { margin: 6px 4px 0; min-height: 0; }
.ai-loading { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-summary { background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(255, 61, 110, .1)); border: 1px solid rgba(139, 92, 246, .35); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.ai-summary .lbl { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 6px; }
.ai-summary .q { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.ai-summary .expl { font-size: 13px; color: #d6d0f5; margin-bottom: 8px; }
.ai-summary .meta .tag { background: rgba(139, 92, 246, .22); color: #ddd6fe; }
.ai-summary .meta .tag.minus { background: rgba(255, 84, 112, .18); color: #ffc2cd; text-decoration: line-through; }
.ai-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

.examples { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.examples button { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; font-size: 12px; color: var(--muted); }
.feature b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }

/* ---------- футер ---------- */
footer { padding: 26px 16px 36px; text-align: center; color: var(--muted); font-size: 13px; max-width: 560px; margin: 0 auto; }
footer .links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
footer .tg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #229ED9; color: #fff; text-decoration: none; font-weight: 700; }
footer .tg svg { width: 18px; height: 18px; }
footer .small { font-size: 11px; opacity: .7; line-height: 1.5; margin-top: 10px; }

/* ---------- результаты ---------- */
.page-head { padding: 6px 0 14px; }
.page-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.mini-search { display: flex; gap: 8px; margin-bottom: 14px; }
.mini-search input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: 0; font-size: 16px; }
.results { display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 20px; }
.result { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-decoration: none;
  transition: transform .15s, background .2s; animation: up .35s both; }
.result:active { transform: scale(.98); background: var(--card-strong); }
.poster { width: 92px; flex: none; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #22223a, #13131f); position: relative; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #4a4a66; }
.poster .ph svg { width: 34px; height: 34px; }
.poster.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.4s infinite; }
.result .info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.result h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.result .orig { color: var(--muted); font-size: 13px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #d0d0e0; }
.tag.tv { background: rgba(91, 61, 255, .25); color: #bfb2ff; }
.tag.movie { background: rgba(255, 61, 110, .2); color: #ffb0c4; }
.result .desc { color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty .big { font-size: 46px; margin-bottom: 8px; }
.skeleton { height: 158px; border-radius: var(--radius); background: var(--card); position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.4s infinite; }
.notice { font-size: 12px; color: var(--muted); background: var(--card); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

/* ---------- страница произведения ---------- */
.title-hero { position: relative; margin: 0 -16px; padding: 0 16px 18px; overflow: hidden; }
.title-hero .backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4); opacity: .45; z-index: -1; }
.title-top { display: flex; gap: 16px; align-items: flex-end; padding-top: 10px; }
.title-top .poster { width: 120px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.title-top h1 { font-size: 24px; margin: 0 0 6px; line-height: 1.15; letter-spacing: -.02em; }
.title-top .orig { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.overview { color: #c7c7d6; font-size: 14px; line-height: 1.55; margin: 14px 0 0; }
.ids { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ids span { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; }

.panel { background: rgba(20, 20, 32, .7); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin: 14px 0; backdrop-filter: blur(16px); }
.panel h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.panel h3 .num { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; font-size: 13px; }
.selects { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.selects select { width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; padding: 13px 12px; font-size: 15px; outline: 0; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b9bb0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.selects select option { background: #15151f; }

.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.progress .bar { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.progress.indet .bar { width: 35% !important; position: absolute; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { from { left: -35%; } to { left: 100%; } }
.prog-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 8px; gap: 10px; }
.prog-meta b { color: var(--text); }

.sources { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.sources li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.sources .dot { width: 8px; height: 8px; border-radius: 50%; background: #55556a; flex: none; }
.sources .found .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.sources .error .dot { background: var(--err); }
.sources .running .dot { background: var(--warn); animation: pulse 1s infinite; }
.sources .src { font-weight: 700; min-width: 86px; }
.sources .msg { color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }

.voices { display: grid; gap: 8px; }
.voice { text-align: left; width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.voice.on { border-color: var(--accent); background: rgba(255, 61, 110, .12); }
.voice .vname { font-weight: 700; font-size: 15px; }
.voice .vsrc { color: var(--muted); font-size: 12px; margin-top: 2px; }
.voice .vq { color: var(--muted); font-size: 12px; white-space: nowrap; }
.qualities { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quality { padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-weight: 800; cursor: pointer; position: relative; }
.quality.on { background: #fff; color: #111; }
.quality.locked { opacity: .55; }
.quality .lock { font-size: 10px; display: block; font-weight: 700; color: var(--gold); }
.lock-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

.prep-title { font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.prep-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.status-line { font-size: 13px; color: var(--warn); margin-top: 8px; min-height: 18px; }
.ready-box { text-align: center; padding: 6px 0; }
.ready-box .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(47, 209, 139, .15); color: var(--ok); display: grid; place-items: center; margin: 0 auto 10px; }
.ready-box .check svg { width: 34px; height: 34px; }
.fname { font-size: 12px; color: var(--muted); word-break: break-all; margin: 8px 0 14px; }
.err-box { background: rgba(255, 84, 112, .1); border: 1px solid rgba(255, 84, 112, .3); color: #ffc2cd; border-radius: 14px; padding: 12px; font-size: 14px; line-height: 1.45; }
.row-btns { display: flex; gap: 8px; margin-top: 12px; }
.row-btns .btn { flex: 1; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; cursor: pointer; padding: 10px; }
.upsell { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, rgba(255, 209, 102, .14), rgba(255, 138, 61, .1)); border: 1px solid rgba(255, 209, 102, .3);
  border-radius: 16px; padding: 12px 14px; text-decoration: none; margin-top: 14px; font-size: 13px; }
.upsell b { color: var(--gold); }
.upsell .crown { font-size: 22px; }

/* ---------- реклама ---------- */
.ad-slot { margin: 12px 0; }
.ad-banner { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.ad-banner img, .ad-banner video { width: 100%; height: auto; display: block; }
.ad-label { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #ddd; z-index: 2; }
.ad-html { padding: 0; min-height: 50px; }
.overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; backdrop-filter: blur(6px); }
@keyframes fade { from { opacity: 0; } }
.preroll { width: 100%; max-width: 520px; position: relative; }
.preroll .media { border-radius: 18px; overflow: hidden; background: #000; }
.preroll .media img, .preroll .media video { width: 100%; max-height: 70dvh; object-fit: contain; display: block; }
.preroll .skip { position: absolute; right: 10px; bottom: -54px; }
.preroll .skip button, .popup .close { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.preroll .skip button[disabled] { opacity: .6; }
.popup { width: 100%; max-width: 420px; background: #15151f; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; position: relative; animation: up .25s; }
.popup .close { position: absolute; top: 10px; right: 10px; padding: 6px 12px; z-index: 3; background: rgba(0, 0, 0, .55); }

/* ---------- отправка в Telegram ---------- */
.tg-send { background: linear-gradient(135deg, #229ED9, #2AABEE); }
.tg-steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.tg-step { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 8px; }
.tg-step span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .1); flex: none; }
.tg-step.cur { color: var(--text); background: rgba(34, 158, 217, .14); }
.tg-step.cur span { background: #229ED9; color: #fff; }
.tg-step.done { color: #9be7c4; }
.tg-step.done span { background: var(--ok); color: #062; }

/* ---------- Telegram ---------- */
.tg-box { text-align: center; background: rgba(34, 158, 217, .1); border: 1px solid rgba(34, 158, 217, .35); border-radius: 20px; padding: 18px 14px 4px; margin-bottom: 14px; }
.tg-title { font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.tg-widget { min-height: 44px; display: flex; justify-content: center; }
.tg-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tg-linked { display: flex; align-items: center; gap: 12px; }
.tg-linked img { width: 44px; height: 44px; border-radius: 50%; }
.tg-linked .ava { width: 44px; height: 44px; border-radius: 50%; background: #229ED9; display: grid; place-items: center; color: #fff; }
.tg-linked .ava svg { width: 22px; height: 22px; }
.ai-lock { text-align: center; padding: 6px 4px 2px; }
.ai-lock .t { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.ai-lock .s { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.45; }
.ai-lock .btn { background: linear-gradient(135deg, #ffd166, #ff8a3d); color: #2a1600; }

/* ---------- формы/аккаунт ---------- */
.form { display: grid; gap: 10px; }
.form input { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 16px; outline: 0; width: 100%; }
.form input:focus { border-color: var(--accent); }
.tabs { display: flex; background: var(--card); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: #111; }
.msg-err { color: var(--err); font-size: 14px; min-height: 18px; }
.prem-card { border-radius: 22px; padding: 18px; background: linear-gradient(135deg, #2a1d05, #1a1020); border: 1px solid rgba(255, 209, 102, .35); }
.prem-card h3 { margin: 0 0 4px; color: var(--gold); }
.prem-card ul { margin: 12px 0; padding-left: 18px; color: #e8dcc0; font-size: 14px; line-height: 1.7; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.history li { background: var(--card); border-radius: 14px; padding: 12px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.history a { text-decoration: none; font-weight: 700; }
.history .s { color: var(--muted); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #23232f; border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 2000; max-width: calc(100% - 32px); animation: up .2s; }

/* ---------- заглушка десктопа ---------- */
.desk { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 30px 16px; }
.desk .phone { width: 180px; height: 360px; border-radius: 34px; border: 3px solid rgba(255, 255, 255, .2); margin: 0 auto 30px; position: relative; display: grid; place-items: center;
  background: rgba(255, 255, 255, .03); box-shadow: 0 30px 80px rgba(255, 61, 110, .25); animation: float 4s ease-in-out infinite; }
.desk .phone::before { content: ''; position: absolute; top: 12px; width: 60px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.desk h1 { font-family: 'Unbounded', sans-serif; font-size: 34px; margin: 0 0 12px; }
.desk p { color: var(--muted); max-width: 440px; margin: 0 auto 10px; line-height: 1.6; }
.desk .qr { margin: 22px auto 0; background: #fff; padding: 10px; border-radius: 16px; width: 172px; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
