/* Promedia Pro v2.4 — Unutilmas Musiqiy Sovg'alar Studiyasi (Mini App + Web + Desktop 2-Col Shell).
   Mavzular: 🌙 Kechki Sahna (standart `dark`: #090814 / #131126 / #F3C978 / #F07A96) va
   ✨ Bayram Oqshomi (`light`: #19142C / #251E40 / #F5CE82) — ZERO blinding white! */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/montserrat-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('fonts/montserrat-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/montserrat-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700 800; font-display: swap; src: url('fonts/playfair-display-latin-800-italic.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,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090814; --bg-deep: #0E0C1E; --bg1: #090814;
  --ink: #F8F5FF; --ink-2: #E4DDF5; --mute: #A89EC4; --dim: #797096; --label: #E6E0F8; --soft: #EFEAFD;
  --gold: #F3C978; --gold-deep: #D29C44; --ring-gold: rgba(243, 201, 120, .48);
  --rose: #F07A96; --v: #F07A96; --p: #F3C978; --o: #E5A952; --c: #FFE4AA;
  --cream: rgba(243, 201, 120, .14); --plum: #F8F5FF; --plum2: #F3C978;
  --on-grad: #1A1104; --on-accent: #1A1104;
  --glass: rgba(24, 21, 46, .88); --line: rgba(243, 201, 120, .15);
  --card: #131126; --card-elev: #1B1835;
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 36px rgba(0, 0, 0, .52);
  --field: #100E22; --field-on: #181532;
  --top: linear-gradient(180deg, rgba(9, 8, 20, .96) 82%, rgba(9, 8, 20, 0));
  --tabbar: rgba(19, 17, 38, .94); --tabbar-shadow: 0 18px 46px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .09);
  --sheet: linear-gradient(180deg, #1B1734 0%, #0D0B1C 100%); --overlay: rgba(4, 3, 12, .82);
  --toast: rgba(24, 21, 46, .98); --fade: rgba(9, 8, 20, .95);
  --aurora: 1;
  --shine: linear-gradient(105deg, #F3C978 0%, #FFF2CF 42%, #F07A96 72%, #F3C978 100%);
  --accent: #F3C978;
  --skel: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(243, 201, 120, .13) 50%, rgba(255, 255, 255, .04) 70%);
  --k-dim: rgba(248, 245, 255, .45); --k-past: rgba(248, 245, 255, .68); --k-now: #FFFDF8; --k-plain: rgba(248, 245, 255, .90);
  --k-glow: rgba(243, 201, 120, .14);
  --tag: #F3C978;
  --ok: #6EE7B7; --ok-bg: rgba(31, 138, 85, .20); --run: #F3C978; --run-bg: rgba(243, 201, 120, .18);
  --bad: #FCA5A5; --bad-bg: rgba(248, 113, 113, .16);
  --note: #F7EAD2; --note-bg: rgba(243, 201, 120, .10); --note-line: rgba(243, 201, 120, .28);
  --warn: #FECACA; --warn-bg: rgba(240, 122, 150, .14); --warn-line: rgba(240, 122, 150, .35);
  --bubble: #1B1835; --bubble-me: linear-gradient(135deg, #D99B3F, #B87924);
  --grad: linear-gradient(135deg, #F9DF9E 0%, #F3C978 48%, #D49E45 100%);
  --glow: rgba(243, 201, 120, .28);
  --r: 20px; --tab: 70px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Nunito', 'Montserrat', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --text: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --serif: 'Literata', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.25, .9, .3, 1);
}

/* ✨ Bayram Oqshomi — Rich Velvet Plum-Twilight (NEVER blinding white!) */
html[data-theme="light"] {
  color-scheme: dark;
  --bg: #19142C; --bg-deep: #211B3A; --bg1: #19142C;
  --ink: #FAF7FF; --ink-2: #E8E1FA; --mute: #B8AFD4; --dim: #8D83AD; --label: #ECE6FC; --soft: #F2EEFE;
  --gold: #F5CE82; --gold-deep: #D9A44B; --ring-gold: rgba(245, 206, 130, .50);
  --rose: #F489A3; --v: #F489A3; --p: #F5CE82; --o: #EBB05A; --c: #FFE8B5;
  --cream: rgba(245, 206, 130, .16); --plum: #FAF7FF; --plum2: #F5CE82;
  --on-grad: #1A1104; --on-accent: #1A1104;
  --glass: rgba(44, 35, 74, .88); --line: rgba(245, 206, 130, .20);
  --card: #251E40; --card-elev: #2F2650;
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 32px rgba(7, 5, 18, .44);
  --field: #1E1836; --field-on: #282046;
  --top: linear-gradient(180deg, rgba(25, 20, 44, .96) 82%, rgba(25, 20, 44, 0));
  --tabbar: rgba(34, 27, 58, .94); --tabbar-shadow: 0 16px 42px rgba(7, 5, 18, .58), inset 0 1px 0 rgba(255, 255, 255, .10);
  --sheet: linear-gradient(180deg, #2D244E 0%, #19142C 100%); --overlay: rgba(8, 6, 20, .78);
  --toast: rgba(38, 30, 66, .98); --fade: rgba(25, 20, 44, .95);
  --shine: linear-gradient(105deg, #F5CE82 0%, #FFF4D6 42%, #F489A3 72%, #F5CE82 100%);
  --accent: #F5CE82;
  --skel: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(245, 206, 130, .15) 50%, rgba(255, 255, 255, .05) 70%);
  --k-dim: rgba(250, 247, 255, .48); --k-past: rgba(250, 247, 255, .70); --k-now: #FFFFFF; --k-plain: rgba(250, 247, 255, .92);
  --k-glow: rgba(245, 206, 130, .16);
  --tag: #F5CE82;
  --ok: #6EE7B7; --ok-bg: rgba(31, 138, 85, .22); --run: #F5CE82; --run-bg: rgba(245, 206, 130, .20);
  --bad: #FCA5A5; --bad-bg: rgba(248, 113, 113, .18);
  --note: #FAF0DC; --note-bg: rgba(245, 206, 130, .13); --note-line: rgba(245, 206, 130, .32);
  --warn: #FECACA; --warn-bg: rgba(244, 137, 163, .16); --warn-line: rgba(244, 137, 163, .36);
  --bubble: #2F2650; --bubble-me: linear-gradient(135deg, #DEA247, #BD7E27);
  --grad: linear-gradient(135deg, #FBE3AA 0%, #F5CE82 50%, #D9A34A 100%);
  --glow: rgba(245, 206, 130, .30);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: var(--bg); scroll-behavior: auto; -webkit-overflow-scrolling: touch; }
body { margin: 0; min-height: 100%; color: var(--ink); background: var(--bg); font: 600 16px/1.5 var(--text); overflow-x: hidden; overscroll-behavior-y: none; touch-action: manipulation; -webkit-font-smoothing: antialiased; }
html[data-theme="light"] body { background: var(--bg); }
body::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + var(--safe-b) + 26px); z-index: 25; pointer-events: none; background: linear-gradient(180deg, transparent 0%, var(--bg1) 38%, var(--bg1) 100%); transition: opacity .45s ease; }
body.player-bare::after { opacity: 0; display: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; outline: none; }
a { color: inherit; outline: none; }
button:focus, a:focus, summary:focus, [tabindex]:focus, input:focus, textarea:focus { outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(243, 201, 120, .68);
}
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ───── Fon: sokin kechki sahna & bayram oqshomi ───── */
.aurora { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; animation: none !important; will-change: auto; transform: none; z-index: 0; pointer-events: none; background:
    radial-gradient(58% 38% at 86% 0%, rgba(243, 201, 120, .11), transparent 72%),
    radial-gradient(52% 40% at 8% 36%, rgba(240, 122, 150, .09), transparent 74%),
    linear-gradient(180deg, #0D0B1D 0%, #090814 100%); }
html[data-theme="light"] .aurora { background:
    radial-gradient(62% 42% at 86% 0%, rgba(245, 206, 130, .15), transparent 72%),
    radial-gradient(56% 44% at 8% 38%, rgba(244, 137, 163, .12), transparent 74%),
    linear-gradient(180deg, #211A3A 0%, #19142C 100%); }
.aurora i { display: none; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { display: none; }

/* ───── Karkas (Global `.top` header hidden — controls live cleanly in Profil & Desktop Sidebar) ───── */
#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 0 16px calc(var(--tab) + var(--safe-b) + 42px); overflow-x: clip; }
header.top, .top { display: none !important; }
.pwm, .soc-mx, .pb-ox { display: none !important; }
.brand-by { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: middle; }
.brand-by img { width: 16px; height: 16px; border-radius: 5px; display: block; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .22s var(--ease), background .22s, border-color .22s; }
.pill:active { transform: scale(.96); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--gold); }

#view { padding-top: calc(10px + var(--safe-t)); padding-bottom: calc(90px + var(--safe-b)); }
.screen { animation: screenIn 140ms ease-out both; }
@keyframes screenIn { from { opacity: 0.01; } to { opacity: 1; } }
.rise { opacity: 1; animation: rise .24s var(--ease) both; }
.list .rise { animation-duration: .22s; }
@keyframes rise { from { opacity: .88; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ───── 5-Tab Floating Glass Bar + Sculpted 24k Gold Gift-Music Jewel Center FAB (`#tabbar`) ───── */
.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; margin: 0 auto;
  bottom: calc(10px + var(--safe-b)); width: min(500px, calc(100% - 16px)); height: 64px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px;
  border-radius: 22px; background: var(--tabbar);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--line); box-shadow: var(--tabbar-shadow); transform: translateZ(0); overflow: visible;
}
.tabbar a {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; font: 700 10.5px var(--display); color: var(--mute);
  transition: color .25s var(--ease); min-width: 0; outline: none; -webkit-tap-highlight-color: transparent;
}
.tabbar a:focus { outline: none; }
.tabbar a:focus-visible:not(.tab-fab) { outline: none; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(243, 201, 120, .72); }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tabbar a svg { width: 20px; height: 20px; transition: transform .3s var(--ease), color .25s var(--ease); }
@media (max-width: 390px) { .tabbar a { font-size: 9.8px; letter-spacing: -.015em; } .tabbar a span { padding: 0 1px; } .tabbar a svg { width: 19px; height: 19px; } }
.tabbar a.on { color: var(--gold); font-weight: 800; }
.tabbar a.on svg { transform: translateY(-1px); color: var(--gold); }
.tabbar a b { position: absolute; top: 3px; left: calc(50% + 7px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font: 800 10px/16px var(--text); text-align: center; }

.tabbar a.tab-fab { justify-content: flex-end; padding-bottom: 3px; overflow: visible; outline: none; }
.tabbar a.tab-fab .tab-fab-orb {
  position: absolute; top: -21px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 236, 178, .28) 0%, transparent 46%),
    radial-gradient(circle at 32% 26%, #2F2456 0%, #16112E 66%, #090814 100%);
  border: 2px solid #F3C978;
  color: #FFE6A3;
  display: grid; place-items: center; outline: none; isolation: isolate;
  box-shadow:
    inset 0 1.5px 3px rgba(255, 246, 212, .38),
    inset 0 -3px 8px rgba(5, 4, 14, .82),
    0 0 18px rgba(243, 201, 120, .46),
    0 8px 22px rgba(0, 0, 0, .58),
    0 0 0 3.5px var(--bg);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.tabbar a.tab-fab .tab-fab-orb::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 201, 120, .52) 0%, rgba(240, 122, 150, .20) 56%, transparent 76%);
  z-index: -1; pointer-events: none; animation: fabGiftHalo 3.4s ease-in-out infinite;
}
.tabbar a.tab-fab .tab-fab-orb svg.fab-gift-svg {
  width: 26px; height: 26px; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 228, 158, .66));
  animation: fabGiftFloat 4s ease-in-out infinite;
}
.tabbar a.tab-fab .tab-fab-orb .fab-star {
  transform-box: fill-box; transform-origin: center;
  animation: fabStarTwinkle 2.6s ease-in-out infinite;
}
.tabbar a.tab-fab .tab-fab-orb .fab-star.s2 { animation-delay: .9s; }
.tabbar a.tab-fab .tab-fab-orb .fab-star.s3 { animation-delay: 1.7s; }
.tabbar a.tab-fab:focus-visible { outline: none; box-shadow: none; }
.tabbar a.tab-fab:focus-visible .tab-fab-orb {
  box-shadow: inset 0 1.5px 3px rgba(255, 244, 206, .42), 0 0 0 3px var(--bg), 0 0 0 5px rgba(255, 228, 158, .92), 0 12px 28px rgba(243, 201, 120, .54);
}
.tabbar a.tab-fab.on .tab-fab-orb {
  transform: translateX(-50%) translateY(-3px) scale(1.06);
  border-color: #FFEAB0;
  box-shadow: inset 0 1.5px 3px rgba(255, 248, 220, .52), inset 0 -3px 8px rgba(5, 4, 14, .75), 0 0 24px rgba(243, 201, 120, .62), 0 12px 28px rgba(0, 0, 0, .6), 0 0 0 3.5px var(--bg);
}
@keyframes fabGiftHalo { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.14); opacity: .95; } }
@keyframes fabGiftFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-1.5px) rotate(-3deg); } }
@keyframes fabStarTwinkle { 0%, 100% { opacity: .45; transform: scale(.78) rotate(0deg); } 50% { opacity: 1; transform: scale(1.18) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) {
  .tabbar a.tab-fab .tab-fab-orb::before,
  .tabbar a.tab-fab .tab-fab-orb svg.fab-gift-svg,
  .tabbar a.tab-fab .tab-fab-orb .fab-star { animation: none !important; }
}
.tabbar .ink {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 5);
  border-radius: 17px; background: rgba(243, 201, 120, .12); border: 1px solid rgba(243, 201, 120, .24);
  box-shadow: none; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}
.tabbar[data-tab="1"] .ink { transform: translateX(100%); }
.tabbar[data-tab="2"] .ink { transform: translateX(200%); opacity: 0; }
.tabbar[data-tab="3"] .ink { transform: translateX(300%); }
.tabbar[data-tab="4"] .ink { transform: translateX(400%); }
.tabbar[data-tab="-1"] .ink { opacity: 0; }

.item button.disc { border: 0; padding: 0; cursor: pointer; }
.item .go .btn { white-space: nowrap; }
.item b.nm { color: var(--ink); font-weight: 800; font-size: 16.5px; }
.refcard { display: grid; gap: 10px; padding: 16px; margin-top: 14px; }
.refcard b { font-size: 16px; }
.refcard p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.45; }
.refcard span { font-size: 13.5px; color: var(--mute); }
.refcard .bar { margin: 2px 0; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--gold); }

/* ───── Tipografiya ───── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--cream); border: 1px solid rgba(255, 111, 97, .22); color: var(--plum2); font: 800 12px/1.3 var(--display); letter-spacing: .01em; text-wrap: balance; max-width: 100%; box-shadow: 0 6px 18px rgba(176, 96, 60, .14); }
.eyebrow b { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--p); }
.eyebrow b::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--p); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }
.hero { padding: 26px 0 8px; }
.hero h1 { font: 900 clamp(30px, 9.4vw, 46px)/1.04 var(--display); letter-spacing: -.02em; margin: 16px 0 14px; }
/* Bosh sahifa: illyustratsiyali muqova (pastki qismi iliq olxo'ri soyada — matn har qanday rasmda o'qiladi) */
.hero.art { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: min(480px, 128vw); margin-top: 6px; padding: 22px 18px 24px; border-radius: 28px; text-align: center; color: var(--ink); background: var(--card); box-shadow: var(--card-shadow); }
.hero.art .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero.art::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(9, 8, 20, .3) 0, rgba(9, 8, 20, 0) 16%),
  linear-gradient(0deg, rgba(9, 8, 20, .97) 0, rgba(9, 8, 20, .86) 33%, rgba(9, 8, 20, 0) 64%); }
