@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin.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; }

:root {
  --bg: #0e0e10;
  --surface: #1a1a1d;
  --surface-2: #242428;
  --surface-3: #303036;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #9b9ba3;
  --dim: #6c6c74;
  --like: #ff375f;
  --ok: #30d158;
  --warn: #ffb340;
  --bad: #ff453a;
  --tg: #2aabee;
  --accent: #8b7bff;
  --accent-2: #ff6a88;
  --grad: linear-gradient(135deg, #ff6a88 0%, #c56bff 52%, #6a8bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 106, 136, .16), rgba(106, 139, 255, .16));
  --press: cubic-bezier(.2, .9, .3, 1);
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --tabbar-h: 62px;
  /* В Telegram безопасные зоны отдаёт сам клиент (в полноэкранном режиме), в браузере — env() */
  --safe-t: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior: none; background: var(--bg); }
/* Внутри Telegram: без выделения текста по долгому тапу и подсветки — ощущается как приложение */
/* overscroll-behavior — только на html: на body он блокирует прокрутку пальцем (Android) */
.in-tg body { -webkit-user-select: none; user-select: none; }
.in-tg input, .in-tg textarea, .in-tg .copy-block .v { -webkit-user-select: text; user-select: text; }
body {
  margin: 0;
  min-height: 100vh;
  background: transparent; /* цвет фона — у html, свечение — в body::before */
  color: var(--text);
  font: 15px/1.45 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + 100px + var(--safe-b));
  /* clip, а не hidden: hidden делает body отдельной прокручиваемой областью, и жест прокрутки в ней застревает */
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- каркас ---------- */
.top, .app { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(12px + var(--safe-t)); padding-bottom: 6px; min-height: 62px;
}
.top h1 { font-size: 28px; line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.app { padding-top: 8px; }
.page-in { animation: pageIn .34s var(--press); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.wide { max-width: 1080px; }

h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head a { color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 20px 2px 9px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform .18s var(--press), background .15s, opacity .15s, filter .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(197, 107, 255, .28); }
.btn.primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.tg { background: var(--tg); color: #fff; }
.btn.tg:hover { background: #229ed9; }
.btn.danger { background: transparent; color: var(--bad); }
.btn.danger:hover { background: rgba(255, 69, 58, .1); }
.btn.ok { background: var(--ok); color: #04210d; }
.btn .sub { font-weight: 500; opacity: .5; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; flex: none;
  display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text);
  transition: background .15s, transform .12s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.ghost { background: transparent; color: var(--muted); }
.icon-btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.light { background: #f2f2f4; color: #0e0e10; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.liked { color: var(--like); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px;
  transition: background .15s; white-space: nowrap;
}
.pill:hover { background: var(--surface-2); }
.pill .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin-right: -8px; }
.pill .plus svg { width: 16px; height: 16px; }
.pill > svg { color: var(--accent); width: 18px; height: 18px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 0; padding: 0;
  background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff;
}

/* ---------- поля ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 4px 8px; }
.input, .textarea {
  width: 100%; border: 1px solid transparent; outline: none; background: var(--surface); color: var(--text);
  border-radius: var(--r-md); padding: 12px 15px; font-size: 16px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { border-color: rgba(139, 123, 255, .6); box-shadow: 0 0 0 3px rgba(139, 123, 255, .15); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { border-radius: 999px; padding-left: 48px; height: 46px; }

/* ---------- сегменты, чипы, переключатели ---------- */
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); gap: 2px; }
.seg button {
  flex: 1; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 0 12px;
  transition: background .15s, color .15s; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.seg[data-tempo] button { padding: 0 4px; font-size: 14px; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 123, 255, .35); }
.seg button:active { transform: scale(.96); }

.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s, transform .18s var(--press); white-space: nowrap;
}
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(.93); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.chip.pop { animation: pop .32s var(--press); }
@keyframes pop { 40% { transform: scale(1.1); } }
.chip .x { opacity: .6; }

.group { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 54px; }
.group > .row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; }
.row .s { color: var(--muted); font-size: 13px; margin-top: 1px; }
.row.link { cursor: pointer; transition: background .15s, transform .18s var(--press); width: 100%; border: 0; background: transparent; text-align: left; color: inherit; }
.row.link:hover { background: var(--surface-2); }
.row.link:active { transform: scale(.985); background: var(--surface-2); }
.row .ico { width: 36px; height: 36px; border-radius: 11px; color: var(--accent); background: var(--surface-3); display: grid; place-items: center; flex: none; overflow: hidden; }
.row .ico img { width: 100%; height: 100%; object-fit: cover; }
.row.on { background: var(--surface-2); }

.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }

.radio { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface-3); flex: none; display: grid; place-items: center; color: transparent; }
.on .radio { border-color: #f2f2f4; background: #f2f2f4; color: #0e0e10; }

/* ---------- композер ---------- */
.composer-box { background: var(--surface); border-radius: var(--r-xl); padding: 16px 16px 12px; transition: box-shadow .2s; }
.composer-box:focus-within { box-shadow: 0 0 0 1px rgba(139, 123, 255, .5), 0 0 0 4px rgba(139, 123, 255, .12); }
.composer-box .textarea { background: transparent; padding: 0; border: 0; min-height: 100px; font-size: 17px; resize: none; box-shadow: none; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.composer-foot .count { color: var(--dim); font-size: 15px; font-variant-numeric: tabular-nums; }
.create-wrap { margin-top: 28px; }
.create-wrap .btn { height: 52px; font-size: 16px; }
.create-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 179, 64, .1); color: #ffd28a; margin-bottom: 14px; font-size: 14px; padding: 12px 14px; }

/* ---------- мастер создания ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.step { border: 0; background: none; padding: 0; color: var(--dim); font-size: 13px; font-weight: 600; text-align: left; display: grid; gap: 8px; }
.step i { display: block; height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .2s; }
.step.done { color: var(--muted); }
.step.done i { background: var(--accent); opacity: .55; }
.step.on { color: var(--text); }
.step.on i { background: var(--grad); box-shadow: 0 0 10px rgba(197, 107, 255, .5); }
.step-count { color: var(--dim); font-size: 13px; margin: 14px 0 2px; }
.step-title { font-size: 23px; line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
.step-sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.step-fwd { animation: stepFwd .32s var(--press); }
.step-back { animation: stepBack .32s var(--press); }
@keyframes stepFwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.wizard-nav { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.wizard-nav .grow { flex: 1; }
.wizard-nav .btn { height: 52px; font-size: 16px; }
.icon-btn.big { width: 52px; height: 52px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 640px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } }
.opt {
  border: 2px solid transparent; background: var(--surface); border-radius: var(--r-lg); padding: 12px; text-align: left;
  display: grid; gap: 1px; align-content: start; color: var(--text); transition: background .15s, border-color .15s, transform .18s var(--press);
}
.opt:hover { background: var(--surface-2); }
.opt:active { transform: scale(.96); }
.opt.on { border-color: var(--accent); background: var(--grad-soft); }
.opt-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 8px; }
.opt-ico svg { width: 20px; height: 20px; }
.opt.on .opt-ico { background: var(--grad); color: #fff; animation: pop .32s var(--press); }
.opt-t { font-weight: 600; font-size: 15px; }
.opt-s { color: var(--muted); font-size: 12.5px; }
.advanced { padding: 6px 18px 18px; border-top: 1px solid var(--line); }
.advanced .field { margin-top: 12px; }
.advanced .input { background: var(--surface-2); }
.chev { color: var(--muted); transition: transform .2s; display: grid; }
.chev.open { transform: rotate(90deg); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.slider-row { margin: 18px 0 8px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.row-head .t { font-weight: 600; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--surface-3); outline: none; margin: 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); cursor: pointer; }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--dim); font-size: 15px; margin-top: 8px; }

/* ---------- треки ---------- */
.gen { margin-bottom: 22px; }
.gen-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 40px; }
.gen-head .kind { color: var(--muted); font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-head .acts { display: flex; gap: 2px; flex: none; }
.track { margin-bottom: 18px; }
.track-main { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.cover {
  width: 72px; height: 72px; border-radius: 16px; flex: none; overflow: hidden; position: relative;
  display: grid; place-items: center; color: rgba(0, 0, 0, .3);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.track-info { flex: 1; min-width: 0; }
.track-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.02em; }
.track-meta { color: var(--muted); font-size: 14px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-sub { color: var(--muted); font-size: 14px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .75; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.status.wait { color: var(--warn); }
.status.bad { color: var(--bad); }

.wave { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--surface); }
.wave-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; flex: none; }
.wave-play:hover { background: var(--surface-2); }
.wave-play:disabled { opacity: .35; }
.wave-bars { flex: 1; height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 3px; cursor: pointer; min-width: 0; overflow: hidden; }
.wave-bars i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: #55555d; transition: background .2s; }
.wave-bars i.on { background: var(--accent); }
.wave.busy .wave-bars { cursor: default; }
.wave.busy .wave-bars i { animation: pulse 1.2s ease-in-out infinite; }
.wave.busy .wave-bars i:nth-child(3n) { animation-delay: -.4s; }
.wave.busy .wave-bars i:nth-child(3n+1) { animation-delay: -.8s; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scaleY(.55); } 50% { opacity: 1; transform: scaleY(1); } }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: sk 1.6s linear infinite; }
@keyframes sk { to { background-position: -150% 0; } }

