/* CTRL SHOP — чёрный премиум. Лайм — только точечно. */
@font-face { font-family: "Inter Tight"; font-weight: 400 800; font-display: swap; src: url(fonts/intertight-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 400 800; font-display: swap; src: url(fonts/intertight-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 400 900; font-display: swap; src: url(fonts/unbounded-lat.woff2) format("woff2"); unicode-range: U+0000-00FF; }

:root {
  --bg: #000;
  --s1: #0a0a0b;
  --s2: #111113;
  --s3: #18181b;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .045);
  --text: #f5f5f7;
  --muted: #8d8d93;
  --dim: #55555b;
  --lime: #cefb41;
  --amber: #f5b544;
  --red: #ff5a64;
  --tint: 206, 251, 65;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --safe-top: max(calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)), env(safe-area-inset-top, 0px));
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --font: "Inter Tight", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --mark: "Unbounded", var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); }
img { display: block; max-width: 100%; }

/* едва заметный фон: тёмная виньетка и тонкое зерно */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 50% at 50% -10%, rgba(255, 255, 255, .045), transparent 70%); }
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035; mix-blend-mode: screen;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.app { position: relative; z-index: 2; padding: calc(var(--safe-top) + 10px) 16px calc(var(--safe-bottom) + 110px); max-width: 560px; margin: 0 auto; }
.view { display: none; }
.view.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- кастомные эмодзи ---------- */
.ce { display: inline-grid; place-items: center; width: 28px; height: 28px; vertical-align: middle; flex: none; position: relative; }
.ce svg, .ce video, .ce img { width: 100% !important; height: 100% !important; display: block; }
.ce .ce-fb { font-size: .8em; line-height: 1; opacity: 0; transition: opacity .2s; }
.ce.fail .ce-fb, .ce:not([data-ce]) .ce-fb { opacity: 1; }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 14px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--mark); font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.mark img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.mark b { color: var(--lime); font-weight: 800; }
.mark span { white-space: nowrap; }
.ava { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--s3); box-shadow: 0 0 0 1px var(--line-2); font-weight: 700; font-size: 15px; color: var(--text); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.top-r { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ce { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #030303; box-shadow: 0 0 0 1px var(--line); margin-bottom: 28px; isolation: isolate; }
.hero-art { position: relative; aspect-ratio: 1 / .74; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .0) 52%, rgba(3, 3, 3, .9) 88%, #030303 100%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55)); }
/* сцена = логотип + кольцо + блик; --hx/--hy (−1…1) — наклон за пальцем/телефоном (heroFx в app.js) */
.hero-stage { --hx: 0; --hy: 0; position: absolute; left: 50%; top: -2%; width: 104%; aspect-ratio: 1;
  transform: translateX(-50%) perspective(1100px) rotateX(calc(var(--hy) * -7deg)) rotateY(calc(var(--hx) * 8deg));
  animation: hover 7s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.4%; } }
.hero-stage img { position: absolute; inset: 0; width: 100%; height: 100%;
  filter: saturate(.72) brightness(calc(.86 + var(--hy) * -.05)) contrast(1.05);
  translate: calc(var(--hx) * -1.2%) calc(var(--hy) * -1%); }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1;
  translate: calc(var(--hx) * 1%) calc(var(--hy) * .8%); }
.hero-ring circle { fill: none; transform-box: fill-box; transform-origin: center; }
/* комета по кольцу */
.r-comet { stroke: #fff; stroke-linecap: round; stroke-width: .5; stroke-dasharray: 10 286.5; opacity: .9;
  filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 5px rgba(206, 251, 65, .8)); animation: comet 7s linear infinite; }
@keyframes comet { to { stroke-dashoffset: -296.5; } }
/* кольцо «дышит» — мягкое лаймовое свечение поверх нарисованного */
.r-glow { stroke: var(--lime); stroke-width: .9; opacity: .1; filter: blur(1.2px); animation: breathe 4.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .32; } }
/* волна от тапа */
.r-wave { stroke: var(--lime); stroke-width: .35; opacity: 0; }
/* блик по стеклу пакета: сам проходит раз в 6 с, плюс пятно света едет за наклоном */
.hero-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  clip-path: polygon(24% 27.5%, 76.5% 27.5%, 81.5% 79.5%, 18.5% 79.5%); mix-blend-mode: screen; }
.hero-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, .17) 48%, rgba(230, 255, 170, .06) 56%, transparent);
  transform: skewX(-16deg); animation: glass 6.5s cubic-bezier(.45, 0, .25, 1) 1.8s infinite; }