.hero.art h1 { color: var(--ink); margin: 14px 0 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, .85); }
.hero.art h1 .accent { display: block; margin-top: 2px; font-size: 1.06em; line-height: 1.08; color: var(--accent); }
.hero.art .lead { margin: 0 auto; max-width: 31ch; font-size: 14.5px; line-height: 1.45; color: var(--mute); }
.hero.compact { padding: 10px 4px 4px; margin: 0; min-height: 0 !important; background: none !important; box-shadow: none !important; text-align: center; }
.hero.compact::before { display: none !important; }
.hero.compact .eyebrow { margin-bottom: 4px; }
.hero.compact h1 { font-size: clamp(24px, 7.2vw, 34px); line-height: 1.1; margin: 8px 0 6px; text-shadow: none; }
.hero.compact h1 .accent { display: inline; font-size: 1.04em; }
.hero.compact .lead { margin: 0 auto; font-size: 14.5px; line-height: 1.42; max-width: 34ch; }
.hero.compact + .heroform { margin-top: 14px; }
.shine { background: var(--shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--accent); letter-spacing: 0; }
@keyframes shine { to { background-position: -220% 0; } }
.lead { color: var(--mute); font-size: 16px; max-width: 34ch; }
.h2 { font: 800 20px/1.2 var(--display); letter-spacing: -.02em; margin: 22px 0 12px; }
.h1 { font: 900 27px/1.12 var(--display); letter-spacing: -.03em; margin: 10px 0 6px; }
.sub { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
.back { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 14px; font-weight: 600; padding: 8px 0; }
.back svg { width: 18px; height: 18px; }

/* ───── Tugmalar ───── */
.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; padding: 0 16px; border-radius: 20px; font: 800 15px var(--display); letter-spacing: -.01em; color: var(--on-grad); background: var(--grad); background-size: 180% 100%; box-shadow: 0 14px 40px rgba(255, 111, 97, .42), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--ease), box-shadow .3s, background-position .6s; isolation: isolate; text-decoration: none; }
.btn > svg { width: 20px; height: 20px; flex: none; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 246, 220, .7) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 6s ease-in-out 1s infinite; }
@keyframes sweep { 55%, 100% { transform: translateX(120%); } }
@keyframes shimmer { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
@media (hover: hover) { .btn:not(.ghost):hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(255, 111, 97, .45), inset 0 1px 0 rgba(255, 255, 255, .35); } }
.btn:active { transform: scale(.97); box-shadow: 0 8px 22px rgba(255, 111, 97, .4); }
.btn[disabled] { opacity: .55; pointer-events: none; filter: saturate(.6); }
.btn small { font: 600 12.5px var(--display); opacity: .8; white-space: nowrap; }
.btn.ghost { background: var(--glass); border: 1px solid var(--line); box-shadow: none; min-height: 52px; color: var(--ink); }
.btn.ghost::before { display: none; }
.btn.google-btn { background: #fff; border: 1px solid rgba(90, 24, 64, .16); box-shadow: 0 4px 14px rgba(58, 20, 48, .08); min-height: 54px; color: #1f1f24; margin-top: 10px; }
.btn.google-btn::before { display: none; }
html[data-theme="dark"] .btn.google-btn { background: rgba(255, 240, 232, .1); border-color: rgba(255, 226, 214, .2); color: #fdf4ef; box-shadow: none; }
.btn.sm { min-height: 44px; border-radius: 14px; font-size: 14px; padding: 0 14px; width: auto; }
.btn.pulse { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.018); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(58, 15, 46, .25); border-top-color: var(--on-grad); animation: rot .7s linear infinite; flex: none; }
.btn.ghost .spin { border-color: var(--line); border-top-color: var(--ink); }
@keyframes rot { to { transform: rotate(360deg); } }
.cta { position: sticky; bottom: calc(var(--tab) + var(--safe-b) + 34px); z-index: 26; margin-top: 22px; }
.cta::before { content: ''; position: absolute; inset: -24px -16px -14px; z-index: -1; background: linear-gradient(180deg, transparent, var(--fade) 42%); pointer-events: none; }
.order-sticky-zone { position: relative; }
.order-pay-helpers { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-bottom: 28px; position: relative; z-index: 2; }
.order-pay-helpers .btn.sm { margin-top: 0 !important; }

/* ───── Kartochkalar ───── */
.glass { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--card-shadow); }
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%); }
.tilt.live .glare { opacity: 1; }

.samples { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 4px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.samples::-webkit-scrollbar { display: none; }
.sample { flex: 0 0 76%; max-width: 300px; scroll-snap-align: center; padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
.sample .disc { flex: none; }
.sample b { display: block; font: 800 15px/1.25 var(--display); letter-spacing: -.01em; }
.sample span { color: var(--mute); font-size: 13px; }
.sample.playing { border-color: rgba(255, 111, 97, .7); box-shadow: 0 0 0 1px rgba(255, 111, 97, .5), 0 18px 50px rgba(255, 111, 97, .28); }

.disc { position: relative; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle, #2b0e26 0 17%, transparent 18%), repeating-radial-gradient(circle, rgba(43, 14, 38, .12) 0 1px, transparent 1px 4px), conic-gradient(from calc(var(--hue, 290) * 1deg), #ff6f61, #ffb547, #ffe0a8, #e8577e, #c94f7c, #ff6f61); box-shadow: 0 10px 24px rgba(176, 96, 60, .3), inset 0 0 0 1px rgba(255, 255, 255, .3); animation: rot 5s linear infinite; animation-play-state: paused; }
.disc::after { content: ''; position: absolute; inset: 44%; border-radius: 50%; background: #fff; opacity: .9; }
.playing .disc, .disc.on { animation-play-state: running; }
/* Yuklanmoqda: bosilgan zahoti disk atrofida aylanuvchi halqa (tovush chiqquncha) */
.loading .disc::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid rgba(140, 140, 160, .28); border-top-color: var(--p); animation: rot .7s linear infinite; }
.loading .play { opacity: .65; }
/* Umumiy bo'lim: disk markazida ijro/pauza belgisi — bosish mumkinligi ko'rinib turadi */
.disc .ico.pp { inset: 23%; border-radius: 50%; background: rgba(43, 14, 38, .82); z-index: 1; }
.disc .ico.pp svg { width: 50%; height: 50%; }
.disc .ico { position: absolute; inset: 0; display: grid; place-items: center; animation: rot 5s linear infinite reverse; animation-play-state: inherit; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: #fff; }
.playing .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; padding: 16px; }
.step .n { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font: 900 18px var(--display); color: var(--on-grad); background: var(--grad); box-shadow: 0 8px 22px rgba(255, 111, 97, .35); }
.step b { display: block; font-weight: 600; }
.step span { color: var(--mute); font-size: 14px; }
.price { margin-top: 12px; padding: 22px; text-align: center; overflow: hidden; }
.price::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from 40deg, var(--v), var(--p), var(--o), var(--c), var(--v)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price .big { white-space: nowrap; font: 900 40px/1 var(--display); letter-spacing: -.04em; margin: 6px 0; }
.price .big small { font-size: 16px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.foot { margin-top: 30px; text-align: center; color: var(--dim); font-size: 12px; line-height: 1.9; }
.foot a { color: var(--mute); }

/* ───── Katalog ───── */
.cats { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font: 700 13.5px var(--display); color: var(--mute); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); white-space: nowrap; }
.chip.on { color: var(--on-grad); background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(255, 111, 97, .35); transform: translateY(-1px); }
.chip:active { transform: scale(.94); }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpl { padding: 16px 14px; text-align: left; min-height: 148px; display: flex; flex-direction: column; overflow: hidden; }
.tpl::after { content: ''; position: absolute; width: 130px; height: 130px; right: -46px; top: -46px; border-radius: 50%; background: radial-gradient(circle, hsl(var(--hue, 290) 95% 62% / .5), transparent 68%); pointer-events: none; }
.tpl .em { font-size: 34px; line-height: 1; margin-bottom: auto; }
.tpl:not(.art):not(.custom) { background: linear-gradient(155deg, var(--card-elev), var(--card) 75%); }
.tpl::after { background: radial-gradient(circle, rgba(243, 201, 120, .22), transparent 68%); }
/* Mavzu kartasi rasm bilan: rasm butun karta, pastda soya va sarlavha */
.tpl.art { padding: 0; min-height: 214px; justify-content: flex-end; color: var(--ink); background: var(--card); }
.tpl.art::after { inset: 0; width: auto; height: auto; border-radius: inherit; background: linear-gradient(0deg, rgba(9, 8, 20, .97) 0, rgba(9, 8, 20, .86) 34%, rgba(9, 8, 20, 0) 62%); }
.tpl.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.tpl.art .em { position: absolute; z-index: 2; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(19, 17, 38, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .42); }
.tpl.art .tx { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 12px 12px 13px; }
.tpl.art b { margin-top: 0; color: var(--ink); }
.tpl.art .tx span { color: var(--mute); }
.tpl b { font: 800 14.5px/1.22 var(--display); letter-spacing: -.01em; margin-top: 14px; }
.tpl span { color: var(--mute); font-size: 12.5px; line-height: 1.35; margin-top: 4px; }
.custom { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 18px 16px; --hue: 20; }
.custom .em { margin: 0; }
.custom b { margin: 0; font-size: 16px; }

/* ───── Formalar ───── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--label); margin: 0 4px 7px; }
.field label i { color: #b4372a; font-style: normal; }
.input { width: 100%; padding: 16px; border-radius: 18px; background: var(--field); border: 1px solid var(--line); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(255, 111, 97, .8); background: var(--field-on); box-shadow: 0 0 0 4px rgba(255, 111, 97, .16), 0 12px 34px rgba(232, 87, 126, .18); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.input.tall { min-height: 300px; font-size: 15px; }
.count { text-align: right; font-size: 12px; color: var(--dim); margin: 5px 6px 0; }
.label { font-size: 13px; font-weight: 600; color: var(--label); margin: 20px 4px 9px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.seg button { padding: 11px 8px; border-radius: 13px; font-size: 14px; font-weight: 600; color: var(--mute); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.seg button.on { background: var(--grad); color: var(--on-grad); box-shadow: 0 6px 18px rgba(255, 111, 97, .35); }
#st-lang { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.idea-box { margin-bottom: 12px; }
.idea-lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--label); margin: 0 4px 6px; opacity: .9; }
.idea-chips { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.idea-chips::-webkit-scrollbar { display: none; }
.idea-chips .chip { font-size: 13px; font-weight: 700; padding: 8px 14px; cursor: pointer; flex: none; }

/* ───── Matn ko'rigi ───── */
.lyrics { padding: 22px 20px; }
.lyrics .tag { display: inline-block; font: 600 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--tag); margin: 16px 0 6px; }
.lyrics .tag:first-child { margin-top: 0; }
.lyrics .ln { display: block; font-size: 17px; line-height: 1.55; opacity: 0; transform: translateY(8px); animation: lineIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.title-in { width: 100%; background: none; border: 0; outline: none; font: 900 26px/1.15 var(--display); letter-spacing: -.03em; padding: 0; margin: 10px 0 4px; }
.tools { display: flex; gap: 8px; margin-top: 12px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note); font-size: 13.5px; margin: 14px 0; }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

/* ───── Kutish (generatsiya) ───── */
.wait { text-align: center; padding: 30px 0 10px; }
.orb { position: relative; width: 230px; height: 230px; margin: 10px auto 34px; }
.orb .core { position: absolute; inset: 22%; border-radius: 50%; background: conic-gradient(from 0deg, var(--v), var(--p), var(--o), var(--c), var(--v)); animation: rot 5s linear infinite; box-shadow: 0 0 80px rgba(255, 111, 97, .6), 0 0 150px rgba(232, 87, 126, .4); }
.orb .core::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, #ffe9d2 24%, #ff8f5a 58%, #5a1840); }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); animation: ringOut 2.8s ease-out infinite; }
.orb .ring:nth-child(2) { animation-delay: .9s; } .orb .ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes ringOut { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.orb .sat { position: absolute; inset: 0; animation: rot 7s linear infinite; }
.orb .sat:nth-of-type(2n) { animation-duration: 11s; animation-direction: reverse; }
.orb .sat span { position: absolute; top: 0; left: 50%; font-size: 24px; transform: translateX(-50%); }
.phase { font: 800 20px/1.25 var(--display); letter-spacing: -.02em; min-height: 52px; }
.phase span { display: inline-block; animation: phaseIn .6s var(--ease); }
@keyframes phaseIn { from { opacity: 0; transform: translateY(12px); } }
.bar { height: 8px; border-radius: 99px; background: var(--glass); overflow: hidden; margin: 22px 0 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .9s var(--ease); }

/* ───── Pleyer ───── */
.player { text-align: center; padding-top: 10px; }
.stage { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto 22px; }
.stage canvas { position: absolute; inset: -18%; width: 136%; height: 136%; }
.stage .disc { position: absolute; inset: 9%; width: auto; height: auto; animation-duration: 9s; box-shadow: 0 26px 60px rgba(176, 96, 60, .3), 0 0 80px rgba(255, 160, 90, .35), inset 0 0 0 2px rgba(255, 255, 255, .16); }
.stage .disc::after { inset: 46.5%; }
.stage .play { position: absolute; inset: 36%; z-index: 2; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 14, 38, .8); border: 1px solid rgba(255, 233, 210, .4); color: #fff3e6; transition: transform .25s var(--ease); }
.stage .play:active { transform: scale(.9); }
.stage .play svg { width: 34%; height: 34%; }
.player h1 { font: 900 26px/1.15 var(--display); letter-spacing: -.03em; }
.player .meta { color: var(--mute); font-size: 14px; margin-top: 4px; }
.scrub { margin: 20px 4px 4px; }
.scrub input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
.scrub input::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, #ff6f61, #ffb547 var(--pos, 0%), var(--line) var(--pos, 0%)); }
.scrub input::-moz-range-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, #ff6f61 var(--pos, 0%), var(--line) var(--pos, 0%)); }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 111, 97, .3), 0 4px 12px rgba(0, 0, 0, .35); }
.scrub input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 111, 97, .3); }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.actions.four { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actions.four .act { font-size: 11.5px; padding: 14px 2px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-size: 12.5px; font-weight: 600; color: var(--soft); text-decoration: none; transition: transform .2s var(--ease); }
.act:active { transform: scale(.94); }
.act svg { width: 22px; height: 22px; }
.karaoke { margin-top: 18px; padding: 20px; text-align: left; }
.karaoke p { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--k-dim); padding: 5px 0; transition: color .35s, transform .35s var(--ease); transform-origin: left center; }
.karaoke p.tag { font: 600 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--tag); opacity: .7; padding-top: 14px; }
.karaoke p.now { color: var(--k-now); transform: scale(1.05); text-shadow: 0 0 26px rgba(255, 111, 97, .55); }
.karaoke p.past { color: var(--k-past); }
.karaoke.plain p:not(.tag) { color: var(--k-plain); font-weight: 500; font-size: 16.5px; }

