/* =========================================================
   StudentsPro — studentspro.uz
   Rang: logotipdan — krem #f5f1e8, sariq #ffd600, qora fon
   ========================================================= */
:root {
  --bg: #07080b;
  --bg2: #0c0e13;
  --card: rgba(255, 255, 255, .035);
  --card2: rgba(255, 255, 255, .06);
  --solid: #111319;
  --solid2: #161920;
  --line: rgba(245, 241, 232, .09);
  --line2: rgba(245, 241, 232, .16);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, .64);
  --dim: rgba(245, 241, 232, .42);
  --y: #ffd600;
  --y2: #ffb200;
  --yglow: rgba(255, 214, 0, .35);
  --ok: #3ddc97;
  --err: #ff5d6c;
  --info: #7cb3ff;
  --r: 20px;
  --r2: 28px;
  --fd: "Unbounded", "Manrope", system-ui, sans-serif;
  --fb: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--fb); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
::selection { background: var(--y); color: #000; }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Fon: yorug' dog'lar + don (grain) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.bg-fx .b1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(255, 214, 0, .22), transparent 65%); top: -220px; left: -160px; animation: drift1 26s ease-in-out infinite; }
.bg-fx .b2 { width: 720px; height: 720px; background: radial-gradient(circle, rgba(255, 170, 0, .12), transparent 65%); bottom: -320px; right: -220px; animation: drift2 32s ease-in-out infinite; }
.bg-fx .b3 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(120, 140, 255, .09), transparent 65%); top: 40%; left: 55%; animation: drift1 38s ease-in-out infinite reverse; }
.bg-fx .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .35; }
.bg-fx .grain { position: absolute; inset: -50%; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-140px, -60px) scale(1.08); } }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, 2%); } 80% { transform: translate(4%, 5%); } 100% { transform: translate(0,0); } }

/* ---------- Umumiy ---------- */
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1440px, 100% - 40px); margin-inline: auto; }
.h-display { font-family: var(--fd); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
.h1 { font-family: var(--fd); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.h2 { font-family: var(--fd); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.h3 { font-family: var(--fd); font-weight: 600; font-size: 17px; letter-spacing: -.005em; margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.y { color: var(--y); }
.mono { font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--y); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--y); border-radius: 2px; }
.grad-text { background: linear-gradient(100deg, var(--y) 0%, #fff3a8 30%, var(--y) 55%, var(--y2) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- Tugmalar ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; letter-spacing: .005em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, opacity .2s; white-space: nowrap; user-select: none; overflow: hidden; isolation: isolate; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--y); color: #0a0a0a; box-shadow: 0 10px 30px -10px var(--yglow), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--yglow), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--card2); border: 1px solid var(--line2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-tg { background: linear-gradient(135deg, #2aabee, #1e88d0); color: #fff; box-shadow: 0 12px 32px -12px rgba(42,171,238,.6); }
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(42,171,238,.7); }
.btn-danger { background: rgba(255,93,108,.12); color: var(--err); border: 1px solid rgba(255,93,108,.3); }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; border-radius: 17px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.icon-btn:hover { background: var(--card2); border-color: var(--line2); }
.icon-btn svg { width: 19px; height: 19px; }
.link { color: var(--y); font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Karta ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--r2); padding: 24px; position: relative; }
.card-tight { padding: 18px; border-radius: var(--r); }
.card-glow { box-shadow: 0 30px 80px -40px rgba(255,214,0,.25); }
.pill { font-family: var(--fb); letter-spacing: 0; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.y { background: rgba(255,214,0,.12); border-color: rgba(255,214,0,.3); color: var(--y); }
.pill.ok { background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.3); color: var(--ok); }
.pill.err { background: rgba(255,93,108,.1); border-color: rgba(255,93,108,.3); color: var(--err); }
.pill.run { background: rgba(124,179,255,.1); border-color: rgba(124,179,255,.3); color: var(--info); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.run .dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ---------- Reveal animatsiyasi ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; } .rv-d5 { transition-delay: .4s; }
.page-enter { animation: pageIn .55s var(--ease); }  /* 'both' emas: tugagach stacking context qolmasin (fixed panellar uchun) */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: pageIn .6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .03s; } .stagger > *:nth-child(2) { animation-delay: .08s; } .stagger > *:nth-child(3) { animation-delay: .13s; } .stagger > *:nth-child(4) { animation-delay: .18s; } .stagger > *:nth-child(5) { animation-delay: .23s; } .stagger > *:nth-child(6) { animation-delay: .28s; } .stagger > *:nth-child(7) { animation-delay: .33s; } .stagger > *:nth-child(8) { animation-delay: .38s; }

/* =========================================================
   NAVIGATSIYA
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,8,11,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.nav .wrap-wide { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; transition: transform .4s var(--spring); }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 9px 14px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: .2s; position: relative; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--text); background: var(--card2); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--y); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: .3s; }
.balance-chip:hover { border-color: rgba(255,214,0,.35); }
.balance-chip .lbl { font-size: 11px; color: var(--dim); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.balance-chip .val { white-space: nowrap; font-weight: 800; font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.balance-chip .plus { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--y); color: #000; transition: transform .3s var(--spring); }
.balance-chip .plus:hover { transform: rotate(90deg) scale(1.06); }
.balance-chip .plus svg { width: 16px; height: 16px; }
.balance-chip.bump { animation: bump .8s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255,214,0,.18); } 100% { transform: scale(1); } }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-family: var(--fd); font-size: 15px; background: linear-gradient(135deg, var(--y), var(--y2)); color: #000; position: relative; }
.menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; background: var(--solid); border: 1px solid var(--line2); border-radius: 18px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transform-origin: top right; animation: menuIn .25s var(--ease); z-index: 60; }
@keyframes menuIn { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--card2); color: var(--text); }
.menu svg { width: 18px; height: 18px; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-size: 15px; color: var(--text); }
.menu .who span { font-size: 13px; color: var(--dim); }

/* Mobil pastki panel */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --nav-h: 62px; }
  .nav-links { display: none; }
  .brand img { height: 24px; }
  .balance-chip .lbl { display: none; }
  .balance-chip { height: 40px; padding-left: 12px; }
  .avatar { width: 40px; height: 40px; border-radius: 12px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; height: 64px; background: rgba(17,19,25,.86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line2); border-radius: 22px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; font-size: 11px; font-weight: 700; color: var(--dim); transition: .25s; }
  .tabbar a svg { width: 22px; height: 22px; transition: transform .3s var(--spring); }
  .tabbar a.active { color: var(--y); background: rgba(255,214,0,.08); }
  .tabbar a.active svg { transform: translateY(-1px) scale(1.08); }
  body.app { padding-bottom: 96px; }
}