/* ---------- лента ---------- */
.feed-tools { display: grid; gap: 12px; margin-bottom: 20px; }
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1000px) { .masonry { columns: 4; } }
.card {
  break-inside: avoid; position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px;
  background: var(--surface); cursor: pointer; display: block; isolation: isolate; transition: transform .18s var(--press); animation: rise .45s var(--press) both;
}
.card:active { transform: scale(.97); }
@media (min-width: 720px) { .card { margin-bottom: 16px; } }
.card-cover { width: 100%; aspect-ratio: var(--ar, 1); display: grid; place-items: center; color: rgba(0, 0, 0, .28); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); z-index: 0; pointer-events: none; }
.card.pastel::after { display: none; }
.card-play {
  position: absolute; top: 12px; left: 12px; z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(20, 20, 22, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center;
}
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; z-index: 1; color: #fff; }
.card.pastel .card-body { color: #121214; }
.card-kind { font-size: 13px; font-weight: 500; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 15px; font-weight: 500; }
.card-foot .who { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-like { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: inherit; padding: 4px 0 4px 8px; font-weight: 600; font-size: 16px; flex: none; }
.card-like.liked { color: var(--like); }
.card.pastel .card-like.liked { color: #d1103a; }
.sentinel { height: 1px; }

/* ---------- детальная карточка трека ---------- */
.detail-cover { width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; margin: 0 auto 22px; display: grid; place-items: center; color: rgba(0, 0, 0, .28); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.sheet h2.detail-title { padding: 0; }
.detail-title { font-size: 23px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; text-align: center; margin: 0 0 6px; }
.detail-author { text-align: center; color: var(--muted); }
.detail-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 22px 0; }
.detail-actions .btn.primary { min-width: 160px; }
.copy-block { background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px; }
.copy-block .k { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.copy-block .k button { border: 0; background: var(--surface-2); color: var(--text); height: 38px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.copy-block .v { font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.copy-block .v.lyrics { max-height: 260px; overflow: auto; font-size: 17px; line-height: 1.6; }

/* ---------- оплата ---------- */
.balance-card { background: var(--grad-soft), var(--surface); border: 1px solid rgba(139, 123, 255, .25); border-radius: var(--r-xl); padding: 20px; }
.balance-card .n { font-size: 42px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.balance-card .l { color: var(--muted); margin-top: 10px; }
.price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--text); vertical-align: 2px; margin-left: 6px; }
.badge.hot { background: var(--grad); color: #fff; }
.badge.wait { background: rgba(255, 179, 64, .16); color: var(--warn); }
.badge.ok { background: rgba(48, 209, 88, .16); color: var(--ok); }
.badge.bad { background: rgba(255, 69, 58, .16); color: var(--bad); }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-line .v { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -0.01em; }
.balance-card .unit { font-size: 22px; font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.big-state { text-align: center; padding: 30px 6px; }
.big-state .ring { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--surface); }
.big-state h2 { font-size: 23px; margin-bottom: 10px; }
.big-state p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }
.drop.drag { background: var(--surface-2); }

/* ---------- нижнее меню ---------- */
.tabbar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 12px;
  padding: 0 16px calc(14px + var(--safe-b)); pointer-events: none;
}
.tabbar { pointer-events: auto; backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); }
.tabbar {
  display: flex; gap: 2px; padding: 6px; height: var(--tabbar-h); border-radius: 999px;
  background: rgba(30, 30, 33, .82); border: 1px solid var(--line); flex: 1; max-width: 440px;
}
.tab {
  flex: 1; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11.5px; font-weight: 600; transition: background .2s, color .2s, transform .18s var(--press); min-width: 0;
}
.tab svg { width: 21px; height: 21px; }
.tab:active { transform: scale(.92); }
.tab.on { background: var(--grad-soft); color: var(--text); }
.tab.on svg { color: var(--accent); animation: pop .4s var(--press); }

/* ---------- мини-плеер ---------- */
.player {
  position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 24px + var(--safe-b));
  width: min(540px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 24px; background: rgba(38, 38, 42, .94); border: 1px solid var(--line); overflow: hidden;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}
.player-cover { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center; color: rgba(0, 0, 0, .3); }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-info { flex: 1; min-width: 0; }
.player-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); cursor: pointer; }
.player-progress i { display: block; height: 100%; width: 0; background: #f2f2f4; }

/* ---------- шторки ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: #161618; border-radius: 30px 30px 0 0;
  padding: 12px 20px calc(24px + var(--safe-b)); position: relative; animation: up .28s cubic-bezier(.2, .9, .3, 1);
}
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet .close { position: absolute; top: 14px; right: 14px; }
.sheet h2 { padding-right: 50px; margin-bottom: 8px; font-size: 22px; line-height: 1.2; }
.sheet .lead { color: var(--muted); margin: 0 0 24px; }
.stack { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .sheet-back { align-items: center; padding: 20px; }
  .sheet { border-radius: 30px; padding: 28px; }
  .sheet::before { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 50px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.fine { color: var(--dim); font-size: 14px; text-align: center; margin-top: 18px; }

/* ---------- тосты ---------- */
.toasts { position: fixed; top: calc(16px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px; font-size: 14px; background: rgba(48, 48, 52, .97); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-weight: 500; animation: drop .25s; }
.toast.ok svg { color: var(--ok); }
.toast.bad svg { color: var(--bad); }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }

.empty { text-align: center; padding: 44px 16px; }
.empty .ring { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.empty .tg-ring { background: var(--tg); color: #fff; }
.empty .tg-ring svg { width: 46px; height: 46px; margin-left: -4px; }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 24px; max-width: 380px; }

/* ---------- админка ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px; }
.stat .n { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.stat .l { color: var(--muted); font-size: 13px; }
.admin-order { background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.receipt { width: 84px; height: 84px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); border: 0; padding: 0; }
.receipt img { width: 100%; height: 100%; object-fit: cover; }
.admin-order .acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.admin-order .acts .btn { flex: 1; }
.edit-card { background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.edit-card .input { background: var(--surface-2); font-size: 17px; padding: 13px 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lightbox { width: 100%; border-radius: 18px; }

@media (max-width: 420px) {
  .seg.compact button svg { display: none; }
  .seg.compact button { font-size: 16px; padding: 0 8px; }
  .top h1 { font-size: 25px; }
  .cover { width: 64px; height: 64px; border-radius: 14px; }
  .pill { padding: 0 12px; }
}

/* ---------- язык ---------- */
.flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.flag svg { width: 100%; height: 100%; display: block; }
.flag.big { width: 40px; height: 40px; }
.lang-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang-switch button {
  height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, color .2s; min-width: 0;
}
.lang-switch button .flag { opacity: .6; transition: opacity .2s; }
.lang-switch button.on { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 123, 255, .4); }
.lang-switch button:active { transform: scale(.96); }
.lang-switch button.on .flag { opacity: 1; }
.lang-switch button.on > svg { color: var(--ok); }

.lang-pick { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; padding: calc(30px + var(--safe-t)) 0 20px; text-align: center; }
.lang-pick h1 { font-size: 27px; line-height: 1.15; letter-spacing: -0.03em; margin: 26px 0 28px; }
.lang-pick h1 span { color: var(--muted); font-size: 18px; font-weight: 600; }
.lang-orb { position: relative; width: 170px; height: 170px; margin: 0 auto; display: grid; place-items: center; }
.lang-orb .orb { inset: 0; }
.lang-cards { display: grid; gap: 12px; text-align: left; }
.lang-card {
  text-align: left; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); transition: background .15s, transform .12s;
  animation: rise .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(.15s + var(--i) * .1s);
}
.lang-card:hover { background: var(--surface-2); }
.lang-card:active { transform: scale(.98); }
.lang-card .grow { flex: 1; display: grid; }
.lang-card .t { font-size: 18px; font-weight: 700; }
.lang-card .s { color: var(--muted); font-size: 15px; }

/* ---------- главная ---------- */
.hero { position: relative; text-align: center; padding: 6px 0 4px; margin-top: 14px; }
.hero-visual { position: relative; width: 170px; height: 170px; margin: 0 auto 4px; display: grid; place-items: center; }
.orb {
  position: absolute; inset: 18px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6a88, #ffb86b, #7cf2d4, #6a8bff, #c56bff, #ff6a88);
  filter: blur(26px); opacity: .85; animation: spin 9s linear infinite, breathe 4s ease-in-out infinite;
}
.orb.orb2 { inset: 40px; filter: blur(14px); opacity: .9; animation-duration: 6s, 3s; animation-direction: reverse, normal; }
.ring-pulse { position: absolute; inset: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); animation: ripple 3s ease-out infinite; }
.ring-pulse.r2 { animation-delay: 1.5s; }
.eq { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; height: 56px; }
.eq i { width: 5px; height: var(--h); border-radius: 4px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .6); animation: eq 1.1s ease-in-out infinite; animation-delay: var(--d); }
.lang-orb .eq { height: 56px; }
.notes-float { position: absolute; inset: -10px -40px; pointer-events: none; }
.notes-float span {
  position: absolute; bottom: 10%; left: var(--x); font-size: 24px; color: rgba(255, 255, 255, .85);
  text-shadow: 0 0 14px rgba(255, 255, 255, .5); opacity: 0; animation: floatUp var(--s) ease-in infinite; animation-delay: var(--t);
}
.hero-title { font-size: 29px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; margin: 0; }
.typer-line {
  display: block; min-height: 2.2em; margin-top: 4px;
  background: linear-gradient(90deg, #ffb86b, #ff6a88, #c56bff, #6a8bff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret { display: inline-block; width: 3px; height: .95em; margin-left: 3px; vertical-align: -0.1em; background: #f2f2f4; border-radius: 2px; animation: blink 1s step-end infinite; }
.hero-sub { color: var(--muted); margin: 8px auto 16px; max-width: 420px; font-size: 14px; }
.cta { height: 54px; font-size: 17px; position: relative; overflow: hidden; box-shadow: 0 10px 40px rgba(197, 107, 255, .25); }
.cta::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shine 3.2s ease-in-out infinite;
}
.cta-2 { margin-top: 10px; }
.hero-meta { color: var(--dim); font-size: 13px; margin-top: 10px; }

.scen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .scen-grid { grid-template-columns: repeat(4, 1fr); } }
.scen {
  position: relative; overflow: hidden; border: 0; border-radius: var(--r-lg); padding: 12px; min-height: 96px; text-align: left; color: #121214;
  background: var(--g); display: grid; align-content: end; gap: 1px; isolation: isolate;
  transition: transform .15s; animation: rise .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i) * .05s);
}
.scen:active { transform: scale(.97); }
.scen::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); background-size: 250% 100%; animation: sheen 5s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); z-index: -1; }
.scen-e { position: absolute; top: 9px; right: 10px; font-size: 26px; animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.scen.wide { grid-column: 1 / -1; min-height: 88px; color: #fff; }
.scen.wide .scen-t { font-size: 18px; }
.scen-t { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.scen-s { font-size: 12px; font-weight: 600; opacity: .7; }

.invite-card {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 12px 12px 14px; border-radius: var(--r-xl); transition: transform .18s var(--press);
  background: linear-gradient(135deg, rgba(255, 184, 107, .18), rgba(197, 107, 255, .18)); border: 1px solid rgba(255, 255, 255, .1);
}
.invite-card .grow { flex: 1; min-width: 0; display: grid; }
.invite-card:active { transform: scale(.98); }
.invite-card .t { font-weight: 700; font-size: 15px; }
.invite-card .s { color: var(--muted); font-size: 12.5px; }
.invite-card .go { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.invite-h { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 8px; }
.gift-ico { font-size: 28px; animation: wiggle 2.6s ease-in-out infinite; }

.how { display: grid; gap: 10px; }
.how-step { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-lg); background: var(--surface); color: var(--muted); }
.how-step .grow { flex: 1; display: grid; }
.how-step .t { color: var(--text); font-weight: 600; }
.how-step .s { font-size: 13px; }
.how-n { width: 30px; height: 30px; font-size: 14px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #0e0e10; background: linear-gradient(135deg, #ffb86b, #ff6a88); }

.invite-hero { text-align: center; padding: 10px 0 6px; }
.gift-big { position: relative; font-size: 64px; line-height: 1; display: inline-block; animation: bob 3s ease-in-out infinite; margin-bottom: 14px; }
.gift-big i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffd66b; top: 50%; left: 50%; animation: spark 2.4s ease-out infinite; }
.gift-big i:nth-child(2) { background: #ff6a88; animation-delay: .8s; --dx: -60px; }
.gift-big i:nth-child(3) { background: #7cf2d4; animation-delay: 1.6s; --dx: 50px; }
.invite-hero .lead { color: var(--muted); max-width: 440px; margin: 0 auto 22px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes ripple { from { transform: scale(.75); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes floatUp { 0% { transform: translateY(0) rotate(-8deg); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-190px) rotate(12deg); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes sheen { 0%, 70% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes spark { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx, 10px)), -90px) scale(.2); opacity: 0; } }

@media (max-width: 420px) {
  .hero-title { font-size: 26px; }
  .hero-visual { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .notes-float, .ring-pulse, .cta::after { display: none; }
}

/* ---------- не хватает нот ---------- */
.nc { text-align: center; padding-top: 6px; }
.nc h2 { padding: 0; }
.nc-ico { width: 72px; height: 72px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 34px rgba(197, 107, 255, .4); animation: pop .5s var(--press); }
.nc .lead { margin: 6px auto 20px; max-width: 380px; font-size: 15px; }

/* ---------- админка: обзор ---------- */
.admin-tabs button { position: relative; }
.cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; margin-left: 2px; }
.callout { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); margin-bottom: 12px; background: rgba(255, 179, 64, .12); color: #ffd28a; border: 1px solid rgba(255, 179, 64, .25); font-size: 14px; }
.callout .grow { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; min-width: 0; animation: rise .4s var(--press) both; }
.kpi:nth-child(2) { animation-delay: .04s; } .kpi:nth-child(3) { animation-delay: .08s; } .kpi:nth-child(4) { animation-delay: .12s; }
.kpi:nth-child(5) { animation-delay: .16s; } .kpi:nth-child(6) { animation-delay: .2s; } .kpi:nth-child(7) { animation-delay: .24s; } .kpi:nth-child(8) { animation-delay: .28s; }
.kpi-l { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-v { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpis.small .kpi-v { font-size: 20px; }
.kpi-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.delta.up { background: rgba(48, 209, 88, .14); color: var(--ok); }
.delta.down { background: rgba(255, 69, 58, .14); color: var(--bad); }
.delta.warn { background: rgba(255, 179, 64, .16); color: var(--warn); }
.panels { display: grid; gap: 8px; margin-bottom: 12px; }
@media (min-width: 720px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px 14px; margin-bottom: 8px; animation: rise .45s var(--press) both; }
.panels .panel { margin-bottom: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.panel-head b { font-size: 18px; letter-spacing: -0.02em; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 96px; overflow: visible; }
.chart .bar { fill: var(--accent); opacity: .85; transition: opacity .15s; }
.chart .bar.last { opacity: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart [data-tip].hover .bar { opacity: 1; fill: #a89cff; }
.chart [data-tip].hover .hit { fill: rgba(255, 255, 255, .05); }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart-x { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; margin-top: 6px; }
.chart-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); background: #2a2a2f; border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.funnel { display: grid; gap: 12px; }
.f-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.f-top b { font-variant-numeric: tabular-nums; }
.f-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.f-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); animation: grow .8s var(--press) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.top-list { display: grid; }
.top-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.top-row + .top-row { border-top: 1px solid var(--line); }
.top-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.top-row:first-child .rank { background: var(--grad); color: #fff; }

/* ---------- загрузка ---------- */
.loader { display: grid; justify-items: center; gap: 14px; padding: 56px 0 40px; animation: fade .3s .15s both; }
.loader-eq { display: flex; align-items: center; gap: 5px; height: 38px; }
.loader-eq i { width: 6px; height: 100%; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.loader-eq i:nth-child(2) { animation-delay: -.2s; } .loader-eq i:nth-child(3) { animation-delay: -.4s; }
.loader-eq i:nth-child(4) { animation-delay: -.6s; } .loader-eq i:nth-child(5) { animation-delay: -.8s; }
.loader-t { color: var(--muted); font-size: 14px; animation: breatheText 1.6s ease-in-out infinite; }
@keyframes breatheText { 50% { opacity: .45; } }
.netbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
.netbar.on { opacity: 1; }
.netbar::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--grad); border-radius: 2px; animation: netbar 1.1s ease-in-out infinite; }
@keyframes netbar { from { left: -40%; } to { left: 100%; } }

/* ---------- админка: несохранённые изменения ---------- */
.savebar {
  position: fixed; z-index: 31; left: 50%; bottom: calc(var(--tabbar-h) + 22px + var(--safe-b)); transform: translate(-50%, 20px);
  width: min(520px, calc(100vw - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(42, 42, 47, .96); border: 1px solid rgba(139, 123, 255, .4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--press);
}
.savebar.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

/* ---------- обязательная подписка ---------- */
.op { padding-top: 2px; }
.op-head { text-align: center; }
.op-head h2 { padding: 0; }
.op-head .lead { margin: 6px auto 16px; max-width: 400px; font-size: 15px; }
.op-gift { font-size: 52px; line-height: 1; margin: 2px 0 10px; display: inline-block; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 24px rgba(197, 107, 255, .45)); }
.op-progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.op-progress i { display: block; height: 100%; border-radius: 3px; background: var(--grad); transition: width .5s var(--press); }
.op-progress-t { text-align: right; color: var(--muted); font-size: 12px; margin: 5px 0 10px; font-variant-numeric: tabular-nums; }
.op-list { display: grid; gap: 8px; margin-bottom: 14px; }
.op-list.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.op-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); animation: rise .4s var(--press) both; animation-delay: calc(var(--i) * .06s);
  transition: border-color .2s, background .2s;
}
.op-item .grow { flex: 1; min-width: 0; display: grid; }
.op-item .t { font-weight: 700; }
.op-item .s { color: var(--muted); font-size: 13px; }
.op-item.opened { border-color: rgba(139, 123, 255, .45); background: var(--grad-soft), var(--surface); }
.op-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-3); }
.op-item.opened .op-n { background: var(--grad); color: #fff; }
.op-check { height: 52px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.op-done { text-align: center; padding: 18px 0 10px; }
.op-done h2 { padding: 0; }
.op-done-ring { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 40px rgba(197, 107, 255, .5); animation: pop .6s var(--press); }
.gift-card {
  width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 12px 12px 14px; border-radius: var(--r-xl); text-align: left; color: var(--text);
  border: 1px solid rgba(255, 184, 107, .35); background: linear-gradient(135deg, rgba(255, 184, 107, .2), rgba(255, 106, 136, .16)); animation: rise .5s var(--press) both;
  transition: transform .18s var(--press);
}
.gift-card:active { transform: scale(.98); }
.gift-card .grow { flex: 1; display: grid; }
.gift-card .t { font-weight: 800; font-size: 16px; }
.gift-card .s { color: var(--muted); font-size: 13px; }

/* ---------- админка: спонсоры ---------- */
.admin-tabs { overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: none; padding: 0 12px; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 18px; font-weight: 700; }
.stepper button:active { transform: scale(.9); }
.stepper b { min-width: 26px; text-align: center; font-size: 16px; }
.prov { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 8px; animation: rise .4s var(--press) both; }
.prov.on { border-color: rgba(139, 123, 255, .35); }
.prov-head { display: flex; align-items: center; gap: 10px; }
.prov-head .grow { flex: 1; min-width: 0; display: grid; }
.prov-n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-3); }
.prov.on .prov-n { background: var(--grad); color: #fff; }
.prov-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prov-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.prov-state.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.prov-state.warn { color: var(--warn); } .prov-state.warn i { background: var(--warn); }
.prov-state.bad { color: var(--bad); } .prov-state.bad i { background: var(--bad); }
.prov-move { display: flex; }
.prov-move .icon-btn:disabled { opacity: .25; }
.prov-token { display: flex; gap: 8px; margin-top: 10px; }
.prov-token .input { flex: 1; min-width: 0; background: var(--surface-2); font-size: 14px; padding: 9px 12px; }
.prov-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.prov-stats b { color: var(--text); }

/* ---------- оплата ---------- */
.pay-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 18px 20px 20px; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 106, 136, .28), rgba(197, 107, 255, .26) 50%, rgba(106, 139, 255, .28)); border: 1px solid rgba(255, 255, 255, .12);
}
.pay-hero-glow { position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); z-index: -1; animation: breathe 5s ease-in-out infinite; }
.pay-hero .l { color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pay-hero .n { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-top: 4px; }
.pay-hero .n span { font-size: 20px; font-weight: 700; opacity: .75; letter-spacing: -0.02em; }
.pay-hero .s { color: rgba(255, 255, 255, .85); font-size: 14px; margin-top: 2px; }
.pay-hero-eq { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 3px; align-items: flex-end; height: 36px; opacity: .55; }
.pay-hero-eq i { width: 4px; height: 100%; border-radius: 2px; background: #fff; animation: eq 1.2s ease-in-out infinite; transform-origin: bottom; }
.pay-hero-eq i:nth-child(2n) { animation-delay: -.3s; } .pay-hero-eq i:nth-child(3n) { animation-delay: -.6s; } .pay-hero-eq i:nth-child(5n) { animation-delay: -.9s; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 2px 4px; color: var(--muted); font-size: 12.5px; }
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.trust svg { color: var(--ok); }
.pay-step { display: flex; align-items: center; gap: 9px; margin: 22px 2px 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.pay-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--grad); flex: none; }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.method {
  display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: var(--r-lg); border: 2px solid var(--line); background: var(--surface);
  color: var(--text); text-align: left; transition: border-color .2s, background .2s, transform .18s var(--press); min-width: 0;
}
.method:active { transform: scale(.97); }
.method.on { border-color: var(--accent); background: var(--grad-soft), var(--surface); }
.method .mt { font-weight: 700; font-size: 14.5px; margin-top: 8px; line-height: 1.2; }
.method .ms { color: var(--muted); font-size: 12px; }
.mb { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--surface-3); color: var(--text); }
.mb img { width: 100%; height: 100%; object-fit: cover; }
.mb-stars { background: linear-gradient(135deg, #ffd66b, #ff9f1c); font-size: 20px; }
.mb-tj svg { width: 26px; height: 26px; border-radius: 50%; }
.mb-visa { background: #1a1f71; color: #fff; font: italic 900 12px/1 var(--font); letter-spacing: .02em; }
.mb-sbp { background: #fff; display: grid; grid-template-columns: 1fr 1fr; place-items: stretch; gap: 2px; padding: 9px; }
.mb-sbp i { border-radius: 2px; } .mb-sbp i:nth-child(1) { background: #5b57a2; } .mb-sbp i:nth-child(2) { background: #d90751; }
.mb-sbp i:nth-child(3) { background: #fab91b; } .mb-sbp i:nth-child(4) { background: #0f9a46; }
.row .ico .mb { width: 100%; height: 100%; border-radius: 0; }
.pkgs { display: grid; gap: 8px; }
.pkg {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--r-lg); border: 2px solid var(--line);
  background: var(--surface); color: var(--text); text-align: left; transition: border-color .2s, background .2s, transform .18s var(--press);
  animation: rise .4s var(--press) both; animation-delay: calc(var(--i) * .06s);
}
.pkg:active { transform: scale(.98); }
.pkg.hot { border-color: rgba(255, 184, 107, .4); }
.pkg.on { border-color: var(--accent); background: var(--grad-soft), var(--surface); box-shadow: 0 8px 30px rgba(139, 123, 255, .25); }
.pkg-badge { position: absolute; top: -9px; left: 14px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff9f1c, #ff6a88); box-shadow: 0 4px 14px rgba(255, 106, 136, .4); }
.pkg-l, .pkg-r { display: grid; min-width: 0; }
.pkg-l { flex: 1; }
.pkg-r { justify-items: end; text-align: right; }
.pkg-notes { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pkg-notes small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: -0.01em; }
.pkg-sub { color: var(--muted); font-size: 13px; }
.pkg-price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.pkg-per { color: var(--muted); font-size: 12px; white-space: nowrap; }
.save { color: var(--ok); font-weight: 800; }
.checkout {
  position: fixed; z-index: 28; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 22px + var(--safe-b));
  width: min(560px, calc(100vw - 24px)); animation: rise .4s var(--press) both;
}
.checkout-in { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(36, 36, 40, .96); border: 1px solid rgba(139, 123, 255, .35); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.checkout-in .grow { flex: 1; display: grid; min-width: 0; font-size: 14px; line-height: 1.25; }
.checkout-in .muted { font-size: 12px; }
.checkout-in .btn { height: 46px; padding: 0 18px; font-size: 15px; }
.order-head { display: flex; align-items: center; gap: 12px; margin: 4px 2px 12px; }
.order-head .grow { display: grid; }
.order-head .muted { font-size: 13px; }
.order-amount { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--r-xl); background: var(--grad-soft), var(--surface); border: 1px solid rgba(139, 123, 255, .3); }
.order-amount .l { color: var(--muted); font-size: 13px; }
.order-amount .v { flex: 1; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.celebrate { position: relative; text-align: center; padding: 50px 0 20px; overflow: hidden; }
.celebrate h2 { font-size: 26px; }
.celebrate .lead { color: var(--muted); margin: 8px 0 22px; }
.celebrate-ico { font-size: 76px; line-height: 1; animation: pop .7s var(--press), bob 3s 1s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(255, 190, 60, .6)); margin-bottom: 14px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: confetti 2.4s var(--d) ease-in forwards; opacity: 0; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
.pulse-ring { animation: breathe 2s ease-in-out infinite; color: var(--warn); }
.edit-card.off { opacity: .6; }
.pm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pm-preview { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.pm-head .grow { flex: 1; min-width: 0; }
.method { position: relative; }
.method.soon { opacity: .55; cursor: default; }
.method.soon:active { transform: none; }
.soon-badge { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--surface-3); color: var(--muted); }

/* поштучно: скромно под пакетами */
.single { display: block; width: 100%; margin: 10px 0 0; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 13.5px; text-align: center; }
.single u { color: var(--text); text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.single.on { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 10px 10px 14px; border-radius: var(--r-lg); border: 2px solid var(--accent); background: var(--surface); animation: rise .3s var(--press) both; }
.single.on .grow { flex: 1; display: grid; min-width: 0; }
.single.on b { color: var(--text); font-size: 15px; }
.single.on .muted { font-size: 12.5px; }

/* ---------- плеер ---------- */
.player-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; padding: 0; text-align: left; }
.player-main .player-info { display: grid; }
.player-progress { pointer-events: none; height: 3px; }
.player-progress i { background: var(--grad); }
#pl-toggle { width: 46px; height: 46px; }
.np-sheet { padding-bottom: calc(28px + var(--safe-b)); }
.np { text-align: center; padding: 4px 0 0; }
.np-cover { width: min(300px, 72vw, 38vh); aspect-ratio: 1; margin: 6px auto 18px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; color: rgba(0, 0, 0, .3); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); animation: pop .4s var(--press); }
.np-cover img { width: 100%; height: 100%; object-fit: cover; }
.np-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; padding: 0 8px; }
.np-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.np-seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 16px 0 0; background: transparent; touch-action: none; cursor: pointer; --p: 0%;
}
.np-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ff6a88, #c56bff, #6a8bff) 0 0 / var(--p) 100% no-repeat, var(--surface-3); }
.np-seek::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-3); }
.np-seek::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.np-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); transition: transform .15s; }
.np-seek:active::-webkit-slider-thumb { transform: scale(1.35); }
.np-seek::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.np-times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; margin-top: -2px; }
.np-ctrl { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; padding: 0 4px; }
.np-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; transition: transform .15s var(--press), opacity .2s; }
.np-btn:active { transform: scale(.88); background: var(--surface-2); }
.np-btn:disabled { opacity: .3; }
.np-btn b { position: absolute; font-size: 9.5px; font-weight: 800; top: 50%; left: 50%; transform: translate(-50%, -42%); }
.np-play { width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 34px rgba(197, 107, 255, .45); transition: transform .15s var(--press); }
.np-play:active { transform: scale(.92); }
.np-play.playing { animation: npPulse 2.4s ease-in-out infinite; }
@keyframes npPulse { 50% { box-shadow: 0 10px 44px rgba(197, 107, 255, .7); } }
.np-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.np-act { flex: 1; max-width: 120px; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; transition: transform .15s var(--press); }
.np-act:active { transform: scale(.95); }
.np-act svg { color: var(--accent); }