/* ───── "Yangi qo'shiq" taklifi (Qo'shiqlar va Qo'shiqlarim tepasida) ───── */
.newsong { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 4px 0 16px; border-radius: var(--r); text-decoration: none; color: var(--on-grad); background: var(--grad); background-size: 220% 100%; box-shadow: 0 14px 40px rgba(255, 111, 97, .36), inset 0 1px 0 rgba(255, 255, 255, .35); animation: rise .6s var(--ease) both, drift 5s ease-in-out infinite alternate, breathe 2.8s ease-in-out .6s infinite; transition: transform .2s var(--ease); }
.newsong::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.4s var(--ease) infinite; }
.newsong:active { transform: scale(.98); }
.newsong .ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.newsong .eq i { animation: eq .9s ease-in-out infinite; background: var(--on-grad); }
.newsong .tx { min-width: 0; }
.newsong b { display: block; font: 700 16.5px/1.2 var(--text); letter-spacing: -.01em; }
.newsong .tx span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: rgba(58, 15, 46, .8); }
.newsong .arrow { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); animation: nudge 1.4s ease-in-out infinite; }
.list > .newsong { margin: 8px 0 0; }
@keyframes drift { to { background-position: 100% 0; } }
@keyframes breathe { 50% { box-shadow: 0 18px 54px rgba(255, 111, 97, .6), inset 0 1px 0 rgba(255, 255, 255, .35); } }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ───── Ro'yxatlar ───── */
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; text-decoration: none; width: 100%; }
.item .disc { width: 52px; height: 52px; flex: none; }
.item .ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: var(--glass); border: 1px solid var(--line); }
.item b { display: block; font-weight: 600; line-height: 1.25; }
.item span { color: var(--mute); font-size: 13px; }
.item .go { margin-left: auto; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.run { background: var(--run-bg); color: var(--run); }
.badge.draft { background: var(--glass); color: var(--mute); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.new { background: #ef4444; color: #fff; }
.badge.gold { background: rgba(255, 195, 90, .2); color: #ffd166; border: 1px solid rgba(255, 209, 102, .45); }
[data-theme="light"] .badge.gold { background: rgba(217, 130, 0, .14); color: #b46b00; border-color: rgba(217, 130, 0, .35); }
.item .disc.disc-playable { cursor: pointer; transition: transform .18s cubic-bezier(0.32, 0.72, 0, 1); }
.item .disc.disc-playable:active { transform: scale(0.92); }
.empty { text-align: center; padding: 46px 20px; color: var(--mute); }
.empty .em { font-size: 54px; display: block; margin-bottom: 12px; animation: float 3.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-6deg); } }

/* ───── Balans ───── */
.wallet { padding: 26px 22px; overflow: hidden; }
.wallet::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 111, 97, .5), transparent 66%); pointer-events: none; }
.wallet .l { color: var(--mute); font-size: 13px; font-weight: 600; }
.wallet .v { font: 900 44px/1.05 var(--display); letter-spacing: -.04em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wallet .v small { font-size: 16px; color: var(--mute); font-weight: 500; letter-spacing: 0; }
/* Click belgisi (to'lov tugmalarida): ko'k yumaloq kvadrat ichida oq halqa */
/* Click rasmiy belgisi (logobank.uz): oq plitka ustida — tugmaning rangli fonida ham aniq ko'rinadi */
.clk { flex: none; display: inline-block; width: 28px; height: 28px; border-radius: 9px; background: #fff url('/static/app/click-mark.png') center / 74% no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.clkword { display: block; height: 22px; width: auto; padding: 4px 10px; border-radius: 10px; background: #fff; margin: 0 auto 8px; box-sizing: content-box; }
.btn .lbl { white-space: nowrap; }
.wait .btn + .btn { margin-top: 10px; }
.heroform { margin-top: 22px; display: grid; gap: 10px; }
.heroform .input { min-height: 56px; border-radius: 20px; font-size: 17px; font-weight: 600; text-align: center; }
.btn.free { background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); box-shadow: none; white-space: nowrap; text-decoration: none; animation: none; }
.btn.free::before { display: none; }
.item.tap { cursor: pointer; }
.foot s { opacity: .65; }
.tiers { display: grid; gap: 12px; }
.tier { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; border-radius: 20px; border-width: 1.5px; transition: border-color .25s, background .25s, transform .2s; }
.tier:active { transform: scale(.985); }
.tier .em { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(140deg, rgba(255, 111, 97, .2), rgba(255, 181, 71, .16)); border: 1px solid var(--line); }
.tier .tt { min-width: 0; flex: 1; }
.tier .tt b { display: block; font: 800 15px/1.2 var(--display); letter-spacing: -.01em; }
.tier .tt span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mute); line-height: 1.32; }
.tier .pr { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.tier .pr b { display: block; font: 900 17px var(--display); white-space: nowrap; }
.tier .pr s { display: block; margin-top: 1px; font-size: 12px; color: var(--dim); white-space: nowrap; }
.tier.rec { margin-top: 6px; border-color: rgba(255, 181, 71, .55); }
.tier .rib { position: absolute; top: -11px; right: 14px; padding: 4px 11px; border-radius: 999px; background: linear-gradient(135deg, #ffc978, #ff8f5a); color: var(--on-grad); font: 800 11px/1.2 var(--display); letter-spacing: .01em; white-space: nowrap; box-shadow: 0 6px 16px rgba(255, 143, 90, .35); }
.tier.on { background: linear-gradient(140deg, #fff0e6, #fff8ec); border-color: #ffb547; box-shadow: 0 0 0 3px rgba(255, 181, 71, .35), 0 12px 30px rgba(255, 143, 90, .25); }
.tier.on .em { background: var(--grad); border-color: transparent; }
/* Video uchun rasm: chaqiruvchi, katta bosiladigan karta */
.photo { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 20px; cursor: pointer; border: 1.5px dashed rgba(214, 120, 40, .5); background: linear-gradient(140deg, #fff1e0, #ffe9e3); transition: transform .2s var(--ease); }
.photo:active { transform: scale(.985); }
.photo img { flex: none; width: 58px; height: 58px; border-radius: 16px; object-fit: cover; box-shadow: 0 6px 16px rgba(176, 96, 60, .25); }
.photo .ph { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 27px; background: var(--grad); box-shadow: 0 8px 20px var(--glow); }
.photo .tx { min-width: 0; flex: 1; } .photo .tx b { display: block; font: 800 14.5px/1.25 var(--display); } .photo .tx span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--mute); }
.photo .pick { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--cream); color: var(--plum2); font: 800 12px var(--display); white-space: nowrap; }
.clip { display: block; width: 100%; max-height: 70vh; border-radius: 22px; background: #000; }
.letter { padding: 18px; white-space: pre-wrap; text-align: left; font-size: 15.5px; line-height: 1.6; }
.badge.dtag { margin: 6px 0 2px; font: 800 12px var(--display); padding: 6px 12px; white-space: nowrap; background: linear-gradient(135deg, #ffc978, #ff8f5a); color: var(--on-grad); box-shadow: 0 6px 16px rgba(255, 143, 90, .3); }
.price .big s { opacity: .6; font-weight: 600; font-size: .5em; margin-left: 6px; white-space: nowrap; }
.disc-note { text-align: left; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amounts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts:has(> :nth-child(3):last-child) .amount { padding: 14px 4px; font-size: 16px; }
.amount { position: relative; overflow: hidden; padding: 16px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font: 800 16px var(--display); letter-spacing: -.02em; transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); font-variant-numeric: tabular-nums; }
.amount small { display: block; font: 500 11.5px var(--text); color: var(--mute); letter-spacing: 0; margin-top: 3px; }
.amount.pack { border-color: rgba(255, 190, 90, .5); }
.plans { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 22px; }
.plan { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border-radius: 24px; }
.plan.plan-active { opacity: .78; border-color: rgba(255, 255, 255, .18); }
.plan.best { border-color: rgba(255, 190, 90, .75); box-shadow: 0 0 0 1px rgba(255, 190, 90, .35), var(--card-shadow); }
.plan .pl-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 900 18px var(--display); }
.plan .pl-h .rc { font: 800 10.5px var(--text); font-style: normal; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffc35a, #ff8a5c); color: #3a1d08; }
.plan .pl-p { font: 900 22px var(--display); font-variant-numeric: tabular-nums; }
.plan .pl-p small { font: 700 12px var(--text); color: var(--mute); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13px; color: var(--label); }
.plan li::before { content: '✓'; margin-right: 6px; color: var(--v); font-weight: 900; }
.plan .btn { margin-top: auto; }
.plan-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 195, 90, .18); border: 1px solid rgba(255, 195, 90, .45); color: var(--accent); font: 800 11.5px var(--display); margin-top: 4px; width: fit-content; }
.ref-steps { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 6px 0; }
.ref-step { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--label); }
.refcard .ref-n { color: #2a1206; }
.ref-n { flex: none; min-width: 74px; height: 28px; padding: 0 10px; border-radius: 999px; background: linear-gradient(135deg, #ffc35a, #ff8a5c); color: #2a1206; display: grid; place-items: center; font: 900 12.5px var(--display); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.amount .sv { display: inline-block; margin-left: 3px; padding: 1px 6px; border-radius: 999px; background: linear-gradient(135deg, #ffc35a, #ff8a5c); color: #24102e; font: 700 10.5px var(--text); vertical-align: 1px; }
.amount small.gets { margin-top: 2px; color: var(--dim); white-space: nowrap; }
.packline { display: table; margin: 10px auto 4px; padding: 6px 14px; border-radius: 14px; background: rgba(255, 195, 90, .12); border: 1px solid rgba(255, 195, 90, .38); text-align: center; font-size: 13.5px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.packline b { color: var(--accent); font-weight: 800; white-space: nowrap; }
.packline i { font-style: normal; margin-right: 6px; }
.price a.biglink { position: relative; z-index: 2; display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.price:has(.biglink) { cursor: pointer; transition: transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.price:has(.biglink):active { transform: scale(.985); }
.price .one { margin: 2px 0 8px; font-size: 14.5px; color: var(--mute); }
.price .one s { opacity: .7; margin-left: 4px; }
.price .was { margin: 4px 0 -4px; font-size: 15px; color: var(--mute); opacity: .8; }
.price .feat-line { margin: 2px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.promo { display: table; margin: 8px auto; padding: 7px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 195, 90, .2), rgba(255, 138, 92, .16)); border: 1px solid rgba(255, 195, 90, .45); text-align: center; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.promo i, .pack-hint i { font-style: normal; margin-right: 6px; }
.promo b { color: var(--accent); font-weight: 800; white-space: nowrap; }
.price:has(.tobal) { cursor: pointer; transition: transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.price:has(.tobal):active { transform: scale(.985); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 10px; }
.cmp > div { padding: 10px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.cmp span, .cmp i { display: block; font-style: normal; font-size: 11.5px; line-height: 1.3; color: var(--mute); }
.cmp b { display: block; margin: 2px 0; font: 800 20px var(--display); }
.cmp > div:first-child b { opacity: .6; }
.cmp .us { border-color: rgba(255, 195, 90, .55); background: rgba(255, 195, 90, .1); }
.cmp .us i { color: var(--ink); }
.amount .rc { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 0 0 9px 9px; background: linear-gradient(135deg, #ffc35a, #ff8a5c); color: #2a1206; font: 800 10px var(--text); font-style: normal; white-space: nowrap; }
.amounts:has(.rc) .amount { padding-top: 24px; }
.amount small.gets { white-space: normal; line-height: 1.3; }
.pack-hint { margin-top: 10px; line-height: 1.5; }
.amount.on { background: linear-gradient(140deg, rgba(232, 87, 126, .4), rgba(255, 111, 97, .36)); border-color: rgba(255, 111, 97, .8); box-shadow: 0 12px 30px rgba(255, 111, 97, .24); transform: translateY(-2px); }
.hist { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.hist:last-child { border: 0; }
.hist span { display: block; color: var(--dim); font-size: 12px; }
.hist b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--ok); } .minus { color: var(--bad); }

/* ───── Profil ───── */
.me { display: flex; align-items: center; gap: 14px; padding: 18px; }
.me .ava { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 800 22px var(--display); color: var(--on-grad); background: var(--grad); background-size: cover; background-position: center; box-shadow: 0 8px 22px rgba(255, 111, 97, .3); }
.me b { display: block; font: 600 17px/1.2 var(--display); letter-spacing: -.02em; }
.me span { color: var(--mute); font-size: 14px; }
.row-l { font-size: 13px; font-weight: 600; color: var(--label); margin: 22px 4px 9px; }

/* ───── Yordam (yozishma) ───── */
.support-page { display: flex; flex-direction: column; min-height: calc(100dvh - var(--tab) - var(--safe-b) - 60px); }
.support-head { flex: none; }
.chat { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 10px 0 20px; }
.bub { position: relative; align-self: flex-start; max-width: 82%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--bubble); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.bub.mine { align-self: flex-end; background: var(--bubble-me); border-color: transparent; border-radius: 20px 20px 6px 20px; color: #fff; }
.bub small { display: block; color: var(--dim); font-size: 11px; margin-top: 6px; text-align: right; opacity: .75; }
.bub.mine small { color: rgba(255, 255, 255, .7); }
.bub .who { display: block; font-weight: 800; font-size: 12px; color: var(--tag); margin-bottom: 4px; }
.composer { position: sticky; bottom: calc(var(--tab) + var(--safe-b) + 12px); z-index: 20; padding: 12px; border-radius: 22px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: bottom .2s ease-out; }
.composer::before { content: ''; position: absolute; inset: -18px -12px -12px; z-index: -1; background: linear-gradient(180deg, transparent, var(--fade) 45%); pointer-events: none; border-radius: 24px; }
.composer .opts { margin-bottom: 10px; }
.composer .chip { padding: 7px 12px; font-size: 13px; }
.composer .line { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 13px 14px; border-radius: 16px; resize: none; }
.composer .send { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); box-shadow: 0 8px 22px rgba(255, 111, 97, .35); }
.composer .send[disabled] { opacity: .5; }
.composer .send svg { width: 22px; height: 22px; }

/* ───── Bottom sheet (Bulletproof WebView Flex Physics — Zero Nested Scroll Traps) ───── */
#sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
#sheet[hidden] {
  display: flex !important;
}
#sheet.is-open,
#sheet.open,
#sheet.is-closing {
  visibility: visible;
}
#sheet.is-open,
#sheet.open {
  pointer-events: auto;
}

#sheet .dim {
  position: absolute;
  inset: 0;
  background: var(--overlay, rgba(4, 3, 12, 0.82));
  opacity: 0;
  will-change: opacity;
  transition: opacity 230ms ease-out;
  touch-action: none;
}
#sheet.is-open .dim,
#sheet.open .dim {
  opacity: 1;
}
#sheet.is-closing .dim {
  opacity: 0;
  transition: opacity 200ms ease-out;
}

#sheet .body {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 20px calc(24px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-bottom: 0;
  transform: translate3d(0, 104%, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.58);
  transition: transform 270ms cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
  max-height: calc(100% - 10px);
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html[data-theme="light"] #sheet .body {
  background: linear-gradient(180deg, #2D244E 0%, #19142C 100%);
}

#sheet.is-open .body,
#sheet.open .body {
  transform: translate3d(0, 0, 0);
}
#sheet.is-closing .body {
  transform: translate3d(0, 104%, 0);
  transition: transform 210ms cubic-bezier(0.32, 0, 0.67, 0);
}

#sheet .grab {
  width: 44px;
  height: 5px;
  border-radius: 9px;
  background: var(--line);
  margin: 0 auto 18px;
  cursor: grab;
  touch-action: none;
}
body.sheet-open {
  overflow: hidden;
}
#sheet .rise {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
#sheet .friend .em,
#sheet .oops .em {
  animation: none !important;
}

/* Eliminate Android WebView GPU blur stutter during motion inside sheets */
#sheet .glass,
#sheet .ps-option,
#sheet .pm-features,
#sheet .pm-info-box,
#sheet .fsteps li {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: #1A1632;
}
html[data-theme="light"] #sheet .glass,
html[data-theme="light"] #sheet .ps-option,
html[data-theme="light"] #sheet .pm-features,
html[data-theme="light"] #sheet .pm-info-box,
html[data-theme="light"] #sheet .fsteps li {
  background: #2C234B;
}
#sheet h3 { font: 900 22px/1.2 var(--display); letter-spacing: -.03em; margin-bottom: 8px; }
#sheet p { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
#sheet p b { color: var(--ink); }
#rm-go svg { flex: none; }
#sheet .friend { text-align: center; }
#sheet .friend .em { display: block; font-size: 44px; line-height: 1; margin-bottom: 10px; animation: float 3.2s ease-in-out infinite; }
#sheet .friend p { margin-bottom: 14px; }
.fsteps { list-style: none; display: grid; gap: 8px; margin: 0 0 14px; padding: 0; text-align: left; }
.fsteps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; }
.fsteps b { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font: 800 13px var(--display); color: var(--on-grad); background: var(--grad); }
#sheet .oops { text-align: center; }
#sheet .oops .em { display: block; font-size: 46px; line-height: 1; margin-bottom: 12px; animation: float 3.2s ease-in-out infinite; }
#sheet .oops .note { text-align: left; }