@keyframes glass { 0% { left: -40%; } 26%, 100% { left: 120%; } }
.hero-shine::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 34% at calc(50% - var(--hx) * 34%) calc(42% - var(--hy) * 26%), rgba(255, 255, 255, .13), transparent 70%); }
/* первое появление: пакет проявляется из размытия, кольцо прорисовывается */
.hero-stage.intro img { animation: heroIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-stage.intro .r-glow { stroke-dasharray: 296.5; animation: ringDraw 1.4s cubic-bezier(.6, 0, .2, 1) .15s both, breathe 4.6s ease-in-out 1.6s infinite; }
.hero-stage.intro .r-comet { animation: comet 7s linear infinite, fadeIn .6s 1s both; }
@keyframes heroIn { from { opacity: 0; scale: .9; filter: blur(14px) saturate(.72) brightness(.5); } }
@keyframes ringDraw { from { stroke-dashoffset: 296.5; opacity: .9; } 70% { opacity: .55; } }
@keyframes fadeIn { from { opacity: 0; } }
/* тап по логотипу */
.hero-stage.burst img { animation: squish .55s cubic-bezier(.3, 1.6, .5, 1); }
.hero-stage.burst .r-wave { animation: wave .9s cubic-bezier(.2, .7, .2, 1); }
.hero-stage.burst .r-glow { animation: flash .9s ease-out, breathe 4.6s ease-in-out .9s infinite; }
@keyframes squish { 30% { scale: .965; } }
@keyframes wave { from { opacity: .8; scale: 1; stroke-width: .8; } to { opacity: 0; scale: 1.16; stroke-width: .1; } }
@keyframes flash { 15% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .hero-stage, .hero-stage *, .hero-stage *::before { animation: none !important; } }
/* стена логотипов: наклонённая плоскость, ряды плывут (только transform — дёшево), наклон за пальцем — --hx/--hy */
.hero-stage.wall { inset: 0; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; animation: none;
  transform: perspective(900px) rotateX(calc(24deg + var(--hy) * -6deg)) rotateY(calc(var(--hx) * 8deg)) rotateZ(-12deg) scale(1.05); transform-origin: 50% 50%; }
.wall-in { position: absolute; inset: -20% -40%; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.wrow { display: flex; }
/* параллакс: ряды на разной «глубине» сдвигаются за наклоном телефона / пальцем по-разному */
.wrow:nth-child(1) { translate: calc(var(--hx) * -6px) calc(var(--hy) * -4px); }
.wrow:nth-child(2) { translate: calc(var(--hx) * -13px) calc(var(--hy) * -7px); }
.wrow:nth-child(3) { translate: calc(var(--hx) * -20px) calc(var(--hy) * -10px); }
.wtrack { display: flex; gap: 12px; width: max-content; will-change: transform; animation: drift 60s linear infinite; }
.wrow:nth-child(2) .wtrack { animation-duration: 72s; animation-direction: reverse; margin-left: -46px; }
.wrow:nth-child(3) .wtrack { animation-duration: 66s; margin-left: -20px; }
@keyframes drift { to { transform: translateX(-50%); } }
.wt { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; filter: saturate(.8) brightness(.62);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55); }
.wt .ce { width: 54px; height: 54px; }
.wt.pad { background: linear-gradient(180deg, #19191c, #0c0c0d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 28px rgba(0, 0, 0, .55); }
.wt.pad .ce { width: 34px; height: 34px; }
.hero-stage.wall.intro .wall-in { animation: heroIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-stage.wall.burst .wall-in { animation: squish .55s cubic-bezier(.3, 1.6, .5, 1); }
.hero-art:has(.wall) { background: #030303; }
.hero-art:has(.wall)::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(3, 3, 3, .7) 85%, #030303 100%); }
@media (prefers-reduced-motion: reduce) { .wtrack { animation: none; } }
.hero-copy { position: relative; z-index: 2; padding: 0 22px 24px; margin-top: -34px; }
/* название магазина под стеной логотипов */
.hero-name { text-align: center; font-family: var(--mark); font-weight: 800; font-size: clamp(25px, 7.4vw, 32px); letter-spacing: .03em; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, .78); }
.hero-name b { color: var(--lime); font-weight: 800; opacity: .8; }
.hero-name + .eyebrow { margin-top: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(206, 251, 65, .7); flex: none; }
.dot.amber { background: var(--amber); box-shadow: 0 0 10px rgba(245, 181, 68, .6); }
.dot.red { background: var(--red); box-shadow: 0 0 10px rgba(255, 90, 100, .6); }
.dot.grey { background: var(--dim); box-shadow: none; }
.hero h1 { margin: 10px 0 8px; font-weight: 750; font-size: clamp(33px, 9.6vw, 42px); line-height: 1; letter-spacing: -.045em; }
.hero h1 span { color: var(--muted); }
.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 300px; }

/* ---------- секции ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.sec-h h2 { margin: 0; font-weight: 750; font-size: 24px; letter-spacing: -.035em; }
.sec-h small { color: var(--dim); font-size: 13px; font-weight: 500; }

/* ---------- карточки товаров ---------- */
.products { display: grid; gap: 12px; margin-bottom: 32px; }
.pc { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(110% 80% at 100% 0%, rgba(var(--tint), .11), transparent 58%), var(--s1);
  box-shadow: 0 0 0 1px var(--line), var(--hi); transition: transform .3s var(--ease); }
.pc:active { transform: scale(.985); }
.pc-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; }
.pc-ico { width: 60px; height: 60px; flex: none; display: grid; place-items: center; position: relative; }
.pc-ico::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tint), .22), transparent 68%); }
.pc-ico .ce { width: 56px; height: 56px; position: relative; }
.pc-t { flex: 1; min-width: 0; }
.pc-t b { display: block; font-weight: 750; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.pc-t small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--line-2); color: var(--text); }
.arrow svg { width: 15px; height: 15px; }
.pc-plans { border-top: 1px solid var(--line); padding: 6px 18px 8px; }
.pc-plan { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14.5px; }
.pc-plan + .pc-plan { border-top: 1px solid rgba(255, 255, 255, .04); }
.pc-plan .ce { width: 22px; height: 22px; }
.pc-plan span { flex: 1; font-weight: 550; }
.pc-plan em { font-style: normal; color: var(--dim); font-size: 12.5px; margin-left: 6px; font-weight: 500; }
.pc-plan b { font-weight: 700; letter-spacing: -.01em; }
.tag { font-style: normal; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: var(--lime); background: rgba(206, 251, 65, .07); box-shadow: inset 0 0 0 1px rgba(206, 251, 65, .2); vertical-align: 2px; }

/* ---------- как это работает ---------- */
.steps { border-radius: var(--r-xl); background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); margin-bottom: 30px; overflow: hidden; }
.step { display: flex; gap: 16px; padding: 16px 18px; align-items: flex-start; }
.step + .step { border-top: 1px solid var(--line); }
.step i { font-style: normal; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--dim); padding-top: 2px; width: 18px; }
.step b { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.step small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.foot { text-align: center; color: var(--dim); font-size: 12px; padding-top: 4px; }
.foot b { font-family: var(--mark); font-weight: 800; letter-spacing: .08em; color: var(--muted); font-size: 12px; }
.foot b i { font-style: normal; color: var(--lime); opacity: .85; }

/* ---------- жидкое стекло ---------- */
.dock, .buybar-in, .icon-btn, .toast {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .045));
  backdrop-filter: blur(16px) saturate(1.7) brightness(1.05); -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.05);
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .34), inset 0 -1px .5px rgba(255, 255, 255, .08), inset 1px 0 .5px rgba(255, 255, 255, .06),
    inset -1px 0 .5px rgba(255, 255, 255, .06), inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 18px 44px rgba(0, 0, 0, .6);
}
.lens { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 20px; will-change: transform, width, height; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .09));
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .55), inset 0 -.5px 0 rgba(255, 255, 255, .14), inset 0 0 0 .5px rgba(255, 255, 255, .16),
    0 4px 14px rgba(0, 0, 0, .35);
  transition: background .35s, box-shadow .35s, opacity .2s; }
.lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 55% at 30% 0%, rgba(255, 255, 255, .18), transparent 60%); opacity: calc(.5 + var(--lift, 0) * .5); }

/* ---------- док ---------- */
.dock { position: fixed; z-index: 20; left: 50%; bottom: calc(var(--safe-bottom) + 12px); transform: translateX(-50%); padding: 6px; border-radius: 35px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, .10), transparent 55%); }
/* капсула, как лента разделов сверху: радиус = половина высоты (кнопка 58 + отступ 6×2) */
.dock .lens { border-radius: 29px; }
.dock.dragging .lens { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .10) 60%, rgba(255, 255, 255, .16));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .75), inset 0 -1px 1px rgba(255, 255, 255, .2), inset 0 0 0 .5px rgba(255, 255, 255, .4),
    0 12px 32px rgba(0, 0, 0, .5), 0 0 34px rgba(206, 251, 65, .14); }
.dock-row { position: relative; z-index: 1; display: flex; gap: 2px; }
.dock button { position: relative; width: 76px; height: 58px; border-radius: 29px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(255, 255, 255, .46); font-size: 10.5px; font-weight: 650; letter-spacing: .01em; transition: color .3s; }
.dock button .dic { display: grid; place-items: center; width: 26px; height: 26px; }
.dock button .ce { width: 26px; height: 26px; opacity: .5; transform: scale(var(--mag, 1)); transition: opacity .3s; }
.di { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible;
  transform: scale(var(--mag, 1)); transition: stroke-width .3s; }
