/* meedati.com: сайт покупок для эфира «Змейка». Стиль = экран эфира (stream/render.js).
   Этот же файл подключают страницы после оплаты, которые отдаёт stream/shop.js. */
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/fonts/Manrope-500.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/Manrope-600.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/fonts/Manrope-700.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/fonts/Manrope-800.woff2) format("woff2"); }
@font-face { font-family: Unbounded; font-weight: 900; font-display: swap; src: url(/fonts/Unbounded-900.woff2) format("woff2"); }

:root {
  --bg0: #17112f; --bg1: #120d27; --bg2: #0d0a1d;
  --plate: #130d2a; --box: rgba(255,255,255,.05); --box-line: rgba(255,255,255,.07);
  --frame: rgba(165,135,255,.32); --frame-hi: rgba(165,135,255,.55);
  --ink: #f4f0ff; --mute: rgba(244,240,255,.64); --lav: #c7b4ff;
  --v1: #6a3df0; --v2: #9a6bff; --gold: #ffd23f; --gold2: #ffc229; --hot: #ff5a78; --safe: #3fd6d0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg1); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink);
  font: 600 15px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(75% 22% at 50% 8%, rgba(130,90,255,.22), rgba(130,90,255,0) 70%),
    linear-gradient(var(--bg0), var(--bg1) 50%, var(--bg2));
  background-attachment: fixed;
}
main { flex: 1; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px; }
main.wrap { width: 100%; min-width: 0; }   /* иначе в колонке body ширину задаёт содержимое, и длинная строка раздвигает страницу */
a { color: var(--lav); }
h1, h2, h3, p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.num { font-family: Unbounded, Manrope, sans-serif; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* шапка: название в плашке, как «Уровень 12» в эфире, под ней заголовок с линиями */
.top { padding-top: 16px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 8px; border-radius: 99px; background: #1b1438; border: 1.5px solid var(--frame-hi); font: 900 15px/1 Unbounded, Manrope, sans-serif; color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.pill .head { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c4aeff, #8a5ff5); position: relative; }
.pill .head::before, .pill .head::after { content: ""; position: absolute; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: inset 1px 1px 0 2px #120c26; }
.pill .head::before { left: 6px; } .pill .head::after { right: 6px; }
.title { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 700 14px/1 Manrope, sans-serif; color: rgba(244,240,255,.9); }
.title::before, .title::after { content: ""; flex: 1; height: 1.5px; }
.title::before { background: linear-gradient(90deg, rgba(190,170,255,0), rgba(190,170,255,.35)); }
.title::after { background: linear-gradient(270deg, rgba(190,170,255,0), rgba(190,170,255,.35)); }
.lead { max-width: 36ch; margin: 10px auto 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--mute); text-wrap: balance; }

/* эфир: одна строка в плашке */
.status { display: flex; align-items: center; gap: 10px; min-height: 58px; margin-top: 14px; padding: 9px 9px 9px 16px; border-radius: 18px; background: var(--box); border: 1.5px solid var(--box-line); }
.status b { font-weight: 800; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.on { background: var(--hot); animation: pulse 1.6s infinite; }
.dot.off { background: rgba(244,240,255,.3); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,120,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255,90,120,0); } }
.watch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; background: linear-gradient(90deg, var(--v1), var(--v2)); box-shadow: 0 0 18px rgba(140,90,255,.35); }
.watch.quiet { background: var(--box); border: 1.5px solid var(--box-line); box-shadow: none; color: var(--ink); }
.watch svg { width: 11px; height: 11px; }
.st-note { margin: 8px 4px 0; font-size: 13.5px; font-weight: 600; color: var(--mute); }
/* какая строка видна, решает <html data-live="live|off">; пока /shop/status не ответил, стоит off */
html:not([data-live=live]) .only-live, html[data-live=live] .only-off { display: none !important; }

.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.sec h2 { font: 800 16px/1.2 Manrope, sans-serif; }
.sec span { font-size: 12.5px; color: var(--mute); }