/* ───── QR Code Telegram Web Login Card ───── */
.qr-login-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-login-box .qr-title {
  font: 900 22px/1.25 var(--display);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 4px 0 6px;
}
.qr-login-box .qr-scan-sub {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.qr-login-box .qr-hint-p {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.qr-card-wrap {
  position: relative;
  width: 188px;
  height: 188px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: #ffffff;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.qr-card-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-card-wrap .qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #090814;
  font-size: 12px;
  font-weight: 600;
}
.qr-card-wrap .qr-expired-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  z-index: 2;
  animation: fadeIn .2s ease-out;
}
.qr-card-wrap .qr-expired-overlay .exp-txt {
  color: #090814;
  font-weight: 700;
  font-size: 12.5px;
}
.qr-card-wrap .qr-refresh-btn {
  background: #090814;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 7px 14px;
  font: 700 12.5px var(--display);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(9, 8, 20, 0.25);
  transition: transform .15s ease;
}
.qr-card-wrap .qr-refresh-btn:active {
  transform: scale(0.96);
}
.qr-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.qr-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: qr-pulse 1.8s infinite;
}
@keyframes qr-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.qr-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ───── To'lov modal oynasi (Pro & Single) ───── */
.pay-sheet { text-align: left; }
.pay-sheet .ps-header { text-align: center; margin-bottom: 16px; }
.pay-sheet .ps-header .em { font-size: 40px; display: block; margin-bottom: 6px; }
.pay-sheet .ps-header h3 { margin: 0 0 4px; font: 900 22px/1.2 var(--display); letter-spacing: -.03em; }
.pay-sheet .ps-header .sub { margin: 0; font-size: 14px; color: var(--soft); }
.ps-options { display: grid; gap: 12px; margin: 18px 0; }
.ps-option { position: relative; padding: 15px 14px; border-radius: 20px; cursor: pointer; border: 2px solid var(--line); transition: border-color .2s, transform .14s cubic-bezier(0.2, 0, 0, 1), background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.ps-option:active { transform: scale(0.97); }
.ps-option.on { border-color: #ff8a5c; background: rgba(255, 138, 92, .09); box-shadow: 0 6px 24px rgba(255, 138, 92, .22); }
.ps-badge { position: absolute; top: -11px; right: 14px; background: var(--grad); color: var(--on-grad); font: 900 11.5px var(--text); padding: 3px 11px; border-radius: 99px; box-shadow: 0 4px 12px var(--glow); letter-spacing: .02em; }
.ps-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ps-title b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.ps-title span { font-size: 12.5px; color: var(--soft); font-weight: 500; margin-top: 3px; display: block; }
.ps-price { text-align: right; white-space: nowrap; }
.ps-price b { font-size: 18px; font-weight: 900; color: var(--ink); }
.ps-price small { font-size: 12px; color: var(--mute); font-weight: 500; margin-left: 2px; }
.ps-desc { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--soft); font-weight: 500; display: grid; gap: 4px; }
.ps-cta .btn { width: 100%; min-height: 56px; }

/* ───── Tarif modali va to'lov tushuntirishlari (Click & maisa.uz) ───── */
.pm-features { padding: 12px 14px; border-radius: 16px; margin: 12px 0; display: grid; gap: 8px; font-size: 13.5px; text-align: left; background: var(--glass); border: 1px solid var(--line); }
.pm-feat { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.pm-feat span { color: #10b981; font-weight: 900; font-size: 14px; flex: none; }
.pm-info-box { padding: 12px 14px; border-radius: 16px; margin: 12px 0 16px; display: grid; gap: 11px; text-align: left; border: 1px solid var(--line); background: var(--glass); }
.pm-info-row { display: flex; align-items: flex-start; gap: 11px; }
.pm-info-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 15px; }
.pm-info-ic .clk { width: 22px; height: 22px; border-radius: 7px; }
.pm-info-text b { display: block; font-size: 13.5px; font-weight: 750; color: var(--ink); line-height: 1.3; }
.pm-info-text p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--soft); }
.ps-pay-note { margin: 12px 0; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; color: var(--soft); line-height: 1.4; display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--line); }
.ps-pay-note .em { font-size: 18px; flex: none; }
#toast { position: fixed; z-index: 60; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -160%); max-width: min(92vw, 440px); padding: 13px 18px; border-radius: 18px; background: var(--toast); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); font-size: 14.5px; font-weight: 500; text-align: center; transition: transform .5s var(--ease); pointer-events: none; }
#toast.show { transform: translate(-50%, 0); }
#toast.err { border-color: rgba(248, 113, 113, .7); }
#confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }
#confetti:not(.on) { display: none; }
.skeleton { border-radius: var(--r); background: var(--skel); background-size: 220% 100%; animation: shine 1.4s linear infinite; }
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot img { width: 84px; height: 84px; border-radius: 26px; animation: bootPulse 1.6s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(1.1) rotate(4deg); } }

/* ───── Silliq scroll ───── */
/* Gorizontal lentalar: faqat yon tomonga aylanadi; vertikal surish sahifaga o'tadi (ustida barmoq 'qotib' qolmasin) */
.samples, .cats, .idea-chips { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; overscroll-behavior-y: auto; touch-action: pan-x pan-y; }
/* Telefonda doimiy aylanib turadigan fon o'chiriladi (har kadrda qayta chiziladi va surishni qotiradi). Oldin
   surish paytida hamma animatsiya to'xtatilardi — buning o'zi har surish boshida butun sahifa uslubini qayta
   hisoblatib, silkinish berardi. */
@media (hover: none), (pointer: coarse) {
  .newsong { animation: rise .6s var(--ease) both; }
  .btn.pulse { animation: none; }
  .tilt { will-change: auto; }
}
/* Tor ekranlar (320–360 px) */
@media (max-width: 360px) {
  #app { padding-left: 12px; padding-right: 12px; }
  .top { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .price .big { font-size: 32px; }
  .btn { font-size: 15px; padding-left: 14px; padding-right: 14px; }
  .btn .lbl { white-space: normal; text-align: left; line-height: 1.2; }
  .tier { gap: 10px; padding: 12px 10px; }
  .tier .em { width: 38px; height: 38px; font-size: 19px; }
  .tier .pr b { font-size: 15px; }
}
@media (hover: none) {
  .tilt { transition: none; }
  .tilt .glare { display: none; }
}

@media (min-width: 720px) {
  #app { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .aurora { animation: none; }
}

@media (max-width: 360px) { .packline { font-size: 12.5px; padding: 6px 10px; } }

/* ───── Yengil effektlar (faqat transform/opacity; ekran chetidan chiqmaydi; «harakatni kamaytirish»da o'chadi) ───── */
/* Ko'rinishga kirganda: pastdan 12px suzib chiqish (JS: IntersectionObserver, bir marta) */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv.in { opacity: 1; transform: none; }
/* Bosh sahifa muqovasi: sekin «Ken Burns» va muqova ichida suzuvchi oltin uchqunlar */
.hero.art .bg { transform-origin: 50% 30%; animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } }
.hero .spk { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .spk i { position: absolute; bottom: 46%; font-style: normal; font-size: 15px; color: #ffd27a; text-shadow: 0 0 10px rgba(255, 190, 90, .9); opacity: 0; animation: spark 8s ease-in-out infinite; }
.hero .spk i:nth-child(1) { left: 14%; animation-delay: 0s; } .hero .spk i:nth-child(2) { left: 32%; animation-delay: 2.6s; font-size: 12px; }
.hero .spk i:nth-child(3) { left: 58%; animation-delay: 1.3s; } .hero .spk i:nth-child(4) { left: 76%; animation-delay: 4s; font-size: 12px; }
.hero .spk i:nth-child(5) { left: 88%; animation-delay: 5.6s; }
@keyframes spark { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 20% { opacity: .95; } 70% { opacity: .5; } 100% { transform: translate3d(8px, -150px, 0) scale(1); opacity: 0; } }
/* Tarif: «Tavsiya etamiz» yorlig'ida yaltirash */
.tier .rib { overflow: hidden; }
.tier .rib::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 4.5s ease-in-out 1.5s infinite; }
.tier { transition: border-color .25s, background .25s, transform .2s, box-shadow .3s; }
/* Pleyer: ijro paytida disk atrofida yumshoq to'lqin halqa */
.stage::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 2px solid rgba(255, 143, 90, .55); opacity: 0; pointer-events: none; }
.player.playing .stage::after { animation: ringPulse 2.4s ease-out infinite; }
@keyframes ringPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.16); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hero.art .bg, .hero .spk i, .tier .rib::after, .player.playing .stage::after { animation: none !important; }
  .hero .spk { display: none; }
}

