/* Reels Uniquifier: Nuvi landing uslubi (to'q binafsha shisha), Geist, Phosphor ikonkalar */
:root {
  --bg: #07060b; --frame: #0a0811; --text: #f5f3fb; --muted: #a8a1bd; --dim: #9c95b6;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --acc: #8b5cf6; --acc-2: #a78bfa; --acc-3: #c4b5fd; --acc-deep: #6d28d9;
  --ok: #4ade80; --warn: #fbbf24; --err: #f87171;
  --r: 20px; --ease: cubic-bezier(.16,1,.3,1); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 0% 100%, rgba(124,58,237,.38), transparent 70%), radial-gradient(45% 55% at 100% 100%, rgba(124,58,237,.3), transparent 70%), radial-gradient(60% 30% at 50% 0%, rgba(139,92,246,.14), transparent 70%); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 10px; }
.ph, .ph-fill { line-height: 1; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + var(--safe-b)); }

/* sarlavha */
.top { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; }
.mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(140deg, var(--acc-2), var(--acc-deep)); box-shadow: 0 10px 28px -10px rgba(124,58,237,.9); flex: none; }
.top h1 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.top p { font-size: 14px; color: var(--muted); }

/* segment (tablar) */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-bottom: 16px; }
.seg .ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)); border: 1px solid var(--line-2); transition: transform .35s var(--ease); }
.seg[data-i="1"] .ind { transform: translateX(100%); }
.seg button .ph { font-size: 18px; }
.seg button { position: relative; z-index: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.seg button[aria-selected="true"] { color: var(--text); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(139,92,246,.3); color: #fff; }

/* shisha karta */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.6); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.card { padding: 18px; display: grid; gap: 16px; }

/* tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: transform .2s var(--ease), background .2s, opacity .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #9b6cff, #7136f0); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 28px -10px rgba(124,58,237,.85); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: rgba(167,139,250,.5); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.icon-btn.spin .ph { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* yuklash zonasi */
.drop { position: relative; border: 1.5px dashed rgba(167,139,250,.45); border-radius: 18px; padding: 28px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; cursor: pointer; background: radial-gradient(70% 90% at 50% 0%, rgba(139,92,246,.14), transparent 70%); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.drop:hover, .drop.over { border-color: var(--acc-2); background: radial-gradient(70% 90% at 50% 0%, rgba(139,92,246,.26), transparent 70%); }
.drop:active { transform: scale(.99); }
.drop .big { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: var(--acc-3); background: rgba(139,92,246,.16); }
.drop b { font-size: 16px; font-weight: 600; }
.drop span { font-size: 14px; color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.file video { width: 56px; height: 72px; border-radius: 10px; object-fit: cover; background: #000; flex: none; }
.file .meta { min-width: 0; flex: 1; }
.file .name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .size { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* forma */
label.lbl { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
textarea { width: 100%; min-height: 104px; resize: vertical; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; padding: 14px 16px; }
textarea:focus { outline: none; border-color: var(--acc-2); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
::placeholder { color: var(--dim); opacity: 1; }
.cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.chip:hover { border-color: rgba(167,139,250,.5); }
.chip[aria-pressed="true"] { background: rgba(139,92,246,.22); border-color: var(--acc-2); color: #fff; }
.count { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fact { padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 2px; justify-items: start; }
.fact .ph { font-size: 18px; color: var(--acc-3); }
.fact b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12px; color: var(--muted); }

/* jarayon */
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 12px; align-items: center; color: var(--dim); }
.step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); flex: none; }
.step.on { color: var(--text); } .step.on .dot { background: rgba(139,92,246,.25); border-color: var(--acc-2); }
.step.done { color: var(--muted); } .step.done .dot { background: linear-gradient(140deg, #4ade80, #16a34a); border-color: transparent; color: #fff; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .4s var(--ease); }
.pct { font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.done-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; color: #fff; background: linear-gradient(140deg, #4ade80, #16a34a); box-shadow: 0 16px 40px -14px rgba(34,197,94,.7); }
.center { display: grid; justify-items: center; text-align: center; gap: 10px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.muted { color: var(--muted); font-size: 15px; text-wrap: pretty; }

/* natijalar */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px; display: grid; gap: 2px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: 14px; margin-bottom: 14px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25); color: #fde68a; }
.banner .ph { font-size: 20px; flex: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.list { display: grid; gap: 10px; }
.item { padding: 14px; display: grid; gap: 10px; }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vnum { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.vnum i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; background: rgba(139,92,246,.2); color: var(--acc-3); font-variant-numeric: tabular-nums; }
.vnum small { display: block; font-size: 12px; color: var(--dim); font-weight: 400; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); white-space: nowrap; }
.pill.ok { color: #86efac; background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.25); }
.pill.warn { color: #fde68a; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); }
.pill.err { color: #fca5a5; background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.25); }
.pill.violet { color: var(--acc-3); background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.3); }
.metrics { display: flex; gap: 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.metrics span { display: inline-flex; align-items: center; gap: 6px; } .metrics .ph { color: var(--acc-3); font-size: 16px; }
.metrics b { color: var(--text); font-weight: 600; }
.errtxt { font-size: 13px; color: #fca5a5; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; color: var(--acc-3); }
.skel { border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: sh 1.4s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { padding: 36px 18px; }

/* toast */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + var(--safe-b)); z-index: 50; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; font-size: 15px; background: rgba(20,16,34,.92); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px #000; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s; }
.toast.show { transform: none; opacity: 1; }
.toast .ph-fill { font-size: 20px; flex: none; } .toast.err .ph-fill { color: var(--err); } .toast.ok .ph-fill { color: var(--ok); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .glass { backdrop-filter: none; background: #14102a; } }
.toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.toolbar .chip { flex: none; padding: 0 12px; }

.count-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.stepper output { min-width: 44px; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper .icon-btn { width: 44px; height: 44px; border-radius: 14px; }
.stepper .icon-btn[disabled] { opacity: .35; pointer-events: none; }