/* ---------- шторки: ниже кнопок Telegram, крупный крестик, ручка для свайпа ---------- */
.sheet { max-height: calc(100vh - var(--safe-t) - 12px); max-height: calc(100dvh - var(--safe-t) - 12px); }
.sheet::before { display: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet .close { top: 12px; right: 12px; width: 42px; height: 42px; background: var(--surface-2); }
@media (min-width: 640px) { .sheet-grab { display: none; } }

/* ---------- закрытие потребности ОП ---------- */
.fill-verdict { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fill-verdict.ok { background: rgba(48, 209, 88, .14); color: var(--ok); }
.fill-verdict.warn { background: rgba(255, 179, 64, .16); color: var(--warn); }
.fill-verdict.bad { background: rgba(255, 69, 58, .14); color: var(--bad); }
.fill-main { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; font-size: 14px; line-height: 1.35; }
.fill-main > b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.fill-main .muted { font-size: 12.5px; }
.fill-provs { display: grid; gap: 12px; margin-top: 14px; }
.fill-prov-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.fill-prov-top span { color: var(--muted); }
.fill-prov-top span b { color: var(--text); }
.fill-prov-s { color: var(--dim); font-size: 12px; margin-top: 4px; }
.bad-t { color: var(--bad); }
.fill-verdict { white-space: nowrap; flex: none; }
.fill-refill { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.fill-refill b { color: var(--text); }
.fill-refill svg { flex: none; margin-top: 2px; color: var(--accent); }

/* поштучно: заметно, но скромнее пакетов */
.single-card {
  width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 10px 10px 12px; border-radius: var(--r-lg);
  border: 1.5px dashed rgba(255, 255, 255, .18); background: transparent; color: var(--text); text-align: left; transition: transform .18s var(--press), border-color .2s;
}
.single-card:active { transform: scale(.98); }
.single-card .grow { flex: 1; display: grid; min-width: 0; }
.single-card b { font-size: 15px; }
.single-card .muted { font-size: 12.5px; }
.single-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }
.single-price { font-weight: 800; font-size: 16px; white-space: nowrap; }

/* ---------- оплата: компактный баланс, продающие пакеты, окно-предложение ---------- */
.pay-bal {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 106, 136, .22), rgba(197, 107, 255, .2) 50%, rgba(106, 139, 255, .22)); border: 1px solid rgba(255, 255, 255, .1);
}
.pay-bal .grow { flex: 1; display: grid; }
.pay-bal .l { color: rgba(255, 255, 255, .7); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pay-bal .n { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pay-bal .n small { font-size: 15px; opacity: .75; }
.pay-bal .s { font-size: 12.5px; color: rgba(255, 255, 255, .8); text-align: right; max-width: 45%; }
.pay-bal .pay-hero-eq { position: static; height: 26px; opacity: .45; }
.pay-bal + .label, .pay-bal + .pay-step { margin-top: 16px; }
.pkg-old { color: var(--dim); font-size: 13px; font-weight: 600; text-decoration-thickness: 1.5px; }
.save-chip { margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: var(--ok); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pkg-pop { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #ffb86b; font-size: 12px; font-weight: 700; }
.pkg.hot.on { box-shadow: 0 10px 36px rgba(255, 106, 136, .3); }
.pkg.hot { padding-top: 18px; padding-bottom: 18px; }
.trust { margin-top: 16px; }
.upsell { text-align: center; }
.upsell h2 { padding: 0 30px; }
.upsell .lead { margin: 6px auto 14px; max-width: 380px; font-size: 14.5px; }
.upsell-gift { font-size: 50px; line-height: 1; margin: 0 0 8px; animation: pop .5s var(--press), bob 3s 1s ease-in-out infinite; display: inline-block; }
.up-cmp { display: flex; align-items: stretch; gap: 6px; }
.up-col { flex: 1; display: grid; gap: 1px; padding: 12px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.up-col b { font-size: 18px; }
.up-col .muted { font-size: 12px; }
.up-col.best { border: 2px solid var(--accent); background: var(--grad-soft), var(--surface); }
.up-l { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.up-arrow { display: grid; place-items: center; color: var(--muted); }
.up-save { margin: 10px auto 0; display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: var(--ok); font-weight: 800; font-size: 14px; }
.up-more { margin: 14px 0 8px; font-weight: 700; font-size: 14.5px; }
.up-ideas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.up-ideas span { padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; animation: rise .4s var(--press) both; animation-delay: calc(var(--i) * .05s); }

/* ---------- вход в админку из браузера ---------- */
.blogin { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.blogin h2 { font-size: 26px; }
.blogin .lead { color: var(--muted); margin: 8px 0 22px; }
.blogin-ico { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 34px rgba(197, 107, 255, .4); }
.blogin-wait .loader { padding: 26px 0 6px; }
.blogin a { color: var(--accent); }

/* ---------- админка: трафик ---------- */
.tl-new { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .tl-new { grid-template-columns: 2fr 1fr auto; } }
.tl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; animation: rise .4s var(--press) both; }
.tl.off { opacity: .55; }
.tl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tl-head .grow { flex: 1; font-size: 16px; }
.tl-head .muted { font-size: 12.5px; }
.tl-links { display: grid; gap: 6px; }
.tl-copy { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: left; transition: transform .15s var(--press); }
.tl-copy:active { transform: scale(.98); }
.tl-copy span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-copy b { color: var(--text); font-weight: 600; }
.tl-copy svg { flex: none; width: 16px; height: 16px; color: var(--accent); }
.tl-funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
@media (min-width: 720px) { .tl-funnel { grid-template-columns: repeat(6, 1fr); } }
.tl-funnel div { display: grid; padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-2); }
.tl-funnel b { font-size: 19px; letter-spacing: -0.02em; }
.tl-funnel span { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.tl-money { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; align-items: end; margin-top: 10px; }
.tl-money label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.tl-money .input { background: var(--surface-2); padding: 8px 10px; font-size: 14px; }
.tl-money div { display: grid; font-size: 12px; }
.tl-money div b { font-size: 16px; }
.ok-t { color: var(--ok); }
.tl-foot { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tl-foot .input { flex: 1; min-width: 180px; background: var(--surface-2); padding: 8px 10px; font-size: 13.5px; }
.tl-arch { margin-top: 12px; }
.tl-arch summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
.tl-links { grid-template-columns: minmax(0, 1fr); } .tl-copy { min-width: 0; max-width: 100%; }

/* ---------- трафик: компактный список ---------- */
.tl { padding: 0; overflow: hidden; }
.tl-row { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 14px; cursor: pointer; }
.tl-row::-webkit-details-marker { display: none; }
.tl-name { flex: 1; min-width: 0; display: grid; }
.tl-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name .muted { font-size: 12px; }
.tl-mini { display: flex; gap: 10px; flex: none; }
.tl-mini span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.tl-mini b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-mini svg { color: var(--accent); }
.tl-mini .paid b, .tl-mini .paid svg { color: var(--ok); }
.tl-chev { color: var(--muted); display: grid; transition: transform .2s; }
.tl[open] .tl-chev { transform: rotate(180deg); }
.tl[open] .tl-row { border-bottom: 1px solid var(--line); }
.tl-body { padding: 12px 14px 14px; animation: rise .25s var(--press) both; }
@media (max-width: 420px) { .tl-mini { gap: 7px; } .tl-mini span { font-size: 0; gap: 3px; } .tl-mini b { font-size: 13px; } }
.px-panel > summary { list-style: none; cursor: pointer; }
.px-panel > summary::-webkit-details-marker { display: none; }
.px-panel:not([open]) > summary { margin-bottom: 0; }

.tl-new { grid-template-columns: 1fr auto !important; margin-bottom: 8px; }
.tl-new .input { padding: 10px 14px; font-size: 15px; }
.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; margin: 0 2px 10px; }
.tl-legend svg { color: var(--accent); }
.px-panel { margin-top: 18px; }

/* ---------- кто поёт ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.who-card { display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: var(--r-lg); border: 2px solid transparent; background: var(--surface);
  color: var(--text); font-size: 13.5px; font-weight: 600; transition: transform .18s var(--press), border-color .2s, background .2s; }
.who-card:active { transform: scale(.95); }
.who-card.on { border-color: var(--accent); background: var(--grad-soft), var(--surface); }
.who-e { font-size: 28px; line-height: 1.1; }
.who-card.on .who-e { animation: pop .35s var(--press); }
.myv { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.add-chip { border-style: dashed; color: var(--accent); }
.ghost-chip { color: var(--muted); }
.clone { text-align: center; }
.clone h2 { padding: 0; }
.clone .lead { margin: 6px auto 14px; max-width: 380px; font-size: 14.5px; }
.clone-ico { font-size: 48px; margin-bottom: 6px; animation: bob 3s ease-in-out infinite; display: inline-block; }
.clone-steps { display: grid; gap: 8px; text-align: left; margin-bottom: 12px; }
.clone-steps div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); font-size: 14px; }
.clone-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; flex: none; }

/* ---------- подсказки по ситуации ---------- */
.hints { display: grid; }
.hint { display: grid; grid-template-rows: 1fr; opacity: 1; margin-top: 14px; transition: grid-template-rows .38s var(--press), opacity .3s, margin-top .38s var(--press); }
.hint.enter, .hint.leave { grid-template-rows: 0fr; opacity: 0; margin-top: 0; }
.hint-in { overflow: hidden; display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); position: relative;
  background: linear-gradient(135deg, rgba(255, 184, 107, .12), rgba(197, 107, 255, .12)); border: 1px solid rgba(255, 255, 255, .08); }
.hint-in::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.hint-ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(255, 255, 255, .06); }
.hint-body { flex: 1; min-width: 0; }
.hint-body b { display: block; font-size: 15px; margin-bottom: 2px; }
.hint-body p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hint-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hint-acts .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ---------- черновик текста ---------- */
.draft-btn { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-lg); color: var(--text); text-align: left;
  border: 1px solid rgba(197, 107, 255, .45); background: linear-gradient(135deg, rgba(255, 106, 136, .14), rgba(106, 139, 255, .14)); transition: transform .18s var(--press); }
.draft-btn:active { transform: scale(.98); }
.draft-btn > span:first-child { font-size: 22px; animation: bob 3s ease-in-out infinite; }
.draft-btn .grow { flex: 1; display: grid; }
.draft-btn b { font-size: 15px; }
.draft-btn small { color: var(--muted); font-size: 12.5px; }
.draft { text-align: center; }
.draft h2 { padding: 0; }
.draft .lead { margin: 6px auto 14px; max-width: 380px; font-size: 14.5px; }
.draft .field { text-align: left; }
.draft .label { text-align: left; }
.draft-ta { min-height: 84px; resize: none; line-height: 1.45; }
.draft-ico { font-size: 44px; display: inline-block; animation: pop .5s var(--press), bob 3s 1s ease-in-out infinite; }
.draft-wait { padding: 14px 0 8px; animation: fade .3s both; }
.draft-pen { font-size: 52px; display: inline-block; animation: write 1.1s ease-in-out infinite; }
@keyframes write { 0%, 100% { transform: translate(-6px, 0) rotate(-6deg); } 50% { transform: translate(6px, -3px) rotate(4deg); } }
.draft-wait .lead { transition: opacity .3s; min-height: 1.4em; }
.draft-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin: 6px 20px 4px; position: relative; }
.draft-bar i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: var(--grad); animation: netbar 1.3s ease-in-out infinite; }
textarea.typing { caret-color: transparent; box-shadow: 0 0 0 1px rgba(197, 107, 255, .5); }

/* ---------- шанс на отличный трек ---------- */
.quality { margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.q-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); font-weight: 600; }
.q-head b { font-size: 15px; transition: color .3s; }
.q1 .q-head b { color: var(--warn); } .q3 .q-head b { color: #ffd66b; } .q4 .q-head b, .q5 .q-head b { color: var(--ok); }
.q-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 12px; }
.q-dots i { height: 8px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.q-dots i.on::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: var(--grad); transform-origin: left; animation: qfill .45s var(--press) both; animation-delay: calc(var(--i) * .09s); }
@keyframes qfill { from { transform: scaleX(0); } }
.q-items { display: flex; flex-wrap: wrap; gap: 6px; }
.q-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .18);
  background: transparent; color: var(--muted); font-size: 12.5px; transition: transform .18s var(--press), background .2s; }