/* ───── Ko'rik tugagach: «To'liq qo'shiqni olish · narx» paneli (qo'shiq qatorida) ───── */
.item.buyglow { flex-wrap: wrap; opacity: 1; transform: none; border-color: #ffc83c; animation: buyglow 1.6s ease-in-out infinite; }
@keyframes buyglow { 0%, 100% { box-shadow: inset 0 0 0 1px #ffc83c, 0 0 0 1px rgba(255, 200, 60, .7), 0 0 18px rgba(255, 185, 30, .4); } 50% { box-shadow: inset 0 0 0 1px #ffc83c, 0 0 0 2px rgba(255, 210, 70, 1), 0 0 34px rgba(255, 185, 30, .8); } }
.buybar { flex: 1 1 100%; grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(255, 200, 60, .5); text-align: center; }
.buybar > span { font: 700 13.5px var(--display); color: var(--ink); }
.buybar .btn { width: 100%; }
.item.buyglow .go { display: none; }

/* Chegirmali narx: katta — to'lanadigan narx, tagida — haqiqiy narx ustidan chizilgan */
.price .was { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -2px 0 6px; font-size: 17px; color: var(--mute); }
.price .was s { text-decoration-thickness: 2px; }
.price .was b { font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(52, 199, 89, .18); color: #34c759; }

/* ───── Ijro paytida: oltin hoshiya va disk atrofida bepul tinglash progressi (halqa) ─────
   Halqa diskdan 6px tashqarida, qator ichki bo'sh joyi (14px) ichida qoladi: sahifani kengaytirmaydi.
   `--prog` (0..1) JS dan yoziladi: halqa soat mili bo'ylab to'ladi, uchida yaltirovchi uchqunlar. */
.item.playing, .item.buyglow { border-color: #ffc83c; box-shadow: inset 0 0 0 1px #ffc83c, 0 0 0 1px rgba(255, 200, 60, .95), 0 0 22px rgba(255, 185, 30, .55); }
.item.playing::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 215, 80, .95), 0 0 36px rgba(255, 185, 30, .75); animation: goldglow 2s ease-in-out infinite; }
@keyframes goldglow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.item .dring { display: none; position: absolute; left: 8px; top: 8px; width: 64px; height: 64px; pointer-events: none; --prog: 0; }
.item.playing .dring, .item.burst .dring, .item.buyglow .dring { display: block; animation: ringpulse 1.8s ease-in-out infinite; }
.dring .arc { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #e89a00 0deg, #ffc22e calc(var(--prog) * 360deg - 6deg), #fff3b0 calc(var(--prog) * 360deg), rgba(255, 200, 60, .16) calc(var(--prog) * 360deg), rgba(255, 200, 60, .16) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
@keyframes ringpulse { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 190, 40, .6)); } 50% { filter: drop-shadow(0 0 7px rgba(255, 200, 60, .95)); } }
.dring .tip { position: absolute; inset: 0; transform: rotate(calc(var(--prog) * 360deg)); }
.dring .tip b { position: absolute; top: 2px; left: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff8d0; border-radius: 1px; transform: rotate(45deg) scale(0); opacity: 0; box-shadow: 0 0 6px 1px rgba(255, 215, 80, .95); animation: twinkle 1.1s ease-in-out infinite; }
.dring .tip b:nth-child(2) { margin-left: -9px; width: 3px; height: 3px; animation-delay: .35s; }
.dring .tip b:nth-child(3) { margin-left: -16px; margin-top: 1px; width: 2px; height: 2px; animation-delay: .7s; }
@keyframes twinkle { 0%, 100% { transform: rotate(45deg) scale(0); opacity: 0; } 45% { transform: rotate(135deg) scale(1.5); opacity: 1; } 70% { transform: rotate(180deg) scale(.7); opacity: .6; } }
.item.burst .dring { animation: ringburst .75s ease-out; }
.item.burst .dring .tip b { animation-duration: .35s; }
@keyframes ringburst { 0% { transform: scale(1); filter: drop-shadow(0 0 4px #ffc83c); } 35% { transform: scale(1.12); filter: drop-shadow(0 0 14px #fff3b0) brightness(1.5); } 100% { transform: scale(1); filter: drop-shadow(0 0 6px #ffc83c); } }
.buyfriend { background: none; border: 0; padding: 4px; font: 600 13px var(--text); color: var(--mute); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .item.playing::after { animation: none; opacity: .8; } .item .dring, .item.burst .dring { animation: none !important; } .dring .tip { display: none; } }

/* Global «hozir ijro etilmoqda» tabletkasi — tab-bar ustida; ijro etilayotgan qator/sahifa ko'rinmasa chiqadi */
.nowpill { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 66px); width: min(260px, calc(100% - 24px)); box-sizing: border-box; display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 5px; border-radius: 999px; background: var(--tabbar); border: 1px solid var(--line); box-shadow: var(--tabbar-shadow); animation: nprise .3s var(--ease) backwards; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: opacity 200ms ease; }
.nowpill[hidden] { display: none; }
#sheet.is-open ~ .nowpill, #sheet.open ~ .nowpill, body.sheet-open .nowpill,
#sheet.is-open ~ #nowp, #sheet.open ~ #nowp, body.sheet-open #nowp { opacity: 0 !important; pointer-events: none !important; }
.nowpill button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.np-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.np-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12.5px var(--display); }
.np-disc { flex: none; width: 34px; height: 34px; border-radius: 50%; padding: 3px; box-sizing: border-box; background: conic-gradient(#ffc22e calc(var(--prog, 0) * 360deg), rgba(255, 200, 60, .22) 0); }
.np-disc i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #2b0e26 0 17%, transparent 18%), conic-gradient(from calc(var(--hue, 290) * 1deg), #ff6f61, #ffb547, #ffe0a8, #e8577e, #c94f7c, #ff6f61); animation: rot 4s linear infinite; }
.nowpill.paused .np-disc i { animation-play-state: paused; }
.np-pp { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad) !important; display: grid; place-items: center; }
.np-pp svg { width: 16px; height: 16px; }
@keyframes nprise { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
.nowpill.drag { cursor: grabbing; transition: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); opacity: .96; }
@media (prefers-reduced-motion: reduce) { .nowpill { animation: none; } .np-disc i { animation: none; } }
.lockcard { margin-top: 14px; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.lockcard .lockmsg { margin: 0; font: 700 14px var(--display); color: var(--ink); }
.lockcard .btn { width: 100%; }
.lockcard .btn.buyflash { animation: buyglow 1.6s ease-in-out 3; box-shadow: 0 0 0 2px #ffc83c, 0 0 22px rgba(255, 185, 30, .6); }


/* To'lov joylari: Click + maisa belgilari (bir xil balandlikdagi oq chiplar) va tagida aniq izoh */
.paybox { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pb-logos { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pb-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); box-sizing: border-box; }
.pb-chip img { display: block; height: 16px; width: auto; }
.pb-ox img { height: 18px; }
.pb-ox b { font: 800 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .01em; color: #111827; }
.pb-note { display: block; max-width: 340px; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
.pb-how { display: block; max-width: 340px; font-size: 12px; line-height: 1.4; color: var(--mute); opacity: .85; }

/* Legacy external agency badges hidden */
.pwm, .soc-mx, .pb-ox { display: none !important; }
/* ijtimoiy tarmoq ikonkalari */
.soc{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:18px 0 14px;padding:0}
.soc a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;color:#fff!important;opacity:1!important;text-decoration:none!important;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 2px 8px rgba(0,0,0,.28);transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.soc a svg{width:22px;height:22px;display:block}
.soc .soc-ig{background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}
.soc .soc-fb{background:#1877f2}
.soc .soc-tg{background:#26a5e4}
.soc .soc-mx{background:none;box-shadow:0 2px 8px rgba(0,0,0,.28)}
.soc .soc-mx img{width:44px;height:44px;border-radius:12px;display:block}
.soc a:hover{transform:translateY(-2px) scale(1.06);filter:brightness(1.08);box-shadow:0 6px 16px rgba(0,0,0,.35)}
.soc a:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #111}
@media (prefers-reduced-motion:reduce){.soc a{transition:none}.soc a:hover{transform:none}}

/* Telefon sarlavhasi: katta balansda ham logo, maisa belgisi va til tugmasi bir-biriga tegmaydi */
@media (max-width: 430px) {
  .top { gap: 8px; }
  .brand { flex: 0 1 auto; gap: 7px; font-size: 15px; }
  .brand img { width: 30px; height: 30px; border-radius: 9px; }
  .brand-by { padding-left: 7px; margin-left: 0; flex: none; }
  .top-r { gap: 5px; flex: none; }
  .pill { padding: 7px 10px; gap: 6px; font-size: 13px; }
  .pill.lang { padding: 7px 9px; font-size: 12px; }
  #balance-u { display: none; }
}

/* Umumiy bo'lim: oxirigacha bepul tinglanadigan qo'shiq (namuna yoki obuna) — yarim yo'lda to'lov chiqmaydi */
.item.free-full { border: 1.5px solid #34d399; box-shadow: 0 0 0 1px rgba(52, 211, 153, .18), 0 6px 20px rgba(52, 211, 153, .14); }
.free-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--ok); background: var(--ok-bg); white-space: nowrap; }
.free-tag::first-letter { text-transform: uppercase; }
/* Qulflangan (1 daqiqa bepul) tayyor qo'shiq qatori: narx belgisi — nom ostida, uzun ismda ham torayib ketmaydi */
.item .lock-chip { display: block; width: fit-content; max-width: 100%; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.3; color: var(--note); background: var(--note-bg); border: 1px solid var(--note-line); }
.ps-option .ps-partial { display: block; margin-top: 6px; font-size: 12.5px; color: var(--mute); }
.plan-bal { border: 1.5px solid #34d399; }

/* Narx psixologiyasi: ustidan chizilgan asl narx va kunlik narx */
s.was { display: block; font: 700 12.5px var(--text); color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.plan .pl-p s.was { display: inline; margin-right: 8px; font-size: 14px; }
.pay-sheet .sub s.was { display: inline; margin-right: 4px; }
.plan .pl-day { font: 800 13px var(--text); color: var(--accent); }

/* «Karta bilan to'lash» yo'riqnomasi: Click sahifasi rasmi ustida ovozsiz animatsiya */
.cg-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: var(--overlay, rgba(6, 4, 20, .62)); opacity: 0; transition: opacity .25s; }
.cg-modal.open { opacity: 1; }
.cg-card { position: relative; width: min(380px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 16px 16px; border-radius: 26px; background: var(--sheet, #fff); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); text-align: center; }
.cg-card h3 { margin: 0 28px 12px; font: 900 18px var(--display); color: var(--ink); }
.cg-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--mute); font-size: 15px; cursor: pointer; }
.cg-phone { position: relative; width: min(230px, 62vw); aspect-ratio: 9 / 15; margin: 0 auto; overflow: hidden; border-radius: 26px; border: 6px solid #11101c; background: #edf0f5; box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.cg-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.cg-scene.on { opacity: 1; }
.cg-page { display: block; width: 100%; height: auto; will-change: transform; }
.cg-form { position: relative; margin-top: 18%; }
.cg-form img { display: block; width: 100%; height: auto; }
.cg-num, .cg-exp { position: absolute; top: 57.5%; height: 13%; display: flex; align-items: center; padding-left: 4%; background: #fff; border-radius: 6px; font: 700 clamp(8px, 2.6vw, 10.5px) / 1 var(--text); color: #111; white-space: nowrap; overflow: hidden; }
.cg-num { left: 9.5%; width: 43%; }
.cg-exp { left: 57.5%; width: 33%; }
.cg-num:empty, .cg-exp:empty { display: none; }
.cg-sms { position: absolute; left: 8%; right: 8%; top: 28%; padding: 14px 10px; border-radius: 16px; background: #fff; color: #111; display: grid; gap: 12px; justify-items: center; font-size: 12px; }
.cg-code { display: flex; gap: 5px; }
.cg-code i { width: 18px; height: 24px; border-radius: 6px; border: 1.5px solid #c9d2e3; display: grid; place-items: center; font-style: normal; }
.cg-code i.on::after { content: '•'; font-size: 18px; color: #111; }
.cg-pay { width: 100%; padding: 9px 0; border-radius: 10px; background: #3b7bff; color: #fff; font-weight: 800; transition: transform .15s; }
.cg-pay.hit { transform: scale(.95); }
.cg-done { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 12px; color: #111; }
.cg-done span { font-size: 46px; }
.cg-done b { font-size: 13.5px; }
.cg-tap { position: absolute; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 170, 60, .55); border: 2px solid #ff9a3c; opacity: 0; pointer-events: none; }
.cg-tap.go { animation: cgTap 1.1s ease-out; }
@keyframes cgTap { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.6); } }
.cg-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 8px; }
.cg-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.cg-dots i.on { background: linear-gradient(90deg, #ffc35a, #ff8a5c); }
.cg-cap { min-height: 3.2em; margin: 0 4px 12px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cg-page { transition: none !important; } .cg-tap.go { animation: none; opacity: 1; } }

/* Profil: taklif qilingan do'stlar ro'yxati va holati */
.ref-friends { margin-top: 4px; }
.ref-friends summary { cursor: pointer; font: 800 13.5px var(--text); color: var(--label); list-style: none; }
.ref-friends summary::-webkit-details-marker { display: none; }
.ref-fr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ref-fr:first-of-type { border-top: 0; }
.refcard .ref-fr > span:first-child { min-width: 0; }
.refcard .ref-fr b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refcard .ref-fr small { display: block; font-size: 11.5px; color: var(--mute); }
.refcard .ref-st { flex: none; font: 800 11.5px var(--text); padding: 3px 9px; border-radius: 999px; }
.refcard .ref-st.ok { background: var(--ok-bg); color: var(--ok); }
.refcard .ref-st.wait { background: var(--run-bg); color: var(--run); }
.refcard .ref-prog { font-size: 13.5px; color: var(--mute); font-weight: 600; line-height: 1.4; }
.refcard .ref-prog.lib { color: var(--ok); font-weight: 800; }

/* «Qo'shiqlar»: qidiruv maydoni varaqlaganda sarlavha ostida qoladi; fon faqat tepaga yopishganda chiqadi */
.q-sticky { position: sticky; top: 64px; z-index: 15; margin: 0 -16px 8px; padding: 6px 16px 10px; background: transparent; }
.q-sticky.stuck { background: var(--top); }
@media (max-width: 360px) { .q-sticky { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; } }
.cg-app { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 16px; border-radius: 18px 18px 0 0; background: var(--sheet); display: grid; gap: 10px; text-align: left; color: var(--ink); font-size: 12px; }
.cg-app::before { content: ''; position: absolute; inset: -400px 0 100% 0; background: rgba(6, 4, 20, .45); }
.cg-grip { justify-self: center; width: 34px; height: 4px; border-radius: 4px; background: var(--line); }
.cg-app b { font: 900 13px var(--display); text-align: center; }
.cg-opt { padding: 10px; border-radius: 12px; border: 1.5px solid #ffc35a; background: rgba(255, 195, 90, .08); font-weight: 800; }
.cg-clk { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 6px; border-radius: 14px; background: linear-gradient(135deg, #ffc35a, #ff8a5c); color: #2a1206; font-weight: 900; font-size: 11.5px; transition: transform .15s; }
.cg-clk .clk { width: 20px; height: 20px; border-radius: 6px; }
.cg-clk.hit { transform: scale(.95); }
.cg-scene[data-s="app"] { background: var(--bg, #171144); }

/* Haqiqiy rasmli yo'riqnoma: telefon rasmi bilan bir xil nisbat, sahnalar orasida «surish» */
.cg-phone { width: min(210px, 56vw); aspect-ratio: 540 / 1122; background: #151517; }
.cg-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cg-scene { transition: opacity .35s, transform .9s cubic-bezier(.45, .05, .3, 1); }
.cg-scene.up { transform: translateY(-38%); opacity: 0; }
.cg-scene.below { transform: translateY(38%); opacity: 0; transition: none; }
.cg-in { position: absolute; display: flex; align-items: center; padding-left: 3%; border-radius: 5px; background: #26272b; color: #fff; font: 700 8.5px / 1 var(--text); white-space: nowrap; overflow: hidden; }
.cg-in:empty { display: none; }
.cg-scene[data-s="sms"], .cg-scene[data-s="done"] { background: #151517; }
.cg-sms { background: #26272b; color: #fff; }
.cg-code i { border-color: #4a4b52; }
.cg-code i.on::after { color: #fff; }
.cg-pay { background: #0a6cff; }
.cg-done { color: #fff; }

/* ── O'rgatuvchi qo'llanma (coach marks) ── */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(58, 20, 48, .66); outline: 2px solid rgba(255, 181, 71, .95); outline-offset: 2px; transition: top .35s var(--ease), left .35s var(--ease), width .35s var(--ease), height .35s var(--ease), opacity .35s var(--ease); pointer-events: none; }
.tour-card { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); max-width: 420px; margin: 0 auto; padding: 16px 16px 14px; border-radius: 20px; background: var(--toast); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(58, 20, 48, .28); transition: top .35s var(--ease); }
.tour-t { display: block; font-size: 17px; font-weight: 900; padding-right: 34px; }
.tour-p { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--mute); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-n { font-size: 13px; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; }
.tour-next { width: auto; min-width: 120px; }
.tour-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; color: var(--mute); background: var(--glass); }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; } }

/* ── ⭐ Mukofotlar ── */
.rw-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 22px; border-radius: 20px; text-decoration: none; color: var(--ink); }
.rw-star { font-size: 28px; flex: none; }
.rw-card-b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rw-card-b b { font-size: 15.5px; }
.rw-card-b small { color: var(--mute); font-size: 12.5px; }
.rw-card .bar, .rw-cur .bar, .rw-tx .bar { height: 7px; margin: 4px 0 0; }
.rw-head { padding: 16px; display: grid; gap: 8px; margin-top: 8px; }
.rw-big { font-size: 34px; font-weight: 900; line-height: 1; }
.rw-big b { font-variant-numeric: tabular-nums; }
.rw-meta { color: var(--mute); font-weight: 700; font-size: 14px; }
.rw-cur { display: grid; gap: 4px; }
.rw-cur small { color: var(--mute); font-size: 12.5px; }
.rw-list { display: grid; gap: 8px; }
.rw-lv { padding: 12px; border-radius: 18px; margin-bottom: 10px; }
.rw-lv summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.rw-lv summary::-webkit-details-marker { display: none; }
.rw-lv summary small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.rw-lv[open] summary { margin-bottom: 10px; }
.rw-lvn { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 900 14px var(--display); color: var(--on-grad); background: var(--grad); }
.rw-lv.done .rw-lvn { background: var(--ok-bg); color: var(--ok); }
.rw-m { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); text-align: left; color: var(--ink); font: inherit; }
button.rw-m[data-go] { cursor: pointer; }
.rw-m.ok { opacity: .72; }
.rw-ic { flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 800 12px var(--text); background: var(--glass); border: 1px solid var(--line); color: var(--mute); font-variant-numeric: tabular-nums; }
.rw-m.ok .rw-ic { background: var(--ok-bg); color: var(--ok); border-color: transparent; font-size: 15px; }
.rw-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rw-tx b { font-size: 14px; font-weight: 700; }
.rw-tx small { color: var(--mute); font-size: 12.5px; }
.rw-pts { flex: none; font-weight: 800; font-size: 13px; color: var(--accent); white-space: nowrap; }
.rw-m .btn.sm { flex: none; width: auto; min-width: 78px; }
.rw-fr { padding: 14px 16px; display: grid; gap: 4px; }
.rw-fr small { color: var(--mute); font-size: 13px; }
.rw-link { font-weight: 800; color: var(--p); }
#rw-tabs { gap: 4px; padding: 4px; }
#rw-tabs button { padding: 10px 6px; font-size: 13px; }
@media (max-width: 390px) { #rw-tabs button { font-size: 11.8px; padding: 9px 4px; letter-spacing: -.01em; } }

/* ── 🕊️ Ismsiz qo'shiq tugmasi ── */
.nameless-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.field .nameless-row label { margin: 0 0 0 4px; }
.nameless-btn { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--soft); font: 800 12px/1.2 var(--text); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.nameless-btn.on { background: rgba(255, 181, 71, .24); border-color: rgba(214, 130, 40, .55); color: var(--tag); box-shadow: 0 4px 16px rgba(255, 181, 71, .2); }
.nameless-note { padding: 12px 14px; border-radius: 16px; background: var(--note-bg); border: 1px solid var(--note-line); color: var(--soft); font-size: 13.5px; line-height: 1.45; }

/* ── 🎛 Oddiy + Pro Studiya va 0..100 Sokinlik / Sho'xlik boshqaruvi ── */
.tpl.pro-entry { background: linear-gradient(135deg, #24193E 0%, #34214F 52%, #4B285A 100%); border-color: rgba(243, 201, 120, .48); color: #F8F5FF; box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.tpl.pro-entry::after { background: radial-gradient(circle, rgba(243, 201, 120, .32), transparent 68%); }
.tpl.pro-entry b { color: #F8F5FF; display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tpl.pro-entry span { color: rgba(255, 238, 224, .82); }
.pro-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffc978, #ff8f5a); color: #3a0f2e; font: 900 10.5px/1.3 var(--display); font-style: normal; letter-spacing: .05em; }

.st-mode { margin-top: 18px; }
.st-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pro-cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(58, 15, 46, .18); color: currentColor; font: 800 11px/1 var(--display); font-style: normal; }
.st-mode button.on .pro-cnt { background: rgba(255, 255, 255, .32); color: var(--on-grad); }

.energy-card { margin-top: 18px; padding: 14px 15px 12px; border-radius: 20px; }
.energy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.energy-title { font-size: 13px; font-weight: 700; color: var(--label); }
.energy-badge { padding: 4px 10px; border-radius: 999px; background: rgba(255, 181, 71, .2); border: 1px solid rgba(214, 130, 40, .38); color: var(--ink); font: 800 11.5px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.energy-wrap { padding: 2px 0 4px; }
#st-energy { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; margin: 0; cursor: pointer; }
#st-energy::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #6d4c7d 0%, #e8577e calc(var(--pos, 50%) * .6), #ff8f5a var(--pos, 50%), var(--line) var(--pos, 50%)); }
#st-energy::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #6d4c7d 0%, #ff8f5a var(--pos, 50%), var(--line) var(--pos, 50%)); }
#st-energy::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid #ff6f61; box-shadow: 0 0 0 5px rgba(255, 111, 97, .22), 0 4px 12px rgba(58, 20, 48, .25); transition: transform .15s var(--ease); }
#st-energy::-webkit-slider-thumb:active { transform: scale(1.12); }
#st-energy::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #ff6f61; box-shadow: 0 0 0 5px rgba(255, 111, 97, .22); }
.energy-scale { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mute); margin-top: 2px; }

.pro-sum { margin-top: 12px; padding: 11px 14px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pro-sum small { color: var(--mute); font-weight: 700; }

.pro-panel { margin-top: 14px; padding: 16px 14px; border-radius: 22px; border: 1.5px solid rgba(255, 143, 90, .34); background: linear-gradient(165deg, rgba(255, 255, 255, .94), rgba(255, 240, 228, .88)); }
.pro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pro-head b { display: block; font: 800 15.5px/1.25 var(--display); color: var(--ink); }
.pro-head p { margin-top: 3px; font-size: 12.5px; line-height: 1.38; color: var(--mute); }
.pro-presets-lbl { font-size: 12.5px; font-weight: 700; color: var(--label); margin: 4px 2px 7px; }
.pro-presets { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; margin: 0 -14px 4px; padding: 2px 14px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pro-presets::-webkit-scrollbar { display: none; }
.pro-presets .chip { font-size: 12.8px; padding: 8px 13px; }
.pro-panel .label { margin: 15px 2px 8px; }
.pro-panel .chip { padding: 9px 13px; font-size: 13px; }
textarea.input.pro-note { min-height: 78px; padding: 12px 14px; font-size: 14px; border-radius: 16px; }
.pro-sync-hint { margin-top: 12px; }
@media (max-width: 390px) {
  .st-mode button { font-size: 12.5px; padding: 10px 6px; }
  .energy-scale { font-size: 10.5px; }
  .energy-badge { font-size: 11px; padding: 3px 8px; }
}

/* ── Dark mavzu moslamalari (qora rejim) ── */
html[data-theme="dark"] .hero.art { background: #22101e; box-shadow: 0 22px 50px rgba(6, 2, 5, .55); }
html[data-theme="dark"] .hero.art::before { background:
  linear-gradient(180deg, rgba(23, 13, 21, .36) 0, rgba(23, 13, 21, 0) 20%),
  linear-gradient(0deg, rgba(23, 13, 21, .99) 0, rgba(23, 13, 21, .95) 34%, rgba(23, 13, 21, .65) 52%, rgba(23, 13, 21, 0) 68%); }
html[data-theme="dark"] .hero.art h1 { text-shadow: 0 2px 18px rgba(12, 5, 10, .92); }
html[data-theme="dark"] .tpl:not(.art):not(.custom):not(.pro-entry) { background: linear-gradient(155deg, rgba(84, 34, 66, .78), rgba(38, 17, 32, .9) 75%); }
html[data-theme="dark"] .tpl.art { background: #22101e; }
html[data-theme="dark"] .tpl.art::after { background: linear-gradient(0deg, rgba(25, 12, 22, .99) 0, rgba(25, 12, 22, .93) 34%, rgba(25, 12, 22, 0) 64%); }
html[data-theme="dark"] .tpl.art .em { background: rgba(38, 17, 32, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .field label i { color: #ff8f7a; }
html[data-theme="dark"] .tier.on { background: linear-gradient(140deg, rgba(92, 36, 68, .85), rgba(56, 24, 46, .9)); border-color: #ffb547; }
html[data-theme="dark"] .photo { background: linear-gradient(140deg, rgba(78, 32, 60, .65), rgba(46, 20, 38, .75)); border-color: rgba(255, 181, 71, .45); }
html[data-theme="dark"] .pro-panel { background: linear-gradient(165deg, rgba(58, 25, 48, .88), rgba(32, 14, 27, .92)); border-color: rgba(255, 143, 90, .38); }
html[data-theme="dark"] .st-mode .pro-cnt { background: rgba(255, 240, 232, .16); }

/* Mehmon hisobi: saqlash kartasi (profil) */
.guest-card { display: grid; gap: 8px; padding: 16px; margin-top: 12px; }
.guest-card b { font-size: 16px; font-weight: 800; }
.guest-card p { margin: 0 0 4px; color: var(--mute); font-size: 14px; line-height: 1.45; }
.guest-card .btn.google-btn { margin-top: 0; }

/* ── Bo'lim qutichalari (kvadrat, 2 ustunli, hech bir telefonda sig'may chiqib ketmaydi) ── */
.wz-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; width: 100%; box-sizing: border-box; }
.wz-cat-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 10px; min-height: 102px; min-width: 0; width: 100%; box-sizing: border-box; border-radius: 18px; background: var(--glass); border: 1.5px solid var(--line); color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); -webkit-tap-highlight-color: transparent; overflow: hidden; }
.wz-cat-box:active { transform: scale(.96); }
.wz-cat-box.on { border-color: var(--accent); background: linear-gradient(150deg, rgba(255, 195, 90, .2), rgba(255, 138, 92, .12)); box-shadow: 0 6px 20px rgba(255, 143, 90, .2); }
.wz-cat-box.pro-cat { border-color: rgba(243, 201, 120, .48); background: linear-gradient(135deg, #24193E, #3B2354); color: #F8F5FF; }
.wz-cat-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); margin-bottom: 2px; flex: none; }
.wz-cat-box.on .wz-cat-ic { background: rgba(255, 195, 90, .24); border-color: rgba(255, 195, 90, .5); }
.wz-cat-name { font-size: 13px; font-weight: 800; line-height: 1.25; color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; max-width: 100%; }
.wz-cat-cnt { font-size: 11px; font-weight: 600; color: var(--mute); }
.wz-cat-box.pro-cat .wz-cat-cnt { color: #ffc978; font-weight: 800; }
.wz-sub-pane { margin-top: 8px; animation: rise .25s var(--ease); }
.wz-sub-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 195, 90, .12); border: 1px solid rgba(255, 195, 90, .35); margin-bottom: 10px; }
.wz-sub-cat { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.wz-sub-cat span { font-size: 18px; flex: none; }
.wz-change-cat { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); font: 700 12px var(--text); cursor: pointer; }

/* ── Pro Studiya bosqichma-bosqich yo'nalish tablari ── */
.pro-step-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0 12px; }
.pro-step-tab { padding: 9px 10px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--glass); color: var(--mute); font: 700 12.2px/1.25 var(--text); text-align: left; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pro-step-tab.on { border-color: var(--accent); background: rgba(255, 143, 90, .16); color: var(--ink); font-weight: 800; box-shadow: 0 4px 14px rgba(255, 143, 90, .18); }
.pro-step-tab.done:not(.on) { border-color: rgba(52, 211, 153, .45); color: var(--ink); }
.pro-step-pane[hidden] { display: none !important; }
.pro-next-btn { margin-top: 12px; width: 100%; }

/* ── To'lov oynasida «Asosiy to'lov» va «Tariflar» ajratilishi ── */
.ps-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; margin: 2px 0 -2px; }
.ps-sec-head span { font: 800 13px/1.2 var(--display); color: var(--ink); letter-spacing: -.01em; }
.ps-sec-head small { font-size: 11.5px; font-weight: 600; color: var(--mute); }
.ps-sec-head.ps-sec-plans { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ps-plans-group { display: grid; gap: 12px; padding-top: 8px; }

/* ── Kichik va katta telefon ekranlari uchun responsive himoya ── */
.seg button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 8px; }
@media (max-width: 440px) {
  .seg button { font-size: 13px; padding: 10px 6px; letter-spacing: -.01em; }
  #st-lang { grid-template-columns: repeat(3, 1fr); }
  .wz-cat-grid { gap: 8px; }
  .wz-cat-box { padding: 12px 8px; min-height: 94px; }
}

/* ───── Luxury Slideshow, Stage & Unpaid Preview ───── */
.heroart {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(176, 96, 60, .25);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  margin-top: 6px;
}
.heroart.compact {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 8px 0 0;
}
.hero-slides, .stage-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #22101e;
  transform: translateZ(0);
}
.pbg-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #22101e;
}
.slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0%, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.slides-track.anim {
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.slides-track > i {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  background: center / cover no-repeat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}
.scene-lqip {
  position: absolute;
  inset: -14px;
  background: center / cover no-repeat;
  filter: blur(14px);
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
}
.hero-slides i, .stage-slides i, .pbg-slides i {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 620ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
}
.hero-slides i.prev, .stage-slides i.prev, .pbg-slides i.prev {
  opacity: 1 !important;
  z-index: 1 !important;
  transition: none !important;
}
.hero-slides i.on, .stage-slides i.on, .pbg-slides i.on {
  opacity: 1;
  z-index: 2;
}
.scene-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(43, 14, 38, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
}
.scene-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1), background-color 280ms ease;
  -webkit-tap-highlight-color: transparent;
}
.scene-dots button.on {
  width: 18px;
  background: #ffb547;
}
.stage:has(.has-slides) {
  width: min(560px, 100%);
  aspect-ratio: 16 / 9;
  margin: 8px auto 22px;
}
.stage:has(.has-slides) canvas {
  display: none !important;
}
.stage .disc.has-slides {
  position: relative;
  inset: auto;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  animation: none !important;
  transform: none !important;
  background: var(--card);
  border: 1px solid rgba(243, 201, 120, .26);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .56), 0 0 44px rgba(243, 201, 120, .14);
}
.stage .disc.has-slides::after {
  display: none !important;
}
@keyframes stageCinemaDrift {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.065) translate3d(-1%, -1%, 0); }
}
.playing .stage .stage-slides i.on {
  animation: stageCinemaDrift 14s ease-in-out infinite;
}

/* ───── Upgraded Player Controls & Bare Mode ───── */
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 10px;
  flex-wrap: wrap;
}
.player-top-r {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  color: var(--soft);
  font: 800 12.5px/1.1 var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .25s, background .25s;
}
.top-pill:active { transform: scale(.95); }
.top-pill.on { border-color: var(--p); color: var(--p); background: rgba(255, 111, 97, .12); }

.ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0 10px;
}
.ctrl .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6f61 0%, #ffb547 100%);
  box-shadow: 0 10px 28px rgba(255, 111, 97, .42), 0 0 0 6px rgba(255, 111, 97, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .22s var(--ease), box-shadow .28s var(--ease);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: 0;
  color: #fff;
}
.ctrl .play:active { transform: scale(.91); }
.ctrl .play svg { width: 42%; height: 42%; }
.ctrl .skip {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.ctrl .skip:active { transform: scale(.88); border-color: var(--p); }
.ctrl .skip svg { width: 26px; height: 26px; }
.ctrl .skip b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 2px; font: 800 10.5px/1 var(--text); }

/* Bare Mode */
.player-chrome, .player-top, .top, .tabbar {
  transition: opacity .55s ease, transform .55s var(--ease);
}
body.player-bare .top,
body.player-bare .tabbar,
body.player-bare .player-top,
body.player-bare .player-chrome {
  opacity: 0 !important;
  pointer-events: none !important;
}
body.player-bare .stage {
  transform: scale(1.05);
  transition: transform .8s var(--ease);
}
.bare-toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 40;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(43, 14, 38, .85);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font: 700 12.5px var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
body.player-bare .bare-toast.show { opacity: .9; }

/* Player Action Pills (Timer, Lyrics, Share, Adapt) */
.player-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 6px;
}
.pp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  color: var(--soft);
  font: 800 13px/1 var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.pp-pill:active { transform: scale(.95); }
.pp-pill.on {
  border-color: var(--p);
  color: var(--p);
  background: rgba(255, 111, 97, .14);
  box-shadow: 0 4px 18px rgba(255, 111, 97, .18);
}
.pp-pill.gold-pill, .adapt-pill {
  background: linear-gradient(135deg, #ffd678 0%, #f5a63f 100%);
  color: #2a1206;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 196, 86, .32), inset 0 1px 0 rgba(255, 255, 255, .6);
  font-weight: 900;
}

/* Sleep timer modal */
.sleep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.slot-pill {
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  font: 700 13.5px var(--text);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.slot-pill.wide { grid-column: span 2; }
.slot-pill.on {
  border-color: var(--p);
  background: rgba(255, 111, 97, .14);
  color: var(--p);
}

/* 1-Tap Adaptation Sheet */
.adapt-sheet { text-align: left; padding: 4px 2px; }
.adapt-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.adapt-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: center / cover no-repeat;
  flex: none;
}
.adapt-hero p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--mute); }

/* ───── Draft Story View (Personal Draft + Sample Player + Sample Lyrics) ───── */
.draft-badge-row {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}
.draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.14);
  color: var(--gold, #ffb547);
  border: 1px solid rgba(255, 181, 71, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.draft-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  margin: 10px 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 181, 71, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.dp-play {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff6f61 0%, #ffb547 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 111, 97, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.dp-play:active {
  transform: scale(0.92);
}
.dp-play.playing {
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.4), 0 6px 20px rgba(255, 111, 97, 0.6);
}
.dp-play .dp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.dp-play .dp-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.dp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-time {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--mute);
  white-space: nowrap;
}
.dp-bar {
  display: flex;
  align-items: center;
  width: 100%;
}
.draft-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
}
.draft-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold, #ffb547);
  box-shadow: 0 0 8px rgba(255, 181, 71, 0.8);
  cursor: pointer;
}
.draft-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold, #ffb547);
  border: none;
  box-shadow: 0 0 8px rgba(255, 181, 71, 0.8);
  cursor: pointer;
}

/* Free Audio Demo Teaser Pill */
.demo-pill-wrap {
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 214, 120, .22), rgba(255, 111, 97, .16));
  border: 1.5px solid rgba(255, 181, 71, .6);
  color: var(--ink);
  font: 900 15px/1.1 var(--text);
  box-shadow: 0 8px 26px rgba(255, 111, 97, .22);
  cursor: pointer;
  transition: transform .22s var(--ease), background .25s, box-shadow .25s;
}
.demo-pill:active { transform: scale(.96); }
.demo-pill.playing {
  background: linear-gradient(135deg, #ff6f61, #ffb547);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(255, 111, 97, .45);
}

/* ───── Tactile Active Press (120fps physics) & Reduced Motion ───── */
.btn:active,
.pill:active,
.chip:active,
.mood:active,
.seg button:active,
.plan:active,
.slot-pill:active,
.action-card:active {
  transform: scale(0.97) !important;
}

@media (prefers-reduced-motion: reduce) {
  .slides-track.anim {
    transition: transform 1ms ease !important;
  }
  #sheet .dim,
  #sheet .body,
  .screen,
  .ps-option,
  .btn,
  .pill,
  .chip,
  .slot-pill {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  :root,
  html[data-theme="dark"] {
    --card: #131126;
    --glass: rgba(24, 21, 46, 0.94);
    --tabbar: rgba(19, 17, 38, 0.97);
    --top: linear-gradient(180deg, rgba(9, 8, 20, 0.98) 84%, rgba(9, 8, 20, 0));
  }
  html[data-theme="light"] {
    --card: #251E40;
    --glass: rgba(42, 34, 72, 0.94);
    --tabbar: rgba(34, 27, 58, 0.97);
    --top: linear-gradient(180deg, rgba(25, 20, 44, 0.98) 84%, rgba(25, 20, 44, 0));
  }
  .glass, .top, .tabbar, #nowp, .nowpill, .cta::before, .q-sticky.stuck, .composer, #toast, .ctrl .skip, .top-pill, .pp-pill, .scene-dots {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  body.sheet-open {
    overflow: hidden !important;
    padding-right: 0 !important;
  }
  .rise, .list .rise, .wz-sub-pane {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   PROMEDIA PRO v2.4 — LUXURY GIFTING STUDIO DESIGN SYSTEM
   Obsidian-Velvet (`#090814`) & Festive Plum-Twilight (`#19142C`) + 24k Gold (`#F3C978`)
   ═════════════════════════════════════════════════════════════════════════════ */

/* 1. Zero Blinding White Normalization & Bulletproof Sheet Inner Elements */
.hero.art,
.tpl.art {
  background: var(--card) !important;
  color: var(--ink) !important;
  box-shadow: var(--card-shadow) !important;
}
.hero.art::before,
.tpl.art::after {
  background: linear-gradient(0deg, rgba(9, 8, 20, .97) 0, rgba(9, 8, 20, .86) 36%, rgba(9, 8, 20, 0) 68%) !important;
}
html[data-theme="light"] .hero.art::before,
html[data-theme="light"] .tpl.art::after {
  background: linear-gradient(0deg, rgba(25, 20, 44, .97) 0, rgba(25, 20, 44, .86) 36%, rgba(25, 20, 44, 0) 68%) !important;
}
.tpl:not(.art):not(.custom):not(.pro-entry) {
  background: linear-gradient(155deg, var(--card-elev), var(--card) 78%) !important;
}
.tpl.art .em {
  background: rgba(19, 17, 38, .90) !important;
  color: var(--gold) !important;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .42) !important;
}
.tier.on {
  background: linear-gradient(145deg, rgba(243, 201, 120, .16), var(--card)) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(243, 201, 120, .24), var(--card-shadow) !important;
}
.photo {
  background: linear-gradient(145deg, rgba(243, 201, 120, .10), var(--card)) !important;
  border-color: rgba(243, 201, 120, .42) !important;
}
.pro-panel {
  background: linear-gradient(165deg, var(--card-elev), var(--card)) !important;
  border-color: rgba(243, 201, 120, .32) !important;
}
[data-theme="light"] .badge.gold,
.badge.gold {
  background: rgba(243, 201, 120, .18) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(243, 201, 120, .45) !important;
}
.btn {
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-grad);
  box-shadow: 0 10px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .58);
}
.btn.ghost {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--ink);
}
.input:focus {
  border-color: var(--gold);
  background: var(--field-on);
  box-shadow: 0 0 0 3px rgba(243, 201, 120, .18);
}
.nowpill {
  top: calc(var(--safe-t) + 12px);
}
.q-sticky {
  top: 0 !important;
  padding-top: calc(8px + var(--safe-t));
}
.q-sticky.stuck {
  background: var(--top);
}
/* Book reader inside `#sheet` — ZERO nested overflow-y scroll trap! */
.book-reader {
  padding: 12px 4px 8px;
  font-size: var(--book-size, 18px);
  line-height: 1.62;
  color: var(--ink);
  white-space: pre-wrap;
  overflow: visible !important;
  max-height: none !important;
}
.book-reader.serif {
  font-family: var(--serif);
}
.book-reader p {
  margin: 0 0 12px;
}
.font-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ft-btn {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--card-elev);
  border: 1px solid var(--line);
  color: var(--soft);
  font: 700 12px/1 var(--text);
}
.ft-btn.on {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(243, 201, 120, .14);
}
.kicker-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(243, 201, 120, .14);
  border: 1px solid rgba(243, 201, 120, .38);
  color: var(--gold);
  font: 800 12px/1.15 var(--text);
}

/* 2. Unified Sculpted Warm-Gold Play Orbs */
.pro-my-play,
.ctrl .play,
#dp-play,
.nowpill .np-pp {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 253, 240, .78) 0%, transparent 46%),
    linear-gradient(145deg, #FFE6A3 0%, #EAB965 55%, #C88B2E 100%) !important;
  border: 1.5px solid rgba(255, 243, 204, .78) !important;
  color: #171005 !important;
  box-shadow: 0 4px 16px rgba(243, 201, 120, .34), inset 0 1.5px 1.5px rgba(255, 254, 245, .82);
}
.pro-my-play svg path,
.pro-my-play svg rect,
.ctrl .play svg path,
.ctrl .play svg rect,
#dp-play svg path,
#dp-play svg rect,
.nowpill .np-pp svg path,
.nowpill .np-pp svg rect {
  fill: #171005 !important;
}
.pro-my-play {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .18s var(--ease), box-shadow .2s ease;
}
.pro-my-play:active { transform: scale(.92); }
.pro-my-play svg { width: 15px; height: 15px; transform: translateX(1px); }
.pro-my-play.playing svg,
.item.playing .pro-my-play svg { transform: none; }
.pro-my-play.playing,
.item.playing .pro-my-play {
  box-shadow: 0 0 0 4px rgba(243, 201, 120, .26), 0 8px 22px rgba(243, 201, 120, .48);
}

/* 3. Storefront (`#/`) — Compact Greeting, Full-Bleed Gifting Hero, 8 Occasion Cards, Showcase Rail & Gift Packs */
.pro-greet-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.pro-greet-left {
  min-width: 0;
  flex: 1 1 200px;
}
.pro-greet-left h1 {
  font: 700 clamp(19px, 4.9vw, 24px)/1.2 var(--serif);
  color: var(--ink);
  margin: 0;
}
.pro-greet-left p {
  font: 600 12.5px/1.35 var(--text);
  color: var(--mute);
  margin: 3px 0 0;
}
.gift-top-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.gift-loved-pill,
.gift-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font: 700 12px/1.1 var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease), border-color .2s;
}
.gift-loved-pill {
  background: var(--card);
  border: 1px solid rgba(240, 122, 150, .42);
  color: #F7B3C4;
}
.gift-status-pill {
  background: rgba(243, 201, 120, .12);
  border: 1px solid rgba(243, 201, 120, .36);
  color: var(--gold);
}
.gift-loved-pill:active,
.gift-status-pill:active { transform: scale(.96); }

/* Full-Bleed 16:9 Gifting Hero Carousel with Backlit Glow & Overlaid Bottom-Right `.pfc-dots` */
.pro-feat-carousel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0D0B1D;
  border: 1px solid rgba(243, 201, 120, .34);
  box-shadow:
    0 22px 48px -10px rgba(0, 0, 0, .76),
    0 0 38px 2px rgba(243, 201, 120, .20),
    0 10px 54px -6px rgba(240, 122, 150, .18);
  margin: 4px 0 22px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.pfc-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 216px;
}
@media (min-width: 768px) {
  .pfc-viewport { aspect-ratio: 16 / 8.2; min-height: 274px; }
}
.pfc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .75s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}
.pfc-slide.on {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.pfc-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pfc-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 20, .18) 0%, rgba(9, 8, 20, .38) 42%, rgba(9, 8, 20, .94) 100%);
  pointer-events: none;
}
.pfc-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pfc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(9, 8, 20, .72);
  border: 1px solid rgba(243, 201, 120, .44);
  color: #FFE4A3;
  font: 800 10.5px/1.15 var(--text);
  letter-spacing: .04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pfc-bot {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding-right: 78px;
}
@media (max-width: 420px) {
  .pfc-bot { padding-right: 68px; bottom: 12px; gap: 7px; }
}
.pfc-info {
  min-width: 0;
  max-width: 560px;
}
.pfc-info h2 {
  font: 700 clamp(16.5px, 4.4vw, 24px)/1.2 var(--serif);
  color: #FFFDF8;
  margin: 0 0 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pfc-info small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 600 12px/1.32 var(--text);
  color: rgba(248, 245, 255, .84);
}
@media (max-width: 390px) {
  .pfc-info small { -webkit-line-clamp: 1; }
}
.pfc-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--grad);
  color: #1A1104;
  font: 800 13px/1 var(--text);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .48);
}
.pfc-arrow { display: none; }
@media (min-width: 768px) {
  .pfc-arrow {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(9, 8, 20, .68);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #F8F5FF;
    display: grid;
    place-items: center;
    font: 800 18px/1 var(--text);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .pfc-arrow.prev { left: 12px; }
  .pfc-arrow.next { right: 12px; }
}
/* Overlaid inside bottom-right of hero artwork! */
.pfc-dots {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(9, 8, 20, .62);
  border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pfc-dots button {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .44);
  transition: width .24s var(--ease), background .24s, box-shadow .24s;
}
.pfc-dots button.on {
  width: 18px;
  background: #F3C978;
  box-shadow: 0 0 8px rgba(243, 201, 120, .65);
}

/* Section Headers */
.gift-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 11px;
}
.gift-sec-head h2 {
  font: 700 clamp(18px, 4.6vw, 22px)/1.22 var(--serif);
  color: var(--ink);
  margin: 0;
}
.gift-sec-head p {
  font: 600 12.5px/1.35 var(--text);
  color: var(--mute);
  margin: 3px 0 0;
}
.gift-sec-link {
  flex: none;
  font: 800 13px/1 var(--text);
  color: var(--gold);
  text-decoration: none;
  padding: 4px 2px;
  white-space: nowrap;
}

