/* Promedia — Mini App + web. Mobil birinchi; desktopda markazlashgan ustun. */
:root {
  --bg: #07040f; --ink: #f5f1ff; --mute: #a39bc0; --dim: #6e668c;
  --v: #8b5cf6; --p: #ec4899; --o: #fb923c; --c: #22d3ee;
  --glass: rgba(255, 255, 255, .06); --glass2: rgba(255, 255, 255, .1); --line: rgba(255, 255, 255, .12);
  --grad: linear-gradient(120deg, var(--v), var(--p) 55%, var(--o));
  --r: 22px; --tab: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --text: 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; color: var(--ink); font: 16px/1.5 var(--text); overflow-x: hidden; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* ───── Fon: aurora + zarrachalar ───── */
.aurora { position: fixed; z-index: 0; pointer-events: none; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: .9;
  background:
    radial-gradient(38% 38% at 30% 28%, rgba(139, 92, 246, .55), transparent 70%),
    radial-gradient(34% 34% at 72% 42%, rgba(236, 72, 153, .42), transparent 70%),
    radial-gradient(32% 32% at 42% 76%, rgba(251, 146, 60, .26), transparent 70%),
    radial-gradient(24% 24% at 70% 74%, rgba(34, 211, 238, .2), transparent 70%);
  transform: translateZ(0); will-change: transform; backface-visibility: hidden; animation: auroraDrift 46s ease-in-out infinite alternate; }
.aurora i { display: none; }
@keyframes auroraDrift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } to { transform: translate3d(3%, 2%, 0) rotate(24deg) scale(1.12); } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { display: none; }

/* ───── Karkas ───── */
#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) + 28px); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; margin: 0 -16px; padding-inline: 16px; background: linear-gradient(180deg, rgba(7, 4, 15, .98) 82%, rgba(7, 4, 15, 0)); padding-bottom: 18px; margin-bottom: -6px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 6px 22px rgba(236, 72, 153, .45); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; transition: transform .2s var(--ease), background .2s; }
.pill:active { transform: scale(.95); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--p); }
.pill.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); background: rgba(236, 72, 153, .25); } }

#view { padding-top: 6px; }
.screen { animation: screenIn .5s var(--ease) both; }
.screen.rev { animation-name: screenBack; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes screenBack { from { opacity: 0; transform: translateY(-10px); } }
.rise { opacity: 0; animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ───── Tab bar ───── */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; margin: 0 auto; bottom: calc(12px + var(--safe-b)); width: min(488px, calc(100% - 24px)); height: 62px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; border-radius: 24px; background: rgba(24, 16, 44, .97); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--mute); transition: color .25s; }
.tabbar a svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.tabbar a.on { color: #fff; }
.tabbar a.on svg { transform: translateY(-1px) scale(1.12); }
.tabbar .ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 18px; background: var(--grad); opacity: .92; box-shadow: 0 8px 26px rgba(236, 72, 153, .45); transition: transform .45s var(--ease); }
.tabbar[data-tab="1"] .ink { transform: translateX(100%); }
.tabbar[data-tab="2"] .ink { transform: translateX(200%); }
.tabbar[data-tab="-1"] .ink { opacity: 0; }