.q-item:active { transform: scale(.95); }
.q-item.ok { border-style: solid; border-color: transparent; background: rgba(48, 209, 88, .12); color: var(--text); }
.q-check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .25); }
.q-item.ok .q-check { border: 0; background: var(--ok); color: #04210d; animation: pop .35s var(--press); }

/* ---------- оплата: страна → способ ---------- */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region {
  display: grid; justify-items: center; gap: 3px; padding: 14px 6px 12px; border-radius: var(--r-lg); border: 2px solid var(--line);
  background: var(--surface); color: var(--text); min-width: 0; text-align: center;
  transition: border-color .2s, background .2s, transform .18s var(--press), box-shadow .25s;
}
.region:active { transform: scale(.96); }
.region b { font-size: 13.5px; line-height: 1.2; margin-top: 4px; }
.region small { color: var(--muted); font-size: 11.5px; }
.region.on { border-color: var(--accent); background: var(--grad-soft), var(--surface); box-shadow: 0 6px 22px -10px var(--accent); }
.rflag { width: 38px; height: 26px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.12); transition: transform .3s var(--press); }
.rflag svg { width: 100%; height: 100%; display: block; }
.rflag.globe { background: var(--grad); color: #fff; }
.rflag.globe svg { width: 20px; height: 20px; }
.region.on .rflag { transform: scale(1.08) rotate(-3deg); }
.pmethods { display: grid; gap: 8px; margin-top: 10px; }
.pmethod {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); border: 2px solid var(--line);
  background: var(--surface); color: var(--text); text-align: left; width: 100%;
  animation: pm-in .35s var(--press) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: border-color .2s, background .2s, transform .18s var(--press);
}
.pmethod:active { transform: scale(.98); }
.pmethod .grow { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pmethod b { font-size: 15px; }
.pmethod .muted { font-size: 12.5px; }
.pmethod.on { border-color: var(--accent); background: var(--grad-soft), var(--surface); }
.pmethod.soon { opacity: .5; cursor: default; }
.pmethod.soon:active { transform: none; }
.pmethod .soon-badge { position: static; }
.pm-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; transition: border-color .2s, background .2s; }
.pmethod.on .pm-radio { border-color: transparent; background: var(--grad); }
.pmethod.on .pm-radio::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; animation: pm-dot .3s var(--press); }
.pm-hint { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; padding: 12px 14px; border-radius: var(--r-lg); border: 1.5px dashed var(--line); }
.nudge { animation: pm-nudge .5s var(--press); }
@keyframes pm-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pm-dot { from { transform: scale(0); } }
@keyframes pm-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .pmethod, .nudge { animation: none; } }