/* 8 Visual Occasion Cards (`2x4` mobile / `4x2` desktop) */
.gift-occ-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
@media (min-width: 900px) {
  .gift-occ-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
}
.gift-occ-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .22s, box-shadow .22s;
}
.gift-occ-card:hover {
  border-color: rgba(243, 201, 120, .48);
  transform: translateY(-2px);
}
.gift-occ-card:active { transform: scale(.98); }
.goc-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--card-elev);
}
.goc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.gift-occ-card:hover .goc-art img { transform: scale(1.04); }
.goc-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 8, 20, .14) 0%, transparent 45%, rgba(19, 17, 38, .78) 100%);
  pointer-events: none;
}
.goc-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(9, 8, 20, .76);
  border: 1px solid rgba(243, 201, 120, .42);
  color: #FFE4A3;
  font: 800 10px/1.15 var(--text);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.goc-body {
  padding: 9px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.goc-body b {
  font: 800 13.8px/1.22 var(--text);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.goc-body small {
  font: 600 11.5px/1.3 var(--text);
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Showcase Rail (`🎧 Tinglab ko'ring — ismli qo'shiq qanday eshitiladi?`) */
.gift-showcase-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -16px 8px;
  padding: 4px 16px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gift-showcase-rail::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .gift-showcase-rail {
    margin: 0 0 8px;
    padding: 4px 0 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}
.gift-sample-card {
  flex: 0 0 282px;
  width: 282px;
  scroll-snap-align: start;
  padding: 13px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, box-shadow .2s;
}
@media (min-width: 960px) {
  .gift-sample-card { width: auto; flex: none; }
}
.gift-sample-card.playing {
  border-color: var(--gold);
  box-shadow: 0 0 0 1.5px rgba(243, 201, 120, .45), var(--card-shadow);
}
.gsc-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.gsc-cover {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-elev);
  border: 1px solid var(--line);
}
.gsc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gsc-meta {
  flex: 1 1 auto;
  min-width: 0;
}
.gsc-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.gsc-occ-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 122, 150, .15);
  border: 1px solid rgba(240, 122, 150, .34);
  color: #F8B4C6;
  font: 700 10.5px/1.2 var(--text);
  white-space: nowrap;
}
.gsc-meta b {
  display: block;
  font: 800 14.5px/1.24 var(--text);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsc-meta span {
  display: block;
  font: 600 12px/1.25 var(--text);
  color: var(--mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsc-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.gsc-play-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 800 12px/1 var(--text);
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.gift-sample-card.playing .gsc-play-btn {
  background: var(--grad);
  color: #1A1104;
  border-color: transparent;
}
.gsc-adapt-btn {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(243, 201, 120, .20), rgba(240, 122, 150, .14));
  border: 1px solid rgba(243, 201, 120, .48);
  color: var(--gold);
  font: 800 11.8px/1.1 var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.gsc-adapt-btn:active,
.gsc-play-btn:active { transform: scale(.96); }

/* 3-Step Gift Journey & Upfront Gift Packs Banner */
.gift-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
@media (min-width: 860px) {
  .gift-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
.gift-packs-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .gift-packs-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
.gift-pack-banner {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(243, 201, 120, .12) 0%, var(--card) 74%);
  border: 1.5px solid rgba(243, 201, 120, .36);
  box-shadow: var(--card-shadow);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s var(--ease), border-color .2s;
}
.gift-pack-banner.ultra {
  background: linear-gradient(155deg, rgba(240, 122, 150, .15) 0%, rgba(243, 201, 120, .11) 42%, var(--card) 82%);
  border-color: rgba(243, 201, 120, .52);
}
.gift-pack-banner:active { transform: scale(.985); }
.gpb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gpb-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #1A1104;
  font: 800 10.5px/1.15 var(--text);
}
.gift-pack-banner.ultra .gpb-tag {
  background: linear-gradient(135deg, #FFE6AA 0%, #F07A96 100%);
}
.gpb-price {
  font: 900 19px/1.1 var(--display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gpb-price small {
  font: 700 12px/1 var(--text);
  color: var(--mute);
}
.gift-pack-banner b.gpb-name {
  font: 800 16.5px/1.22 var(--display);
  color: var(--ink);
}
.gift-pack-banner p {
  font: 600 12.6px/1.38 var(--text);
  color: var(--soft);
  margin: 0;
}
.gpb-cta {
  font: 800 12.8px/1.2 var(--text);
  color: var(--gold);
  margin-top: auto;
}

/* 4. Catalog (`#/all`) — Filter Chips, `[Bepul]`, `[🔒 Obunada]`, `[🎧 40 s bepul]`, `🎁 Yaqinimga moslash` */
.pro-fchips {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 2px 16px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pro-fchips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .pro-fchips { margin: 0 0 16px; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; }
}
.pro-fchip {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font: 700 12.5px/1.15 var(--text);
  color: var(--soft);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.pro-fchip.on {
  border-color: var(--gold);
  background: rgba(243, 201, 120, .15);
  color: var(--gold);
}
.pro-free-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(31, 138, 85, .20);
  border: 1px solid rgba(110, 231, 183, .34);
  color: #7DF2C0;
  font: 700 10.8px/1.2 var(--text);
  white-space: nowrap;
}
.pro-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(243, 201, 120, .22) 0%, rgba(210, 156, 68, .10) 100%);
  border: 1px solid rgba(243, 201, 120, .48);
  color: #FFE099;
  font: 700 10.8px/1.2 var(--text);
  white-space: nowrap;
}
.pro-lock-pill.ultra-pill {
  background: linear-gradient(135deg, rgba(255, 228, 154, .28) 0%, rgba(240, 122, 150, .20) 100%) !important;
  border-color: rgba(255, 228, 154, .62) !important;
  color: #FFEAA8 !important;
}
.pro-40s-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  background: rgba(31, 138, 85, .18);
  border: 1px solid rgba(110, 231, 183, .36);
  color: #9BF2C4;
  font: 700 10.6px/1.2 var(--text);
  white-space: nowrap;
}
.cat-song-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: border-color .2s, transform .16s var(--ease);
}
.cat-song-card:active { transform: scale(.99); }
.cat-song-card.playing {
  border-color: var(--gold);
  box-shadow: 0 0 0 1.5px rgba(243, 201, 120, .48), var(--card-shadow);
}
.csc-body {
  flex: 1 1 auto;
  min-width: 0;
}
.csc-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.csc-body b.nm {
  display: block;
  font: 800 15px/1.26 var(--text);
  color: var(--ink);
  word-break: break-word;
}
.csc-sub {
  display: block;
  font: 600 12px/1.3 var(--text);
  color: var(--mute);
  margin-top: 2px;
}
.csc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.pro-cat-adapt-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(243, 201, 120, .13);
  border: 1px solid rgba(243, 201, 120, .38);
  color: var(--gold);
  font: 800 11.5px/1 var(--text);
  white-space: nowrap;
}
.pro-cat-adapt-btn:active { transform: scale(.95); }
@media (min-width: 900px) {
  #all-list.cat-grid-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #all-list.cat-grid-mode > .empty,
  #all-list.cat-grid-mode > .newsong {
    grid-column: 1 / -1;
  }
}