.di .f { fill: transparent; transition: fill .3s; }
.dock button.on .di .f { fill: currentColor; }
.dock button.on .di .k { stroke: #141416; }
.dock button.on .di { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .25)); }
.dock button span { transform: scale(calc(1 + (var(--mag, 1) - 1) * .5)); }
.dock button.on { color: #fff; }
.dock button.on .ce { opacity: 1; }
.dock .badge-dot { position: absolute; top: 8px; left: 50%; margin-left: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px rgba(20, 20, 22, .9), 0 0 8px rgba(245, 181, 68, .6); }

/* ---------- страница товара ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: var(--bg); visibility: hidden; will-change: clip-path, transform;
  padding: calc(var(--safe-top) + 10px) 16px calc(var(--safe-bottom) + 130px); }
.sheet.on { visibility: visible; }
.sheet .bg-in { position: absolute; inset: 0 0 auto 0; height: 460px; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 26%, rgba(var(--tint), .16), transparent 72%); }
.sheet-in { position: relative; max-width: 560px; margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.ph { text-align: center; padding: 6px 0 26px; }
.orb { position: relative; width: 172px; height: 172px; margin: 4px auto 16px; display: grid; place-items: center; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.orb::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); }
.orbit { position: absolute; inset: 0; animation: spin 9s linear infinite; }
.orbit::before { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime), 0 0 22px rgba(206, 251, 65, .6); }
@keyframes spin { to { transform: rotate(360deg); } }
.orb .ce { width: 96px; height: 96px; z-index: 1; filter: drop-shadow(0 8px 30px rgba(var(--tint), .35)); }
.ph small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.ph h1 { margin: 8px 0 0; font-weight: 750; font-size: clamp(34px, 10vw, 44px); letter-spacing: -.045em; line-height: 1; }
.label { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; margin: 0 4px 10px; }

.plans { position: relative; display: grid; gap: 10px; margin-bottom: 26px; }
.plan-lens { z-index: 2; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .62), inset 0 1px 1px rgba(255, 255, 255, .5), 0 0 0 4px rgba(255, 255, 255, .03), 0 0 44px rgba(var(--tint), .16); }
.plan-lens::after { opacity: .45; }
.plan { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-lg);
  background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); transition: box-shadow .3s, background .3s, transform .2s; }
.plan:active { transform: scale(.985); }
.plan.sel { background: linear-gradient(180deg, #141416, #0e0e10); }
.plan.off { opacity: .4; }
.plan > .ce { width: 40px; height: 40px; }
.plan-main { flex: 1; min-width: 0; }
.plan-main b { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.plan-main small { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: 13px; margin-top: 5px; }
.plan-price { text-align: right; flex: none; }
.plan-price b { display: block; font-weight: 750; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.plan-price s { display: block; color: var(--dim); font-size: 12px; }
.plan-price small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; white-space: nowrap; }

.feats { border-radius: var(--r-xl); background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); overflow: hidden; margin-bottom: 20px; }
.feat { display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-size: 15px; line-height: 1.35; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat svg { width: 18px; height: 18px; flex: none; color: var(--lime); opacity: .9; }

.buybar { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(var(--safe-bottom) + 14px);
  background: linear-gradient(transparent, rgba(0, 0, 0, .92) 32%); transform: translateY(120%); transition: transform .55s var(--ease); }
.buybar.on { transform: none; }
.buybar-in { display: flex; align-items: center; gap: 14px; max-width: 528px; margin: 0 auto; padding: 8px 8px 8px 18px; border-radius: 24px;
  position: relative; }
.total { flex: 1; min-width: 0; }
.total small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.total b { display: block; font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin-top: 1px; white-space: nowrap; }
.buy { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 18px;
  background: linear-gradient(180deg, #fff, #e6e6eb); color: #000; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; transition: transform .25s var(--ease), opacity .2s;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0, 0, 0, .12), 0 10px 30px rgba(255, 255, 255, .1); }
.buy::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -50%; } 100% { left: 130%; } }
.buy:active { transform: scale(.97); }
.buy[disabled] { opacity: .35; }
.buy .ce { width: 22px; height: 22px; }

/* ---------- заказы ---------- */
.page-h { font-weight: 750; font-size: 34px; letter-spacing: -.05em; margin: 12px 2px 18px; }
.orders { display: grid; gap: 10px; }
.ocard { border-radius: var(--r-lg); background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); overflow: hidden; }
.ocard-top { display: flex; align-items: center; gap: 13px; padding: 14px 16px; width: 100%; text-align: left; }
.ocard-top > .ce { width: 42px; height: 42px; }
.o-main { flex: 1; min-width: 0; }
.o-main b { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--s3); color: var(--text); }
.st.refunded, .st.canceled { color: var(--muted); }
.payload { margin: 0 16px 12px; padding: 14px 16px; border-radius: 14px; background: #050505; box-shadow: inset 0 0 0 1px var(--line); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: #e8e8ea; }
.copy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 16px 16px; width: calc(100% - 32px); height: 46px; border-radius: 14px;
  background: var(--s3); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; }
.copy .ce { width: 20px; height: 20px; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.empty > .ce { width: 84px; height: 84px; margin-bottom: 14px; }
.empty b { display: block; color: var(--text); font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 6px; }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 0 22px; height: 48px; border-radius: 16px; background: #f5f5f7; color: #000; font-weight: 650; }

/* ---------- профиль ---------- */
.prof { text-align: center; padding: 14px 0 22px; }
.prof .ava { width: 84px; height: 84px; margin: 0 auto 14px; font-size: 30px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px rgba(255, 255, 255, .03); }
.prof h2 { margin: 0; font-weight: 650; font-size: 24px; letter-spacing: -.03em; }
.prof small { color: var(--muted); font-size: 13.5px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.tile { padding: 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); text-align: left; }
.tile small { display: block; color: var(--muted); font-size: 12.5px; }
.tile b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.03em; margin-top: 6px; }
.rows { border-radius: var(--r-lg); overflow: hidden; background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); }
.row { display: flex; align-items: center; gap: 13px; padding: 15px 16px; text-align: left; width: 100%; font-weight: 550; font-size: 15px; }
.row + .row { border-top: 1px solid var(--line); }
.row .ce { width: 24px; height: 24px; }
.row span { flex: 1; }
.row svg.chev { width: 16px; height: 16px; color: var(--dim); }