/* ---------- подгрузка аудио на медленной сети ---------- */
.buffering #pl-toggle, .buffering [data-np-toggle] { position: relative; }
.buffering #pl-toggle::after, .buffering [data-np-toggle]::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2.5px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent);
  animation: buf-spin .8s linear infinite; pointer-events: none;
}
.buffering .player-progress i { animation: buf-pulse 1s ease-in-out infinite; }
@keyframes buf-spin { to { transform: rotate(360deg); } }
@keyframes buf-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .buffering #pl-toggle::after, .buffering [data-np-toggle]::after { animation-duration: 2s; } }

/* ---------- статистика ---------- */
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.st-period { flex: 1; min-width: 0; max-width: 460px; }
.st-upd { font-size: 12px; }
#admin-body { transition: opacity .2s; }
#admin-body.st-loading { opacity: .45; pointer-events: none; }
.callout.bad { background: rgba(255, 69, 58, .12); color: #ff9d96; border-color: rgba(255, 69, 58, .25); }
.kpis.hero .kpi { background: var(--grad-soft), var(--surface); }
.kpis.hero .kpi-v { font-size: 27px; }
.st-sec { margin: 22px 0 6px; animation: rise .45s var(--press) both; }
.st-head { margin: 0 2px 10px; }
.st-head h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.st-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.st-empty { margin: 4px 0 0; font-size: 14px; }
.hbars { display: grid; gap: 11px; }
.hb { animation: rise .4s var(--press) both; animation-delay: calc(var(--i, 0) * 40ms); }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 5px; }
.hb-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-top b .muted { font-weight: 500; font-size: 12px; }
.hb-track { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 4px; background: var(--grad); animation: grow .8s var(--press) both; transform-origin: left; }
.hb-track i.ok { background: var(--ok); }
.hb-track i.bad { background: var(--bad); opacity: .8; }
.hb-track i.ref { background: #30d158; }
.hb-track i.self { background: #8e8e93; }
.hb-sub { font-size: 12px; margin-top: 3px; }
.st-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.st-mini > * { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(255,255,255,.04)); color: var(--text); text-decoration: none; }
.st-mini b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.st-mini span span, .st-mini a span { color: var(--muted); font-size: 12px; }
.st-funnel { display: grid; gap: 14px; }
.sf-row { animation: rise .4s var(--press) both; animation-delay: calc(var(--i, 0) * 60ms); }
.sf-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.sf-top b { font-size: 17px; font-variant-numeric: tabular-nums; }
.sf-track { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.sf-track i { display: block; height: 100%; border-radius: 5px; background: var(--grad); animation: grow .9s var(--press) both; transform-origin: left; }
.sf-sub { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 4px; }
.st-note { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.st-note b { color: var(--text); }
a.top-row { color: var(--text); text-decoration: none; }
@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .panels.two { grid-template-columns: repeat(2, 1fr); }
}
.st-period { display: grid; grid-template-columns: repeat(4, 1fr); }
.st-period button { padding-left: 4px; padding-right: 4px; font-size: 13.5px; white-space: nowrap; min-width: 0; }
@media (max-width: 759px) { .st-period { flex-basis: 100%; max-width: none; } .st-upd { margin-left: 2px; } }

/* ---------- лента: объяснение, подборки, хит, список ---------- */
.fintro {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 16px 14px; margin-bottom: 14px;
  border-radius: var(--r-lg); background: var(--grad-soft), var(--surface); border: 1px solid var(--line); overflow: hidden;
  animation: rise .45s var(--press) both; transition: opacity .3s, transform .3s, max-height .3s, margin .3s, padding .3s; max-height: 260px;
}
.fintro.leave { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.fintro-art { font-size: 34px; line-height: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.07); flex: none; animation: fl-bob 3s ease-in-out infinite; }
.fintro b { font-size: 17px; letter-spacing: -0.02em; }
.fintro p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.fintro-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; }
.fcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
.fcats::-webkit-scrollbar { display: none; }
.fcat { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s var(--press); }
.fcat:active { transform: scale(.95); }
.fcat.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px var(--accent); }