/* 5. Tab 4 (`#/create`) — 1-Screen Emotional Gift Song Studio */
.gs-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gs-tpl-trigger {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(243, 201, 120, .38);
  color: var(--gold);
  font: 800 12.2px/1 var(--text);
  white-space: nowrap;
}
.gs-tpl-trigger:active { transform: scale(.96); }
.gs-sec-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 800 13.5px/1.25 var(--text);
  color: var(--label);
  margin: 16px 2px 8px;
}
.gs-rcp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .gs-rcp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gs-rcp-chip {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--soft);
  font: 700 13px/1.2 var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .18s, background .18s, color .18s, transform .15s;
}
.gs-rcp-chip:active { transform: scale(.97); }
.gs-rcp-chip.on {
  border-color: var(--gold);
  background: rgba(243, 201, 120, .14);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(243, 201, 120, .14);
}
.gs-occ-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gs-occ-pill {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--soft);
  font: 700 12.8px/1.15 var(--text);
  transition: border-color .18s, background .18s, color .18s;
}
.gs-occ-pill.on {
  border-color: var(--rose);
  background: rgba(240, 122, 150, .16);
  color: #FFF0F4;
}
.gs-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 640px) {
  .gs-two-col {
    grid-template-columns: 1.15fr 1fr;
  }
}
.gs-inspire-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(243, 201, 120, .24), rgba(240, 122, 150, .18));
  border: 1px solid rgba(243, 201, 120, .55);
  color: #FFE7A6;
  font: 800 12px/1 var(--text);
  box-shadow: 0 4px 14px rgba(243, 201, 120, .18);
}
.gs-inspire-btn:active { transform: scale(.95); }
.gs-genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .gs-genre-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gs-genre-card {
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--soft);
  font: 700 13px/1.2 var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: border-color .18s, background .18s, color .18s;
}
.gs-genre-card.on {
  border-color: var(--gold);
  background: rgba(243, 201, 120, .14);
  color: var(--ink);
}
.pro-studio-extra {
  margin: 14px 0;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pro-studio-extra > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pro-studio-extra > summary::-webkit-details-marker { display: none; }
.pro-studio-extra > summary b { display: block; font: 800 14px/1.2 var(--text); color: var(--ink); }
.pro-studio-extra > summary small { display: block; font: 600 12px/1.3 var(--text); color: var(--mute); margin-top: 2px; }
.pro-studio-extra > summary .pse-chev { color: var(--gold); font-size: 15px; transition: transform .2s ease; }
.pro-studio-extra[open] > summary .pse-chev { transform: rotate(180deg); }
.pro-studio-extra-body {
  padding: 6px 15px 16px;
  border-top: 1px solid var(--line);
}

/* 6. Studio Vocal Cards (`.pro-voice-list` — Exact Ertakchi Pro v2.4 Layout) & `.pro-free-limit-bar` */
.pro-voice-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 6px 0 14px;
}
.pro-voice-list .pro-voice-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  min-height: 68px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s var(--ease);
}
.pro-voice-list .pro-voice-card:active { transform: scale(.99); }
.pro-voice-list .pro-voice-card.on {
  border-color: var(--gold);
  background: rgba(243, 201, 120, .11);
  box-shadow: 0 0 0 1px rgba(243, 201, 120, .24);
}
.pro-voice-card.is-v-locked {
  border-style: dashed;
}
.pvc-ava-wrap {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
}
.pvc-ava-wrap .pro-narr-img {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card-elev);
  border: 1.5px solid rgba(243, 201, 120, .38);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .32);
}
.pro-voice-card.on .pvc-ava-wrap .pro-narr-img {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(243, 201, 120, .24);
}
.pvc-ava-wrap .pvc-chk {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  color: #1A1104;
  font: normal 900 10px/18px var(--text);
  text-align: center;
  box-shadow: 0 0 0 2px var(--card);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s, transform .18s var(--ease);
}
.pro-voice-card.on .pvc-ava-wrap .pvc-chk {
  opacity: 1;
  transform: scale(1);
}
.pvc-mid {
  flex: 1 1 auto;
  min-width: 0;
}
.pvc-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pvc-mid b {
  font: 800 14.5px/1.22 var(--text);
  color: var(--ink);
}
.pvc-mid small {
  display: block;
  font: 600 12px/1.3 var(--text);
  color: var(--mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-vp-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 800 12px/1 var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
}
.pro-vp-btn:active { transform: scale(.95); }
.pro-vp-btn.playing {
  background: var(--grad);
  color: #1A1104;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--glow);
}
.pro-free-limit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin: 6px 0 12px;
  border-radius: 15px;
  background: rgba(243, 201, 120, .10);
  border: 1px solid rgba(243, 201, 120, .32);
  font: 700 12.5px/1.35 var(--text);
  color: var(--ink);
  text-align: left;
}
.pro-free-limit-bar.exhausted {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(243, 201, 120, .20) 0%, rgba(240, 122, 150, .12) 100%);
  border-color: rgba(243, 201, 120, .52);
}