/* ---------- после оплаты ---------- */
.done { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.done.on { opacity: 1; pointer-events: auto; }
.done-in { width: 100%; max-width: 400px; text-align: center; }
.burst { position: relative; width: 118px; height: 118px; margin: 0 auto 24px; }
.burst::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(206, 251, 65, .16), transparent 65%); opacity: 0; transition: opacity 1s .6s; }
.done.on .burst::before { opacity: 1; }
.burst svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.burst .c1 { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; stroke-dasharray: 440; stroke-dashoffset: 440; }
.burst .ck { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; }
.done.on .c1 { animation: draw 1s var(--ease) forwards; }
.done.on .ck { animation: draw .55s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-weight: 650; font-size: 28px; letter-spacing: -.04em; margin: 0 0 8px; }
.done p { color: var(--muted); margin: 0 0 20px; line-height: 1.45; font-size: 15px; }
.done .payload { margin: 0 0 10px; text-align: left; }
.done .copy { margin: 0 0 10px; width: 100%; }
.done .close { height: 54px; width: 100%; border-radius: 18px; background: #f5f5f7; color: #000; font-weight: 650; font-size: 16px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: #fff; animation: rot .8s linear infinite; display: inline-block; vertical-align: -3px; }
.buy .spinner { border-color: rgba(0, 0, 0, .15); border-top-color: #000; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- заставка ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; transition: opacity .6s, visibility .6s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-in { text-align: center; }
.word { font-family: var(--mark); font-weight: 800; font-size: 26px; letter-spacing: .08em; opacity: 0; animation: fadeUp .8s .1s var(--ease) forwards; }
.word b { color: var(--lime); font-weight: 800; }
.loader { width: 120px; height: 1px; margin: 22px auto 0; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; opacity: 0; animation: fadeUp .6s .4s forwards; }
.loader::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--lime), transparent); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { left: -40%; } to { left: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.splash p { margin: 18px 0 0; color: var(--dim); font-size: 13px; min-height: 18px; }

/* ---------- тост ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-top) + 12px); transform: translate(-50%, -24px) scale(.96); opacity: 0; visibility: hidden; padding: 12px 18px; border-radius: 16px;
  font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .25s; }
.toast.err { box-shadow: 0 0 0 1px rgba(255, 90, 100, .45), 0 12px 30px rgba(0, 0, 0, .5); }

/* ---------- админка ---------- */
.seg { position: relative; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px; scrollbar-width: none; }
.seg-lens { border-radius: 12px; background: linear-gradient(180deg, #fff, #e9e9ee); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .4); }
.seg-lens::after { display: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 13.5px; color: var(--muted); transition: color .3s;
  display: inline-flex; align-items: center; gap: 7px; }
.seg button .ce { width: 18px; height: 18px; }
.seg button.on { color: #000; box-shadow: none; }
.seg button .ce { transition: filter .3s; }
.seg button.on .ce.rp { filter: brightness(0); }  /* чёрным — только перекрашенные в белый; цветные остаются цветными */
.card { border-radius: var(--r-lg); background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); padding: 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 12px; font-weight: 650; font-size: 16px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.card h3 .ce { width: 22px; height: 22px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 0 0 6px 2px; }
.fld input, .fld textarea, .fld select { width: 100%; padding: 12px 14px; border-radius: 12px; background: #050505; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; font-size: 15px; }
.fld textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.fld input:focus, .fld textarea:focus, .fld select:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { height: 46px; padding: 0 16px; border-radius: 14px; font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #f5f5f7; color: #000; }
.btn.sec { background: var(--s3); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.btn.danger { background: rgba(255, 90, 100, .1); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 90, 100, .25); }
.btn.wide { width: 100%; }
.btn .ce { width: 20px; height: 20px; }
.btn:not(.sec):not(.danger) .ce { filter: brightness(0); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns .btn { flex: 1; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 14px; font-weight: 550; font-size: 14.5px; }
.sw { width: 50px; height: 30px; border-radius: 99px; background: #26262a; position: relative; transition: background .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.sw.on { background: var(--lime); }
.sw.on::after { transform: translateX(20px); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-of-type { border-top: 0; }
.list-item > .ce { width: 36px; height: 36px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; font-weight: 600; font-size: 14.5px; }
.list-item .grow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; word-break: break-word; }
.mini { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--s3); box-shadow: 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 6px; flex: none; }
.mini.on { background: #f5f5f7; color: #000; box-shadow: none; }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding: 2px; }
.egrid button { aspect-ratio: 1; border-radius: 12px; background: #050505; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.egrid button.sel { box-shadow: inset 0 0 0 1.5px #fff; }
.egrid .ce { width: 36px; height: 36px; }
.ptabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: none; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: var(--s3); color: var(--muted); }
.ptabs button.on { background: #f5f5f7; color: #000; }
.slot { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.slot:first-of-type { border-top: 0; }
.slot .ce { width: 30px; height: 30px; }
.slot span { flex: 1; font-weight: 550; font-size: 14.5px; }
.ico-pick { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 14px; border-radius: 16px; background: #050505; box-shadow: inset 0 0 0 1px var(--line-2); width: 100%; text-align: left; }
.ico-pick .ce { width: 52px; height: 52px; }
.ico-pick .ico-v { flex: none; display: grid; }
.ico-pick .ico-t { flex: 1; font-weight: 600; }
.ico-pick svg.chev { width: 16px; height: 16px; color: var(--dim); }
.ico-pick small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .65); display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal-in { width: 100%; max-width: 560px; margin: 0 auto; max-height: 90vh; overflow-y: auto; background: #0c0c0d; box-shadow: 0 0 0 1px var(--line-2);
  border-radius: 26px 26px 0 0; padding: 16px 16px calc(var(--safe-bottom) + 18px); transform: translateY(100%); transition: transform .45s var(--ease); }
.modal.on .modal-in { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 9px; background: #2a2a2e; margin: 0 auto 14px; }
.modal-in h3 { margin: 0 0 14px; font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.note { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 10px 2px 0; }
.warn { color: var(--amber); font-size: 13px; font-weight: 600; margin: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- разделы на витрине ---------- */
.rail { position: relative; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 20px; padding: 6px 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail button { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 10px; border-radius: 23px;
  color: var(--dim); font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: color .3s; }
.rail button .ce { width: 28px; height: 28px; }
.rail .cg { width: 22px; height: 22px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rail button.on { color: rgba(255, 255, 255, .88); box-shadow: none; }
.rail-lens { border-radius: 23px; background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .05));
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .3), inset 0 0 0 .5px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .35); }
.rail-lens::after { opacity: .35; }
.sec-p { margin: -4px 2px 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { position: relative; z-index: 1; flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13.5px; font-weight: 650; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line); transition: color .3s; }
.chips button.on { color: #000; box-shadow: none; }
.chip-lens { border-radius: 17px; background: linear-gradient(180deg, #fff, #e8e8ed); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .4); }
.chip-lens::after { display: none; }
.sub-h { display: flex; align-items: center; gap: 8px; margin: 6px 4px 10px; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.sub-h .ce { width: 22px; height: 22px; }

/* ---------- блик за пальцем на карточках ---------- */
.pc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .085), transparent 62%); }
.pc.lit::after { opacity: 1; }

/* ---------- админка: разделы ---------- */
.list-item.sub { padding-left: 18px; }
.list-item .sw { transform: scale(.85); }
.slot span small { display: block; color: var(--dim); font-size: 12px; font-weight: 500; }
.slot .dic { display: grid; place-items: center; width: 30px; height: 30px; color: var(--text); }
.slot .dic .di .f { fill: currentColor; }
.mini.ico { width: 34px; padding: 0; justify-content: center; }
.mini.ico svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- полноэкранный режим: мягкая шторка под статус-бар и кнопки Telegram ---------- */
.topfade { position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, 0) 100%); }
.fullscreen .topfade { height: calc(var(--safe-top) + 14px); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .fullscreen .topfade { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    -webkit-mask: linear-gradient(180deg, #000 50%, transparent); mask: linear-gradient(180deg, #000 50%, transparent); }
}

/* ---------- источники API тарифа ---------- */
.hidden { display: none !important; }
.src-list { display: grid; gap: 6px; margin-bottom: 12px; }
.src { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #050505; box-shadow: inset 0 0 0 1px var(--line-2); }
.src.off { opacity: .5; }
.src-n { font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--s3); color: var(--muted); flex: none; }
.src .grow { flex: 1; min-width: 0; }
.src .grow b { display: block; font-size: 14px; font-weight: 650; }
.src .grow small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-all; }
.src .mini.ico { width: 30px; height: 30px; font-size: 14px; }
.src .mini.ico[disabled] { opacity: .3; }
.src .sw { transform: scale(.8); margin: 0 -4px; }
.warn-t { font-style: normal; color: var(--amber); font-size: 11.5px; font-weight: 600; }
#plf-sources .note { margin-bottom: 16px; }

/* ---------- админка: поставщики API ---------- */
.sup-search { display: flex; gap: 8px; }
.sup-search input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #050505; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; font-size: 15px; -webkit-appearance: none; appearance: none; }
.sup-search input:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.sup-search .btn { flex: none; }
.sup-chips { margin-top: 12px; margin-bottom: 4px; }
.sup-h { margin-top: 6px; }
.sup-g { padding-top: 4px; padding-bottom: 4px; }
button.list-item { width: 100%; text-align: left; }
.list-item > .dot { margin: 0 5px; }
.list-item .grow small.used { color: var(--amber); }
.sup-it .src-n { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: #000; transition: background .2s, box-shadow .2s; }
.sup-it.sel .src-n { background: var(--lime); box-shadow: none; }
.sup-it.sel .grow b { color: #fff; }
.supbar { position: sticky; z-index: 15; bottom: calc(var(--safe-bottom) + 90px); display: flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 8px 8px 8px 16px; border-radius: 18px; background: rgba(18, 18, 20, .9); box-shadow: 0 0 0 1px var(--line-2), 0 12px 32px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.supbar b { flex: 1; font-weight: 650; font-size: 14.5px; }
.supbar .btn { height: 40px; }
.sup-mode { margin-bottom: 14px; }
.sup-mode .mini { flex: 1; justify-content: center; }
.src small.live { color: var(--text); opacity: .75; }
.src small.live:empty { display: none; }
.src small.live.bad { color: var(--amber); opacity: 1; }
#plf-sources .btns { margin-bottom: 2px; }
.linkish { color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- инструкция покупателю ---------- */
.payload a, .instr a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.instr { margin: 0 16px 16px; padding: 14px 16px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.instr b { display: block; font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.instr p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.done .instr { margin: 0 0 10px; }
.done .instr p { color: var(--text); margin: 0; font-size: 14.5px; }
.src .linkish.src-ib { display: inline-block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.src-ed { padding: 12px 10px 4px; margin-top: -2px; border-radius: 14px; background: #050505; box-shadow: inset 0 0 0 1px var(--line-2); }
.src-ed .fld textarea { min-height: 84px; }
.src-ed .btns { margin-bottom: 8px; }
.list-item .grow small.orig { color: var(--dim); font-size: 11.5px; }

/* ---------- пополнение поставщика через Палыч ---------- */
.tp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tp-sum > div { padding: 10px 12px; border-radius: 14px; background: #050505; box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.tp-sum small { display: block; color: var(--muted); font-size: 11.5px; }
.tp-sum b { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; word-break: break-word; }
.mono, .fld textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; word-break: break-all; }
.fld textarea.mono { min-height: 64px; }
.tp-saved { display: block; margin: -6px 2px 12px; font-size: 13px; color: var(--muted); }
.tp-check { font-size: 13px; line-height: 1.45; margin: -4px 2px 12px; }
.tp-check:empty { display: none; }
.tp-check.ok { color: var(--text); }
.tp-check.ok::first-letter { color: var(--lime); }
.tp-check.warn { color: var(--amber); }
.tp-check.bad { color: var(--red); }

/* ---------- вид каталога: список / плитка ---------- */
.sec-r { display: flex; align-items: center; gap: 10px; }
.lay { position: relative; display: flex; padding: 3px; border-radius: 13px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.lay button { position: relative; z-index: 1; width: 34px; height: 28px; display: grid; place-items: center; border-radius: 10px; color: var(--dim); transition: color .3s; }
.lay button.on { color: #fff; }
.lay svg { width: 16px; height: 16px; }
.lay-lens { border-radius: 10px; }
.sec-h:has(.lay) { align-items: center; }

.products.grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.pc.tile { display: flex; flex-direction: column; min-height: 196px; padding: 16px 14px 14px; border-radius: 24px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(var(--tint), .13), transparent 62%), var(--s1); }
.tile-ico { position: relative; width: 64px; height: 64px; display: grid; place-items: center; margin: 4px 0 14px; }
.tile-ico::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tint), .26), transparent 66%); }
.tile-ico .ce { position: relative; width: 58px; height: 58px; }
.mini-gc { position: relative; width: 100%; aspect-ratio: 1.586; margin: 0 0 14px; border-radius: 12px; padding: 9px 10px; overflow: hidden;
  display: flex; flex-direction: column; isolation: isolate;
  background: radial-gradient(120% 95% at 0% 0%, rgba(var(--tint), .28), transparent 60%), linear-gradient(140deg, #1d1d20, #0b0b0c 60%, #151517);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 26px -12px rgba(var(--tint), .5);
  transform: rotate(-4deg) translateY(2px); transition: transform .5s var(--ease); }
.pc.tile:active .mini-gc { transform: rotate(-1deg) scale(.98); }
.mg-ico .ce { width: 20px; height: 20px; }
.mg-chip { display: block; width: 18px; height: 13px; margin-top: 6px; border-radius: 3.5px; opacity: .7; background: linear-gradient(135deg, #e9e9ee, #9a9aa2 55%, #d6d6dc); }
.mg-logo { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-36%, -56%); z-index: -1; pointer-events: none; }
.mg-logo .ce { position: relative; width: 100%; height: 100%; }
.mini-gc b { margin-top: auto; font-weight: 750; font-size: 17px; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.tile-t { flex: 1; min-width: 0; }
.tile-t b { display: block; font-weight: 750; font-size: 18px; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.tile-t > small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tile-f span { font-weight: 700; font-size: 15px; letter-spacing: -.015em; white-space: nowrap; }
.tile-f em { font-style: normal; color: var(--dim); font-weight: 550; font-size: 12.5px; }
.tile-f .arrow { width: 28px; height: 28px; }
.tile-f .arrow svg { width: 13px; height: 13px; }

/* ---------- подарочные карты: регионы и номиналы ---------- */
.rg { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 7px; border-radius: 13px; font-size: 12.5px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.rg i { font-style: normal; font-size: 14px; line-height: 1; }
.rg.more { color: var(--muted); padding: 0 9px; }
.pc-var { border-top: 1px solid var(--line); padding: 12px 18px 16px; }
.pc-var > small { display: block; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .02em; margin: 0 2px 10px; }
.pc-regs { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.flags { font-size: 15px; letter-spacing: 2px; }

.regions { position: relative; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 22px; padding: 4px 16px; scrollbar-width: none; }
.regions::-webkit-scrollbar { display: none; }
.regions button { position: relative; z-index: 1; flex: none; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line); transition: color .3s; }
.regions button.on { color: #fff; box-shadow: none; }
.rg-in { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; }
.rg-in i { font-style: normal; font-size: 20px; line-height: 1; }
.region-lens { border-radius: 22px; }

.denoms { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; margin-bottom: 26px; }
.plan.denom { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 13px 13px 11px; min-height: 92px; border-radius: 18px; overflow: hidden; }
.denom-lens { border-radius: 18px; }
.denom b { font-weight: 750; font-size: 22px; letter-spacing: -.04em; line-height: 1.05; margin-bottom: auto; padding-bottom: 14px; overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
.denom.wordy b { font-size: 16px; letter-spacing: -.02em; line-height: 1.15; }
.denom b .dw { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
/* цена — внизу под тонкой линией, приглушённая; у выбранного — белая */
.denom .dp { display: flex; align-items: baseline; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); white-space: nowrap; }
.denom .dp > span { font-weight: 650; font-size: 14px; letter-spacing: -.01em; color: var(--muted); transition: color .25s; font-variant-numeric: tabular-nums; }
.denom.sel .dp > span { color: var(--text); }
.denom .dp s { color: var(--dim); font-size: 11px; }
.denom .dp svg { width: 13px; height: 13px; margin-left: auto; color: var(--dim); align-self: center; }
.denom > small { font-size: 11px; margin: -8px 0 auto; padding-bottom: 12px; white-space: nowrap; }
.denom b:has(+ small) { margin-bottom: 0; }
.denom .tag { position: absolute; top: 9px; right: 9px; height: 17px; padding: 0 6px; font-size: 9px; }
.denom .tag ~ b { margin-top: 12px; }
.denoms .empty { grid-column: 1 / -1; padding: 30px 12px; }
.plan.denom.off b { color: var(--dim); }

/* строки звёзд / Premium */
.srows { gap: 8px; margin-bottom: 16px; }
.plan.srow { gap: 12px; padding: 12px 14px 12px 12px; border-radius: 18px; }
.srows .plan-lens { border-radius: 18px; }
.sr-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.sr-ico .ce { width: 30px; height: 30px; }
.stack { position: relative; display: block; width: 30px; height: 26px; }
.stack svg { position: absolute; width: 22px; height: 22px; filter: drop-shadow(0 2px 6px rgba(140, 90, 255, .4)); }
.stack.s1 svg { width: 26px; height: 26px; left: 2px; top: 0; }
.stack.s2 svg:nth-child(1) { left: 0; top: 4px; width: 18px; height: 18px; opacity: .85; }
.stack.s2 svg:nth-child(2) { left: 9px; top: 0; }
.stack.s3 svg:nth-child(1) { left: -2px; top: 6px; width: 16px; height: 16px; opacity: .75; }
.stack.s3 svg:nth-child(2) { left: 14px; top: 6px; width: 16px; height: 16px; opacity: .75; }
.stack.s3 svg:nth-child(3) { left: 4px; top: -1px; }
.sr-main { flex: 1; min-width: 0; }
.sr-main b { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; white-space: nowrap; }
.sr-main b .tag { height: 18px; padding: 0 6px; font-size: 9.5px; }
.sr-main small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sr-main small em { font-style: normal; color: var(--lime); font-weight: 650; }
.sr-price { flex: none; text-align: right; }
.sr-price b { display: block; font-weight: 750; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.sr-price s { display: block; color: var(--dim); font-size: 11.5px; }

/* «своя сумма»: строка / плитка и поле количества, раскрывается при выборе */
.sr-edit { background: rgba(255, 255, 255, .05); color: var(--muted); }
.sr-edit svg { width: 18px; height: 18px; }
.srow.custom.sel .sr-edit { color: #fff; }
.plan.denom.custom { border: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 12px), var(--s1); }
.qty-box { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, margin .45s; margin-top: -8px; }
.qty-box.on { grid-template-rows: 1fr; opacity: 1; margin: 0 0 6px; }
.qty-in { min-height: 0; overflow: hidden; padding: 2px; margin: -2px; }
.rcp.qty input { font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rcp.qty i { font-size: 20px; margin-left: 6px; }
.qty-box .rcp-hint { margin-bottom: 14px; }

/* страница покупки раздела (Steam, Telegram): переключатель товаров, форма, своя кнопка оплаты */
.seg { position: relative; display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 27px; background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); }
.seg button { position: relative; z-index: 1; flex: 1; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--muted); transition: color .3s; }
.seg button.on { color: #000; }
.seg .ce { width: 22px; height: 22px; }
.seg button.on .ce.rp { filter: brightness(0); }  /* чёрным — только перекрашенные в белый; цветные остаются цветными */
/* переключатель подразделов в каталоге (Подписки / API) — спокойнее: стеклянная капля вместо белой */
/* подразделы (Подписки / API) — компактный квадратный переключатель по ширине содержимого: отличается от капсул разделов */
.seg.soft { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.seg.soft button { flex: 1; height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 650; color: var(--dim); }
.seg.soft button.on { color: rgba(255, 255, 255, .86); }
.seg.soft .seg-lens { border-radius: 11px; background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .05));
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45), inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .35); }
.seg-lens { border-radius: 23px; background: linear-gradient(180deg, #fff, #e8e8ed); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .4); }
.seg-lens::after { display: none; }
.inl-card { padding: 18px 14px 14px; border-radius: var(--r-xl); margin-bottom: 14px;
  background: radial-gradient(110% 60% at 50% 0%, rgba(var(--tint), .12), transparent 62%), var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); }
.inl-card .rcp { background: #050505; }
.inl-card .denoms { margin-bottom: 16px; }
/* кнопка оплаты липнет над нижним меню, пока форма на экране */
.ibuy { position: sticky; z-index: 5; bottom: calc(var(--safe-bottom) + 90px); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 22px;
  background: rgba(8, 8, 9, .82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, .55); }
.inl-feats { margin-bottom: 26px; }

/* получатель (ник Telegram / логин Steam) */
.rcp { display: flex; align-items: center; gap: 2px; height: 54px; padding: 0 14px 0 16px; border-radius: 18px; background: var(--s1);
  box-shadow: 0 0 0 1px var(--line), var(--hi); transition: box-shadow .25s; }
.rcp:focus-within { box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 0 30px rgba(var(--tint), .12); }
.rcp i { font-style: normal; font-weight: 650; font-size: 17px; color: var(--muted); }
.rcp input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.rcp input::placeholder { color: var(--dim); font-weight: 500; }
.rcp em { width: 20px; height: 20px; flex: none; border-radius: 50%; transition: transform .3s var(--ease), opacity .3s; opacity: 0; transform: scale(.4); }
.rcp em.ok { opacity: 1; transform: none; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.rcp em.bad { opacity: 1; transform: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rcp-hint { margin: 8px 4px 26px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.rcp-hint.bad { color: var(--red); }

/* большая подарочная карта в товаре */
.ph-gift { padding-top: 0; }
.gcard-wrap { perspective: 900px; width: min(300px, 82vw); margin: 22px auto 24px; }
.gcard { --rx: 6deg; --ry: -8deg; --gx: 30%; position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 16px 18px; overflow: hidden;
  display: flex; flex-direction: column; text-align: left; isolation: isolate;
  background: radial-gradient(120% 95% at 0% 0%, rgba(var(--tint), .26), transparent 58%), radial-gradient(80% 80% at 100% 100%, rgba(var(--tint), .12), transparent 60%),
    linear-gradient(140deg, #1b1b1e, #0b0b0c 58%, #141416);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .22), 0 28px 60px -22px rgba(var(--tint), .5), 0 14px 34px rgba(0, 0, 0, .65);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: gfloat 6s ease-in-out infinite; touch-action: pan-y; }
@keyframes gfloat { 50% { translate: 0 -5px; } }
.gc-top { display: flex; align-items: center; gap: 9px; }
.gc-ico .ce { width: 30px; height: 30px; }
.gc-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: rgba(255, 255, 255, .9); }
.gc-flag { margin-left: auto; font-style: normal; font-size: 22px; line-height: 1; }
.gc-chip { display: block; width: 38px; height: 28px; margin-top: 16px; border-radius: 7px; opacity: .75;
  background: linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .25) 32% 34%, transparent 34% 66%, rgba(0, 0, 0, .25) 66% 68%, transparent 68%),
    linear-gradient(0deg, transparent 46%, rgba(0, 0, 0, .25) 46% 54%, transparent 54%), linear-gradient(135deg, #e9e9ee, #9a9aa2 55%, #d6d6dc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
/* логотип посередине карты — крупно, без свечения */
.gc-logo { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -54%); z-index: -1; pointer-events: none; }
.gc-logo .ce { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.gc-bot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gc-bot b { display: inline-block; font-weight: 750; font-size: 38px; letter-spacing: -.045em; line-height: 1; }
.gc-bot b.wordy { font-size: 21px; letter-spacing: -.025em; line-height: 1.1; max-width: 62%; }
.gc-bot small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; text-transform: none; }
.gc-shine { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at var(--gx) 0%, rgba(255, 255, 255, .10), transparent 70%); transition: background .3s; }
@media (prefers-reduced-motion: reduce) { .gcard, .gcard::after { animation: none; } }

/* ---------- админка: порядок товаров и тарифов ---------- */
.ord { display: flex; flex-direction: column; flex: none; width: 28px; border-radius: 9px; overflow: hidden; background: var(--s3); box-shadow: 0 0 0 1px var(--line); }
.ord button { height: 20px; display: grid; place-items: center; color: var(--muted); }
.ord button + button { border-top: 1px solid var(--line); }
.ord button + button svg { transform: rotate(180deg); }
.ord button:disabled { color: var(--dim); opacity: .35; }
.ord button:not(:disabled):active { background: rgba(255, 255, 255, .08); color: #fff; }
.ord svg { width: 14px; height: 14px; }
/* редактор шагов «Как это работает» */
.step-ed { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin-bottom: 8px; border-radius: 14px; background: var(--s2, #111); box-shadow: 0 0 0 1px var(--line); }
.step-ed .ord { margin-top: 2px; }
.step-f { flex: 1; min-width: 0; display: grid; gap: 6px; }
.step-f input, .step-f textarea { width: 100%; padding: 10px 12px; border-radius: 10px; background: #050505; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; font-size: 15px; }
.step-f input { font-weight: 600; }
.step-f textarea { resize: vertical; line-height: 1.4; font-size: 14px; color: var(--muted); }
.step-f input:focus, .step-f textarea:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }

/* ---------- поиск по витрине ---------- */
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; margin: -12px 0 18px; border-radius: 18px;
  background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); transition: box-shadow .25s; }
.search:focus-within { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), var(--hi); }
.search > svg { width: 19px; height: 19px; color: var(--dim); flex: none; transition: color .25s; }
.search:focus-within > svg { color: var(--text); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 16px; font-weight: 550; letter-spacing: -.01em; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--dim); font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.search-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity .2s; }
.search-x svg { width: 16px; height: 16px; }
.searching .search-x { opacity: 1; pointer-events: auto; }
.searching .rail { display: none; }
.search-empty > svg { width: 44px; height: 44px; color: var(--dim); margin-bottom: 14px; }
.search-empty .cta { font-size: 15px; }

/* ---------- скидки и остатки ---------- */
.tag.off { color: #000; background: var(--lime); box-shadow: none; margin-left: 8px; }
.pc-t b .tag.off { vertical-align: 4px; }
.tag.tile-off { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.pc-plan s { color: var(--dim); font-size: 12.5px; margin-right: 6px; font-weight: 500; }
.plan-price s em { font-style: normal; color: var(--lime); margin-left: 5px; text-decoration: none; display: inline-block; font-weight: 650; }
.denom small.few, .sr-main small .few { color: var(--amber); font-style: normal; }
.total b s { color: var(--dim); font-size: 14px; font-weight: 550; margin-right: 7px; letter-spacing: 0; }

/* ---------- промокод и бонусы при оплате ---------- */
.perks { display: grid; gap: 8px; margin: 0 0 22px; }
.inl-card .perks { margin-bottom: 14px; }
.perk { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 18px; text-align: left;
  background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); }
.inl-card .perk, .inl-card .promo-open { background: #050505; }
.perk > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.perk > span { flex: 1; min-width: 0; }
.perk b { display: block; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.perk small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.perk small.bad { color: var(--amber); }
.perk .sw { pointer-events: none; }
.perk-note > svg { color: var(--lime); }
.promo-on > svg { color: var(--lime); }
.promo-on b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14.5px; letter-spacing: .04em; }
.promo-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--s3); flex: none; }
.promo-x svg { width: 15px; height: 15px; }
.promo-open { display: flex; align-items: center; gap: 12px; width: 100%; height: 50px; padding: 0 14px; border-radius: 18px; color: var(--muted); font-weight: 600; font-size: 14.5px;
  box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.promo-open > svg:first-child { width: 20px; height: 20px; }
.promo-open span { flex: 1; }
.promo-open svg.chev { width: 15px; height: 15px; color: var(--dim); }
.promo-form { display: flex; gap: 8px; }
.promo-form .rcp { flex: 1; min-width: 0; height: 50px; padding: 0 12px; gap: 10px; }
.promo-form .rcp svg { width: 19px; height: 19px; color: var(--dim); flex: none; }
.promo-form input { text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; letter-spacing: .04em; }
.promo-form input::placeholder { text-transform: none; font-family: var(--font); letter-spacing: 0; }
.promo-form .btn { height: 50px; border-radius: 16px; }
.perk-promo .rcp-hint { margin: 8px 4px 0; }
.perk-promo .rcp-hint:empty { display: none; }

/* ---------- отзывы ---------- */
.stars5 { display: inline-flex; gap: 2px; }
.stars5 i { width: 15px; height: 15px; display: block; }
.stars5 svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, .14); }
.stars5 i.on svg { fill: #f5c451; }
.rv-avg { display: inline-flex; align-items: center; gap: 5px; color: var(--muted) !important; }
.rv-avg svg { width: 14px; height: 14px; fill: #f5c451; }
.reviews { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 30px; padding: 2px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.rv { flex: none; width: min(78vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 16px; border-radius: var(--r-lg);
  background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); }
.rv-top { display: flex; align-items: center; justify-content: space-between; }
.rv-top small { color: var(--dim); font-size: 12px; }
.rv p { margin: 12px 0 14px; font-size: 14.5px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-by { margin-top: auto; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rv-by b { font-size: 13.5px; font-weight: 650; }
.rv-by small { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* оценка заказа */
.rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 14px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.rate > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.rate-stars { display: flex; }
.rate-stars button { width: 36px; height: 36px; display: grid; place-items: center; transition: transform .2s var(--ease); }
.rate-stars button:active { transform: scale(.85); }
.rate-stars svg { width: 24px; height: 24px; fill: rgba(255, 255, 255, .14); transition: fill .2s; }
.rate-stars button.on svg { fill: #f5c451; }
.rate-text { margin: 0 16px 16px; display: grid; gap: 8px; }
.rate-text textarea { width: 100%; padding: 12px 14px; border-radius: 14px; background: #050505; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; font-size: 15px; line-height: 1.45; resize: none; }
.rate-text textarea:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.o-main small .rate-ask { font-style: normal; color: #f5c451; }
.rv-adm .rv-text { margin: 10px 2px 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.rv-adm .grow small { margin-top: 6px; }

/* ---------- приглашения ---------- */
.ref { margin: 0 0 14px; padding: 16px; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 0% 0%, rgba(206, 251, 65, .06), transparent 55%), var(--s1);
  box-shadow: 0 0 0 1px var(--line), var(--hi); }
.ref-h { display: flex; gap: 12px; align-items: flex-start; }
.ref-h > svg { width: 26px; height: 26px; flex: none; color: var(--lime); margin-top: 1px; }
.ref-h b { display: block; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.ref-h small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 4px; }
.ref-link { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; margin: 14px 0 12px; padding: 0 8px 0 14px; border-radius: 14px; background: #050505;
  box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; }
.ref-link span { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-link .ce { width: 20px; height: 20px; }
.ref-f { display: flex; align-items: center; gap: 18px; }
.ref-f > div b { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.ref-f > div small { display: block; color: var(--muted); font-size: 12px; }
.ref-f .btn { margin-left: auto; }
.tile b em { font-style: normal; color: var(--dim); font-size: 15px; font-weight: 550; }
.row .row-ic { width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); }
.row .row-ic svg { width: 21px; height: 21px; }

/* ---------- документы ---------- */
.foot-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 14px 0 0; }
.foot-docs button { color: var(--dim); font-size: 12.5px; font-weight: 500; }
.foot-docs button:active { color: var(--text); }
.doc { margin: 0 2px 16px; }
.doc p { margin: 0 0 12px; color: #d4d4d8; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.btn > svg { width: 19px; height: 19px; }
.fld textarea.doc-ed { min-height: 160px; font-size: 13.5px; }
.promo-code-row { display: flex; gap: 8px; align-items: flex-end; }
.promo-code-row .fld { flex: 1; }
.promo-code-row .btn { margin-bottom: 12px; height: 46px; }
#pr-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; }
.mono-b { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.pc-plan.off > .ce, .pc-plan.off span { opacity: .45; }
.pc-plan b.na { font-weight: 550; font-size: 12.5px; color: var(--dim); }

/* нужен VPN: метка в карточке и строка на странице товара */
/* метка «нужен VPN» — стеклянная капсула в правом верхнем углу карточки, флаг в кружке */
.vpn { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 8px; border-radius: 12px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .06em; color: rgba(255, 255, 255, .82);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .35), inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .35); }
.vpn i { font-style: normal; font-size: 13px; line-height: 1; }
.tile-off + .vpn { top: 42px; }
.pc.has-vpn .pc-head { padding-top: 26px; }
.vpn-note { margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: var(--s1); box-shadow: 0 0 0 1px var(--line), var(--hi); }
.vn-head, .vn-kchau { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.vn-flag { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; line-height: 1;
  background: rgba(245, 181, 68, .08); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, .22); }
.vn-txt { flex: 1; min-width: 0; }
.vn-txt b { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.015em; color: var(--text); }
.vn-txt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.vn-head b { color: var(--amber); }
.vn-kchau { border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .2s; }
.vn-kchau:active { background: rgba(255, 255, 255, .03); }
.vn-kchau img { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #0d0d0e; box-shadow: inset 0 0 0 1px var(--line); }
.vn-go { flex: none; font-style: normal; height: 32px; padding: 0 14px; display: grid; place-items: center; border-radius: 16px;
  font-size: 13px; font-weight: 700; color: #000; background: linear-gradient(180deg, #fff, #e6e6eb); }
.adm-q { margin: 0 0 14px; }

/* белый логотип бренда на подарочной карте */
.blogo { display: block; width: 100%; height: 100%; object-fit: contain; }
.mg-ico .blogo { width: 15px; height: 15px; margin: 2px 0 0 2px; opacity: .9; }
.mini-gc.has-logo .mg-logo { width: 30%; transform: translate(-30%, -58%); }
.mini-gc.has-logo .mg-logo .blogo { opacity: .95; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.gc-ico .blogo { width: 20px; height: 20px; margin: 2px; opacity: .9; }
.gc-logo.has-logo .blogo { width: 64%; height: 64%; margin: 18%; opacity: .95; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.pc-ico > .blogo { width: 36px; height: 36px; position: relative; }
.tile-ico > .blogo { width: 42px; height: 42px; position: relative; }
.orb > .blogo { width: 78px; height: 78px; z-index: 1; filter: drop-shadow(0 8px 30px rgba(var(--tint), .35)); }
.pc-plan > .blogo, .sr-ico > .blogo { width: 18px; height: 18px; flex: none; opacity: .9; }
.plan > .blogo { width: 26px; height: 26px; margin: 7px; flex: none; opacity: .9; }
/* цветные иконки-приложения (app-*.svg) — во весь размер, как эмодзи-логотипы */
.pc-ico > .blogo.bapp { width: 52px; height: 52px; }
.tile-ico > .blogo.bapp { width: 56px; height: 56px; }
.orb > .blogo.bapp { width: 96px; height: 96px; filter: none; }
.pc-plan > .blogo.bapp, .sr-ico > .blogo.bapp { width: 22px; height: 22px; opacity: 1; }
.plan > .blogo.bapp { width: 34px; height: 34px; margin: 3px; opacity: 1; }
/* логотип-надпись (Minecraft) — шире квадратных знаков */
.mini-gc.has-logo .mg-logo:has(.wide) { width: 64%; transform: translate(-50%, -58%); }
.gc-logo.has-logo:has(.wide) { width: 56%; aspect-ratio: 4; top: 46%; }
.gc-logo.has-logo .blogo.wide { width: 100%; height: 100%; margin: 0; }
.mg-ico .blogo.wide, .gc-ico .blogo.wide { width: 30px; }

/* клавиатура открыта — над ней ничего не висит */
.kbd .dock, .kbd .buybar, .kbd .ibuy { visibility: hidden; opacity: 0; pointer-events: none; }
/* надпись-логотип (Minecraft) — на всю ширину значка, иначе читается как точка */
.pc-ico > .blogo.wide, .tile-ico > .blogo.wide { width: 84%; height: auto; }
.orb > .blogo.wide { width: 150px; height: auto; }
.pc-plan > .blogo.wide, .sr-ico > .blogo.wide, .plan > .blogo.wide { width: 30px; }

/* админка → товар: кто выдаёт */
.pprov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0 10px; }
.pprov > span { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.pprov button { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 650; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pprov button.on { color: #000; background: #fff; box-shadow: none; }
.pprov button i { font-style: normal; font-weight: 500; opacity: .6; font-size: 11.5px; }
.pprov em { font-style: normal; font-size: 12px; color: var(--amber); }
.feats.terms .feat svg { color: var(--muted); }
.feats.terms .feat { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
details.raw { margin: -4px 0 10px; }
details.raw summary { font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 4px 0; }
details.raw .payload { margin-top: 6px; opacity: .75; }
.mini.on-amber { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, .45); }