/* ───── Tipografiya ───── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: #e9dcff; }
.eyebrow b { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.eyebrow b::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }
.hero { padding: 26px 0 8px; }
.hero h1 { font: 700 clamp(34px, 10.4vw, 52px)/1.04 var(--display); letter-spacing: -.035em; margin: 16px 0 14px; }
.shine { background: linear-gradient(100deg, #c4b5fd 0%, #f9a8d4 28%, #fff 44%, #fdba74 60%, #f9a8d4 78%, #c4b5fd 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5.5s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.lead { color: var(--mute); font-size: 16px; max-width: 34ch; }
.h2 { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; margin: 34px 0 14px; }
.h1 { font: 700 26px/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: 10px; width: 100%; min-height: 58px; padding: 0 22px; border-radius: 20px; font: 600 16px var(--text); color: #fff; background: var(--grad); background-size: 180% 100%; box-shadow: 0 14px 40px rgba(236, 72, 153, .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::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.4s var(--ease) infinite; }
@keyframes sweep { 55%, 100% { transform: translateX(120%); } }
.btn:hover { background-position: 100% 0; }
.btn:active { transform: scale(.97); box-shadow: 0 8px 22px rgba(236, 72, 153, .4); }
.btn[disabled] { opacity: .55; pointer-events: none; filter: saturate(.6); }
.btn small { font-weight: 500; opacity: .85; }
.btn.ghost { background: var(--glass); border: 1px solid var(--line); box-shadow: none; min-height: 52px; }
.btn.ghost::before { display: 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(255, 255, 255, .35); border-top-color: #fff; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.cta { position: sticky; bottom: calc(var(--tab) + var(--safe-b) + 20px); z-index: 10; margin-top: 22px; }
.cta::before { content: ''; position: absolute; inset: -26px -16px -18px; z-index: -1; background: linear-gradient(180deg, transparent, rgba(7, 4, 15, .9) 45%); pointer-events: none; }

/* ───── Kartochkalar ───── */
.glass { position: relative; background: linear-gradient(160deg, rgba(62, 46, 104, .62), rgba(30, 21, 56, .66)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.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; 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: 600 15px/1.25 var(--display); letter-spacing: -.01em; }
.sample span { color: var(--mute); font-size: 13px; }
.sample.playing { border-color: rgba(236, 72, 153, .7); box-shadow: 0 0 0 1px rgba(236, 72, 153, .5), 0 18px 50px rgba(236, 72, 153, .28); }

.disc { position: relative; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle, #0b0714 0 17%, transparent 18%), repeating-radial-gradient(circle, rgba(255, 255, 255, .09) 0 1px, transparent 1px 4px), conic-gradient(from calc(var(--hue, 290) * 1deg), hsl(var(--hue, 290) 90% 62%), hsl(calc(var(--hue, 290) + 70) 92% 60%), hsl(calc(var(--hue, 290) + 150) 92% 62%), hsl(var(--hue, 290) 90% 62%)); box-shadow: 0 10px 28px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .18); 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; }
.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: 700 18px var(--display); background: var(--grad); box-shadow: 0 8px 22px rgba(236, 72, 153, .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 var(--a, 0deg), 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; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinA { to { --a: 360deg; } }
.price .big { font: 700 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; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { 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-size: 14px; font-weight: 600; color: var(--mute); transition: all .3s var(--ease); white-space: nowrap; }
.chip.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(236, 72, 153, .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% / .55), transparent 68%); pointer-events: none; transition: transform .5s var(--ease); }
.tpl:hover::after, .tpl:active::after { transform: scale(1.5); }
.tpl .em { font-size: 34px; line-height: 1; margin-bottom: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); transform: translateZ(30px); }
.tpl b { font: 600 14.5px/1.25 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: #d9cffb; margin: 0 4px 7px; }
.field label i { color: var(--p); font-style: normal; }
.input { width: 100%; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); 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(236, 72, 153, .8); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(236, 72, 153, .16), 0 12px 34px rgba(139, 92, 246, .22); }
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: #d9cffb; 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: all .3s var(--ease); }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, .35); }

/* ───── 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: #f9a8d4; 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: 700 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: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22); color: #c5f4fb; font-size: 13.5px; margin-top: 14px; }
.note.warn { background: rgba(251, 146, 60, .1); border-color: rgba(251, 146, 60, .3); color: #fed7aa; }

/* ───── 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)); filter: blur(2px); animation: rot 5s linear infinite, breathe 2.6s ease-in-out infinite; box-shadow: 0 0 80px rgba(236, 72, 153, .7), 0 0 150px rgba(139, 92, 246, .5); }
.orb .core::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, #f5d0fe 26%, #a855f7 60%, #3b0764); }
@keyframes breathe { 50% { transform: rotate(180deg) scale(1.08); } }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); 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%); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .7)); }
.phase { font: 600 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: rgba(255, 255, 255, .1); overflow: hidden; margin: 22px 0 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); background-size: 200% 100%; animation: shine 2s linear infinite; transition: width .9s var(--ease); box-shadow: 0 0 18px var(--p); }

/* ───── 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 30px 80px rgba(0, 0, 0, .6), 0 0 90px hsl(var(--hue, 290) 90% 60% / .45), 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(10, 6, 20, .78); border: 1px solid rgba(255, 255, 255, .35); transition: transform .25s var(--ease); }
.stage .play:active { transform: scale(.9); }
.stage .play svg { width: 34%; height: 34%; }
.player h1 { font: 700 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, #f472b6 var(--pos, 0%), rgba(255, 255, 255, .16) var(--pos, 0%)); }
.scrub input::-moz-range-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, #f472b6 var(--pos, 0%), rgba(255, 255, 255, .16) 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(236, 72, 153, .3), 0 4px 12px rgba(0, 0, 0, .5); }
.scrub input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(236, 72, 153, .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; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-size: 12.5px; font-weight: 600; color: #e7defc; 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; max-height: 300px; overflow-y: auto; scroll-behavior: smooth; mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.karaoke p { font-size: 18px; line-height: 1.5; font-weight: 600; color: rgba(255, 255, 255, .34); padding: 5px 0; transition: color .35s, transform .35s var(--ease), text-shadow .35s; transform-origin: left center; }
.karaoke p.tag { font: 600 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: rgba(249, 168, 212, .6); padding-top: 14px; }
.karaoke p.now { color: #fff; transform: scale(1.05); text-shadow: 0 0 26px rgba(236, 72, 153, .8); }
.karaoke p.past { color: rgba(255, 255, 255, .62); }
.karaoke.plain p:not(.tag) { color: rgba(255, 255, 255, .82); font-weight: 500; font-size: 16.5px; }

/* ───── Ro'yxatlar ───── */
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; text-decoration: none; }
.item .disc { width: 52px; height: 52px; flex: none; }
.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); }
.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: rgba(74, 222, 128, .16); color: #86efac; }
.badge.run { background: rgba(251, 146, 60, .16); color: #fdba74; }
.badge.draft { background: rgba(255, 255, 255, .1); color: var(--mute); }
.badge.bad { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.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(236, 72, 153, .6), transparent 66%); pointer-events: none; animation: float 6s ease-in-out infinite; }
.wallet .l { color: var(--mute); font-size: 13px; font-weight: 600; }
.wallet .v { font: 700 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; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount { padding: 16px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font: 600 16px var(--display); letter-spacing: -.02em; transition: all .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.on { background: linear-gradient(140deg, rgba(139, 92, 246, .45), rgba(236, 72, 153, .4)); border-color: rgba(236, 72, 153, .8); box-shadow: 0 12px 30px rgba(236, 72, 153, .28); transform: translateY(-2px); }
.hist { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); 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: #86efac; } .minus { color: #fca5a5; }

/* ───── Bottom sheet, toast ───── */
#sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; pointer-events: none; }
#sheet .dim { position: absolute; inset: 0; background: rgba(4, 2, 10, .78); opacity: 0; transition: opacity .35s; }
#sheet .body { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 20px calc(24px + var(--safe-b)); border-radius: 30px 30px 0 0; background: linear-gradient(180deg, #1d1335, #100a20); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .6); transform: translateY(105%); transition: transform .5s var(--ease); max-height: 92vh; overflow-y: auto; }
#sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .22); margin: 0 auto 18px; }
#sheet.open { pointer-events: auto; }
#sheet.open .dim { opacity: 1; }
#sheet.open .body { transform: none; }
#sheet h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.03em; margin-bottom: 8px; }
#sheet p { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
#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: rgba(28, 18, 50, .98); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); 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, .6); }
#confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }
.skeleton { border-radius: var(--r); background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .05) 70%); 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; box-shadow: 0 0 70px rgba(236, 72, 153, .6); }
@keyframes bootPulse { 50% { transform: scale(1.1) rotate(4deg); box-shadow: 0 0 110px rgba(139, 92, 246, .8); } }

/* ───── Silliq scroll ───── */
html.scrolling *, html.scrolling *::before, html.scrolling *::after { animation-play-state: paused !important; }
body { touch-action: manipulation; -webkit-overflow-scrolling: touch; }
.tabbar, .top { transform: translateZ(0); }
.chip, .amount { position: relative; overflow: hidden; }
.samples, .cats, .karaoke { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.samples, .cats { touch-action: pan-x pan-y; }
@media (hover: none) {
  .tilt { transition: none; }
  .tilt .glare { display: none; }
  .btn:hover { background-position: 0 0; }
}

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