/* 7. Upfront Dual Gift Plans (`planModal` & `payModal`) */
.pro-dual-plan-head {
  text-align: center;
  margin-bottom: 12px;
}
.pro-dual-plan-head h3 {
  font: 700 clamp(19px, 5vw, 23px)/1.22 var(--serif);
  color: var(--ink);
  margin: 6px 0 4px;
}
.pro-dual-plan-head p {
  font: 600 13px/1.38 var(--text);
  color: var(--mute);
  margin: 0;
}
.ppm-voice-kicker {
  padding: 9px 12px;
  margin: 0 0 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(243, 201, 120, .20) 0%, rgba(240, 122, 150, .12) 100%);
  border: 1px solid rgba(243, 201, 120, .48);
  font: 700 12.4px/1.38 var(--text);
  color: var(--ink);
  text-align: center;
}
.pro-dual-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 560px) {
  .pro-dual-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pro-tier-card {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform .18s var(--ease), border-color .2s, background .2s, box-shadow .2s;
}
.pro-tier-card:active { transform: scale(.988); }
.pro-tier-card.on {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(243, 201, 120, .16) 0%, var(--card) 74%);
  box-shadow: 0 0 0 2px rgba(243, 201, 120, .24), var(--card-shadow);
}
.ptc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.ptc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 800 10.5px/1.15 var(--text);
}
.ptc-badge.pop {
  background: var(--grad);
  color: #1A1104;
}
.ptc-badge.fam {
  background: rgba(243, 201, 120, .18);
  border: 1px solid rgba(243, 201, 120, .46);
  color: var(--gold);
}
.ptc-days {
  font: 700 11px/1.15 var(--text);
  color: var(--mute);
}
.ptc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ptc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ptc-radio {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.8px solid var(--dim);
  display: grid;
  place-items: center;
  font: normal 900 11px/1 var(--text);
  color: transparent;
}
.pro-tier-card.on .ptc-radio {
  border-color: var(--gold);
  background: var(--grad);
  color: #1A1104;
}
.ptc-name-row b {
  font: 800 15.5px/1.2 var(--display);
  color: var(--ink);
}
.ptc-price {
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ptc-price b {
  font: 900 18.5px/1.1 var(--display);
  color: var(--ink);
}
.ptc-price small {
  font: 700 12px/1 var(--text);
  color: var(--mute);
}
.ptc-bullets {
  display: grid;
  gap: 4px;
  padding-left: 27px;
}
.ptc-bullets span {
  font: 600 12.4px/1.35 var(--text);
  color: var(--soft);
}
.ps-option.on {
  border-color: var(--gold) !important;
  background: linear-gradient(160deg, rgba(243, 201, 120, .15) 0%, var(--card) 75%) !important;
  box-shadow: 0 6px 24px rgba(243, 201, 120, .20) !important;
}

/* 8. Magical Digital Gift Envelope Unboxing (`/s/<slug>/` & `#/shared`) */
.gift-unbox-wrap {
  max-width: 480px;
  margin: 8px auto 24px;
  text-align: center;
}
.gift-unbox-card {
  position: relative;
  padding: 18px 18px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 201, 120, .22) 0%, transparent 62%),
    linear-gradient(165deg, #1E1838 0%, #131126 100%);
  border: 1.5px solid rgba(243, 201, 120, .46);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, .68),
    0 0 42px rgba(243, 201, 120, .18),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  overflow: hidden;
}
.unbox-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(243, 201, 120, .35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .48);
}
.unbox-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.unbox-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(240, 122, 150, .16);
  border: 1px solid rgba(240, 122, 150, .42);
  color: #FFB8C9;
  font: 800 11px/1.15 var(--text);
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.gift-unbox-card h1 {
  font: 700 clamp(21px, 5.6vw, 27px)/1.22 var(--serif);
  color: var(--ink);
  margin: 0 0 8px;
}
.unbox-song-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(243, 201, 120, .12);
  border: 1px solid rgba(243, 201, 120, .32);
  color: var(--gold);
  font: 800 13.5px/1.2 var(--text);
  margin-bottom: 10px;
}
.gift-unbox-card p {
  font: 600 14px/1.48 var(--text);
  color: var(--mute);
  max-width: 34ch;
  margin: 0 auto 18px;
}
.gift-viral-cta {
  margin-top: 20px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(243, 201, 120, .16), rgba(240, 122, 150, .12), var(--card));
  border: 1.5px solid rgba(243, 201, 120, .44);
  text-align: center;
}

/* 9. Profil Header Controls, Loved Ones Strip & Apple-Settings Rows */
.pro-pf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
}
.pro-pf-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.pro-pf-brand > img.pro-pf-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .32);
  flex: none;
}
.pro-pf-word {
  font: 700 clamp(18px, 4.4vw, 22px)/1.1 var(--serif);
  color: var(--ink);
  white-space: nowrap;
}
.pro-pf-top-acts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pro-pf-icon-btn,
.pro-pf-lang-btn {
  height: 38px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--card-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pro-pf-icon-btn { width: 38px; color: var(--gold); }
.pro-pf-icon-btn svg { width: 18px; height: 18px; }
.pro-pf-lang-btn { padding: 0 13px; gap: 6px; font: 700 12.5px/1 var(--text); }
.pro-pf-lang-btn svg { width: 15px; height: 15px; color: var(--mute); flex: none; }
#pf-theme.seg,
#pf-lang.seg {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 5px !important;
}
#pf-theme.seg button,
#pf-lang.seg button {
  width: 100%;
  min-width: 0;
  padding: 10px 6px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.loved-list-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.loved-list-strip::-webkit-scrollbar { display: none; }
.loved-chip-card {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 13px/1.2 var(--text);
  cursor: pointer;
}
.loved-chip-card small {
  color: var(--mute);
  font-weight: 600;
}

/* 10. Desktop & Tablet 2-Column App Shell (`#pro-sidebar` + Wide Stage) */
.pro-sidebar,
.pro-wz-aside {
  display: none;
}
@media (min-width: 768px) {
  :root {
    --rail-w: 88px;
  }
  #tabbar {
    display: none !important;
  }
  body::after {
    display: none !important;
  }
  .cta {
    bottom: 18px;
  }
  .pro-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 6px 14px;
    background: var(--glass);
    border-right: 1px solid var(--line);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .pro-sidebar::-webkit-scrollbar { display: none; }
  .psb-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .psb-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    padding: 4px;
  }
  .psb-brand-tx { display: none; }
  .psb-mark { width: 32px; height: 32px; border-radius: 10px; flex: none; }
  .psb-loved-btn {
    width: 48px;
    height: 44px;
    border-radius: 999px;
    background: var(--card);
    border: 1.5px solid rgba(240, 122, 150, .42);
    color: #F8B4C6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: 700 13px/1 var(--text);
  }
  .psb-loved-lbl { display: none; }
  .psb-create-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--grad);
    color: #1A1104;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font: 800 14px/1 var(--text);
    box-shadow: 0 6px 18px var(--glow);
  }
  .psb-create-btn svg { width: 18px; height: 18px; flex: none; }
  .psb-cr-lbl { display: none; }
  .psb-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 12px 0 auto;
  }
  .psb-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 2px;
    border-radius: 14px;
    color: var(--mute);
    text-decoration: none;
    font: 700 10.5px/1.15 var(--text);
    text-align: center;
    transition: background .18s, color .18s;
  }
  .psb-link svg { width: 20px; height: 20px; flex: none; }
  .psb-link.on {
    background: rgba(243, 201, 120, .14);
    color: var(--gold);
  }
  .psb-link b {
    position: absolute;
    top: 5px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font: 800 10px/16px var(--text);
  }
  .psb-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .psb-theme-seg,
  .psb-lang-seg { display: none; }
  .psb-rail-btn {
    width: 44px;
    height: 40px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
    font: 800 12px/1 var(--text);
    display: grid;
    place-items: center;
  }

  #app {
    margin-left: var(--rail-w);
    margin-right: 0;
    width: calc(100% - var(--rail-w));
    max-width: none;
    padding: 0 28px 56px;
  }
  #app > #view {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 18px;
  }
  #sheet {
    justify-content: center;
    align-items: center;
    padding: 24px;
  }
  #sheet .body {
    width: 100%;
    max-width: 580px;
    border-radius: 28px;
    border: 1px solid var(--line);
    max-height: min(88%, 760px);
    padding: 22px 26px 26px;
  }
  #sheet .grab { display: none; }
  .nowpill {
    top: auto !important;
    bottom: 18px;
    left: calc(var(--rail-w) + 28px);
    right: 28px;
    width: min(460px, calc(100% - var(--rail-w) - 56px));
    margin: 0 auto;
    transform: none;
  }
}

/* Full 2-Column App Shell (`>= 1024px`) with Theme (`🌙 Sahna | ✨ Oqshom | 🌗 Avto`) & Language (`O'zbek | Русский | English`) */
@media (min-width: 1024px) {
  :root {
    --rail-w: 244px;
  }
  .pro-sidebar {
    padding: 20px 14px 16px;
  }
  .psb-top { align-items: stretch; }
  .psb-brand { justify-content: flex-start; padding: 4px 6px 8px; }
  .psb-brand-tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .psb-word {
    font: 700 20px/1.1 var(--serif);
    color: var(--ink);
  }
  .psb-sub {
    font: 600 11px/1.2 var(--text);
    color: var(--mute);
    margin-top: 2px;
  }
  .psb-loved-btn {
    width: 100%;
    height: 42px;
    justify-content: flex-start;
    padding: 0 14px;
  }
  .psb-loved-lbl { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .psb-create-btn {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
  }
  .psb-cr-lbl { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .psb-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    min-height: 45px;
    padding: 0 13px;
    font-size: 14px;
    text-align: left;
  }
  .psb-link b { position: static; margin-left: auto; }
  .psb-foot { align-items: stretch; }
  .psb-rail-btn { display: none; }
  .psb-theme-seg,
  .psb-lang-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
  }
  .psb-theme-seg button,
  .psb-lang-seg button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 31px;
    padding: 0 4px;
    border-radius: 9px;
    font: 700 11px/1 var(--text);
    color: var(--mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .psb-theme-seg button i { font-style: normal; }
  .psb-theme-seg button.on,
  .psb-lang-seg button.on {
    background: rgba(243, 201, 120, .18);
    color: var(--gold);
  }
}

@media (min-width: 1200px) {
  :root {
    --rail-w: 256px;
  }
  #app { padding: 0 38px 64px; }
  #app > #view { max-width: 1280px; }
  .pro-wz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, .82fr);
    gap: 28px;
    align-items: start;
  }
  .pro-wz-aside {
    display: block;
    position: sticky;
    top: 24px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
  }
  .pwa-art {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .pwa-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pwa-art .pro-maisa-pill { position: absolute; top: 12px; right: 12px; }
  .pwa-body { padding: 16px 18px 18px; }
  .pwa-body h3 { font: 700 19px/1.25 var(--serif); color: var(--ink); margin: 6px 0 6px; }
  .pwa-body p { font: 600 13px/1.4 var(--text); color: var(--mute); margin: 0; }
}

/* Dual-Logo Branding (Own Maisa Music Logo + Unified Maisa Studio Badges) */
.pro-maisa-pill,
.pm-maisa-foot-pill {
  padding: 5px 10px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  color: var(--mute);
  font: 600 11px/1 var(--text);
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.pro-maisa-pill b,
.pm-maisa-foot-pill b {
  color: var(--ink);
  font-weight: 700;
}
.pro-maisa-pill img,
.pm-maisa-foot-pill img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: block;
  flex: none;
}
.pm-maisa-foot-pill:hover {
  border-color: rgba(230, 197, 107, .4);
  background: rgba(255, 255, 255, .09);
  transform: translateY(-1px);
}
.pwa-art .pro-maisa-pill {
  background: rgba(12, 9, 20, .74);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .78);
}
.pwa-art .pro-maisa-pill b { color: #FFFFFF; }
[data-theme="light"] .pro-maisa-pill,
[data-theme="light"] .pm-maisa-foot-pill {
  background: rgba(20, 20, 30, .045);
}
[data-theme="light"] .pm-maisa-foot-pill:hover {
  background: rgba(20, 20, 30, .08);
}

.psb-by-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font: 600 11px/1.2 var(--text);
  color: var(--mute);
}
.psb-by-row b { color: var(--ink); font-weight: 700; }
.psb-by-row img { width: 13px; height: 13px; border-radius: 3px; display: block; flex: none; }

.psb-maisa-foot { display: none; }
@media (min-width: 1024px) {
  .psb-maisa-foot {
    display: inline-flex;
    align-self: center;
    margin-top: 6px;
  }
}

.pm-foot-links {
  margin-bottom: 12px;
}
.pm-foot-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 4px;
}
.pm-foot-own {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink) !important;
  font: 700 14px/1 var(--serif);
  text-decoration: none;
}
.pm-foot-own img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .32);
  display: block;
  flex: none;
}
.pm-foot-sep {
  width: 1px;
  height: 15px;
  background: var(--line);
  flex: none;
}
.soc.pm-foot-soc {
  margin: 14px auto 0;
  gap: 10px;
}
.soc.pm-foot-soc a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--mute) !important;
  box-shadow: var(--card-shadow);
}
.soc.pm-foot-soc a svg {
  width: 17px;
  height: 17px;
}
.soc.pm-foot-soc a:hover {
  color: var(--ink) !important;
  border-color: rgba(230, 197, 107, .45);
  background: rgba(255, 255, 255, .08);
}
[data-theme="light"] .soc.pm-foot-soc a:hover {
  background: rgba(20, 20, 30, .06);
}