.fhero { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); isolation: isolate; animation: rise .5s var(--press) both; cursor: pointer; }
.fhero-bg { position: absolute; inset: -30px; z-index: -1; filter: blur(34px) saturate(1.3); opacity: .75; transform: scale(1.1); }
.fhero-bg img { width: 100%; height: 100%; object-fit: cover; }
.fhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,16,.25), rgba(14,14,16,.82)); }
.fhero-in { display: flex; gap: 14px; padding: 16px 16px 0; align-items: flex-start; }
.fhero-cover { position: relative; width: 112px; height: 112px; border-radius: 18px; overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.fhero-cover img { width: 100%; height: 100%; object-fit: cover; }
.fhero-text { min-width: 0; color: #fff; }
.fhero-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.fhero h2 { margin: 8px 0 4px; font-size: 21px; line-height: 1.15; letter-spacing: -0.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fhero p { margin: 0; font-size: 13.5px; line-height: 1.35; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fhero p b { color: #fff; font-weight: 700; }
.fhero-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.fhero-tags span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.fhero-acts { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.fhero-acts .btn { flex: none; padding-left: 22px; padding-right: 24px; }
.fhero-stat { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.75); font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.flist { display: grid; gap: 2px; }
.frow {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: 16px; cursor: pointer;
  transition: background .2s, transform .15s var(--press); animation: rise .4s var(--press) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.frow:active { transform: scale(.985); background: var(--surface); }
.frow.playing { background: var(--grad-soft), var(--surface); }
.frow-cover { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.frow-cover img { width: 100%; height: 100%; object-fit: cover; }
.frow-play { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(4px); transition: opacity .2s, transform .2s var(--press); z-index: 1; }
.frow.playing .frow-play { opacity: 0; transform: scale(.7); }
.frow.playing .frow-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.frow-main { min-width: 0; }
.frow-title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow.playing .frow-title { color: #c9bfff; }
.frow-ask { font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frow-ask b { color: var(--text); font-weight: 600; opacity: .8; }
.frow-meta { display: flex; gap: 10px; color: var(--dim); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.frow-meta span { display: inline-flex; align-items: center; gap: 3px; }
.frow-side { display: flex; align-items: center; gap: 2px; }
.frow-like, .frow-more { border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; padding: 8px 6px; font-weight: 600; font-size: 13px; border-radius: 12px; }
.frow-like.liked { color: var(--like); }
.frow-more { color: var(--dim); padding-right: 2px; }

.eq { position: absolute; inset: 0; margin: auto; width: 22px; height: 18px; display: flex; align-items: flex-end; justify-content: space-between; opacity: 0; transition: opacity .2s; z-index: 2; pointer-events: none; }
.eq i { width: 4px; border-radius: 2px; background: #fff; height: 30%; animation: eq-b .9s ease-in-out infinite; animation-play-state: paused; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.playing .eq { opacity: 1; }
.playing .eq i { animation-play-state: running; }
.buffering .playing .eq i { animation-play-state: paused; }
.fhero-cover .eq { width: 30px; height: 26px; }
.fhero-cover .eq i { width: 6px; }
.fhero.playing .fhero-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }

.fcta {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin: 10px 0; border-radius: var(--r-lg); color: var(--text); text-decoration: none;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; animation: rise .4s var(--press) both;
}
.fcta-ico { font-size: 24px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); flex: none; }
.fcta .grow { display: grid; gap: 2px; min-width: 0; }
.fcta b { font-size: 15px; }
.fcta .grow span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.fcta .btn { flex: none; }

@keyframes eq-b { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes fl-bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
@media (min-width: 760px) {
  .flist { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .flist .fcta { grid-column: 1 / -1; }
  .fhero-cover { width: 150px; height: 150px; }
  .fhero h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .eq i, .fintro-art { animation: none; } }

.fcta-go { display: none; color: var(--accent); flex: none; }
@media (max-width: 559px) { .fcta .btn { display: none; } .fcta-go { display: grid; } }

/* ---------- мини-плеер: закрыть; не перекрывает оплату ---------- */
.pl-close { width: 34px; height: 34px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--muted); margin-left: -4px; transition: background .2s, transform .15s var(--press); }
.pl-close:active { transform: scale(.88); background: rgba(255,255,255,.16); }
.player { transition: bottom .3s var(--press), opacity .22s, transform .22s; }
.player.closing { opacity: 0; transform: translate(-50%, 24px); }
/* На странице оплаты плеер поднимается над кнопкой «Оплатить» */
.on-pay .player { bottom: calc(var(--tabbar-h) + 92px + var(--safe-b)); }

/* ---------- «песня в чате с ботом» ---------- */
.sent { text-align: center; }
.sent h2 { padding: 0 30px; }
.sent-ico { width: 76px; height: 76px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 34px -10px var(--accent); animation: pop .5s var(--press); }
.sent .lead { margin: 4px auto 14px; max-width: 360px; }
.sent-tips { display: grid; gap: 8px; text-align: left; }
.sent-tips div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface); font-size: 14.5px; }
.sent-tips svg { color: var(--accent); flex: none; }

/* ---------- «можно выгоднее» ---------- */
.up2 { text-align: center; }
.up2 h2 { padding: 0 30px; }
.up2-ico { font-size: 44px; line-height: 1; margin-bottom: 8px; display: inline-block; animation: pop .5s var(--press); }
.up2 .lead { margin: 4px auto 16px; max-width: 360px; font-size: 15.5px; }
.up2 .lead b { color: var(--text); }
.up2-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.up2-opt { position: relative; display: grid; gap: 2px; justify-items: center; padding: 22px 10px 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); }
.up2-opt.best { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 14px 36px -16px var(--accent); animation: pop .5s .1s var(--press) both; }
.up2-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); }
.up2-tag.muted { background: var(--surface-3); color: var(--muted); font-weight: 700; }
.up2-n { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.up2-n small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.up2-price { font-size: 17px; font-weight: 700; }
.up2-each { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.up2-bar { width: 80%; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 5px; }
.up2-bar i { display: block; height: 100%; border-radius: 3px; background: var(--dim); animation: grow .8s var(--press) both; transform-origin: left; }
.up2-opt.best .up2-bar i { background: var(--ok); }
.up2-note { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: var(--ok); font-weight: 700; font-size: 14px; }

/* Фоновое свечение — отдельным неподвижным слоем: прокрутка его не перерисовывает */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background:
    radial-gradient(520px 360px at 105% -6%, rgba(197, 107, 255, .14), transparent 70%),
    radial-gradient(420px 320px at -12% 22%, rgba(255, 106, 136, .09), transparent 70%);
}

/* ---------- лёгкий режим (админка в браузере, слабые устройства) ----------
   Без размытий, теней и анимаций — на старых ноутбуках именно они дают тормоза при прокрутке */
html.lite body::before { display: none; }
html.lite *, html.lite *::before, html.lite *::after {
  animation: none !important; transition: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  box-shadow: none !important; text-shadow: none !important; filter: none !important;
}
html.lite .top, html.lite .tabbar, html.lite .player, html.lite .checkout-in { background: #1c1c1f !important; }
/* Индикаторы загрузки оставляем живыми, иначе непонятно, что идёт работа */
html.lite .spin { animation: spin .7s linear infinite !important; }
html.lite .loader-eq i { animation: eq 1s ease-in-out infinite !important; }
html.lite .netbar::before { animation: netbar 1.1s ease-in-out infinite !important; }
html.lite .chart [data-tip].hover .bar { fill: #a89cff; }
html.browser-admin #tabbar { display: none; }
html.browser-admin body { padding-bottom: 40px; }
.st-note { display: block; line-height: 1.45; }
.st-note svg { vertical-align: -3px; margin-right: 6px; }

/* Выбор языка на главной — маленький, в углу, не отвлекает от «Создать песню» */
.lang-mini { position: absolute; top: 0; right: 0; z-index: 2; display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang-mini button { border: 0; background: transparent; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; transition: background .2s, color .2s; }
.lang-mini button.on { background: var(--surface-3); color: var(--text); }