/* =========================================================
   LANDING
   ========================================================= */
.hero { position: relative; padding: clamp(40px, 8vh, 90px) 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 76px); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { to { transform: none; } }
.hero .lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 540px; margin: 24px 0 34px; opacity: 0; animation: fadeUp .9s .35s var(--ease) forwards; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp .9s .5s var(--ease) forwards; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; font-size: 14px; color: var(--muted); opacity: 0; animation: fadeUp .9s .65s var(--ease) forwards; }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust svg { width: 18px; height: 18px; color: var(--y); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; height: 540px; perspective: 1200px; }
.hv-card { position: absolute; border-radius: 24px; background: linear-gradient(160deg, rgba(30,33,42,.95), rgba(16,18,24,.95)); border: 1px solid var(--line2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset; transition: transform .6s var(--ease); will-change: transform; opacity: 0; animation: cardIn 1.2s var(--ease) forwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateX(10deg) scale(.95); } to { opacity: 1; } }
.hv-photo { width: 250px; left: 8%; top: 40px; padding: 14px; animation-delay: .3s; }
.hv-photo .ph { aspect-ratio: 3/4; border-radius: 14px; background: #fff; position: relative; overflow: hidden; }
.hv-photo .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-photo .scan { position: absolute; left: 0; right: 0; height: 36%; background: linear-gradient(180deg, transparent, rgba(255,214,0,.35) 85%, var(--y)); animation: scanY 2.8s ease-in-out infinite; mix-blend-mode: multiply; }
@keyframes scanY { 0% { top: -40%; } 100% { top: 105%; } }
.hv-photo .meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.hv-doc { width: 290px; right: 0; top: 0; padding: 22px; animation-delay: .5s; }
.hv-doc .l { height: 8px; border-radius: 4px; background: rgba(245,241,232,.12); margin: 9px 0; }
.hv-doc .l.y { background: linear-gradient(90deg, var(--y), transparent); width: 60%; height: 10px; }
.hv-doc .typing { width: 0; animation: typeLine 3.5s steps(30) infinite; }
@keyframes typeLine { 0% { width: 0; } 60%,100% { width: 88%; } }
.hv-prog { width: 300px; right: 6%; bottom: 40px; padding: 20px; animation-delay: .7s; }
.hv-prog .bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 14px; }
.hv-prog .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--y2), var(--y)); animation: fillBar 4s var(--ease) infinite; box-shadow: 0 0 20px var(--yglow); }
@keyframes fillBar { 0% { width: 6%; } 70%,100% { width: 100%; } }
.hv-badge { position: absolute; left: 0; bottom: 110px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--y); color: #000; font-weight: 800; font-size: 14px; box-shadow: 0 20px 40px -15px var(--yglow); animation: cardIn 1.2s .9s var(--ease) forwards, bob 5s 2s ease-in-out infinite; opacity: 0; }
.hv-badge svg { width: 20px; height: 20px; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hv-orbit { position: absolute; inset: 40px 60px; border: 1px dashed rgba(255,214,0,.18); border-radius: 50%; animation: spin 60s linear infinite; }
.hv-orbit::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--y); box-shadow: 0 0 20px var(--y); }

