:root {
  --cur-seek: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 9 L16 30' stroke='%230b0d12' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M16 9 L16 30' stroke='%23ff4d8d' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='7' r='5' fill='%23ff4d8d' stroke='%230b0d12' stroke-width='2'/%3E%3C/svg%3E") 16 16, col-resize;
  --cur-col: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M1 16 L7 10 L7 14 L13 14 L13 18 L7 18 L7 22 Z M31 16 L25 10 L25 14 L19 14 L19 18 L25 18 L25 22 Z' fill='%23ffd60a' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='14.5' y='4' width='3' height='24' rx='1.5' fill='%23ffffff' stroke='%230b0d12' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, col-resize;
  --cur-seg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M1 16 L7 10 L7 14 L9 14 L9 18 L7 18 L7 22 Z M31 16 L25 10 L25 14 L23 14 L23 18 L25 18 L25 22 Z' fill='%23ffd60a' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='9.5' y='10' width='13' height='12' rx='3' fill='%23ffd60a' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M13.5 13.5 L13.5 18.5 M16 13.5 L16 18.5 M18.5 13.5 L18.5 18.5' stroke='%230b0d12' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, move;
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 3 L5 25 L10.5 20 L14.5 28.5 L18.5 26.7 L14.6 18.4 L22 18.4 Z' fill='%23ffd60a' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3, default;
  --cur-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 3 L5 25 L10.5 20 L14.5 28.5 L18.5 26.7 L14.6 18.4 L22 18.4 Z' fill='%23ffffff' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='5' cy='3' r='3.2' fill='%23ffd60a' stroke='%230b0d12' stroke-width='1.5'/%3E%3C/svg%3E") 5 3, pointer;
  --cur-move: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 2 L21 8 L18 8 L18 14 L24 14 L24 11 L30 16 L24 21 L24 18 L18 18 L18 24 L21 24 L16 30 L11 24 L14 24 L14 18 L8 18 L8 21 L2 16 L8 11 L8 14 L14 14 L14 8 L11 8 Z' fill='%23ffd60a' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, move;
  --cur-ew: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M2 16 L9 9 L9 13 L23 13 L23 9 L30 16 L23 23 L23 19 L9 19 L9 23 Z' fill='%23ffd60a' stroke='%230b0d12' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, ew-resize;
  --cur-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M11 4 L21 4 M11 28 L21 28 M16 4 L16 28' stroke='%230b0d12' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M11 4 L21 4 M11 28 L21 28 M16 4 L16 28' stroke='%23ffd60a' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") 16 16, text;
}
@font-face { font-family: 'Brunson'; src: url('../fonts/brunson.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Laburger'; src: url('../fonts/laburger.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0041-005A, U+0061-007A; }
:root {
  --bg: #0b0d12;
  --bg2: #12151d;
  --card: #171b25;
  --line: #262c3a;
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #ffd60a;
  --pink: #ff4d8d;
  --cyan: #3ddcff;
  --green: #7cff6b;
  --r: 14px;
  --font: 'Jost', 'Manrope', system-ui, sans-serif;
  --head: 'Unbounded', 'Jost', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: var(--cur-hand); text-decoration: none; font-weight: 700;
  transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: #3a4256; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: #111; border-color: var(--accent); }
.btn.pink { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.ghost { background: transparent; }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #222838; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- Landing ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -.5px; text-decoration: none; }
.logo b { color: var(--accent); }
.logo img { display: block; height: 28px; width: auto; }
@media (max-width: 600px) { .logo img { height: 22px; } }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a.l { text-decoration: none; color: var(--muted); font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 70px; }
.hero h1 { font-family: var(--head); font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 14px 0 18px; letter-spacing: -1px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.phone {
  width: min(320px, 80vw); aspect-ratio: 9/16; margin: 0 auto; border-radius: 34px; overflow: hidden;
  border: 8px solid #1f2430; box-shadow: 0 30px 80px rgba(255, 214, 10, .12), 0 0 0 1px #2b3242;
  background: #000; position: relative;
}
.phone canvas { width: 100%; height: 100%; display: block; }
.phone .badge { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
section { padding: 60px 0; }
section h2 { font-family: var(--head); font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -.5px; }
section .sub { color: var(--muted); margin: 0 0 30px; font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin: 10px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #111; font-weight: 800; }
.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.style-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.style-tile canvas { width: 100%; aspect-ratio: 9/12; display: block; background: linear-gradient(160deg, #2b2f45, #11131a); }
.style-tile div { padding: 10px 12px; font-weight: 700; font-size: 14px; }
.vs { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; }
.vs th, .vs td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.vs th { color: var(--muted); font-weight: 700; font-size: 14px; }
.vs td.y { color: var(--green); font-weight: 800; }
.vs td.n { color: #6b7488; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.price .amt { font-family: var(--head); font-size: 30px; margin: 8px 0 2px; }
.price ul { padding-left: 18px; color: var(--muted); line-height: 1.9; flex: 1; }
.trial { margin-top: 22px; padding: 18px 22px; border-radius: var(--r); background: linear-gradient(90deg, rgba(255,214,10,.14), rgba(255,77,141,.12)); border: 1px solid #3a3420; font-weight: 700; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: var(--cur-hand); font-weight: 700; }
.faq p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
footer { padding: 30px 0 50px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .grid3, .prices { grid-template-columns: 1fr; }
  .nav-links a.l { display: none; }
  .vs th, .vs td { padding: 10px; font-size: 13px; }
}

/* ---------- Muharrir ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100dvh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); gap: 10px; }
.topbar .right { display: flex; gap: 8px; align-items: center; }
.app { grid-template-rows: auto minmax(0, 1fr); }
.stage { display: flex; flex-direction: column; min-height: 0; padding: 16px; gap: 12px; }
.viewer { flex: 1; min-height: 0; display: grid; place-items: center; background: #07080b; border-radius: var(--r); border: 1px solid var(--line); position: relative; overflow: hidden; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.drop { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; cursor: var(--cur-hand); }
.drop.over { background: rgba(255, 214, 10, .07); outline: 2px dashed var(--accent); outline-offset: -12px; }
.drop .big { font-family: var(--head); font-size: 22px; margin: 10px 0 6px; }
.controls { display: flex; align-items: center; gap: 12px; }
.controls .time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 110px; }
.timeline { flex: 1; position: relative; height: 48px; touch-action: none; user-select: none; background: var(--card); border-radius: 10px; cursor: var(--cur-hand); overflow: hidden; border: 1px solid var(--line); }
.timeline .seg { position: absolute; top: 6px; height: 36px; background: rgba(255, 214, 10, .35); border-radius: 4px; }
.timeline .seg.on { background: var(--accent); }
.timeline .head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--pink); pointer-events: none; }
.timeline .head::before { content: ''; position: absolute; top: -1px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--card); }
.timeline { overflow: visible; }
.timeline.drag { cursor: var(--cur-ew); }
.timeline .tip { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); background: #000; color: #fff; font: 700 12px var(--font); padding: 3px 7px; border-radius: 6px; pointer-events: none; white-space: nowrap; z-index: 3; }
.timeline .seg { pointer-events: auto; cursor: var(--cur-ew); overflow: hidden; }
.timeline.editing, .timeline.editing .seg { cursor: var(--cur-ew); }
.tlwrap { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; padding-top: 4px; }
.tlwrap .timeline { width: 100%; min-width: 100%; }
.timeline .tip { bottom: auto; top: 2px; transform: translate(-50%, -110%); }

.timeline .seg .w { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 4px; font: 700 11px var(--font); color: #111; white-space: nowrap; overflow: hidden; pointer-events: none; box-sizing: border-box; }
.timeline .seg:not(.on) .w { color: #fff; }
.timeline .seg .w.all { left: 6px; right: 6px; }
.timeline .seg .wb { position: absolute; top: 3px; bottom: 3px; width: 10px; margin-left: -5px; cursor: var(--cur-ew); z-index: 1; }
.timeline .seg .wb::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: rgba(0, 0, 0, .45); }
.timeline .seg:not(.on) .wb::after { background: rgba(255, 255, 255, .55); }
.timeline .seg .grip { position: absolute; top: 0; bottom: 0; width: 8px; cursor: var(--cur-ew); z-index: 2; background: rgba(255, 255, 255, .0); }
.timeline .seg .grip::after { content: ''; position: absolute; top: 25%; bottom: 25%; width: 3px; border-radius: 2px; background: #fff; opacity: .85; }
.timeline .seg .grip.l { left: 0; } .timeline .seg .grip.l::after { left: 2px; }
.timeline .seg .grip.r { right: 0; } .timeline .seg .grip.r::after { right: 2px; }
.timeline .seg .grip:hover::after { opacity: 1; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.tlzoom { display: flex; gap: 4px; }
.tlzoom button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; cursor: var(--cur-hand); }
.tlhint { margin: 8px 0 -4px; font-size: 12px; color: var(--muted); }
.play { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--accent); color: #111; font-size: 18px; cursor: var(--cur-hand); flex: none; }
.panel { border-left: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 13px 6px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; cursor: var(--cur-hand); font-size: 14px; }
.tabs button.on { color: var(--text); border-color: var(--accent); }
.tab { display: none; flex: 1; overflow: auto; padding: 16px; }
.tab.on { display: block; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field select, .field input[type=text], .field textarea, .field input[type=number], .field input[type=tel], .field input[type=password], .field input:not([type]) {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}
.field input[type=range] { width: 100%; accent-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.seglist { display: flex; flex-direction: column; gap: 8px; }
.segitem { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.segitem.on { border-color: var(--accent); }
.segitem .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.segitem .meta button { background: none; border: none; color: var(--muted); cursor: var(--cur-hand); font-size: 14px; padding: 2px 6px; }
.segitem .meta button:hover { color: var(--pink); }
.segitem textarea { width: 100%; resize: none; border: none; background: transparent; font-weight: 600; font-size: 15px; outline: none; padding: 0; min-height: 22px; }
.stylepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stylepick button { padding: 0; border-radius: 10px; border: 2px solid var(--line); background: #1b1f2b; cursor: var(--cur-hand); overflow: hidden; color: var(--text); }
.stylepick button.on { border-color: var(--accent); }
.stylepick canvas { width: 100%; aspect-ratio: 1; display: block; }
.stylepick .spgroup { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--muted, #9aa3b8); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 0; }
.animpick .animrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.animpick .animrow span { flex: 0 0 44%; font-size: 13px; font-weight: 700; }
.animpick select { flex: 1; min-width: 0; }
.stylepick span { display: block; padding: 5px 4px 7px; font-size: 12px; font-weight: 700; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors { align-items: center; }
.colors button { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); cursor: var(--cur-hand); transition: transform .12s; }
.colors button.on { transform: scale(1.12); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.colors button.on::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 16px var(--font); color: #111; }
.colors button.on[data-c="#111111"]::after { color: #fff; }
.colors input[type=color].on { border-radius: 8px; box-shadow: 0 0 0 2px var(--accent); }
.cname { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 800; margin-left: 4px; }
.cname i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.35); }
.colors input[type=color] { width: 34px; height: 34px; border: none; background: none; padding: 0; cursor: var(--cur-hand); }
.switch { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: var(--cur-hand); }
.switch input { accent-color: var(--accent); width: 18px; height: 18px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.box h4 { margin: 0 0 8px; }
.progress { height: 8px; border-radius: 99px; background: #232838; overflow: hidden; margin: 10px 0 6px; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .2s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222838; border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 50; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { border-color: var(--pink); }
.toast.warn { border-color: var(--accent); }
.drop .hint { margin-top: 12px; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.3); display: inline-block; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal .card { width: min(440px, 100%); }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; }
  .stage { padding: 10px; }
  .viewer { height: 58vh; flex: none; }
  .panel { border-left: none; border-top: 1px solid var(--line); }
  .tab { max-height: none; }
  .topbar .hide-m { display: none; }
  .topbar .logo { font-size: 16px; }
  .topbar .btn.sm { padding: 7px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.review { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 214, 10, .1); border: 1px solid rgba(255, 214, 10, .35); font-size: 13px; font-weight: 700; }
.segitem.flag { border-left: 4px solid var(--accent); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.flags button { border: none; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; background: rgba(255, 214, 10, .18); color: var(--accent); cursor: var(--cur-hand); }
.flags .ok { background: transparent; color: var(--muted); }
.timeline .seg.flag::after { content: ''; position: absolute; top: -3px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* Shrift guruhlari */
.fontcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg2, #12151d); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 10px; }
.fontcats button { border: 0; background: transparent; color: inherit; padding: 8px 4px; border-radius: 9px; font: 700 13px var(--font); cursor: var(--cur-hand); opacity: .7; white-space: nowrap; }
.fontcats button.on { background: var(--accent); color: #111; opacity: 1; }
.fontgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fontgrid button { border: 1px solid var(--line); background: #151925; color: #fff; border-radius: 12px; padding: 10px 8px 8px; cursor: var(--cur-hand); text-align: center; }
.fontgrid button .s { display: block; font-size: 26px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontgrid button .n { display: block; font: 600 11px var(--font); opacity: .6; margin-top: 4px; }
.fontgrid button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* Ekrandagi subtitrni tahrirlash: faqat matn maydoni */
.viewer canvas.capshover { cursor: var(--cur-text); }
.viewer canvas.stkhover, .viewer canvas.stkdrag { cursor: var(--cur-move); }
.capedit { position: absolute; z-index: 5; transform: translate(-50%, -50%); }
.capedit input { min-width: 120px; box-sizing: content-box; background: rgba(8, 10, 15, .88); color: #fff; border: 2px solid var(--accent); border-radius: 10px; padding: 8px 14px; font-size: 24px; font-weight: 800; text-align: center; outline: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.capedit.hidden { display: none; }
/* So'z soni tanlash */
.wordpick { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2fr; gap: 6px; }
.wordpick button { border: 1px solid var(--line); background: #151925; color: var(--text); border-radius: 10px; padding: 10px 4px; font: 800 15px var(--font); cursor: var(--cur-hand); white-space: nowrap; }
.wordpick button.on { background: var(--accent); border-color: var(--accent); color: #111; }
.hint-s { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Render jarayoni */
.expwarn { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 214, 10, .08); border: 1px solid rgba(255, 214, 10, .3); font-size: 13px; font-weight: 700; }
.timeline .rendered { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(46, 204, 113, .45); border-right: 2px solid #2ecc71; border-radius: 10px 0 0 10px; pointer-events: none; z-index: 1; }
.timeline .head { z-index: 2; }

/* Hisob: ro'yxatdan o'tish / kirish */
.acc-btn { background: var(--card); border: 1px solid var(--accent); color: var(--accent); }
.card.acc { position: relative; }
.acc-x { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: var(--cur-hand); }
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 4px 28px 14px 0; }
.acc-tabs button { border: 0; background: transparent; color: var(--text); padding: 9px 6px; border-radius: 9px; font: 700 14px var(--font); cursor: var(--cur-hand); opacity: .7; white-space: nowrap; }
.acc-tabs button.on { background: var(--accent); color: #111; opacity: 1; }
.card.acc h3 { margin: 0 0 4px; }
.card.acc input, .card.acc select { width: 100%; box-sizing: border-box; }
.acc-err { margin: 0 0 10px; color: var(--pink); font-weight: 700; font-size: 14px; }
.acc-me { position: relative; }
.acc-me > button { display: inline-flex; align-items: center; gap: 8px; }
.acc-me .ava { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.acc-me .nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; z-index: 30; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.acc-info { display: grid; gap: 3px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.acc-info b { color: var(--text); font-size: 15px; }
.acc-info .tr { color: var(--green); font-weight: 700; }
.acc-menu .out, .acc-menu .plans { width: 100%; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 9px; padding: 8px; font: 700 13px var(--font); cursor: var(--cur-hand); }
.acc-menu .plans { margin-bottom: 6px; color: var(--accent); border-color: rgba(255,214,10,.4); }
.acc-code { margin: 12px 0 0; text-align: center; font-size: 13px; }
.acc-code a { color: var(--muted); }

/* Instagram chegarasi tugmasi */
.safebtn { position: absolute; top: 10px; right: 10px; z-index: 4; border: 1px solid var(--line); background: rgba(10,12,18,.8); color: var(--text); border-radius: 999px; padding: 7px 12px; font: 700 12px var(--font); cursor: var(--cur-hand); white-space: nowrap; }
.safebtn.on { border-color: var(--accent); color: var(--accent); }

/* rasmlar */
.stepimg { display: block; width: 72px; height: 72px; margin: -2px 0 14px; }
.wideimg { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.banner { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); padding: 0; background: #07080c; }
.banner img { display: block; width: 100%; height: auto; }
.banner .btext { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); max-width: 52%; }
.banner .btext h2 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 40px); }
.banner .btext p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; font-size: 17px; }
.planimg { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; margin-bottom: 12px; }
.trial img { width: 34px; height: auto; vertical-align: middle; margin-right: 6px; }
.faqhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faqhead img { width: 72px; height: auto; }
.dropimg { width: 96px; height: auto; display: block; margin: 0 auto 6px; }
@media (max-width: 760px) {
  .banner { display: flex; flex-direction: column-reverse; }
  .banner img { width: 160%; max-width: none; margin-left: -60%; }
  .banner .btext { position: static; transform: none; max-width: none; padding: 22px; }
  .faqhead img { width: 56px; }
}

/* stikerlar */
.stkcats { grid-template-columns: repeat(2, 1fr); }
.stkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 18px; }
.stkgrid button { padding: 0; border-radius: 10px; border: 2px solid var(--line); background: #1b1f2b; cursor: var(--cur-hand); overflow: hidden; color: var(--text); }
.stkgrid button:hover { border-color: var(--accent); }
.stkgrid canvas { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.stkgrid span { display: block; padding: 5px 4px 7px; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.stklist { display: flex; flex-direction: column; gap: 8px; }
.stkrow { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #151925; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.stkrow.on { border-color: var(--accent); }
.stkrow .stkhead { display: flex; align-items: center; gap: 8px; }
.stkrow .stkhead b { flex: 1; }
.stkrow .stkhead button { background: #232838; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 4px 8px; cursor: var(--cur-hand); font-size: 12px; }
.stkrow .stkhead .del:hover { background: #4a1d24; }
.stkrow label { display: block; color: var(--muted); font-size: 12px; }
.stkrow label input:not([type=file]) { display: block; width: 100%; margin-top: 3px; box-sizing: border-box; }

.stkrow input[type=text] { background: #0f121a; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 9px; font: 500 13px var(--font); }
.stkrow input[type=color] { width: 100%; height: 30px; background: none; border: 1px solid var(--line); border-radius: 8px; }
.tlzoom button:disabled { opacity: .35; cursor: var(--cur); }
.tlzoom.undo button { font-size: 16px; }
.imgpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.imgpick > span { flex-basis: 100%; }
.stkrow .filebtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; background: var(--accent); color: #111; font: 800 12.5px var(--font); cursor: var(--cur-hand); }
.stkrow .filebtn:hover { filter: brightness(1.08); }
.imgpick em { font-style: normal; }
/* timeline aylantirish chizig'i */
/* panel va ro'yxatlardagi aylantirish chiziqlari ham */
.panel, .seglist, .tab { scrollbar-width: thin; scrollbar-color: #39415a transparent; }
.panel ::-webkit-scrollbar, .panel::-webkit-scrollbar { width: 6px; height: 6px; }
.panel ::-webkit-scrollbar-thumb, .panel::-webkit-scrollbar-thumb { background: #39415a; border-radius: 6px; }
.panel ::-webkit-scrollbar-track, .panel::-webkit-scrollbar-track { background: transparent; }
html, body { cursor: var(--cur); }
input[type=text], textarea, [contenteditable] { cursor: var(--cur-text); }
select, input[type=range], input[type=color], input[type=checkbox], summary, label.filebtn { cursor: var(--cur-hand); }
.viewer canvas { cursor: var(--cur-hand); }
/* timeline: aylantirish chizig'i yashirin, g'ildirak bilan suriladi */
.tlwrap { scrollbar-width: none; }
.tlwrap::-webkit-scrollbar { display: none; height: 0; }
/* sayt shriftlari: sarlavhalar Unbounded Black, qolgani Jost */
button, input, select, textarea { font-family: inherit; }
.hero h1, section h2, .price .amt, .drop .big, .logo, h1, h2, h3, h4 { font-weight: 900; }
h1, h2 { font-family: var(--head); }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -1.5px; }
section h2 { letter-spacing: -1px; }
/* timeline sichqoncha belgilari: bo'sh joy = vaqtga o'tish, gap = surish, chetlar va so'z chegarasi = cho'zish/qisqartirish */
.timeline, .timeline.drag, .timeline.drag * { cursor: var(--cur-seek); }
.timeline .seg { cursor: var(--cur-seg); }
.timeline .seg .grip, .timeline .seg .wb { cursor: var(--cur-col); }
.timeline.ed-move, .timeline.ed-move * { cursor: var(--cur-seg) !important; }
.timeline.ed-l, .timeline.ed-l *, .timeline.ed-r, .timeline.ed-r *, .timeline.ed-w, .timeline.ed-w * { cursor: var(--cur-col) !important; }
/* effektlarni sudrab tashlash */
.stkgrid button[draggable=true] { cursor: var(--cur-move); }
.stkgrid button:active { transform: scale(.96); }
.viewer.fxover::after, .timeline.fxover::after { content: ''; position: absolute; inset: 6px; border: 2px dashed var(--accent); border-radius: 12px; background: rgba(255,214,10,.08); pointer-events: none; z-index: 6; }
.timeline.fxover::after { inset: 0; border-radius: 8px; }
body.fxdragging .viewer, body.fxdragging .timeline { outline: 1px dashed rgba(255,214,10,.45); outline-offset: 2px; }
/* effektlar chizig'i (timeline ostida, davomiyligiga mos) */
.timeline { transition: height .15s; }
.timeline .fx { position: absolute; height: 6px; border-radius: 3px; background: rgba(255, 77, 141, .55); cursor: var(--cur-seg); z-index: 1; min-width: 4px; }
.timeline .fx:hover { background: rgba(255, 77, 141, .85); }
.timeline .fx.on { background: var(--pink); box-shadow: 0 0 0 1.5px #fff; }
.timeline .fx .fxg { position: absolute; top: -3px; bottom: -3px; width: 8px; cursor: var(--cur-col); }
.timeline .fx .fxg.l { left: -4px; } .timeline .fx .fxg.r { right: -4px; }
/* Oldin va keyin: o'ng telefon ustida jonli subtitr */
.okwrap { position: relative; }
.okwrap canvas { position: absolute; left: 58%; top: 2.8%; width: 28.3%; height: 94.6%; border-radius: 4% / 2%; pointer-events: none; }
.okbadge { position: absolute; bottom: 5%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; font: 700 13px var(--font); white-space: nowrap; }
.okbadge.l { left: 27.9%; background: rgba(20,22,30,.85); color: var(--muted); border: 1px solid var(--line); }
.okbadge.r { left: 72.1%; background: var(--accent); color: #111; }
@media (max-width: 600px) { .okbadge { font-size: 10px; padding: 3px 7px; bottom: 4%; } }
/* Tariflar va to'lov oynasi */
.acc.plans { max-width: 520px; max-height: 92vh; overflow-y: auto; }
.plan-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.plan-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: var(--cur-hand); background: #151821; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: rgba(255,214,10,.06); }
.plan-opt input { grid-row: span 3; accent-color: var(--accent); width: 18px; height: 18px; }
.plan-opt .pn { font-family: var(--head); font-weight: 900; font-size: 16px; }
.plan-opt .pn i { font: 700 11px var(--font); font-style: normal; background: var(--accent); color: #111; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.plan-opt .pp { font-weight: 800; color: var(--accent); white-space: nowrap; }
.plan-opt .pm, .plan-opt .px { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.pay-steps { border-top: 1px solid var(--line); padding-top: 14px; }
.pay-steps ol { margin: 8px 0 12px 18px; padding: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pay-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; background: #151821; border: 1px dashed var(--accent); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.pay-card span { font-size: 12px; color: var(--muted); grid-column: 1; }
.pay-card b { font-size: 19px; letter-spacing: 1px; font-variant-numeric: tabular-nums; grid-column: 1; }
.pay-card em { font-style: normal; font-size: 13px; color: var(--muted); grid-column: 1; }
.pay-card .btn { grid-column: 2; grid-row: 1 / span 3; }

/* Bosh sahifa: videoni shu yerdan yuklash */
.updrop { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px 20px; border: 2px dashed rgba(255, 214, 10, .45); border-radius: var(--r); background: rgba(255, 214, 10, .04); cursor: pointer; transition: .2s; }
.updrop:hover, .updrop.over { border-color: var(--accent); background: rgba(255, 214, 10, .1); }
.updrop.busy { opacity: .6; pointer-events: none; }
.updrop .upic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #111; font-size: 24px; font-weight: 800; }
.updrop b { font-size: 19px; }
.updrop .muted { font-size: 14px; }
.updrop .btn { margin-top: 6px; }

/* Bosh sahifa: shriftlar reklamasi */
.fonts-ad h2 { margin-top: 10px; }
.fshow { position: relative; margin: 6px 0 22px; padding: 34px 20px 26px; border-radius: var(--r); border: 1px solid var(--line); text-align: center; overflow: hidden;
  background: radial-gradient(60% 90% at 50% -20%, rgba(255, 214, 10, .22), transparent 70%), radial-gradient(50% 80% at 50% 120%, rgba(255, 77, 141, .2), transparent 70%), #07080c; }
.fbig { font-size: clamp(44px, 9vw, 108px); line-height: 1.15; color: #fff; white-space: nowrap; }
.fbig.in { animation: fin .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes fin { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.fmeta { display: flex; gap: 8px; justify-content: center; margin-top: 10px; font-size: 13px; }
.fmeta span { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.fmeta span:first-child { background: var(--accent); color: #111; font-weight: 700; }
.frow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.flab { flex: 0 0 120px; font-size: 14px; font-weight: 700; }
.flab i { font-style: normal; color: var(--accent); margin-left: 4px; }
.fmask { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ftrack { display: flex; gap: 10px; width: max-content; animation: fscroll 60s linear infinite; }
.frow.rev .ftrack { animation-direction: reverse; }
.fmask:hover .ftrack { animation-play-state: paused; }
@keyframes fscroll { to { transform: translateX(-50%); } }
.fchip { flex: none; min-width: 120px; padding: 12px 16px 9px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.fchip b { display: block; font-size: 30px; line-height: 1.2; color: #fff; white-space: nowrap; }
.fchip small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.fcta { margin-top: 18px; text-align: center; }
@media (max-width: 640px) { .frow { flex-direction: column; align-items: stretch; gap: 6px; } .flab { flex: none; } .fchip b { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .ftrack { animation: none; } }
.hero-up { margin-top: 0; min-height: 420px; justify-content: center; padding: 40px 28px; }
.hero-up .upic { width: 72px; height: 72px; font-size: 32px; }
.hero-up b { font-size: 22px; }
@media (max-width: 860px) { .hero-up { min-height: 260px; } }

/* Ochiladigan ro'yxatlar: brauzerning ko'k belgisi o'rniga sariq */
select option { background: var(--card); color: var(--text); }
select option:checked, select option:hover { background: var(--accent); color: #111; }
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  :where(select) { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
  select::picker-icon { color: var(--accent); transition: rotate .2s; }
  select:open::picker-icon { rotate: 180deg; }
  ::picker(select) { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin-top: 4px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
  select option { border-radius: 8px; padding: 9px 12px; cursor: var(--cur-hand, pointer); }
  select option::checkmark { display: none; }
  select option:hover, select option:focus-visible { background: rgba(255, 214, 10, .14); color: var(--text); outline: none; }
  select option:checked { background: var(--accent); color: #111; font-weight: 600; }
}
:focus-visible { outline-color: var(--accent); }

/* ===== Bosh sahifa: yorug' palitra (sariq + krem + qora) ===== */
body.lite {
  --bg: #f5f3ec; --bg2: #ece7d8; --card: #ffffff; --line: #e3ddcc; --text: #141414; --muted: #5f5b52;
  --accent: #ffe234; --ink: #141414; --sand: #eadfc2; --green: #1f8a3a;
  color-scheme: light; overflow-x: hidden;
}
.lite .nav, .lite .hero { background: var(--accent); box-shadow: 0 0 0 100vmax var(--accent); clip-path: inset(0 -100vmax); }
.lite .hero { padding-bottom: 80px; }
.lite .hero h1 .hl { color: var(--ink); background: #fff; border-radius: 14px; padding: 0 .14em; box-decoration-break: clone; }
.lite .hero p.lead, .lite .hero .muted { color: #3b3829; }
.lite .nav-links a.l { color: var(--ink); }
.lite .btn { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.lite .btn:hover { border-color: var(--ink); background: rgba(0, 0, 0, .05); }
.lite .btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.lite .btn.primary:hover { background: #2b2b2b; }
.lite .tag { background: rgba(0, 0, 0, .07); color: var(--ink); }
.lite .hero .tag { background: #fff; }
.lite .acc-btn { background: #fff; border-color: var(--ink); color: var(--ink); }
.lite .num { background: var(--ink); color: var(--accent); }
.lite .card, .lite .style-tile, .lite .faq details, .lite .vs { box-shadow: 0 1px 0 rgba(0, 0, 0, .03); }
.lite .vs td.n { color: #8a8576; }
.lite .price.best { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.lite .price .tag[style] { background: var(--accent) !important; color: var(--ink) !important; }
.lite .trial { background: var(--accent); border: none; color: var(--ink); }
.lite footer { color: var(--muted); }
.lite .banner { border: none; }
.lite .banner .btext p { color: #c9c4b6; }
.lite .banner .btext h2 { color: #fff; }
.lite .banner .btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
/* hero: video yuklash maydoni oq karta */
.lite .updrop { background: #fff; border: 2px dashed var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.lite .updrop:hover, .lite .updrop.over { background: #fffbe0; border-style: solid; }
.lite .updrop .upic { background: var(--ink); color: var(--accent); }
.lite .updrop .muted { color: var(--muted); }
/* shriftlar bo'limi: qum rangli panel */
.lite .fshow { background: var(--sand); border: none; }
.lite .fbig { color: var(--ink); }
.lite .fmeta span { background: rgba(255, 255, 255, .7); }
.lite .fmeta span:first-child { background: var(--ink); color: var(--accent); }
.lite .flab i { color: var(--ink); background: var(--accent); border-radius: 99px; padding: 1px 7px; }
.lite .fchip b { color: var(--ink); }
.lite .fmask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
/* oynalar (ro'yxatdan o'tish, tariflar) */
.lite .modal { background: rgba(20, 20, 20, .45); }
.lite .plan-opt, .lite .pay-card { background: #faf8f2; }
.lite .plan-opt:has(input:checked) { background: #fffbe0; border-color: var(--ink); }
.lite .plan-opt .pp, .lite .acc-menu .plans { color: var(--ink); }
.lite .acc-menu .plans { border-color: var(--ink); }
.lite .pay-card { border-color: var(--ink); }
.lite .acc-tabs button.on, .lite .fontcats button.on { background: var(--ink); color: var(--accent); }
.lite .acc-menu { box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.lite .toast { background: #fff; }
.lite .progress { background: var(--bg2); }
.lite ::picker(select) { box-shadow: 0 14px 40px rgba(0, 0, 0, .15); }
.lite select option:checked { background: var(--accent); color: var(--ink); }
.lite select option:hover { background: rgba(255, 226, 52, .35); }
.lite select::picker-icon { color: var(--ink); }
.price .tag { align-self: flex-start; }
@media (max-width: 600px) { .lite .updrop { box-shadow: 5px 5px 0 var(--ink); margin-right: 5px; } .lite .price.best { box-shadow: 5px 5px 0 var(--ink); } }

/* Qo'llab-quvvatlash chati */
.sup { --sup-dot: var(--accent); position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font); }
.sup-fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--accent); color: #141414; display: grid; place-items: center; cursor: var(--cur-hand, pointer); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s; --sup-dot: var(--accent); }
.sup-fab svg { color: #141414; }
.sup-fab:hover { transform: scale(1.06); }
.sup.on .sup-fab { transform: scale(.9); }
.sup-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--pink); color: #fff; font: 800 11px/20px var(--font); font-style: normal; text-align: center; padding: 0 5px; }
.sup-box { position: absolute; right: 0; bottom: 72px; width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.sup-box.hidden { display: none; }
.sup-box header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--accent); color: #141414; }
.sup-box header b { display: block; font-size: 16px; }
.sup-box header span { font-size: 12px; opacity: .75; }
.sup-x { border: none; background: rgba(0, 0, 0, .08); color: #141414; width: 30px; height: 30px; border-radius: 50%; cursor: var(--cur-hand, pointer); }
.sup-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sup-m { max-width: 85%; align-self: flex-start; }
.sup-m p { margin: 0; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--bg2, #12151d); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.sup-m small { display: block; margin: 3px 6px 0; font-size: 10.5px; color: var(--muted); }
.sup-m.me { align-self: flex-end; text-align: right; }
.sup-m.me p { background: #141414; color: #fff; border-color: #141414; border-radius: 14px 14px 4px 14px; text-align: left; }
.sup-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.sup-quick::-webkit-scrollbar { display: none; }
.sup-quick button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 99px; padding: 6px 11px; font: 600 12.5px var(--font); cursor: var(--cur-hand, pointer); white-space: normal; text-align: left; }
.sup-quick button:hover { border-color: var(--accent); background: rgba(255, 214, 10, .12); }
.sup-form { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 8px; }
.sup-contact, .sup-form textarea { width: 100%; border: 1px solid var(--line); background: var(--bg, #0b0d12); color: var(--text); border-radius: 12px; padding: 9px 12px; font: 14px var(--font); outline: none; }
.sup-contact:focus, .sup-form textarea:focus { border-color: var(--accent); }
.sup-row { display: flex; gap: 8px; align-items: flex-end; }
.sup-form textarea { resize: none; min-height: 40px; max-height: 110px; }
.sup-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent); color: #141414; font-size: 16px; cursor: var(--cur-hand, pointer); }
.sup-send:disabled { opacity: .5; }
.lite .sup-fab { background: #141414; box-shadow: 4px 4px 0 var(--accent), 0 10px 26px rgba(0, 0, 0, .2); }
.lite .sup-fab svg { color: var(--accent); }
.lite .sup { --sup-dot: #141414; }
.lite .sup-box { box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.lite .sup-quick button:hover { background: rgba(255, 226, 52, .35); border-color: #141414; }
.app ~ .sup, body.editor .sup { right: 14px; bottom: 14px; }
@media (max-width: 600px) { .sup { right: 14px; bottom: 14px; } .sup-fab { width: 52px; height: 52px; } .sup-box { bottom: 64px; right: -2px; } }

/* Qo'lda chizilgan ikonkalar (sariq fon) */
.stepimg { width: 84px; height: 84px; border-radius: 20px; }
.planimg { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.trial img { width: 42px; border-radius: 10px; }
.faqhead img { width: 84px; border-radius: 20px; }
.dropimg { width: 110px; border-radius: 24px; margin-bottom: 10px; }
.upimg { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 12px 30px rgba(255, 214, 10, .18); }
.hero-up .upimg { width: 140px; height: 140px; }
.fhead { display: flex; align-items: center; gap: 14px; }
.fhead img { width: 72px; height: 72px; border-radius: 18px; }
@media (max-width: 600px) { .upimg, .hero-up .upimg { width: 96px; height: 96px; border-radius: 22px; } }
/* juda tor ekran (telefon): tepa panel sig'sin */
.xs-only { display: none; }
@media (max-width: 520px) {
  .xs-only { display: inline; } .hide-xs { display: none; }
  .topbar { padding: 8px 10px; gap: 6px; }
  .topbar .logo img { height: 20px; width: auto; }
  .topbar .right { gap: 5px; }
  .topbar .btn.sm { padding: 6px 9px; font-size: 12px; }
}
@media (max-width: 600px) {
  .stage > .note, .stage .tlhint { font-size: 11px; }
  .app .sup-fab, body:has(.app) .sup-fab { width: 46px; height: 46px; }
}
/* Subtitr ro'yxati: Qatorlar / Matn almashtirgichi */
.listmode { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin: 4px 0 12px; }
.listmode button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 8px; font: 700 13px var(--font); cursor: var(--cur-hand); white-space: nowrap; }
.listmode button.on { background: var(--accent); color: #111; }
.seglist.textmode { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tpara { margin: 0 0 14px; font-size: 17px; line-height: 1.85; color: var(--text); }
.tpara:last-child { margin-bottom: 0; }
.tdot { font-style: normal; color: var(--accent); opacity: .45; margin: 0 3px; font-size: 9px; vertical-align: 2px; user-select: none; }
.tseg.segitem { display: inline; background: transparent; border: 0; padding: 1px 2px; margin: 0; border-radius: 5px; outline: none; cursor: text; transition: background .15s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tseg.segitem:hover { background: rgba(255, 255, 255, .06); }
.tseg.segitem.on { background: rgba(255, 214, 10, .16); box-shadow: none; }
.tseg.segitem:focus { background: rgba(255, 214, 10, .22); box-shadow: 0 0 0 1.5px var(--accent); }
.tseg.segitem.flag { border-left: 0; }
.tseg u { text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ===== Yangi timeline: asboblar paneli + o'lchagich + subtitr + kadrlar + ovoz ===== */
.tlbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tlgroup { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tlgroup button, .tlzoomr button { width: 32px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 16px; font-weight: 800; display: grid; place-items: center; cursor: var(--cur-hand); }
.tlgroup button:hover:not(:disabled), .tlzoomr button:hover { background: rgba(255, 255, 255, .07); }
.tlgroup button:disabled { opacity: .3; cursor: var(--cur); }
.tlmid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.tlmid .time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.speed { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 6px 10px; font: 800 13px var(--font); cursor: var(--cur-hand); min-width: 48px; }
.tlzoomr { display: flex; align-items: center; gap: 2px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tlzoomr input[type=range] { width: 110px; accent-color: var(--accent); }
.tlwrap { flex: none; width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 0 0 6px; position: relative; overflow-x: auto; overflow-y: hidden; }
.tlstack { position: relative; width: 100%; min-width: 100%; display: flex; flex-direction: column; gap: 5px; }
.tlrow { position: relative; height: auto; }
.tlsticky { position: sticky; left: 0; display: block; }
.tltrack { display: block; }
.tlrow .tllab { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 700 11px var(--font); color: #fff; background: rgba(10, 12, 18, .75); padding: 2px 7px; border-radius: 6px; pointer-events: none; }
.tlstack .timeline { flex: none; width: 100%; height: 48px; border-radius: 8px; margin: 0; }
.tltrack.film { border-radius: 8px; }
.tlstack .timeline .head { opacity: 0; }
.phead { position: absolute; top: 0; bottom: -6px; width: 2px; margin-left: -1px; background: var(--pink); pointer-events: none; z-index: 4; }
.phead span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font: 800 10.5px var(--font); padding: 2px 6px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tltrack.ruler, .tltrack.film, .tltrack.wave { cursor: var(--cur-seek, pointer); }
@media (max-width: 600px) {
  .tlmid { order: -1; flex: 1 0 100%; justify-content: flex-start; }
  .tlzoomr { margin-left: auto; }
  .tlzoomr input[type=range] { width: 70px; }
}

/* qo'lda chizilgan kichik ikonkalar (mask, rang = matn rangi) */
.ic { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.25em; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; flex: none; }
.ic.flip { transform: scaleX(-1); }
.tabs .ic, [data-tab] .ic { margin-right: 5px; }
.ic-ai { --m: url(../img/i/ai.webp); }
.ic-effekt { --m: url(../img/i/effekt.webp); }
.ic-eksport { --m: url(../img/i/eksport.webp); }
.ic-matn { --m: url(../img/i/matn.webp); }
.ic-ogoh { --m: url(../img/i/ogoh.webp); }
.ic-ok { --m: url(../img/i/ok.webp); }
.ic-orqaga { --m: url(../img/i/orqaga.webp); }
.ic-rasm { --m: url(../img/i/rasm.webp); }
.ic-shrift { --m: url(../img/i/shrift.webp); }
.ic-tarjima { --m: url(../img/i/tarjima.webp); }
.ic-telefon { --m: url(../img/i/telefon.webp); }
.ic-telegram { --m: url(../img/i/telegram.webp); }
.ic-tolov { --m: url(../img/i/tolov.webp); }
.ic-uslub { --m: url(../img/i/uslub.webp); }
.ic { width: 1.3em; height: 1.3em; vertical-align: -0.3em; }
.tabs button, [data-tab] { white-space: nowrap; }
