/* ═══════════════ Dizayn tokenlari ═══════════════ */
:root {
  --bg: #f5f7fb;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --border: #e4e8f0;
  --text: #0b1324;
  --muted: #5f6b80;
  --primary: #10b981;
  --primary-2: #059669;
  --primary-3: #047857;
  --primary-soft: #d9f8ec;
  --accent: #6366f1;
  --accent-soft: #e6e7ff;
  --danger: #ef4444;
  --danger-soft: #fdecec;
  --gold: #f59e0b;
  --gold-2: #f97316;
  --gold-soft: #fff4d6;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
  --glow: 0 10px 30px -8px rgba(16, 185, 129, .45);
  --radius: 20px;
  --radius-sm: 14px;
  --hero: radial-gradient(1200px 600px at 10% -10%, #34d399 0%, transparent 55%),
          radial-gradient(900px 500px at 100% 0%, #6366f1 0%, transparent 55%),
          linear-gradient(135deg, #022c22 0%, #064e3b 45%, #0f766e 100%);
  --grad-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --grad-text: linear-gradient(90deg, #a7f3d0, #ffffff 40%, #c7d2fe);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Manrope", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070c18;
    --bg-2: #0b1222;
    --surface: #0f172a;
    --surface-2: #162036;
    --border: #1f2b44;
    --text: #e8edf7;
    --muted: #93a1b8;
    --primary-soft: rgba(16, 185, 129, .15);
    --accent-soft: rgba(99, 102, 241, .16);
    --danger-soft: rgba(239, 68, 68, .15);
    --gold-soft: rgba(245, 158, 11, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  }
}

/* ═══════════════ Asos ═══════════════ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary-2); text-decoration: none; }
a.link { cursor: pointer; }
a.link:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.hidden { display: none !important; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ═══════════════ Animatsiyalar ═══════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(var(--r, 0deg)); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.1); } 66% { transform: translate(-30px, 20px) scale(.95); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); } 50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 100% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); } }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }
@keyframes bounceIn { 0% { transform: scale(.3); opacity: 0; } 50% { transform: scale(1.12); opacity: 1; } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes road { to { background-position: -120px 0; } }
@keyframes drive { 0% { transform: translateX(-120px); } 100% { transform: translateX(calc(100vw + 120px)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { from { stroke-dashoffset: var(--from); } }

.page-enter > * { animation: fadeUp .55s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .07s; }
.stagger.in > *:nth-child(3) { transition-delay: .14s; }
.stagger.in > *:nth-child(4) { transition-delay: .21s; }
.stagger.in > *:nth-child(5) { transition-delay: .28s; }
.stagger.in > *:nth-child(6) { transition-delay: .35s; }
.stagger.in > *:nth-child(7) { transition-delay: .42s; }
.stagger.in > *:nth-child(8) { transition-delay: .49s; }
.stagger.in > *:nth-child(n+9) { transition-delay: .55s; }

/* ═══════════════ Topbar ═══════════════ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad-primary);
  display: grid; place-items: center; color: #fff; font-size: 19px; box-shadow: var(--glow);
  transition: transform .4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--grad-primary); }
@media (max-width: 760px) {
  .nav { display: none; }
  /* Telefonda Premium tugmasi pastki menyuda bor — tepada joy tejaymiz */
  #topActions .btn-gold, #topActions .badge-gold { display: none; }
}

.tabbar {
  display: none; position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 30;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom) / 2);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); font-weight: 700; gap: 2px; padding: 4px 0; border-radius: 14px; transition: color .2s, background .2s; }
.tabbar a span { font-size: 20px; transition: transform .3s var(--ease); }
.tabbar a.active { color: var(--primary-2); background: var(--primary-soft); }
.tabbar a.active span { transform: translateY(-2px) scale(1.1); }
@media (max-width: 760px) {
  .tabbar.on { display: flex; }
  body.has-tabbar main { padding-bottom: 96px; }
}