.marquee { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: rgba(255,255,255,.015); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--fd); font-weight: 600; font-size: 17px; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "\2726"; color: var(--y); margin-left: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head .h1 { margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { position: relative; padding: 26px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .3s; isolation: isolate; display: flex; flex-direction: column; min-height: 250px; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,214,0,.13), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc:hover { transform: translateY(-6px); border-color: rgba(255,214,0,.28); }
.svc:hover::before { opacity: 1; }
.svc .ic { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: rgba(255,214,0,.1); border: 1px solid rgba(255,214,0,.25); color: var(--y); margin-bottom: 22px; transition: transform .5s var(--spring); }
.svc:hover .ic { transform: rotate(-8deg) scale(1.08); }
.svc .ic svg { width: 28px; height: 28px; }
.svc h3 { font-family: var(--fd); font-weight: 700; font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.svc p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.svc .foot { display: flex; align-items: center; justify-content: space-between; }
.svc .price { font-weight: 800; font-size: 15px; }
.svc .price small { color: var(--dim); font-weight: 600; font-size: 12.5px; }
.svc .go { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); transition: .35s var(--spring); }
.svc:hover .go { background: var(--y); color: #000; transform: translateX(3px) rotate(-45deg); }
.svc .go svg { width: 18px; height: 18px; }
.svc .tag { position: absolute; top: 20px; right: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--fd); font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,214,0,.5); display: block; margin-bottom: 20px; }
.step h3 { font-family: var(--fd); font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.split-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: clamp(30px, 5vw, 56px); border-radius: 34px; background: radial-gradient(600px circle at 0% 0%, rgba(255,214,0,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,214,0,.22); overflow: hidden; position: relative; }
.split-cta .h1 { font-size: clamp(24px, 3vw, 36px); }
.sync-vis { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sync-vis .node { width: 108px; height: 108px; border-radius: 30px; display: grid; place-items: center; background: var(--solid2); border: 1px solid var(--line2); }
.sync-vis .node svg { width: 44px; height: 44px; }
.sync-vis .wire { width: 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--y) 0 8px, transparent 8px 16px); animation: wire 1s linear infinite; position: relative; }
.sync-vis .wire::after { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--y); box-shadow: 0 0 16px var(--y); animation: travel 2s var(--ease) infinite; }
@keyframes wire { to { background-position: 16px 0; } }
@keyframes travel { 0% { left: 0; } 50% { left: calc(100% - 12px); } 100% { left: 0; } }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; flex: none; border-radius: 10px; border: 1px solid var(--line2); position: relative; transition: .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--y); color: #000; border-color: var(--y); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 680px; animation: fadeUp .4s var(--ease); }

.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer img { height: 24px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; order: -1; margin: -10px 0 0; transform: scale(.86); transform-origin: top center; }
  .svc-grid, .steps { grid-template-columns: 1fr 1fr; }
  .split-cta { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; transform: scale(.72); margin-bottom: -60px; }
  .hv-doc { right: -30px; }
  .hv-prog { right: -10px; }
  .hero .cta .btn { flex: 1; }
}

/* =========================================================
   MODAL, TOAST
   ========================================================= */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(3,4,6,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fadeIn .25s ease; }