/* покупки: полоса цен эфира, крупно, 2 × 3 */
.dock { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 26px; background: var(--box); border: 1.5px solid var(--box-line); }
.dock form { height: 100%; margin: 0; }
.cell { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 12px; border: 0; border-radius: 20px; background: rgba(255,255,255,.03); color: var(--ink); font: inherit; cursor: pointer; transition: background .5s; }
.cell:active { background: rgba(255,210,63,.22); transition: background 0s; }
.cell .row { display: flex; align-items: center; gap: 10px; }
.cell .em { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.cell .pc { display: flex; flex-direction: column; }
.cell .nm { font-weight: 800; font-size: 15px; line-height: 1.2; }
.cell .num { font-size: 21px; line-height: 1.1; }
.cell .fx { flex: 1; margin: 10px 0 12px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--mute); }
.cell .go { display: grid; place-items: center; height: 40px; border-radius: 99px; font-weight: 800; font-size: 14px; background: linear-gradient(90deg, var(--v1), var(--v2)); box-shadow: 0 0 16px rgba(140,90,255,.3); }
@media (min-width: 640px) { .dock { grid-template-columns: repeat(3, 1fr); } }

/* мои коды: сводка одной строкой, под ней строка на эффект с одним кодом (localStorage, состояние кода спрашивается у магазина) */
.mc-sum { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(255,194,41,.55); background: linear-gradient(rgba(255,196,50,.12), rgba(255,196,50,.04)); color: var(--ink); font: 700 14px Manrope, sans-serif; cursor: pointer; }
.mc-sum[hidden] { display: none; }
.mc-sum b { font-weight: 800; color: var(--gold); white-space: nowrap; }
.mc-es { flex: 1; min-width: 0; display: flex; gap: 8px; font-size: 13px; color: var(--mute); overflow: hidden; }
.mc-es i { font-style: normal; white-space: nowrap; }
.mc-open { color: var(--lav); white-space: nowrap; }
@media (max-width: 430px) { /* на телефоне все шесть эффектов не встают рядом со словом */
  .mc-open { font-size: 0; }
  .mc-open::after { content: "▾"; font-size: 17px; }
  .mc-sum[aria-expanded="true"] .mc-open::after { content: "▴"; }
}
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.codes[hidden] { display: none; }
.mc-sum + .codes { margin-top: 8px; }
.mc-g { border-radius: 14px; }
.mc { display: flex; align-items: stretch; min-height: 48px; border-radius: 14px; border: 1.5px solid rgba(255,194,41,.4); background: rgba(255,196,50,.06); }
.mc-more { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 14px; border: 0; border-radius: 12px 0 0 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mc-more.plain { cursor: default; }
.mc-more::after { content: "▾"; font-size: 15px; line-height: 1; color: var(--lav); transition: transform .2s ease; }
.mc-more.plain::after { content: none; }
.mc-g.open .mc-more::after { transform: rotate(180deg); }
.mc-what { font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.mc-take { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 4px; border: 0; border-radius: 0 12px 12px 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mc-code { font-size: 19px; line-height: 1.15; letter-spacing: .05em; color: var(--gold); }
.mc-code.long { font-size: 16px; letter-spacing: .02em; }
.mc-go { min-width: 96px; padding: 8px 10px; border-radius: 99px; border: 1.5px solid rgba(255,210,63,.45); background: rgba(19,13,42,.6); color: var(--ink); font-size: 12.5px; font-weight: 800; text-align: center; white-space: nowrap; }
.mc-take:active .mc-go, .mc-one:active { transform: scale(.96); }
/* остальные коды эффекта: лента вбок (выбор владельца 2026-11-05), открывается плавно, закрытое недоступно с клавиатуры */
.mc-sub { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .22s ease, visibility 0s .22s; }
.mc-g.open .mc-sub { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .22s ease, visibility 0s; }
.mc-sub ul { list-style: none; min-height: 0; display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scroll-padding: 0 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.mc-sub ul::-webkit-scrollbar { display: none; }
.mc-sub li { flex: 0 0 84px; padding: 8px 0 2px; scroll-snap-align: start; }
/* мышью вбок не полистать: коды переносятся на новую строку */
@media (hover: hover) and (pointer: fine) { .mc-sub ul { flex-wrap: wrap; overflow: hidden; margin: 0; padding: 0; } .mc-sub li { padding: 0; } .mc-sub li:first-child { margin-top: 0; } .mc-sub ul::before { content: ""; flex: 0 0 100%; height: 2px; } }
.mc-one { position: relative; width: 100%; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 12px; border: 1.5px solid var(--box-line); background: var(--box); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.mc-one .mc-code { font-size: 16px; }
.mc-one.done { border-color: rgba(63,214,208,.6); background: rgba(63,214,208,.1); }
.mc-one.done .mc-code { color: var(--ink); }
.mc-one.done::after { content: "✓"; position: absolute; top: 3px; right: 7px; font-size: 11px; font-weight: 800; color: var(--safe); }
.mc-one.miss { border-color: var(--hot); }
@media (hover: hover) { .mc-one:hover { border-color: var(--frame-hi); } .mc-more:hover .mc-what { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .mc-sub, .mc-g.open .mc-sub, .mc-more::after { transition: none; } }
.mc-none { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--box); border: 1.5px solid var(--box-line); font-size: 14px; font-weight: 600; color: var(--mute); }
.mc-past { margin: 8px 4px 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.mc-past summary { cursor: pointer; width: fit-content; }
.mc-past ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.mc-past li { display: flex; justify-content: space-between; gap: 10px; }

/* как это работает */
.plate { padding: 14px; border-radius: 22px; background: var(--box); border: 1.5px solid var(--box-line); }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.how .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1b1438; border: 1.5px solid var(--frame-hi); font: 900 12px Unbounded, sans-serif; color: var(--lav); }
.how li > span:last-child { padding-top: 3px; }

/* вопросы */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 18px; background: var(--box); border: 1.5px solid var(--box-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-weight: 800; font-size: 14.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--lav); border-bottom: 2px solid var(--lav); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 16px 14px; font-size: 13.5px; font-weight: 500; color: var(--mute); }

/* подвал */
.site-foot { margin-top: 36px; padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(165,135,255,.14); background: rgba(8,6,18,.35); font-size: 13px; font-weight: 500; color: var(--mute); }
.site-foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.site-foot h3 { margin-bottom: 6px; font: 800 12px/1.2 Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(244,240,255,.85); }
.site-foot p { line-height: 1.6; overflow-wrap: anywhere; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.site-foot .copy-line { margin-top: 12px; font-size: 12px; color: rgba(244,240,255,.4); }

/* окно оплаты по центру экрана */
.modal-bg { position: fixed; inset: 0; z-index: 20; background: rgba(8,5,20,.66); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal {
  position: fixed; z-index: 21; top: 50%; left: 50%; width: min(420px, calc(100% - 28px)); max-height: calc(100vh - 28px); overflow-y: auto;
  margin: 0; padding: 22px 18px 18px; border-radius: 28px; background: var(--plate); border: 1.5px solid var(--frame); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translate(-50%, -48%) scale(.96); opacity: 0; visibility: hidden;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, visibility 0s linear .22s;
}
html.modal-open .modal { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, visibility 0s; }
html.modal-open .modal-bg { opacity: 1; pointer-events: auto; }
html.modal-open body { overflow: hidden; }
.x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--box-line); background: var(--box); color: var(--mute); font-size: 21px; line-height: 1; cursor: pointer; }
.m-item { display: flex; gap: 12px; align-items: center; padding-right: 42px; }
.m-em { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: var(--box); border: 1.5px solid var(--box-line); }
.m-item h2 { display: flex; align-items: baseline; gap: 10px; font: 800 18px/1.2 Manrope, sans-serif; }
.m-item h2 .num { font-size: 20px; }
.m-item p { margin-top: 3px; color: var(--mute); font-size: 14px; }
.m-text { margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--mute); }
.pay-btn { display: block; width: 100%; height: 58px; margin-top: 16px; border: 0; border-radius: 99px; color: #fff; cursor: pointer; font: 800 17px Manrope, sans-serif; background: linear-gradient(90deg, var(--v1), var(--v2)); box-shadow: 0 0 28px rgba(140,90,255,.45); }
.pay-btn:active { transform: scale(.98); }
.pay-btn:disabled { cursor: wait; opacity: .7; }
.m-fine { margin-top: 10px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--mute); }

/* страницы после оплаты (stream/shop.js) */
.center { text-align: center; padding-top: 24px; }
.spin { width: 56px; height: 56px; margin: 34px auto 22px; border-radius: 50%; border: 5px solid rgba(255,255,255,.07); border-top-color: var(--v2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big { font: 900 22px/1.25 Unbounded, Manrope, sans-serif; text-wrap: balance; }
.sub { margin: 10px auto 0; max-width: 34ch; font-weight: 500; color: var(--mute); }
.small { margin-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--mute); }
.note { margin: 14px auto 0; max-width: 36ch; padding: 10px 12px; border-radius: 14px; background: rgba(255,210,63,.07); border: 1.5px solid rgba(255,210,63,.18); color: #ffe7a0; font-size: 13.5px; }
.paid { display: inline-flex; gap: 6px; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(63,214,208,.1); border: 1.5px solid rgba(63,214,208,.45); color: #8ff0ea; font-weight: 800; font-size: 13.5px; }
.codebox { margin-top: 14px; padding: 16px 12px 18px; border-radius: 26px; border: 2px solid var(--gold2); background: linear-gradient(rgba(255,196,50,.16), rgba(255,196,50,.05)); box-shadow: 0 0 34px rgba(255,190,40,.22); }
.digits { display: flex; justify-content: center; gap: 10px; }
.digits .d { width: 84px; height: 108px; border-radius: 20px; display: grid; place-items: center; background: var(--plate); font: 900 62px/1 Unbounded, Manrope, sans-serif; color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(255,210,63,.3); }
.digits.n4 .d { width: 68px; height: 94px; font-size: 50px; }
.digits.n5 .d { width: 56px; height: 84px; font-size: 42px; border-radius: 16px; }
.copy { display: inline-flex; align-items: center; gap: 8px; height: 46px; margin-top: 14px; padding: 0 20px; border-radius: 99px; border: 1.5px solid rgba(255,210,63,.45); background: rgba(19,13,42,.6); color: var(--ink); font: 800 15px Manrope, sans-serif; cursor: pointer; }
.copy.copied { border-color: var(--safe); color: #8ff0ea; }
.copy svg { width: 18px; height: 18px; }
.write { margin-top: 24px; font: 900 25px/1.2 Unbounded, Manrope, sans-serif; text-wrap: balance; }
.back { display: flex; align-items: center; justify-content: center; gap: 9px; height: 58px; margin-top: 16px; border-radius: 99px; color: #fff; text-decoration: none; font: 800 17px Manrope, sans-serif; background: linear-gradient(90deg, var(--v1), var(--v2)); box-shadow: 0 0 28px rgba(140,90,255,.45); }
.back svg { width: 12px; height: 12px; }
.btn { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; margin-top: 22px; border-radius: 99px; color: #fff; text-decoration: none; font: 800 16px Manrope, sans-serif; background: linear-gradient(90deg, var(--v1), var(--v2)); }
.fail-ic { width: 64px; height: 64px; margin: 34px auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,90,120,.12); border: 1.5px solid rgba(255,90,120,.5); color: #ff8095; font: 900 28px/1 Unbounded, sans-serif; }

/* документы: оферта, возврат, политика */
.doc { padding-top: 22px; }
.doc .back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; text-decoration: none; }
.doc h1 { font: 900 22px/1.25 Unbounded, Manrope, sans-serif; }
.doc .date { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--mute); }
.doc h2 { margin: 26px 0 8px; font: 800 16px/1.3 Manrope, sans-serif; }
.doc p, .doc li { font-size: 14.5px; font-weight: 500; line-height: 1.6; color: rgba(244,240,255,.84); }
.doc p + p { margin-top: 8px; }
.doc ol, .doc ul { margin: 8px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 9px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(165,135,255,.14); font-weight: 500; color: rgba(244,240,255,.84); }
.doc th { font-weight: 800; color: var(--ink); }

@media (min-width: 720px) { .wrap { max-width: 640px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