/* ═══════════════ Tugmalar ═══════════════ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 14px; padding: 11px 20px;
  font-weight: 800; cursor: pointer; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%) skewX(-20deg); pointer-events: none;
}
.btn:hover::after { animation: shine .8s var(--ease); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 34px -10px rgba(16, 185, 129, .6); }
.btn-gold { background: var(--grad-gold); color: #fff; box-shadow: 0 10px 26px -8px rgba(249, 115, 22, .55); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-white { background: #fff; color: #064e3b; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ═══════════════ Kartalar ═══════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; }
.card-click { cursor: pointer; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.card-click:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow-lg); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge-gold { background: var(--gold-soft); color: #b45309; }
.badge-green { background: var(--primary-soft); color: var(--primary-3); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
@media (prefers-color-scheme: dark) { .badge-gold { color: var(--gold); } .badge-green { color: #34d399; } }

/* ═══════════════ Formalar ═══════════════ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea.input { min-height: 90px; resize: vertical; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--border); border-right: 0;
  border-radius: 14px 0 0 14px; background: var(--surface-2); font-weight: 800; color: var(--muted);
}
.input-prefix .input { border-radius: 0 14px 14px 0; }
.error-text { color: var(--danger); font-size: 14px; min-height: 20px; font-weight: 600; }
.error-text:not(:empty) { animation: shake .4s; }

/* ═══════════════ Bosh sahifa ═══════════════ */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--hero); padding: 72px 0 110px; isolation: isolate; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: -1; animation: blob 16s ease-in-out infinite; }
.hero .blob.b1 { width: 380px; height: 380px; background: #34d399; top: -80px; left: -60px; }
.hero .blob.b2 { width: 420px; height: 420px; background: #818cf8; top: 20%; right: -120px; animation-delay: -5s; }
.hero .blob.b3 { width: 300px; height: 300px; background: #fbbf24; bottom: -120px; left: 35%; opacity: .25; animation-delay: -9s; }
.hero .grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .floating { position: absolute; width: 56px; height: 56px; z-index: -1; opacity: .85; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
.hero .floating svg { width: 100%; height: 100%; }
.hero .container { position: relative; display: grid; gap: 48px; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero .floating { display: none; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero p.lead { font-size: 18px; opacity: .9; max-width: 560px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px);
}
.hero .eyebrow b { background: #fff; color: #065f46; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { opacity: .8; font-size: 13px; }
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 0; overflow: hidden;
  background: #111827;
}
.road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 4px;
  background: repeating-linear-gradient(90deg, #fbbf24 0 60px, transparent 60px 120px);
  animation: road 1.2s linear infinite;
}
.road .car { position: absolute; top: 6px; left: 0; font-size: 30px; animation: drive 9s linear infinite; transform-origin: center; }
.road .car span { display: inline-block; transform: scaleX(-1); }
.road .car.c2 { top: 22px; font-size: 26px; animation-duration: 13s; animation-delay: -6s; }

.demo-card {
  position: relative; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px; padding: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  animation: scaleIn .9s .2s var(--ease) both;
}
.demo-card .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; margin: 12px 0 4px; }
.demo-card .bar i { display: block; height: 100%; width: 35%; background: #fff; border-radius: 6px; transition: width .8s var(--ease); }
.demo-card .q { font-weight: 800; font-size: 17px; margin: 14px 0; min-height: 50px; }
.demo-card .sign { width: 84px; height: 84px; flex: none; animation: float 5s ease-in-out infinite; }
.demo-card .opt-d {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .1); border: 1px solid transparent; border-radius: 14px; padding: 11px 14px; margin-bottom: 8px; font-size: 14px; font-weight: 600;
  transition: background .4s, color .4s, transform .4s var(--ease), border-color .4s;
}
.demo-card .opt-d .k { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 800; }
.demo-card .opt-d.ok { background: #fff; color: #065f46; transform: scale(1.02); }
.demo-card .opt-d.ok .k { background: var(--primary); color: #fff; }
.demo-card .hint { font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.demo-card .hint.show { opacity: .95; transform: none; }
.demo-card .chip { position: absolute; padding: 8px 14px; border-radius: 14px; background: #fff; color: var(--text); font-weight: 800; font-size: 13px; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.demo-card .chip.c1 { top: -18px; right: 24px; }
.demo-card .chip.c2 { bottom: -18px; left: -14px; animation-delay: -2.5s; }

.section { padding: 84px 0; position: relative; }
.section h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.section .eyebrow-s { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 10px; }
.section .sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; font-size: 17px; }
.section.alt { background: var(--bg-2); }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.pain { position: relative; overflow: hidden; }
.pain .ic { font-size: 34px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--danger-soft); margin-bottom: 14px; }
.pain:hover .ic { animation: pop .5s; }

.feature { position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0;
  background: linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--primary) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.feature:hover::before { opacity: 1; }
.feature .ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  transition: transform .5s var(--ease);
}
.feature:hover .ic { transform: rotate(-8deg) scale(1.1); }

.timeline { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
.timeline .tl { position: relative; padding: 22px; padding-top: 64px; }
.timeline .tl::before {
  counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px;
  border-radius: 11px; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--glow);
}
.footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }

.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 48px 32px; color: #fff; text-align: center;
  background: var(--hero); isolation: isolate;
}
.cta-band h2 { color: #fff; }
.cta-band .blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; z-index: -1; animation: blob 14s ease-in-out infinite; }

details.faq { border-bottom: 1px solid var(--border); padding: 4px 0; }
details.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--primary-2); transition: transform .3s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 16px; color: var(--muted); animation: fadeUp .4s var(--ease); }

/* ═══════════════ Tariflar ═══════════════ */
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-gold) border-box; border: 2px solid transparent; transform: translateY(-8px); box-shadow: 0 30px 60px -24px rgba(249, 115, 22, .45); }
.plan.featured:hover { transform: translateY(-12px); }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 14px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: 14px; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-2); font-weight: 900; font-size: 11px; display: grid; place-items: center;
}
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; background: var(--surface-2); color: var(--muted); }
.plan .ribbon { position: absolute; top: -13px; right: 18px; background: var(--grad-gold); color: #fff; box-shadow: 0 8px 18px -6px rgba(249,115,22,.6); }

/* ═══════════════ Auth ═══════════════ */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; isolation: isolate; }
.auth-wrap .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: -1; animation: blob 18s ease-in-out infinite; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; animation: scaleIn .6s var(--ease) both; }
.auth-card h1 { font-size: 28px; }
.auth-card .logo-mark { width: 52px; height: 52px; font-size: 26px; border-radius: 16px; margin-bottom: 18px; }