.modal-bg.out { animation: fadeOut .2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(180deg, #171a22, #101218); border: 1px solid var(--line2); border-radius: 30px; padding: 30px; position: relative; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); animation: modalIn .45s var(--spring); }
.modal-bg.out .modal { animation: modalOut .2s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal .x { position: absolute; top: 16px; right: 16px; }
.modal .h2 { margin: 6px 0 10px; }
.modal p { color: var(--muted); margin: 0 0 20px; }
.login-opts { display: flex; flex-direction: column; gap: 12px; }
.login-wait { text-align: center; padding: 10px 0 0; }
.login-wait .qr { width: 190px; height: 190px; margin: 6px auto 18px; padding: 12px; background: #fff; border-radius: 20px; position: relative; }
.login-wait .qr img { width: 100%; height: 100%; }
.login-wait .qr::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid var(--y); animation: ringPulse 2s ease-out infinite; }
@keyframes ringPulse { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.1); } }
.login-wait .steps-mini { text-align: left; display: flex; flex-direction: column; gap: 10px; margin: 14px 0 20px; font-size: 14.5px; color: var(--muted); }
.login-wait .steps-mini b { color: var(--text); }
.waiting-dots span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--y); margin: 0 3px; animation: dots 1.2s ease-in-out infinite; }
.waiting-dots span:nth-child(2) { animation-delay: .15s; } .waiting-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%,80%,100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.or { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.toasts { position: fixed; z-index: 200; top: calc(var(--nav-h) + 10px); right: 18px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; width: min(380px, calc(100% - 36px)); }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(22,25,32,.94); backdrop-filter: blur(14px); border: 1px solid var(--line2); box-shadow: 0 20px 50px -18px rgba(0,0,0,.8); animation: toastIn .5s var(--spring); font-size: 14.5px; font-weight: 600; }
.toast.out { animation: toastOut .3s ease forwards; }
.toast .ti { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast .ti svg { width: 17px; height: 17px; }
.toast.ok .ti { background: rgba(61,220,151,.14); color: var(--ok); }
.toast.err .ti { background: rgba(255,93,108,.14); color: var(--err); }
.toast.info .ti { background: rgba(255,214,0,.12); color: var(--y); }
.toast small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@media (max-width: 620px) { .toasts { top: auto; bottom: 90px; right: 50%; transform: translateX(50%); } }

/* =========================================================
   ILOVA (kirgandan keyin)
   ========================================================= */
.app-main { padding: 26px 0 70px; min-height: calc(100vh - var(--nav-h)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--dim); margin-bottom: 12px; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; }

.dash-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
.welcome { padding: 32px; border-radius: 30px; position: relative; overflow: hidden; background: radial-gradient(500px circle at 100% 0%, rgba(255,214,0,.14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.welcome .cap { position: absolute; right: -20px; bottom: -30px; width: 210px; opacity: .1; transform: rotate(-12deg); animation: bob 7s ease-in-out infinite; }
.wallet { padding: 28px; border-radius: 30px; position: relative; overflow: hidden; color: #0a0a0a; background: linear-gradient(135deg, #ffe14d 0%, var(--y) 45%, #ffbf00 100%); box-shadow: 0 30px 70px -30px var(--yglow); display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; isolation: isolate; }
.wallet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 120%, rgba(255,255,255,.55), transparent 45%), repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 12px); }
.wallet::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; border: 40px solid rgba(255,255,255,.18); z-index: -1; }
.wallet .lbl { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.wallet .amt { font-family: var(--fd); font-weight: 800; font-size: clamp(34px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wallet .amt small { font-size: .45em; font-weight: 700; opacity: .7; letter-spacing: 0; }
.wallet .btn { background: #0a0a0a; color: var(--y); height: 44px; }
.wallet .btn:hover { transform: translateY(-2px); }
.wallet .note { font-size: 12.5px; font-weight: 700; opacity: .65; }

.svc-app { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-app .svc { min-height: 200px; padding: 24px; }
@media (max-width: 960px) { .dash-hero { grid-template-columns: 1fr; } .svc-app { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-app { grid-template-columns: 1fr; } .svc-app .svc { min-height: 0; } .welcome, .wallet { padding: 24px; min-height: 180px; } }

/* ---------- Forma elementlari ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-size: 13.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; min-height: 32px; }
.field .hint { font-size: 12.5px; color: var(--dim); margin-top: -2px; }
.input, .textarea, .select { width: 100%; background: rgba(255,255,255,.035); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 15px; font-size: 15px; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .textarea:hover { border-color: rgba(245,241,232,.26); }
.input:focus, .textarea:focus { border-color: var(--y); box-shadow: 0 0 0 4px rgba(255,214,0,.12); background: rgba(255,255,255,.05); }
.input.bad { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255,93,108,.12); animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:disabled { opacity: .5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.counter { font-size: 12px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { white-space: nowrap; height: 40px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.025); font-weight: 700; font-size: 14px; color: var(--muted); transition: .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { color: var(--text); border-color: rgba(245,241,232,.3); }
.chip.on { background: rgba(255,214,0,.12); border-color: var(--y); color: var(--y); box-shadow: 0 0 0 3px rgba(255,214,0,.08); }
.chip.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--y); box-shadow: 0 0 8px var(--y); }
.chip.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.chip.none-on { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--line2); }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; padding: 16px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(255,255,255,.025); text-align: left; transition: .25s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.opt:hover { border-color: rgba(245,241,232,.3); transform: translateY(-2px); }
.opt.on { border-color: var(--y); background: rgba(255,214,0,.08); box-shadow: 0 12px 30px -16px var(--yglow), 0 0 0 3px rgba(255,214,0,.08); }
.opt .t { font-weight: 800; font-size: 15px; }
.opt .s { font-size: 13px; color: var(--muted); }
.opt .emo { font-size: 26px; line-height: 1; }
.opt .check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: .25s var(--spring); }
.opt.on .check { background: var(--y); border-color: var(--y); color: #000; transform: scale(1.1); }
.opt .check svg { width: 13px; height: 13px; opacity: 0; }
.opt.on .check svg { opacity: 1; }
.opt.page-opt { align-items: center; text-align: center; padding: 18px 10px; }
.opt.page-opt .t { font-family: var(--fd); font-size: 24px; }
.opt.page-opt .p { font-weight: 800; color: var(--y); font-size: 14px; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 15px; user-select: none; }
.switch input { display: none; }
.switch .tr { width: 50px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--line2); position: relative; transition: .3s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .35s var(--spring), background .3s; }
.switch input:checked + .tr { background: var(--y); border-color: var(--y); }
.switch input:checked + .tr::after { transform: translateX(20px); background: #000; }

.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: color .25s; }
.seg button.on { color: #000; }
.seg .ind { position: absolute; top: 4px; bottom: 4px; border-radius: 10px; background: var(--y); transition: left .35s var(--spring), width .35s var(--spring); }

.stepper { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; width: max-content; }
.stepper button { width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; font-weight: 700; transition: background .2s; }
.stepper button:hover { background: var(--card2); }
.stepper button:disabled { opacity: .3; pointer-events: none; }
.stepper output { min-width: 56px; text-align: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }

/* ---------- Yuklash zonasi ---------- */
.drop { display: block; position: relative; border: 1.5px dashed rgba(245,241,232,.22); border-radius: 24px; padding: 34px 20px; text-align: center; background: rgba(255,255,255,.02); transition: .3s var(--ease); cursor: pointer; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--y); background: rgba(255,214,0,.05); }
.drop.over { transform: scale(1.01); }
.drop .di { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,214,0,.1); color: var(--y); transition: transform .4s var(--spring); }
.drop:hover .di { transform: translateY(-4px) scale(1.05); }
.drop .di svg { width: 30px; height: 30px; }
.drop b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 14px; }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--solid2); border: 1px solid var(--line); animation: pop .45s var(--spring); cursor: grab; }
.thumb.wide { aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); color: #fff; opacity: .85; transition: .2s; }
.thumb .rm:hover { background: var(--err); opacity: 1; }
.thumb .rm svg { width: 14px; height: 14px; }
.thumb .n { position: absolute; left: 6px; bottom: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.thumb.dragging { opacity: .4; transform: scale(.95); }
.thumb.drop-target { outline: 2px solid var(--y); outline-offset: 2px; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }

/* ---------- Xizmat sahifasi maketi ---------- */
.svc-layout > * { min-width: 0; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.svc-layout .side { position: sticky; top: calc(var(--nav-h) + 16px); }
.block { padding: 24px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); margin-bottom: 16px; }
.block-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.block-h .num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,214,0,.12); color: var(--y); font-weight: 800; font-size: 14px; flex: none; }
.block-h h3 { font-family: var(--fd); font-weight: 600; font-size: 16.5px; margin: 0; }
.block-h .sub { margin-left: auto; font-size: 13px; color: var(--dim); font-weight: 600; }
.summary { padding: 24px; border-radius: 26px; border: 1px solid rgba(255,214,0,.24); background: radial-gradient(400px circle at 100% 0%, rgba(255,214,0,.1), transparent 60%), linear-gradient(180deg, #15171e, #101217); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.summary .li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.summary .li span:first-child { color: var(--muted); }
.summary .li span:last-child { font-weight: 700; text-align: right; }
.summary .total { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 18px; }
.summary .total b { font-family: var(--fd); font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary .total b small { font-size: 14px; color: var(--muted); font-family: var(--fb); }
.summary .warn { font-size: 13px; color: var(--err); font-weight: 700; margin: -8px 0 14px; }
.summary .bal { font-size: 13px; color: var(--dim); text-align: center; margin-top: 12px; }
@media (max-width: 1000px) { .svc-layout { grid-template-columns: minmax(0, 1fr); } .svc-layout .side { position: static; } }

/* ---------- Hujjat rasmi: kiyim kartalari ---------- */
.cloth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.cloth { position: relative; border-radius: 18px; border: 1px solid var(--line2); background: rgba(255,255,255,.025); padding: 12px 10px 12px; text-align: center; transition: .25s var(--ease); }
.cloth:hover { transform: translateY(-3px); border-color: rgba(245,241,232,.3); }
.cloth.on { border-color: var(--y); background: rgba(255,214,0,.08); box-shadow: 0 0 0 3px rgba(255,214,0,.08); }
.cloth svg { width: 64px; height: 64px; margin: 2px auto 8px; }
.cloth b { display: block; font-size: 13px; line-height: 1.3; }
.preset-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.preset { flex: none; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.025); font-weight: 700; font-size: 13.5px; transition: .2s; }
.preset:hover { border-color: var(--y); color: var(--y); }
.preset small { display: block; color: var(--dim); font-weight: 600; font-size: 12px; }

/* ---------- Kutish ekrani (AI studiya) ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; min-height: 560px; }
.studio-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.frame { position: relative; width: min(330px, 78vw); aspect-ratio: 3/4; border-radius: 26px; overflow: hidden; background: #1a1c22; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px var(--line2); z-index: 2; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .orig { filter: saturate(.9) brightness(.9); transition: filter 1s; }
.frame .scanline { position: absolute; left: -10%; right: -10%; height: 3px; background: var(--y); box-shadow: 0 0 24px 6px rgba(255,214,0,.55), 0 0 80px 20px rgba(255,214,0,.25); animation: scanFrame 2.6s cubic-bezier(.45,0,.55,1) infinite alternate; z-index: 3; }
.frame .scanline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 120px; background: linear-gradient(0deg, rgba(255,214,0,.22), transparent); }
@keyframes scanFrame { from { top: 2%; } to { top: 97%; } }
.frame .mesh { position: absolute; inset: 0; z-index: 2; background-image: radial-gradient(rgba(255,214,0,.65) 1.2px, transparent 1.6px); background-size: 18px 18px; mask-image: radial-gradient(ellipse 42% 36% at 50% 40%, #000 30%, transparent 75%); animation: meshPulse 2.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes meshPulse { 0%,100% { opacity: .25; } 50% { opacity: .75; } }
.frame .corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--y); z-index: 4; transition: .6s var(--ease); }
.frame .c1 { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.frame .c2 { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.frame .c3 { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.frame .c4 { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.frame .facebox { position: absolute; left: 28%; top: 16%; width: 44%; height: 44%; border: 1.5px solid rgba(255,214,0,.8); border-radius: 46% 46% 42% 42%; z-index: 4; animation: faceBox 3s ease-in-out infinite; box-shadow: 0 0 30px rgba(255,214,0,.25) inset; }
@keyframes faceBox { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.04); opacity: .5; } }
.frame .result { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); z-index: 5; }
.frame.revealed .result { clip-path: inset(0 0 0 0); }
.frame.revealed .scanline, .frame.revealed .mesh, .frame.revealed .facebox { opacity: 0; transition: opacity .5s; }
.frame.revealed .corner { opacity: 0; }
.studio-ring { position: absolute; width: min(470px, 108vw); aspect-ratio: 1; z-index: 1; }
.studio-ring circle { fill: none; }
.studio-ring .trk { stroke: rgba(255,255,255,.05); stroke-width: 2; }
.studio-ring .prg { stroke: url(#ringGrad); stroke-width: 3.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s var(--ease); filter: drop-shadow(0 0 8px rgba(255,214,0,.6)); }
.studio-ring .dash { stroke: rgba(255,214,0,.25); stroke-width: 1; stroke-dasharray: 2 10; animation: spin 40s linear infinite; transform-origin: 50% 50%; }
.orbit-dot { position: absolute; width: min(470px, 108vw); aspect-ratio: 1; animation: spin 7s linear infinite; z-index: 1; pointer-events: none; }
.orbit-dot::before { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--y); box-shadow: 0 0 18px 4px rgba(255,214,0,.6); }
.sparkles i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--y); opacity: 0; animation: sparkle 3s ease-in-out infinite; z-index: 1; }
@keyframes sparkle { 0% { opacity: 0; transform: translateY(0) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-80px) scale(1.2); } }
.studio-info .pct { font-family: var(--fd); font-weight: 800; font-size: clamp(56px, 8vw, 92px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.studio-info .pct small { font-size: .4em; color: var(--y); }
.stages { display: flex; flex-direction: column; gap: 4px; margin: 26px 0; }
.stage { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; color: var(--dim); font-weight: 600; font-size: 15px; transition: .4s var(--ease); }
.stage .si { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; transition: .4s var(--spring); }
.stage .si svg { width: 14px; height: 14px; opacity: 0; }
.stage.active { color: var(--text); background: rgba(255,214,0,.06); }
.stage.active .si { border-color: var(--y); border-top-color: transparent; animation: spin .9s linear infinite; }
.stage.done { color: var(--muted); }
.stage.done .si { background: var(--y); border-color: var(--y); color: #000; }
.stage.done .si svg { opacity: 1; }
.tip { padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; gap: 12px; min-height: 76px; align-items: center; }
.tip b { color: var(--y); }
.tip .tx { animation: fadeUp .5s var(--ease); }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; gap: 10px; } .studio-stage { min-height: 440px; } .studio-info { text-align: center; } .stages { align-items: stretch; text-align: left; } }

/* Oldin / keyin taqqoslagich */
.compare { position: relative; width: min(360px, 84vw); aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; user-select: none; touch-action: none; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px var(--line2); cursor: ew-resize; background: #fff; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { object-fit: contain; background: #fff; }
.compare .before { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--y); box-shadow: 0 0 20px rgba(255,214,0,.6); }
.compare .handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--y); color: #000; display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: 0 10px 30px -5px rgba(0,0,0,.6); }
.compare .tagl, .compare .tagr { position: absolute; top: 12px; padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; letter-spacing: .04em; }
.compare .tagl { left: 12px; } .compare .tagr { right: 12px; background: var(--y); color: #000; }

.result-wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
@media (max-width: 900px) { .result-wrap { grid-template-columns: 1fr; justify-items: center; } }
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

/* ---------- Fayllar ---------- */
.files { display: flex; flex-direction: column; gap: 10px; }
.file { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: .25s var(--ease); animation: pageIn .5s var(--ease) both; }
.file:hover { border-color: rgba(255,214,0,.3); transform: translateX(3px); }
.file .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 900; letter-spacing: .03em; overflow: hidden; }
.file .fi img { width: 100%; height: 100%; object-fit: cover; }
.file .fi.docx { background: rgba(80,140,255,.14); color: #7cb3ff; }
.file .fi.pdf { background: rgba(255,93,108,.14); color: #ff7b88; }
.file .fi.zip { background: rgba(255,214,0,.12); color: var(--y); }
.file .fi.image { background: #fff; }
.file .nm { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .sb { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Ishlar ro'yxati ---------- */
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); transition: border-color .3s; }
.job.running { border-color: rgba(124,179,255,.3); }
.job-top { display: flex; align-items: center; gap: 14px; }
.job .ji { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,214,0,.1); color: var(--y); flex: none; }
.job .ji svg { width: 22px; height: 22px; }
.job .jt { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .js { font-size: 13px; color: var(--dim); }
.pbar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 14px; }
.pbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--y2), var(--y)); transition: width .8s var(--ease); position: relative; overflow: hidden; }
.pbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-100%); animation: barShine 1.6s ease-in-out infinite; }
@keyframes barShine { to { transform: translateX(100%); } }
.job .files { margin-top: 14px; }
.job .note { margin-top: 12px; font-size: 13.5px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.job .note.err { color: #ffb3ba; background: rgba(255,93,108,.06); border-color: rgba(255,93,108,.2); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ei { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 28px; display: grid; place-items: center; background: var(--card2); color: var(--dim); }
.empty .ei svg { width: 38px; height: 38px; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.3s linear infinite; border-radius: 14px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- Yozish animatsiyasi (mustaqil ish) ---------- */
.writer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; min-height: 520px; }
.paper-stack { position: relative; width: min(340px, 80vw); aspect-ratio: 210/297; margin: 0 auto; }
.paper { position: absolute; inset: 0; background: #fbfaf6; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); padding: 13% 11% 10%; overflow: hidden; }
.paper.p2 { transform: rotate(-5deg) translate(-16px, 8px); opacity: .55; }
.paper.p3 { transform: rotate(4deg) translate(14px, 10px); opacity: .35; }
.paper .ttl { height: 9px; width: 46%; margin: 0 auto 16px; background: #1b1b1b; border-radius: 3px; }
.paper .ln { height: 5px; background: #cfcbc0; border-radius: 3px; margin: 0 0 9px; width: 0; }
.paper .ln.go { animation: write 1.2s steps(24) forwards; }
@keyframes write { to { width: var(--w, 100%); } }
.pen { position: absolute; width: 58px; z-index: 3; transition: top .35s var(--ease), left 1.1s linear; filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)); }
.writer .pct { font-family: var(--fd); font-weight: 800; font-size: clamp(56px, 8vw, 88px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.writer .pct small { font-size: .4em; color: var(--y); }
.big-bar { height: 12px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; margin: 22px 0 10px; }
.big-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--y2), var(--y)); border-radius: 8px; transition: width .7s var(--ease); box-shadow: 0 0 24px var(--yglow); position: relative; overflow: hidden; }
.big-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: barShine 1.6s ease-in-out infinite; transform: translateX(-100%); }
.hintline { min-height: 28px; font-weight: 700; color: var(--muted); }
.hintline span { display: inline-block; animation: fadeUp .45s var(--ease); }
@media (max-width: 900px) { .writer { grid-template-columns: 1fr; } .writer .info { text-align: center; } }

.topic-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 280px; overflow: auto; }
.topic { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; animation: pop .35s var(--spring); }
.topic b { color: var(--y); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- Avtoto'ldirish ---------- */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--solid); border: 1px solid var(--line2); border-radius: 16px; padding: 6px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.8); max-height: 300px; overflow: auto; animation: menuIn .2s var(--ease); }
.ac-list button { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: flex; flex-direction: column; }
.ac-list button:hover, .ac-list button.hl { background: var(--card2); }
.ac-list small { color: var(--dim); font-size: 12px; }

/* ---------- Mini titul ko'rinishi ---------- */
.titul-mini { background: #fbfaf6; color: #111; border-radius: 8px; aspect-ratio: 210/297; padding: 9% 8%; font-family: "Times New Roman", Times, serif; text-align: center; display: flex; flex-direction: column; font-size: 9px; line-height: 1.35; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); position: relative; overflow: hidden; border: 3px double #444; }
.titul-mini .u { font-weight: 700; font-size: 10.5px; text-transform: uppercase; }
.titul-mini .t { font-weight: 800; font-size: 15px; margin: 18% 0 4%; letter-spacing: .05em; }
.titul-mini .m { font-weight: 700; font-size: 11px; }
.titul-mini .who { margin-top: auto; text-align: right; font-size: 9.5px; }
.titul-mini .city { margin-top: 10%; font-weight: 700; }
.titul-mini .ph { color: #999; font-style: italic; }
.titul-mini .flash, .sheet .flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { background: rgba(255,214,0,.75); } 100% { background: transparent; } }

/* =========================================================
   OBYEKTIVKA — ikki tomonlama (forma | jonli ko'rinish)
   ========================================================= */
.ref-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 26px; align-items: start; }
.ref-form { min-width: 0; }
.ref-preview { position: sticky; top: calc(var(--nav-h) + 14px); height: calc(100vh - var(--nav-h) - 28px); display: flex; flex-direction: column; gap: 12px; }
.ref-preview .pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ref-preview .pv-scroll { flex: 1; overflow: auto; border-radius: 22px; background: radial-gradient(circle at 50% 0%, #22252e, #15171d); border: 1px solid var(--line); padding: 22px; scroll-behavior: smooth; }
.sheets { display: flex; flex-direction: column; align-items: center; gap: 22px; transform-origin: top center; }
.sheet { width: 794px; height: 1123px; flex: none; background: #fff; color: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-family: "Times New Roman", "Liberation Serif", Times, serif; font-size: 14.6px; line-height: 1.2; padding: 76px 57px 76px 113px; position: relative; }
.sheet .pno { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 12px; color: #999; }
.sheet .t-head { text-align: center; font-size: 18.6px; margin: 0 0 8px; padding-right: 120px; }
.sheet .t-name { text-align: center; font-size: 18.6px; margin: 0 0 26px; padding-right: 120px; min-height: 22px; }
.sheet .photo { position: absolute; top: 60px; right: 57px; width: 113px; height: 151px; border: 1px solid #000; display: grid; place-items: center; overflow: hidden; background: #f4f4f4; color: #aaa; font-size: 12px; text-align: center; }
.sheet .photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet .photo .ai { position: absolute; bottom: 4px; left: 4px; right: 4px; padding: 2px 4px; border-radius: 4px; background: rgba(255,214,0,.95); color: #000; font: 700 9px/1.2 var(--fb); }
.sheet .kv { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 14px; margin-bottom: 14px; }
.sheet .kv .full { grid-column: 1 / -1; }
.sheet .k { font-weight: 700; }
.sheet .v { min-height: 18px; white-space: pre-wrap; word-break: break-word; }
.sheet .kv .inline { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; grid-column: 1 / -1; }
.sheet .ph { color: #b9b9b9; font-style: italic; }
.sheet .sec { text-align: center; font-weight: 700; font-size: 17.3px; margin: 30px 0 22px; }
.sheet .mh { display: grid; grid-template-columns: 150px 1fr; column-gap: 12px; row-gap: 8px; }
.sheet .mh .d { font-weight: 700; }
.sheet .p2-head { text-align: center; font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.sheet .p2-sub { text-align: center; font-weight: 700; font-size: 16px; margin: 0 0 22px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 13.3px; table-layout: fixed; }
.sheet th, .sheet td { border: 1px solid #000; padding: 5px 6px; text-align: center; vertical-align: middle; word-break: break-word; }
.sheet th { font-weight: 700; }
.sheet td:first-child { font-weight: 700; }
.sheet .focus-hl { background: rgba(255,214,0,.35); box-shadow: 0 0 0 3px rgba(255,214,0,.35); border-radius: 2px; transition: background .3s; }
.sheet.p2 { margin-top: 0; }
.ref-mob-toggle { display: none; }
@media (max-width: 1100px) {
  .ref-split { grid-template-columns: minmax(0, 1fr); }
  .ref-preview { position: fixed; inset: 0; top: 0; height: auto; z-index: 90; background: rgba(7,8,11,.96); backdrop-filter: blur(10px); padding: 14px; transform: translateY(100%); transition: transform .45s var(--ease); }
  .ref-preview.open { transform: none; }
  .ref-mob-toggle { display: inline-flex; position: fixed; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 80; box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }
}
@media (min-width: 861px) and (max-width: 1100px) { .ref-mob-toggle { bottom: 24px; } }

.acc { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); margin-bottom: 14px; overflow: hidden; transition: border-color .3s; }
.acc.open { border-color: rgba(255,214,0,.25); }
.acc-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-align: left; }
.acc-h .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--card2); color: var(--muted); flex: none; transition: .3s; }
.acc.open .acc-h .num, .acc.done .acc-h .num { background: var(--y); color: #000; }
.acc-h h3 { margin: 0; font-family: var(--fd); font-weight: 600; font-size: 16px; }
.acc-h .st { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.acc-h .chev { width: 20px; height: 20px; transition: transform .35s var(--ease); color: var(--dim); flex: none; }
.acc.open .acc-h .chev { transform: rotate(180deg); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.open .acc-b { grid-template-rows: 1fr; }
.acc-b > div { overflow: hidden; }
.acc-b .inner { padding: 4px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.row-item { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 12px; animation: pop .4s var(--spring); position: relative; }
.row-item .ri-h { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 14px; color: var(--y); }
.add-btn { border: 1.5px dashed rgba(245,241,232,.22); border-radius: 16px; height: 50px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; transition: .25s; }
.add-btn:hover { border-color: var(--y); color: var(--y); background: rgba(255,214,0,.04); }
.add-btn svg { width: 18px; height: 18px; }
.save-state { font-size: 12.5px; font-weight: 700; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* =========================================================
   ADMIN ANALITIKA
   ========================================================= */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); position: relative; overflow: hidden; }
.kpi .kl { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .kl i { width: 8px; height: 8px; border-radius: 3px; }
.kpi .kv { font-family: var(--fd); font-weight: 800; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; margin: 10px 0 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .ks { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.kpi.main { background: radial-gradient(300px circle at 100% 0%, rgba(255,214,0,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border-color: rgba(255,214,0,.28); }
.kpi.neg .kv { color: var(--err); }
.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-card { padding: 22px 22px 14px; }
.chart { width: 100%; height: 280px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .gl { stroke: rgba(245,241,232,.07); stroke-width: 1; }
.chart .ax { fill: rgba(245,241,232,.4); font-size: 11px; font-family: var(--fb); font-weight: 600; }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease) forwards; }
.chart .ar { opacity: 0; animation: fadeIn 1s .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .hover-line { stroke: rgba(245,241,232,.3); stroke-dasharray: 3 4; }
.chart-tip { position: absolute; pointer-events: none; background: rgba(17,19,25,.96); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; min-width: 150px; box-shadow: 0 16px 36px -12px rgba(0,0,0,.8); transform: translate(-50%, -110%); transition: opacity .15s; z-index: 5; }
.chart-tip div { display: flex; justify-content: space-between; gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.mbar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 6px; min-width: 80px; }
.mbar i { display: block; height: 100%; border-radius: 4px; background: var(--y); transform-origin: left; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.pos { color: var(--ok); } .neg { color: var(--err); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--y), rgba(255,214,0,.35)); transform-origin: bottom; animation: growY 1s var(--ease) both; min-height: 3px; }
.bars .b span { font-size: 11.5px; font-weight: 700; color: var(--dim); text-align: center; line-height: 1.2; }
.bars .b b { font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes growY { from { transform: scaleY(0); } }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats > div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.mini-stats b { display: block; font-family: var(--fd); font-size: 22px; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 12.5px; color: var(--dim); font-weight: 600; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kpis { gap: 10px; } .kpi { padding: 16px; } }

/* Konfetti */
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 160; pointer-events: none; animation: fall linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .hide-sm { display: none; } .file .btn-sm { padding: 0 11px; } }
