/* КиноБери — дизайн «Афиша»: тёмная типографика, один оранжевый акцент, без обводок. */
:root {
  --bg: #0D0D0B;
  --surface: #1B1B18;
  --surface-2: #161613;
  --surface-3: #23231F;
  --line: #22221E;
  --text: #EFE9DD;
  --muted: #8C877C;
  --accent: #FF5B22;
  --accent-hover: #FF7A4A;
  --on-accent: #0D0D0B;
  --ok: #3DDC97;
  --warn: #FFB547;
  --err: #FF6B6B;
  --radius: 16px;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- фон: спокойный, без пятен; картинка из настроек — приглушённо ---------- */
.bg { position: fixed; inset: 0; z-index: -2; background: var(--bg); }
.bg .orb, .bg .grain, .bg .vignette { display: none; }
.bg .img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .14; filter: grayscale(.3); }

/* ---------- каркас ---------- */
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 560px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; }
.logo img { width: 32px; height: 32px; }
.logo .accent { color: var(--accent); }
.logo { min-width: 0; white-space: nowrap; }
.logo img { flex: none; }
.top-actions { display: flex; gap: 6px; align-items: center; flex: none; }
/* Узкие телефоны: шапка ужимается, название никогда не уходит под кнопки */
@media (max-width: 374px) {
  .topbar { padding: 12px 16px; gap: 8px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  .pill-btn { height: 34px; padding: 0 11px; font-size: 12px; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 339px) {
  .pill-btn.premium { display: none; }
}
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 0;
  text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill-btn.premium { color: var(--accent); }
.pill-btn.light { background: var(--text); color: var(--bg); }
/* Длинный логин (tg7300632120) не должен наезжать на логотип. */
.pill-btn.light { max-width: 104px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 36px; }
@media (max-width: 374px) { .pill-btn.light { line-height: 34px; max-width: 92px; } }
.demo-banner { background: #2A2410; color: #F5D78A; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; text-align: center; padding: 7px 12px; }
.debug-banner { background: #10283A; color: #9FD3F5; }

/* ---------- главная ---------- */
.hero { min-height: calc(100dvh - 150px); display: flex; flex-direction: column; justify-content: center; padding: 28px 0 40px; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 19vw, 84px); line-height: .92; letter-spacing: -.01em; text-transform: uppercase; margin: 14px 0 0; }
.hero h1 .grad, .hero h1 .accent { color: var(--accent); }
.hero p.lead { color: var(--muted); margin: 16px 0 0; font-size: 16px; line-height: 1.5; }

.search-box { margin-top: 12px; }
.search-row { display: flex; gap: 8px; align-items: stretch; }
.search-row input { flex: 1; min-width: 0; height: 58px; background: var(--surface); border: 0; outline: 0; border-radius: var(--radius); padding: 0 16px; font-size: 17px; }
.search-row input::placeholder, .mini-search input::placeholder, .form input::placeholder, textarea::placeholder { color: #6E6A61; }
.btn { border: 0; cursor: pointer; border-radius: var(--radius); padding: 15px 18px; font-weight: 700; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-size: 16px; transition: background .15s, transform .12s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { background: var(--surface); color: var(--text); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.block { width: 100%; }
.btn.icon { width: 58px; padding: 0; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Вкладки ID: текст с подчёркиванием, не кнопки-пилюли */
.chips { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 2px 0; }
.chip { padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip.on { color: var(--text); border-bottom-color: var(--accent); }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding-top: 10px; }
.filters select, .filters input { width: 100%; height: 46px; background: var(--surface); border: 0; border-radius: 12px; padding: 0 12px; font-size: 14px; outline: 0; }
.filters select option { background: var(--surface); }
.toggle-filters { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 12px 2px 0; cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 2px 0; line-height: 1.5; }
.ask-id { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface); font-size: 14px; }
.ask-id .row { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- режимы: Поиск / AI-подбор ---------- */
.mode-tabs { display: flex; gap: 22px; margin-top: 30px; }
.mode-tabs button { border: 0; background: none; padding: 0 0 8px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.mode-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.ai-box { background: var(--surface); border-radius: var(--radius); padding: 12px; }
.ai-box textarea { width: 100%; background: transparent; border: 0; outline: 0; resize: none; font-size: 16px; line-height: 1.45; padding: 4px; color: var(--text); min-height: 84px; }
.ai-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.ai-row .chips { padding: 0; gap: 14px; }
.ai-row .btn { padding: 12px 18px; }
.ai-quota { font-size: 12px; color: var(--muted); margin: 12px 2px 0; line-height: 1.5; }
.ai-quota b { color: var(--text); }
.ai-quota a { color: var(--accent); }
.ai-quota a.btn { color: var(--on-accent); }
.ai-box .msg-err { margin: 6px 2px 0; min-height: 0; }
.ai-loading { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(13, 13, 11, .3); border-top-color: var(--on-accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-summary { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.ai-summary .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ai-summary .expl { font-size: 14px; margin-bottom: 10px; }
.ai-summary .meta .tag.minus { text-decoration: line-through; }
.ai-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.ai-lock { padding: 6px 2px 2px; }
.ai-lock .t { font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.ai-lock .s { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

.examples { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.9; display: flex; flex-wrap: wrap; column-gap: 4px; }
.examples::before { content: 'Например:'; margin-right: 4px; }
.examples button { background: none; border: 0; padding: 0; font-size: 13px; color: var(--text); cursor: pointer; }
.examples button + button::before { content: '/'; color: var(--muted); margin-right: 4px; }
.examples button:hover { color: var(--accent); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 34px; background: var(--line); border-radius: 12px; overflow: hidden; }
.feature { background: var(--bg); padding: 12px 10px; font-size: 12px; color: var(--muted); }
.feature b { display: block; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 2px; }

/* ---------- футер ---------- */
footer { padding: 22px 20px 34px; color: var(--muted); font-size: 13px; max-width: 560px; margin: 24px auto 0; border-top: 1px solid var(--line); }
footer .links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
footer .links a { text-decoration: none; }
footer .tg { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
footer .tg svg { width: 18px; height: 18px; color: var(--accent); }
footer .small { font-family: var(--mono); font-size: 11px; line-height: 1.6; margin-top: 8px; }

/* ---------- результаты поиска ---------- */
.page-head { padding: 6px 0 14px; }
.page-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: .01em; }
.page-head .sub { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-top: 4px; }
.mini-search { display: flex; gap: 8px; margin: 4px 0 18px; }
.mini-search input { flex: 1; min-width: 0; height: 52px; background: var(--surface); border: 0; border-radius: 14px; padding: 0 14px; outline: 0; font-size: 16px; }
.mini-search .btn.icon { width: 52px; }
.results { display: flex; flex-direction: column; padding-bottom: 12px; }
.result { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; animation: up .35s both; }
.result:first-child { padding-top: 0; }
.result:active { opacity: .7; }
.poster { width: 84px; flex: none; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-3); position: relative; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #4A4740; }
.poster .ph svg { width: 30px; height: 30px; }
.poster.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.4s infinite; }
.result .info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.result h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.result .orig { color: var(--muted); font-size: 13px; }
/* Метаданные — моноширинной строкой «ФИЛЬМ · 2017 · США», без плашек */
.meta { display: flex; gap: 0; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tag + .tag::before { content: '·'; margin: 0 6px; }
.tag.movie, .tag.tv { color: var(--text); }
.result .desc { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; line-height: 1.5; }
.empty .big { font-family: var(--display); font-size: 40px; color: var(--text); margin-bottom: 8px; }
.skeleton { height: 140px; border-radius: 10px; background: var(--surface-2); position: relative; overflow: hidden; margin-bottom: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent); animation: shimmer 1.4s infinite; }
.notice { font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- страница фильма ---------- */
.title-hero { position: relative; padding: 0 0 20px; }
.title-hero .backdrop { display: none; }
.title-top { display: flex; gap: 16px; align-items: flex-end; padding-top: 6px; }
.title-top .poster { width: 96px; border-radius: 8px; }
.title-top h1 { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: .95; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .005em; }
.title-top .orig { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.overview { color: #C9C3B7; font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
.ids { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.ids span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Секции «01 — ОЗВУЧКА»: без карточек, разделены линией */
.panel { padding: 20px 0; margin: 0; border-top: 1px solid var(--line); }
.panel h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; }
.panel h3 .num { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent); letter-spacing: 0; }
.panel h3 .num::before { content: '0'; }
.selects { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.selects select { width: 100%; height: 52px; background: var(--surface); border: 0; border-radius: 14px; padding: 0 34px 0 14px; 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='%238C877C' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.selects select option { background: var(--surface); }

/*
 * Прогресс — «киноплёнка»: перфорация сверху и снизу, лента из кадров.
 * Разметка прежняя (.progress > .bar): кадры рисует наложение ::after поверх дорожки (::before) и заливки (.bar).
 */
.progress { position: relative; isolation: isolate; height: 46px; padding: 13px 8px; border-radius: 6px; background-color: var(--surface-2);
  background-image: repeating-linear-gradient(90deg, #2E2E29 0 9px, transparent 9px 20px), repeating-linear-gradient(90deg, #2E2E29 0 9px, transparent 9px 20px);
  background-size: calc(100% - 16px) 4px, calc(100% - 16px) 4px; background-position: 8px 5px, 8px calc(100% - 5px); background-repeat: no-repeat; overflow: hidden; }
.progress::before { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; bottom: 13px; border-radius: 3px; background: var(--surface-3); z-index: 0; }
.progress::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; bottom: 13px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 22px, var(--surface-2) 22px 26px); }
.progress .bar { position: relative; z-index: 1; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.progress.indet .bar { position: absolute; top: 13px; bottom: 13px; height: auto; width: 32% !important; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { from { left: -32%; } to { left: 100%; } }
.prog-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 10px; gap: 10px; }
.prog-meta b { color: var(--text); }
/* Большая цифра процента над плёнкой */
.big-pct { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 112px; line-height: .9; letter-spacing: -.03em; margin: 6px 0 18px; }
.big-pct span { font-size: 36px; font-weight: 600; color: var(--accent); }
.big-pct.wait { font-size: 56px; color: var(--muted); }
.eta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.eta-grid .k { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.eta-grid .v { font-family: var(--display); font-weight: 600; font-size: 24px; margin-top: 2px; }
.eta-grid > div:last-child { text-align: right; }

/* Проверка источников */
.sources { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.sources li { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sources .dot { width: 8px; height: 8px; border-radius: 50%; background: #3A3A34; flex: none; }
.sources .found .dot { background: var(--ok); }
.sources .error .dot { background: var(--err); }
.sources .running .dot { background: var(--accent); animation: pulse 1s infinite; }
.sources .src { font-family: var(--mono); font-size: 12px; min-width: 88px; }
.sources .msg { color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }

/* Озвучки: строки с точкой-индикатором, выбранная — на подложке */
.voices { display: flex; flex-direction: column; min-width: 0; }
.voice { text-align: left; width: 100%; min-width: 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.voice::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2E2E29; flex: none; }
.voice.on { background: var(--surface); border-radius: 12px; border-bottom-color: transparent; padding: 12px; margin: 0 -12px; width: calc(100% + 24px); }
.voice.on::before { background: var(--accent); }
.voice > div:first-child { min-width: 0; flex: 1; }
.voice .vname { font-weight: 600; font-size: 15px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.voice .vsrc { color: var(--muted); font-size: 12px; margin-top: 2px; }
.voice .vmeta { flex: none; text-align: right; }
.voice .vbest { font-family: var(--mono); font-size: 12px; }
.voice .vcount { color: var(--muted); font-size: 11px; margin-top: 2px; }
.voices-more { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; padding: 14px 0 2px; cursor: pointer; text-align: left; }

/* Качества: сплошная полоса-линейка, выбранное — залито акцентом */
.qualities { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 2px; margin-top: 14px; background: var(--line); border-radius: 12px; overflow: hidden; }
.quality { padding: 12px 4px 10px; text-align: center; min-width: 0; border: 0; border-radius: 0; background: var(--surface); cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.1; }
.quality.on { background: var(--accent); color: var(--on-accent); }
.quality.locked { color: #5A564E; }
.quality .lock { display: block; font-family: var(--body); font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.quality.on .lock { color: var(--on-accent); }
.lock-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* «Откройте бота и нажмите Start» */
.bot-start { background: var(--surface-3); border-left: 3px solid var(--warn); border-radius: 14px; padding: 14px 16px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.bot-start .btn { margin-top: 10px; }

/* Фоновая подготовка и новые серии (премиум) */
.bg-early, .watch { background: var(--surface-3); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.bg-t { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; margin-bottom: 4px; }
.bg-early .hint, .watch .hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.bg-row { display: flex; gap: 8px; margin-top: 10px; }
.bg-row .btn { flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }
.bg-ceil { flex: 0 0 auto; width: auto; background: var(--surface); color: var(--text); border: 0; border-radius: 12px; padding: 0 10px; font: inherit; font-size: 14px; }
.watch { border-left: 3px solid var(--ok); }
.watch.dormant { border-left-color: var(--muted); }
.watch .link-btn { padding-left: 0; margin-top: 6px; }
.task-list { display: grid; gap: 8px; }
.task { background: var(--surface-3); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.task .t-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.task .t-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .t-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.task .t-acts { display: flex; gap: 14px; margin-top: 6px; }
.task .t-acts .link-btn { padding-left: 0; }

/* Подготовка файла */
.prep-title { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.prep-sub { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; margin: 4px 0 6px; }
.status-line { font-size: 13px; color: var(--warn); margin-top: 10px; min-height: 18px; line-height: 1.45; }
.ready-box { padding: 6px 0 4px; }
.ready-box .check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: var(--bg); display: grid; place-items: center; margin: 4px 0 12px; }
.ready-box .check svg { width: 30px; height: 30px; }
.fname { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; margin: 6px 0 14px; }
.err-box { background: #2A1414; color: #FFC9C9; border-radius: 14px; padding: 13px 14px; font-size: 14px; line-height: 1.5; }
.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; text-underline-offset: 3px; font-size: 13px; cursor: pointer; padding: 10px 0; }
.upsell { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 14px; padding: 14px 16px; text-decoration: none; margin-top: 12px; font-size: 14px; line-height: 1.4; }
.upsell b { color: var(--accent); }
.upsell .crown { display: none; }
.upsell::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--text); border-top: 2px solid var(--text); transform: rotate(45deg); flex: none; }

/* Шаги отправки в Telegram */
.tg-send { background: var(--surface); color: var(--text); }
.tg-send:hover { background: var(--surface-3); }
.tg-steps { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 18px; }
.tg-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.tg-step span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #2A2A25; color: var(--muted); flex: none; }
.tg-step.cur { color: var(--text); font-weight: 600; }
.tg-step.cur span { background: var(--accent); color: var(--on-accent); }
.tg-step.done { color: var(--text); }
.tg-step.done span { background: var(--text); color: var(--bg); }

/* ---------- реклама ---------- */
.ad-slot { margin: 12px 0; }
.ad-banner { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); }
.ad-banner img, .ad-banner video { width: 100%; height: auto; display: block; }
.ad-label { position: absolute; top: 6px; left: 6px; font-family: var(--mono); font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #DDD; z-index: 2; text-transform: uppercase; }
.ad-html { padding: 0; min-height: 50px; }
.overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 8, 7, .92); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.preroll { width: 100%; max-width: 520px; position: relative; }
.preroll .media { border-radius: 14px; 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: 0; bottom: -56px; }
.preroll .skip button, .popup .close { background: var(--text); color: var(--bg); border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.preroll .skip button[disabled] { background: var(--surface-3); color: var(--muted); }
.popup { width: 100%; max-width: 420px; background: var(--surface); border-radius: 18px; overflow: hidden; position: relative; animation: up .25s; }
.popup .close { position: absolute; top: 10px; right: 10px; padding: 6px 12px; z-index: 3; }

/* ---------- вход через Telegram ---------- */
.tg-box { background: var(--surface); border-radius: var(--radius); padding: 18px 16px 6px; margin-bottom: 14px; text-align: center; }
.tg-title { font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; 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: var(--surface-3); display: grid; place-items: center; color: var(--accent); }
.tg-linked .ava svg { width: 22px; height: 22px; }

/* ---------- формы и кабинет ---------- */
.form { display: grid; gap: 10px; }
.form input { background: var(--surface); border: 0; border-radius: 14px; height: 54px; padding: 0 16px; font-size: 16px; outline: 0; width: 100%; }
.form input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.tabs { display: flex; gap: 22px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 0 0 8px; border-bottom: 2px solid transparent; font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.msg-err { color: var(--err); font-size: 14px; min-height: 18px; line-height: 1.45; }
.prem-card { border-radius: var(--radius); padding: 18px; background: var(--surface); margin-bottom: 4px; }
.prem-card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; color: var(--accent); }
.prem-card ul { margin: 12px 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.prem-card li { display: flex; gap: 10px; }
.prem-card li::before { content: ''; width: 6px; height: 6px; margin-top: 7px; background: var(--accent); flex: none; }
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.history li { padding: 12px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.history a { text-decoration: none; font-weight: 600; }
.history .s { color: var(--muted); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; 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: 168px; height: 336px; border-radius: 32px; background: var(--surface); margin: 0 auto 32px; position: relative; display: grid; place-items: center; }
.desk .phone::before { content: ''; position: absolute; top: 12px; width: 56px; height: 6px; border-radius: 6px; background: var(--surface-3); }
.desk .phone img { width: 84px; height: 84px; }
.desk h1 { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: .95; text-transform: uppercase; margin: 0 0 14px; }
.desk h1 .accent { color: var(--accent); }
.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: 12px; width: 172px; }

.prem-card .btn.ghost { background: var(--surface-3); }
.prem-card .hint { color: var(--muted); }