/* ═══════════════ Kabinet ═══════════════ */
.page { padding: 30px 0 56px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); margin: 0; }
.welcome {
  position: relative; overflow: hidden; color: #fff; border: 0; background: var(--hero); isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.welcome .blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; z-index: -1; animation: blob 15s ease-in-out infinite; }
.welcome .muted { color: rgba(255, 255, 255, .8); }
@media (max-width: 560px) { .welcome { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.ring { position: relative; width: 150px; height: 150px; flex: none; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring .arc { transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 8px currentColor); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 36px; display: block; line-height: 1; font-weight: 800; }
.ring .val span { font-size: 12px; opacity: .8; }
.stat-card { display: flex; gap: 14px; align-items: center; }
.stat-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--surface-2); }
.stat-card .ic.flame { animation: flame 1.4s ease-in-out infinite; background: var(--gold-soft); }
.stat b { font-size: 26px; display: block; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }
.mode-card { display: flex; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; }
.mode-card .ic {
  font-size: 26px; width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-soft); transition: transform .5s var(--ease);
}
.mode-card:hover .ic { transform: scale(1.12) rotate(-6deg); }
.mode-card.gold .ic { background: var(--gold-soft); }
.mode-card.red .ic { background: var(--danger-soft); }
.mode-card.blue .ic { background: var(--accent-soft); }
.mode-card h3 { margin-bottom: 4px; }
.mode-card .go { position: absolute; right: 18px; bottom: 16px; font-size: 18px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.mode-card:hover .go { transform: translateX(4px); color: var(--primary-2); }
.mode-card.hero-mode { background: var(--grad-primary); color: #fff; border: 0; box-shadow: var(--glow); }
.mode-card.hero-mode .ic { background: rgba(255,255,255,.2); }
.mode-card.hero-mode .muted, .mode-card.hero-mode .go { color: rgba(255,255,255,.85); }
.lock { font-size: 11px; }
.progress { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--primary), #34d399, var(--primary)); background-size: 200% 100%;
  animation: shimmer 3s linear infinite; transition: width 1.2s var(--ease);
}
.progress.warn > i { background: linear-gradient(90deg, var(--gold), #fcd34d, var(--gold)); background-size: 200% 100%; }
.progress.bad > i { background: linear-gradient(90deg, var(--danger), #f87171, var(--danger)); background-size: 200% 100%; }
.topic-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.topic-card .head .ic { font-size: 22px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; transition: transform .4s var(--ease); }
.topic-card:hover .head .ic { transform: scale(1.1) rotate(-6deg); }
.topic-card .head b { flex: 1; font-size: 15px; line-height: 1.3; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.premium-banner {
  position: relative; overflow: hidden; color: #fff; border: 0; isolation: isolate;
  background: linear-gradient(120deg, #7c2d12, #c2410c 45%, #f59e0b);
}
.premium-banner::after {
  content: ""; position: absolute; top: 0; left: 0; width: 30%; height: 100%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: shine 3.5s ease-in-out infinite;
}
.premium-banner .btn { background: #fff; color: #9a3412; }
.alert { padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); margin-bottom: 16px; font-size: 14px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); animation: fadeUp .5s var(--ease) both; }
.section-title { margin: 34px 0 16px; font-size: 21px; display: flex; align-items: center; gap: 10px; }

/* ═══════════════ Test oynasi ═══════════════ */
.runner { max-width: 840px; margin: 0 auto; }
.runner-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; padding: 7px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.timer.low { background: var(--danger-soft); color: var(--danger); border-color: transparent; animation: pulse 1.2s infinite; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.dot {
  width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surface);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; cursor: pointer; color: var(--muted);
  transition: transform .2s var(--ease), background .3s, border-color .3s, color .3s;
}
.dot:hover { transform: translateY(-2px); }
.dot.cur { border-color: var(--primary); color: var(--text); box-shadow: 0 0 0 3px var(--primary-soft); transform: scale(1.08); }
.dot.ok { background: var(--primary); border-color: var(--primary); color: #fff; }
.dot.bad { background: var(--danger); border-color: var(--danger); color: #fff; }
.q-card { padding: 28px; }
.q-card.enter { animation: slideInRight .45s var(--ease) both; }
.q-card.enter-back { animation: slideInRight .45s var(--ease) reverse both; animation-direction: normal; }
.q-img { display: flex; justify-content: center; margin-bottom: 18px; }
.q-img svg { width: 160px; height: 160px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); animation: bounceIn .6s var(--ease) both; }
.q-text { font-size: 20px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.01em; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; font-weight: 600; transition: border-color .2s, background .2s, transform .25s var(--ease);
  animation: fadeUp .45s var(--ease) both;
}
.opts .opt:nth-child(2) { animation-delay: .05s; }
.opts .opt:nth-child(3) { animation-delay: .1s; }
.opts .opt:nth-child(4) { animation-delay: .15s; }
.opts .opt:nth-child(5) { animation-delay: .2s; }
.opts.answered .opt { animation: none; }
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); transform: translateX(4px); }
.opt .k {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 800; font-size: 13px; transition: background .3s, color .3s;
}
.opt.ok { border-color: var(--primary); background: var(--primary-soft); }
.opt.ok .k { background: var(--primary); color: #fff; }
.opt.bad { border-color: var(--danger); background: var(--danger-soft); }
.opt.bad .k { background: var(--danger); color: #fff; }
.opt.just.ok { animation: pop .5s var(--ease), pulseGreen .9s; }
.opt.just.bad { animation: shake .5s; }
.opt:disabled { cursor: default; }
.explain { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); font-size: 14px; animation: fadeUp .5s var(--ease) both; border-left: 4px solid var(--accent); }
.explain.locked { background: var(--gold-soft); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-left-color: var(--gold); }
.runner-nav { display: flex; gap: 10px; margin-top: 18px; }
.kbd { font-size: 12px; color: var(--muted); }

/* ═══════════════ Natija ═══════════════ */
.result-hero { position: relative; overflow: hidden; text-align: center; padding: 44px 20px; animation: scaleIn .6s var(--ease) both; }
.result-hero .emoji { font-size: 72px; display: inline-block; animation: bounceIn .9s .15s var(--ease) both; }
.result-hero h1 { font-size: clamp(26px, 4vw, 34px); margin-top: 10px; }
.result-hero.pass { background: radial-gradient(600px 240px at 50% 0%, var(--primary-soft), var(--surface) 70%); }
.result-hero.fail { background: radial-gradient(600px 240px at 50% 0%, var(--danger-soft), var(--surface) 70%); }
.review-item { border-left: 4px solid var(--primary); }
.review-item.bad { border-left-color: var(--danger); }
.review-item.skip { border-left-color: var(--muted); }
.review-item .q-img svg { width: 90px; height: 90px; animation: none; }
.review-opt { padding: 7px 12px; border-radius: 10px; font-size: 14px; }
.review-opt.ok { background: var(--primary-soft); color: var(--primary-3); font-weight: 800; }
.review-opt.bad { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; }
@media (prefers-color-scheme: dark) { .review-opt.ok { color: #34d399; } }

/* ═══════════════ Tablar ═══════════════ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 12px;
  cursor: pointer; font-weight: 700; transition: background .2s, color .2s, transform .2s var(--ease);
}
.tabs button:hover { transform: translateY(-1px); }
.tabs button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ═══════════════ Oyna va bildirishnoma ═══════════════ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(2, 6, 23, .55); display: grid; place-items: center; z-index: 50; padding: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s both;
}
.modal { width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; animation: scaleIn .4s var(--ease) both; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 760px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: 14px; font-weight: 700;
  box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); animation: fadeUp .4s var(--ease) both;
}
.toast.err { background: var(--danger); color: #fff; }
.toast.out { animation: fadeIn .3s reverse both; }
body.has-tabbar .toast { bottom: 100px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--surface-2); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 80px auto; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.empty { text-align: center; padding: 34px; color: var(--muted); }
.sign-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sign-pick button { border: 2px solid var(--border); background: var(--surface); border-radius: 12px; padding: 6px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.sign-pick button:hover { transform: scale(1.05); }
.sign-pick button.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sign-pick svg { width: 100%; height: 48px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

/* Harakatni kamaytirish so'ralgan qurilmalarda animatsiyalar o'chiriladi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}
