@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Variable.woff2") format("woff2-variations"), url("/static/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  /* Persian-only subset (wght 400-800); Latin text falls back to the system UI font. */
  unicode-range: U+0020-0021, U+0028-0029, U+002C-002E, U+003A, U+00A0, U+00AB, U+00BB, U+0600-06FF, U+200C-200F, U+2022, U+2026;
}

/* ---------- tokens (PRD 26-31) ---------- */
:root {
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s20: 20px; --s24: 24px; --s32: 32px; --s40: 40px;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-hero: 20px; --r-field: 16px;
  --red: #FF574D;
  --red-press: #E8473E;
  --on-red: #FFFFFF;
  --pad: 16px;
  --tabbar-h: 64px;
  --font: "Vazirmatn", -apple-system, "SF Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-hero: 1.9375rem;   /* 31 */
  --fs-title: 1.375rem;   /* 22 */
  --fs-section: 1.125rem; /* 18 */
  --fs-body: 1rem;        /* 16 */
  --fs-secondary: 0.875rem; /* 14 */
  --fs-caption: 0.75rem;  /* 12 */
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1117;
  --surface: #121A22;
  --elevated: #18212A;
  --border: #26313C;
  --text: #F5F7FA;
  --text-2: #98A3AE;
  --text-3: #68737E;
  --red-text: #FF6A61;
  --red-soft: rgba(255, 87, 77, 0.14);
  --skeleton: #1C2630;
  --skeleton-hi: #24303B;
  --overlay: rgba(0, 0, 0, 0.6);
  --tabbar-bg: rgba(14, 20, 27, 0.86);
  --success: #30D158;
  --danger: #FF453A;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --elevated: #EEF1F4;
  --border: #DDE2E8;
  --text: #0B1117;
  --text-2: #56616C;
  --text-3: #7D8791;
  --red-text: #D93A31;
  --red-soft: rgba(255, 87, 77, 0.12);
  --skeleton: #E4E8EC;
  --skeleton-hi: #EEF1F4;
  --overlay: rgba(11, 17, 23, 0.4);
  --tabbar-bg: rgba(255, 255, 255, 0.88);
  --success: #248A3D;
  --danger: #D70015;
  --shadow: 0 10px 30px rgba(11, 17, 23, 0.12);
}
@media (prefers-contrast: more) {
  html[data-theme="dark"] { --border: #3A4855; --text-2: #C2CBD3; --text-3: #9AA5AF; }
  html[data-theme="light"] { --border: #B8C1CA; --text-2: #39424B; --text-3: #56606A; }
}
@media (min-width: 420px) { :root { --pad: 20px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.7;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  text-align: right;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; }
#view {
  min-height: 100dvh; outline: none;
  padding: calc(env(safe-area-inset-top) + 8px) calc(var(--pad) + env(safe-area-inset-right)) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--s24)) calc(var(--pad) + env(safe-area-inset-left));
}
.view-enter { animation: fadeUp .22s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- top bars ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s12); min-height: 56px; }
.brand { display: flex; align-items: center; gap: var(--s12); }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-size: 1.25rem; font-weight: 800; line-height: 1.2; display: flex; align-items: baseline; gap: 6px; }
.brand-name .latin { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; color: var(--text-3); }
.brand-sub { font-size: var(--fs-caption); color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.icon-btn {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--text); transition: background-color .15s, transform .1s;
}
.icon-btn:active { background: var(--elevated); transform: scale(.96); }
.icon-btn svg { width: 22px; height: 22px; }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-inline: -8px; }
.nav-start { display: flex; align-items: center; gap: 2px; }
.nav-title { font-size: 1.0625rem; font-weight: 700; }
.nav-end { display: flex; align-items: center; gap: 2px; }
.page-title { font-size: var(--fs-title); font-weight: 650; line-height: 1.4; margin: var(--s12) 0 var(--s16); }

/* ---------- home ---------- */
.hero { text-align: center; padding: var(--s32) 0 var(--s24); }
.hero h1 { text-wrap: balance; font-size: var(--fs-hero); font-weight: 800; line-height: 1.45; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--red); display: block; }
.hero p { text-wrap: balance; color: var(--text-2); font-size: 0.9375rem; margin-top: var(--s12); line-height: 1.8; padding-inline: var(--s8); }

.field {
  position: relative; display: flex; align-items: center; gap: 4px; height: 56px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-field);
  padding-inline: var(--s12) 6px; transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: color-mix(in srgb, var(--red) 70%, var(--border)); box-shadow: 0 0 0 3px var(--red-soft); }
.field.invalid { border-color: var(--danger); }
.field .yt { width: 24px; height: 24px; flex: none; }
.field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font-size: 1rem; direction: ltr; text-align: left; padding: 0 4px;
}
.field input:placeholder-shown { direction: rtl; text-align: right; }
.field input::placeholder { color: var(--text-3); opacity: 1; font-size: .9375rem; }
.field input::-webkit-search-cancel-button { display: none; }
.field .icon-btn { color: var(--text-2); }
.field-error { color: var(--danger); font-size: var(--fs-secondary); margin-top: var(--s8); display: flex; gap: 6px; align-items: center; }
.field-error svg { width: 16px; height: 16px; }

.btn {
  min-height: 52px; border-radius: var(--r-field); padding: 0 var(--s20);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s8);
  font-size: 1.0625rem; font-weight: 700; transition: background-color .15s, transform .1s, opacity .15s;
  user-select: none; -webkit-user-select: none;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--red); color: var(--on-red); width: 100%; }
.btn-primary:active { background: var(--red-press); transform: scale(.985); }
.btn-primary:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary.loading { opacity: 1; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: .9375rem; font-weight: 600; min-height: 48px; }
.btn-secondary:active { background: var(--elevated); transform: scale(.985); }
.btn-text { color: var(--red-text); font-weight: 600; min-height: 44px; padding: 0 var(--s8); }
.cta { margin-top: var(--s12); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); margin-top: var(--s24); }
.value {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: var(--s16) var(--s8) var(--s12); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.value svg { width: 26px; height: 26px; color: var(--text-2); }
.value b { font-size: .9375rem; font-weight: 700; line-height: 1.4; }
.value span { font-size: var(--fs-caption); color: var(--text-2); line-height: 1.6; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: var(--s32) 0 var(--s8); }
.section-head h2 { font-size: var(--fs-section); font-weight: 650; }
.see-all { display: inline-flex; align-items: center; gap: 2px; color: var(--red-text); font-size: var(--fs-secondary); font-weight: 600; min-height: 44px; padding-inline: 4px; }
.see-all svg { width: 16px; height: 16px; }

/* ---------- list rows ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 4px; min-height: 72px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s12); padding: var(--s12) 0; border-radius: var(--r-sm); }
.row-main:active { opacity: .7; }
.thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--skeleton); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur {
  position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); color: #fff;
  font-size: .6875rem; font-weight: 600; line-height: 1; padding: 4px 5px 3px; border-radius: 6px; direction: ltr;
}
.row-text { min-width: 0; flex: 1; }
.row-title { font-size: .9375rem; font-weight: 650; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-channel { font-size: .8125rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row-meta { font-size: var(--fs-caption); color: var(--text-3); margin-top: 1px; display: flex; align-items: center; gap: 6px; }
.row-meta svg { width: 13px; height: 13px; color: var(--red); }
.row .icon-btn { color: var(--text-2); }

/* ---------- empty / error ---------- */
.empty { text-align: center; padding: 72px var(--s24) var(--s32); display: flex; flex-direction: column; align-items: center; gap: var(--s12); }
.empty-ico { width: 72px; height: 72px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-2); margin-bottom: var(--s8); }
.empty-ico svg { width: 32px; height: 32px; }
.empty h2 { text-wrap: balance; font-size: var(--fs-section); font-weight: 650; line-height: 1.6; }
.empty p { text-wrap: balance; color: var(--text-2); font-size: var(--fs-secondary); max-width: 300px; }
.empty .btn { margin-top: var(--s12); width: auto; min-width: 220px; }
.empty .btn + .btn { margin-top: 0; }
.empty-ico.err { color: var(--red); background: var(--red-soft); border-color: transparent; }

/* ---------- result ---------- */
.video-hero { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--skeleton); margin-top: var(--s8); }
.video-hero img { width: 100%; height: 100%; object-fit: cover; }
.video-hero .dur { left: 10px; bottom: 10px; font-size: .75rem; padding: 5px 7px 4px; }
.video-title { font-size: 1.25rem; font-weight: 750; line-height: 1.55; margin-top: var(--s16); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.channel { display: flex; align-items: center; gap: var(--s8); margin-top: var(--s8); color: var(--text-2); font-size: var(--fs-secondary); min-width: 0; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; line-height: 1; }
.channel-name { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dot { color: var(--text-3); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); margin-top: var(--s16); }
.quick button {
  min-height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8125rem; font-weight: 600; padding: 0 6px;
  transition: background-color .15s, transform .1s;
}
.quick button:active { background: var(--elevated); transform: scale(.97); }
.quick svg { width: 18px; height: 18px; }
.quick button[aria-pressed="true"] { color: var(--red-text); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.cards { display: flex; flex-direction: column; gap: var(--s12); margin-top: var(--s16); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s16); }
.card-head { display: flex; align-items: center; gap: var(--s8); margin-bottom: var(--s8); }
.card-head svg { width: 20px; height: 20px; color: var(--text-2); }
.card-head h2 { font-size: 1rem; font-weight: 700; }
.card p { text-wrap: pretty; font-size: 1rem; line-height: 1.95; color: var(--text); }
.card.summary { position: relative; overflow: hidden; }
.card.summary::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--red); }
.card.summary .card-head svg { color: var(--red); }
.points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s12); margin-top: 4px; }
.points li { display: flex; gap: var(--s12); align-items: flex-start; line-height: 1.85; }
.badge { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: .8125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 3px; line-height: 1; }
.disclaimer { color: var(--text-3); font-size: var(--fs-caption); line-height: 1.8; margin-top: var(--s16); display: flex; gap: 6px; }
.disclaimer svg { width: 14px; height: 14px; margin-top: 4px; }
.bottom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); margin-top: var(--s24); }
.bottom-actions .btn-primary { grid-column: 1 / -1; }

/* ---------- loading ---------- */
.sk { background: linear-gradient(90deg, var(--skeleton) 25%, var(--skeleton-hi) 50%, var(--skeleton) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 14px; margin-top: 10px; }
.sk-title { height: 20px; margin-top: var(--s16); width: 88%; }
.sk-title2 { height: 20px; margin-top: 10px; width: 55%; }
.status { display: flex; align-items: center; justify-content: center; gap: var(--s12); margin: var(--s24) 0 var(--s8); color: var(--text); font-weight: 600; font-size: .9375rem; min-height: 28px; }
.status .spinner { color: var(--red); width: 18px; height: 18px; }
.stages { display: flex; justify-content: center; gap: 6px; margin-bottom: var(--s8); }
.stages i { width: 22px; height: 4px; border-radius: 4px; background: var(--border); transition: background-color .3s; }
.stages i.on { background: var(--red); }
.loading-video-title { font-size: 1.125rem; font-weight: 700; margin-top: var(--s16); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- settings ---------- */
.group-title { font-size: var(--fs-caption); color: var(--text-3); font-weight: 600; margin: var(--s24) var(--s4) var(--s8); }
.group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.cell { display: flex; align-items: center; gap: var(--s12); min-height: 52px; padding: 0 var(--s16); width: 100%; text-align: right; border-bottom: 1px solid var(--border); }
.cell:last-child { border-bottom: 0; }
.cell:active { background: var(--elevated); }
.cell svg { width: 20px; height: 20px; color: var(--text-2); }
.cell .cell-label { flex: 1; font-size: 1rem; }
.cell .chev { width: 18px; height: 18px; color: var(--text-3); }
.cell.danger, .cell.danger svg { color: var(--danger); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--elevated); border-radius: 12px; margin: var(--s12); }
.segmented button { min-height: 44px; border-radius: 9px; font-size: .9375rem; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button svg { width: 17px; height: 17px; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
html[data-theme="dark"] .segmented button[aria-checked="true"] { background: #26313C; }
.settings-foot { text-align: center; color: var(--text-3); font-size: var(--fs-caption); margin-top: var(--s32); }
.prose { color: var(--text); font-size: 1rem; line-height: 2; }
.prose h2 { font-size: var(--fs-section); font-weight: 650; margin: var(--s24) 0 var(--s8); }
.prose p, .prose ul { margin-bottom: var(--s12); color: var(--text-2); }
.prose ul { padding-inline-start: 1.2em; }
.about-hero { display: flex; flex-direction: column; align-items: center; gap: var(--s8); padding: var(--s24) 0; text-align: center; }
.about-hero img { width: 84px; height: 84px; border-radius: 22px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 6px max(env(safe-area-inset-right), 8px) calc(env(safe-area-inset-bottom) + 6px) max(env(safe-area-inset-left), 8px);
  background: var(--tabbar-bg); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
.tabbar .tab {
  flex: 1; max-width: 186px; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-3); font-size: .6875rem; font-weight: 600; line-height: 1.3; border-radius: 12px;
}
.tabbar .tab svg { width: 24px; height: 24px; }
.tabbar .tab[aria-current="page"] { color: var(--red); }
.tabbar .tab:active { background: var(--elevated); }
@media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- sheet + toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 40; animation: fade .18s ease-out both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: var(--r-hero) var(--r-hero) 0 0; border: 1px solid var(--border); border-bottom: 0;
  padding: var(--s8) var(--s16) calc(env(safe-area-inset-bottom) + var(--s16)); box-shadow: var(--shadow);
  animation: slideUp .22s cubic-bezier(.2,.8,.2,1) both;
}
.sheet-grip { width: 36px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto var(--s12); }
.sheet-title { font-size: var(--fs-secondary); color: var(--text-2); text-align: center; padding: 0 var(--s8) var(--s12); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet .cell { border-radius: 12px; border-bottom: 0; }
.sheet .sheet-cancel { margin-top: var(--s8); width: 100%; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: .875rem; font-weight: 600; padding: 10px 16px; border-radius: 14px;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.toast svg { width: 18px; height: 18px; color: var(--success); }
html[data-theme="dark"] .toast svg { color: #1E9E45; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sk { animation: none; }
  .spinner { animation: none; border-inline-end-color: currentColor; opacity: .6; }
}

/* ---------- account / coins / shop ---------- */
.coin { display: inline-block; flex: none; filter: drop-shadow(0 2px 4px rgba(183, 28, 28, .35)); }
.tab-coin { width: 24px; height: 24px; filter: grayscale(.2); }
.top-end { display: flex; align-items: center; gap: var(--s8); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; font-size: var(--fs-caption); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pill-coin { background: var(--red-soft); color: var(--red-text); border: 1px solid rgba(255, 87, 77, .25); }
.pill-login { background: var(--red); color: var(--on-red); padding: 0 14px; }
.auth { max-width: 420px; margin: 0 auto; }
.auth-hero { text-align: center; margin: var(--s16) 0 var(--s24); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth-hero h1 { font-size: var(--fs-title); margin: 6px 0 0; }
.auth-hero p { color: var(--text-2); margin: 0; }
.form { display: flex; flex-direction: column; gap: 6px; }
.f-label { font-size: var(--fs-secondary); color: var(--text-2); margin-top: 10px; font-weight: 600; }
.f-input { width: 100%; height: 52px; border-radius: var(--r-field); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 1.0625rem; padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.f-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form .btn-primary { margin-top: var(--s20); }
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.otp-row .f-label { grid-column: 1 / -1; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-secondary); }
.otp-row .btn-sm { height: 52px; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.inline .btn-sm { height: 52px; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: var(--s24); font-size: var(--fs-secondary); }
.auth-links a { color: var(--text-2); text-decoration: none; }
.auth-links b { color: var(--red-text); }
.hint { font-size: var(--fs-caption); margin: 4px 0 0; }
.hint.ok { color: var(--success); } .hint.bad { color: var(--danger); }
.muted { color: var(--text-3); font-size: var(--fs-secondary); padding: 12px 16px; margin: 0; }
.center { text-align: center; }
.wallet-hero { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #FF6B60 0%, #E53935 45%, #8E1812 100%); box-shadow: 0 14px 34px rgba(229, 57, 53, .3); }
.wallet-hero > div { flex: 1; }
.wallet-n { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.wallet-l { opacity: .85; font-size: var(--fs-secondary); margin-top: 4px; }
.wallet-hero .btn { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.wallet-name { color: var(--text); font-weight: 700; font-size: 1.05rem; text-align: center; margin: 14px 0 0; overflow-wrap: anywhere; }
.wallet-name + .wallet-phone { margin-top: 2px; }
.wallet-phone { color: var(--text-3); font-size: var(--fs-caption); text-align: center; margin: 10px 0 0; }
.wallet-phone a { color: var(--red-text); }
.ledger-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-l { flex: 1; display: flex; flex-direction: column; font-size: var(--fs-secondary); }
.ledger-l small { color: var(--text-3); font-size: var(--fs-caption); }
.ledger-d { font-weight: 800; } .ledger-d.pos { color: var(--success); } .ledger-d.neg { color: var(--text-2); }
.tag { font-size: var(--fs-caption); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.tag.pending { background: rgba(255, 186, 8, .14); color: #E0A100; } .tag.approved { background: rgba(48, 209, 88, .14); color: var(--success); } .tag.rejected { background: rgba(255, 69, 58, .14); color: var(--danger); }
.pending { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); margin: 16px 0; border: 1px solid var(--border); background: var(--surface); }
.pending > div:last-child { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-secondary); }
.pending span { color: var(--text-2); }
.pending.pending { border-color: rgba(255, 186, 8, .35); background: rgba(255, 186, 8, .07); }
.pending.rejected { border-color: rgba(255, 69, 58, .35); background: rgba(255, 69, 58, .06); }
.pending.approved { border-color: rgba(48, 209, 88, .35); }
.pending-ico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--success); flex: none; }
.pending.rejected .pending-ico { color: var(--danger); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #FFBA08; box-shadow: 0 0 0 0 rgba(255, 186, 8, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(255, 186, 8, 0); } }
.shop-head { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--text-2); font-size: var(--fs-secondary); margin: 4px 0 8px; }
.shop-head b { color: var(--text); }
.oot { text-align: center; padding: 8px 8px 4px; display: flex; flex-direction: column; align-items: center; }
.oot h1 { font-size: var(--fs-title); margin: 12px 0 4px; } .oot p { color: var(--text-2); margin: 0 0 8px; line-height: 1.8; }
.pkgs { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pkg { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); transition: transform .15s, border-color .15s; animation: pkgIn .35s both; animation-delay: calc(var(--i) * 60ms); }
.pkg:active { transform: scale(.98); }
.pkg.hot { border-color: rgba(255, 87, 77, .55); background: linear-gradient(135deg, var(--red-soft), transparent 70%), var(--surface); }
.pkg.off { opacity: .45; pointer-events: none; }
@keyframes pkgIn { from { opacity: 0; transform: translateY(8px); } }
.pkg-main { flex: 1; } .pkg-n { font-weight: 800; font-size: 1.0625rem; } .pkg-per { color: var(--text-3); font-size: var(--fs-caption); margin-top: 2px; }
.pkg-price { font-weight: 800; color: var(--red-text); white-space: nowrap; font-size: var(--fs-secondary); }
.pkg-badge { position: absolute; top: -9px; left: 16px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.btn.gateway { width: 100%; margin-top: 16px; justify-content: center; gap: 8px; background: var(--elevated); color: var(--text-3); border: 1px dashed var(--border); cursor: not-allowed; }
.soon { font-size: 11px; background: linear-gradient(90deg, #7C4DFF, #00B8D4); color: #fff; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.pay-sum { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pay-sum > div { display: flex; flex-direction: column; } .pay-sum span { color: var(--red-text); font-weight: 700; } .pay-sum s { color: var(--text-3); font-weight: 400; }
.bank-card { position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 420px; margin: 0 auto; border-radius: 22px; padding: 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  background: linear-gradient(135deg, #1E3CFF 0%, #2F6BFF 40%, #00C2FF 100%); box-shadow: 0 18px 40px rgba(30, 80, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.bank-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 75%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .14); z-index: -1; }
.bank-card::after { content: ""; position: absolute; inset: auto auto -55% -25%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, .12); z-index: -1; }
.bc-glow { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); animation: shine 5s infinite; z-index: -1; }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.bc-top, .bc-bottom { display: flex; justify-content: space-between; align-items: center; }
.bc-bank { font-weight: 800; font-size: 1.05rem; }
.bc-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #FFE08A, #D4A537); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bc-num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(1.1rem, 5.6vw, 1.55rem); letter-spacing: .08em; text-align: center; text-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.bc-bottom small { display: block; opacity: .75; font-size: 11px; } .bc-bottom b { font-size: 1rem; }
.bc-logo { font: 800 1.6rem/1 system-ui, sans-serif; letter-spacing: -.04em; opacity: .95; }
.copy-row { display: flex; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.copy-row .btn { gap: 6px; }
.steps { color: var(--text-2); font-size: var(--fs-secondary); line-height: 1.9; padding-inline-start: 20px; margin: 12px 0; }
.upload { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: var(--r-field); border: 1.5px dashed var(--border); color: var(--text-2); cursor: pointer; }
.upload span { display: inline-flex; align-items: center; gap: 8px; } .upload svg { width: 20px; height: 20px; }
.upload.has { border-color: var(--success); color: var(--success); }
.methods { display: flex; flex-direction: column; gap: 10px; }
.btn.method { width: 100%; justify-content: center; gap: 8px; min-height: 54px; font-size: 1.0625rem; }
.btn.method.gateway { margin-top: 0; min-height: 48px; font-size: var(--fs-secondary); }
#c2c[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--red-soft); }
#c2cBox { margin-top: 20px; display: flex; flex-direction: column; animation: pkgIn .3s both; }
#c2cBox[hidden] { display: none; }
.amount-box { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.amount-box span { color: var(--text-2); font-size: var(--fs-secondary); } .amount-box b { color: var(--red-text); } .amount-box s { color: var(--text-3); font-weight: 400; }
.upload { min-height: 72px; height: auto; padding: 10px; }
.upload.has { border-style: solid; }
.rc-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.upload small { display: block; color: var(--text-3); font-size: 11px; }
.muted-hint { color: var(--text-3); text-align: center; }
#c2cBox #go { margin-top: 16px; }
button.pkg { width: 100%; font: inherit; text-align: start; cursor: pointer; }
.pkg-chev { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 14px; counter-reset: st; }
.stepper li { flex: 1; font-size: 11px; color: var(--text-3); text-align: center; padding-top: 8px; border-top: 3px solid var(--border); counter-increment: st; }
.stepper li::before { content: counter(st, persian) ". "; }
.stepper li.on { color: var(--red-text); border-color: var(--red); font-weight: 700; }
.stepper li.ok { color: var(--success); border-color: var(--success); }
.pay-sheet { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.ps-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.ps-head > div { display: flex; flex-direction: column; } .ps-head b { font-size: 1.0625rem; } .ps-head span { color: var(--red-text); font-weight: 700; }
.ps-q { margin: 4px 4px 10px; color: var(--text-2); font-weight: 600; }
.pay-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; margin-bottom: 10px; border-radius: 18px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: transform .12s; }
.pay-opt:active:not(:disabled) { transform: scale(.98); }
.pay-opt.primary { border-color: var(--red); background: linear-gradient(135deg, var(--red-soft), transparent 80%), var(--surface); box-shadow: 0 8px 22px rgba(255, 87, 77, .18); }
.pay-opt:disabled { opacity: .55; cursor: not-allowed; border-style: dashed; }
.po-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--elevated); flex: none; }
.pay-opt.primary .po-ico { background: var(--red); color: #fff; }
.po-ico svg { width: 22px; height: 22px; }
.po-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .po-t b { font-size: 1.0625rem; } .po-t small { color: var(--text-3); font-size: var(--fs-caption); }
.po-chev { width: 20px; height: 20px; color: var(--red-text); }
.disc { margin: 12px 0 0; } .disc summary { cursor: pointer; color: var(--red-text); font-size: var(--fs-secondary); font-weight: 600; padding: 8px 0; list-style: none; }
.disc summary::-webkit-details-marker { display: none; }
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; }
.done-ico { width: 84px; height: 84px; color: var(--success); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-ico svg { width: 84px; height: 84px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-size: var(--fs-title); margin: 4px 0 0; } .done p { color: var(--text-2); margin: 0 12px 8px; line-height: 1.8; }
.done .stepper { width: 100%; } .done .btn { width: 100%; }

/* ======================================================================= V2 */
:root { --green: #22C55E; --green-soft: rgba(34, 197, 94, .14); --amber: #F5A524; --amber-soft: rgba(245, 165, 36, .15); --gray-soft: rgba(152, 163, 174, .16); }
.hero-v2 { padding: var(--s24) 0 var(--s20); }
.price { display: inline-flex; align-items: center; gap: 3px; font-size: .8125rem; font-weight: 750; color: var(--text); white-space: nowrap; direction: rtl; }
.price .coin { width: 16px; height: 16px; }
.price.from { color: var(--text-2); font-weight: 600; }
.price.from b { color: var(--text); }

/* video preview under the link field */
.vprev { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); animation: fadeUp .25s ease; }
.vprev img, .vp-sk { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.vprev > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vprev b { font-size: .875rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vprev span { font-size: var(--fs-caption); color: var(--text-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vprev .mult { color: var(--amber); font-weight: 700; }
.vp-load { gap: 8px !important; font-size: var(--fs-secondary) !important; }
.vp-load .spinner { width: 16px; height: 16px; border-width: 2px; }

/* three option cards */
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s16); }
.opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: right; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1.5px solid var(--border); transition: border-color .18s, box-shadow .18s, background .18s, transform .1s; }
.opt:active { transform: scale(.99); }
.opt-ico { width: 44px; height: 44px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--elevated); color: var(--text-2); transition: inherit; }
.opt-ico svg { width: 22px; height: 22px; }
.opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.opt-t b { font-size: 1rem; font-weight: 750; }
.opt-t small { font-size: .8125rem; color: var(--text-2); }
.opt-p { flex: none; }
.opt[aria-checked="true"] { border-color: var(--red); background: linear-gradient(180deg, color-mix(in srgb, var(--red) 10%, var(--surface)), var(--surface));
  box-shadow: 0 0 0 4px var(--red-soft), 0 10px 30px -10px rgba(255, 87, 77, .55); }
.opt[aria-checked="true"] .opt-ico { background: var(--red); color: #fff; box-shadow: 0 6px 16px -4px rgba(255, 87, 77, .7); }
.cta-v2 { margin-top: var(--s20); min-height: 58px; font-size: 1.125rem; border-radius: 18px; box-shadow: 0 12px 30px -12px rgba(255, 87, 77, .8); gap: 10px; }
.cta-v2 svg { width: 22px; height: 22px; }
.cta-price { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .2); padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .9375rem; }
.cta-price .coin { width: 18px; height: 18px; }
.cta-v2 .free { background: rgba(255, 255, 255, .22); padding: 2px 10px; border-radius: 999px; font-size: .8125rem; }
.cta-hint { text-align: center; color: var(--text-3); font-size: .8125rem; margin-top: 10px; min-height: 1.4em; }
.cta-hint.bad { color: var(--danger); }
.linkish { color: var(--red-text); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }

/* recent: horizontal cards */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad) 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: none; width: 196px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.hc-thumb { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--skeleton); }
.hc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-title { font-size: .875rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-meta { font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ktag { font-size: .6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--elevated); color: var(--text-2); line-height: 1.6; }
.ktag.k-lines, .ktag.k-points, .ktag.k-full { background: var(--red-soft); color: var(--red-text); }
.ktag.k-watch { background: var(--green-soft); color: var(--green); }
.ktag.k-notes, .ktag.k-practice { background: rgba(99, 102, 241, .15); color: #8B8EF5; }
.hrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); align-items: flex-start; }
.hrow:last-child { border-bottom: 0; }
.hrow .thumb { width: 128px; }

/* compact video header */
.vhead { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.vh-thumb { position: relative; width: 104px; flex: none; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--skeleton); }
.vh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vh-thumb .dur { left: 4px; bottom: 4px; font-size: .625rem; }
.vh-text { flex: 1; min-width: 0; }
.vh-title { font-size: .875rem; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-meta { font-size: var(--fs-caption); color: var(--text-2); display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.vh-chev { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.vh-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.vh-play svg { width: 26px; height: 26px; margin-right: -3px; }

/* generation */
.gen { text-align: center; padding: var(--s40) var(--s8) var(--s24); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gen-orb { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.gen-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--red), transparent 70%); animation: spin 1.1s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.gen-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--red-soft); color: var(--red-text); display: flex; align-items: center; justify-content: center; animation: pulse 1.6s ease-in-out infinite; }
.gen-ico svg { width: 30px; height: 30px; }
.gen-title { font-size: 1.0625rem; font-weight: 750; }
.gen-bar { width: 100%; max-width: 320px; height: 6px; border-radius: 99px; background: var(--elevated); overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #FF8A65); transition: width .4s ease; }
.gen-type { min-height: 4.8em; max-width: 360px; color: var(--text-3); font-size: .8125rem; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
.gen-note { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: var(--fs-caption); }
.gen-note svg { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.92); opacity: .8; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* output page */
.vchip { display: inline-flex; align-items: center; gap: 2px; font-size: .8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--border); min-height: 34px; }
.vchip.sm { font-size: .75rem; padding: 3px 10px; min-height: 28px; }
.vc-chev { width: 14px; height: 14px; }
.out { margin-top: var(--s16); display: flex; flex-direction: column; gap: 14px; }
.out p { line-height: 1.95; }
.out-actions { display: flex; gap: 8px; margin-top: var(--s20); }
.out-actions .btn { flex: 1; padding: 0 8px; font-size: .875rem; gap: 6px; }
.out-actions .btn svg { width: 18px; height: 18px; }
.btn-sm .price { font-size: .75rem; }
.lines-card p + p { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.lines-card .lead { font-size: 1.0625rem; font-weight: 700; }
.takeaway { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.takeaway > svg { width: 22px; height: 22px; color: var(--red-text); flex: none; margin-top: 4px; }
.takeaway b { color: var(--red-text); font-size: .875rem; }
.intro { color: var(--text-2); }
.kp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kp li { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.kp-n { width: 30px; height: 30px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-weight: 800; font-size: .875rem; }
.kp-b { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.kp-b b { font-weight: 750; line-height: 1.6; }
.kp-b p { color: var(--text-2); font-size: .9375rem; line-height: 1.85; }
.ts { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px 3px 10px; border-radius: 999px; background: var(--elevated); color: var(--red-text); direction: ltr; }
.ts svg { width: 11px; height: 11px; }
.tldr { padding: 16px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--red) 14%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.tldr-l { font-size: .75rem; font-weight: 800; color: var(--red-text); }
.tldr p { font-weight: 600; margin-top: 4px; }
.secs { display: flex; flex-direction: column; gap: 10px; }
.sec { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.sec summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; min-height: 56px; }
.sec summary::-webkit-details-marker { display: none; }
.sec-n { width: 26px; height: 26px; border-radius: 8px; background: var(--elevated); display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 800; flex: none; }
.sec-h { flex: 1; font-weight: 750; line-height: 1.55; }
.sec-chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; flex: none; }
.sec[open] .sec-chev { transform: rotate(-90deg); }
.sec-b { padding: 0 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sec-b ul { margin: 0; padding-right: 20px; color: var(--text-2); }
.sec-b li { margin: 4px 0; line-height: 1.8; }
.tools-title { font-size: var(--fs-section); font-weight: 750; margin: var(--s32) 0 var(--s12); }
.tool-grid { display: flex; flex-direction: column; gap: 10px; }
.tool { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: right; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform .1s; }
.tool:active { transform: scale(.985); }
.tool-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.tool-ico svg { width: 24px; height: 24px; }
.tool b { font-size: 1rem; font-weight: 750; }
.tool small { grid-column: 2; color: var(--text-2); font-size: .8125rem; }
.tool > .price, .tool > .tool-own { grid-column: 3; grid-row: 1 / span 2; }
.t-watch .tool-ico { background: var(--green-soft); color: var(--green); }
.t-learn .tool-ico { background: rgba(99, 102, 241, .16); color: #8B8EF5; }
.t-convert .tool-ico { background: var(--amber-soft); color: var(--amber); }
.tool-own { font-size: .75rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* sheets (learn / convert / versions / confirm) */
.ks-head { text-align: center; padding: 6px 0 12px; }
.ks-head h3 { font-size: 1.125rem; font-weight: 800; }
.ks-head p { color: var(--text-2); font-size: .875rem; }
.ks-list { display: flex; flex-direction: column; gap: 8px; }
.ks-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: right; padding: 12px 14px; border-radius: 16px; background: var(--elevated); border: 1px solid transparent; min-height: 64px; }
.ks-item.on { border-color: var(--red); }
.ks-item > svg { width: 22px; height: 22px; color: var(--red); }
.ks-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text-2); }
.ks-ico svg { width: 22px; height: 22px; }
.ks-ico .brand-ico, .brand-ico { width: 32px; height: 32px; }
.ks-ico.vnum { font-weight: 800; }
.ks-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.ks-t b { font-weight: 750; }
.ks-t small { color: var(--text-2); font-size: .8125rem; }
.cs { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 8px 0 4px; }
.cs-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--red-soft); color: var(--red-text); display: flex; align-items: center; justify-content: center; }
.cs-ico svg { width: 26px; height: 26px; }
.cs h3 { font-size: 1.125rem; font-weight: 800; }
.cs p { color: var(--text-2); font-size: .875rem; }
.cs .btn-primary .price { color: #fff; }

/* watch analysis */
.verdict { display: flex; gap: 14px; padding: 18px; border-radius: 22px; align-items: flex-start; }
.vd-ico { width: 52px; height: 52px; border-radius: 16px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.vd-ico svg { width: 26px; height: 26px; }
.vd-l { display: inline-block; font-size: .8125rem; font-weight: 800; padding: 2px 12px; border-radius: 999px; color: #fff; margin-bottom: 6px; }
.verdict b { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.55; }
.verdict p { color: var(--text-2); font-size: .9375rem; margin-top: 4px; }
.v-full { background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.v-full .vd-ico, .v-full .vd-l { background: var(--green); }
.v-full .vd-ico svg circle { fill: transparent; }
.v-parts { background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.v-parts .vd-ico, .v-parts .vd-l { background: var(--amber); }
.v-sum { background: var(--gray-soft); border: 1px solid var(--border); }
.v-sum .vd-ico, .v-sum .vd-l { background: #7D8791; }
.best5 { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #FF574D, #C2185B); box-shadow: 0 16px 30px -16px rgba(255, 87, 77, .9); }
.b5-top { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; font-weight: 700; opacity: .95; }
.b5-l { display: inline-flex; align-items: center; gap: 6px; }
.b5-l svg { width: 16px; height: 16px; fill: currentColor; }
.b5-t { direction: ltr; background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 999px; }
.best5 b { font-size: 1.125rem; font-weight: 800; }
.best5 p { opacity: .9; font-size: .9375rem; line-height: 1.8; }
.b5-play { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #C2185B; font-weight: 800; font-size: .875rem; padding: 8px 14px; border-radius: 999px; }
.b5-play svg { width: 14px; height: 14px; }
.tl-wrap { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.tl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tl-leg { display: flex; align-items: center; gap: 6px; font-size: .6875rem; color: var(--text-2); }
.tl-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.tl-leg .g { background: var(--green); } .tl-leg .s { background: #6B7280; } .tl-leg .b { background: var(--red); }
.tl { position: relative; height: 22px; border-radius: 8px; background: var(--elevated); overflow: hidden; }
.tl-seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.tl-seg.imp { background: var(--green); }
.tl-seg.skip { background: repeating-linear-gradient(45deg, #6B7280 0 4px, #4B5563 4px 8px); }
.tl-seg.best { top: -2px; bottom: -2px; background: transparent; border: 2.5px solid var(--red); border-radius: 6px; box-shadow: 0 0 0 2px rgba(255, 87, 77, .25); }
.tl-ticks { position: relative; height: 18px; margin-top: 6px; font-size: .625rem; color: var(--text-3); direction: ltr; }
.tl-ticks span { position: absolute; transform: translateX(50%); }
.tl-ticks span:first-child { transform: translateX(0); }
.tl-ticks span:last-child { transform: translateX(100%); }
.wh { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; margin-top: 6px; }
.wh svg { width: 20px; height: 20px; }
.wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.wl-t { display: flex; flex-direction: column; align-items: center; min-width: 58px; font-weight: 800; direction: ltr; font-size: .9375rem; padding: 4px 6px; border-radius: 10px; }
.wl-t small { font-size: .625rem; color: var(--text-3); font-weight: 600; direction: rtl; }
.wl.imp .wl-t { background: var(--green-soft); color: var(--green); }
.wl.skp .wl-t { background: var(--gray-soft); color: var(--text-2); }
.wl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.55; }
.wl-b b { font-weight: 700; }
.wl-b small { color: var(--text-2); font-size: .8125rem; }
.wl a > svg { width: 22px; height: 22px; color: var(--text-3); flex: none; }

/* notebook (jozve) */
.notebook { position: relative; padding: 22px 20px 22px 18px; border-radius: 20px; background:
  repeating-linear-gradient(180deg, transparent 0 33px, color-mix(in srgb, var(--border) 55%, transparent) 33px 34px), var(--surface);
  border: 1px solid var(--border); box-shadow: inset -4px 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); }
.nb-title { font-size: 1.375rem; font-weight: 850; line-height: 1.5; }
.nb-over { color: var(--text-2); margin-top: 6px; }
.nb-sec { margin-top: 22px; }
.nb-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 800; }
.nb-sec h2 span { width: 28px; height: 28px; border-radius: 9px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8125rem; flex: none; }
.nb-sec h3 { font-size: .9375rem; font-weight: 750; margin-top: 12px; color: var(--red-text); }
.nb-sec p { margin-top: 6px; }
.nb-pts { margin: 8px 0 0; padding-right: 20px; }
.nb-pts li { margin: 4px 0; line-height: 1.85; }
.nb-pts li::marker { color: var(--red); }
.nb-key, .nb-gl { margin-top: 24px; padding: 16px; border-radius: 16px; }
.nb-key { background: var(--amber-soft); }
.nb-gl { background: var(--elevated); }
.nb-key h2, .nb-gl h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.nb-key h2 svg, .nb-gl h2 svg { width: 20px; height: 20px; }
.nb-key ul { margin: 0; padding-right: 20px; }
.nb-key li { margin: 4px 0; }
.nb-gl dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-gl dt { font-weight: 800; }
.nb-gl dd { margin: 2px 0 0; color: var(--text-2); font-size: .9375rem; line-height: 1.8; }

/* practice */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--elevated); }
.tab-b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 11px; font-weight: 700; color: var(--text-2); font-size: .9375rem; }
.tab-b svg { width: 18px; height: 18px; }
.tab-b small { font-size: .75rem; opacity: .7; }
.tab-b[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.fc-count { text-align: center; color: var(--text-2); font-size: .8125rem; font-weight: 700; margin: 6px 0 10px; }
.fc-stage { position: relative; perspective: 1200px; }
.fc-under { position: absolute; inset: 10px 14px -8px; border-radius: 22px; background: var(--elevated); border: 1px solid var(--border); }
.fc { position: relative; display: block; width: 100%; min-height: 260px; touch-action: pan-y; transition: transform .25s ease; user-select: none; -webkit-user-select: none; }
.fc-in { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.fc.flip .fc-in { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--border); }
.fc-front { background: var(--surface); }
.fc-back { background: linear-gradient(135deg, #FF574D, #C2185B); color: #fff; transform: rotateY(180deg); border: 0; }
.fc-face p { font-size: 1.125rem; font-weight: 750; line-height: 1.8; }
.fc-l { font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--elevated); color: var(--text-2); }
.fc-back .fc-l { background: rgba(255, 255, 255, .22); color: #fff; }
.fc-face small { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: .75rem; }
.fc-face small svg { width: 14px; height: 14px; }
.fc-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.fc-nav .icon-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 50%; }
.fc-nav .icon-btn:disabled { opacity: .35; }
.fc-dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; max-width: 70%; }
.fc-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--border); transition: width .2s; }
.fc-dots i.on { width: 18px; background: var(--red); }
.fc-hint { text-align: center; color: var(--text-3); font-size: .75rem; margin-top: 8px; }
.qz-prog { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; color: var(--text-2); font-weight: 700; margin: 6px 0 12px; }
.qz-bar { height: 5px; border-radius: 99px; background: var(--elevated); overflow: hidden; }
.qz-bar i { display: block; height: 100%; background: var(--red); transition: width .3s; }
.qz-q p { font-weight: 750; font-size: 1.0625rem; }
.qz-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.qz-o { display: flex; align-items: center; gap: 12px; text-align: right; padding: 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); min-height: 56px; transition: border-color .15s, background .15s; }
.qz-l { width: 30px; height: 30px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--elevated); font-weight: 800; font-size: .8125rem; }
.qz-o.ok { border-color: var(--green); background: var(--green-soft); }
.qz-o.ok .qz-l { background: var(--green); color: #fff; }
.qz-o.bad { border-color: var(--danger); background: rgba(255, 69, 58, .12); }
.qz-o.bad .qz-l { background: var(--danger); color: #fff; }
.qz-o:disabled { opacity: 1; cursor: default; }
.qz-ex { margin: 12px 0; padding: 12px 14px; border-radius: 14px; font-size: .9375rem; }
.qz-ex.ok { background: var(--green-soft); } .qz-ex.ok b { color: var(--green); }
.qz-ex.bad { background: rgba(255, 69, 58, .12); } .qz-ex.bad b { color: var(--danger); }
.qz-ex p { color: var(--text-2); margin-top: 4px; }
.qz-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0; }
.qz-ring { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--elevated) 0); }
.qz-ring span { width: 112px; height: 112px; border-radius: 50%; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2rem; font-weight: 850; line-height: 1.2; }
.qz-ring small { font-size: .8125rem; color: var(--text-2); font-weight: 600; }
.qz-done h3 { font-weight: 800; }
.qz-done .btn { width: auto; min-width: 160px; }

/* convert: platform previews */
.big-copy { min-height: 56px; border-radius: 18px; margin-top: 4px; }
.tg { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); }
.tg-head .brand-ico { width: 36px; height: 36px; }
.tg-head div { display: flex; flex-direction: column; line-height: 1.4; }
.tg-head small { color: var(--text-3); font-size: .75rem; }
.tg-bg { padding: 16px 12px; background: radial-gradient(circle at 20% 20%, rgba(42, 171, 238, .18), transparent 50%), radial-gradient(circle at 80% 70%, rgba(120, 200, 120, .15), transparent 50%), #0E1621; }
html[data-theme="light"] .tg-bg { background: radial-gradient(circle at 20% 20%, rgba(42, 171, 238, .25), transparent 50%), radial-gradient(circle at 80% 70%, rgba(120, 200, 120, .25), transparent 50%), #DCE8D3; }
.tg-bubble { max-width: 92%; background: #182533; color: #fff; border-radius: 16px 16px 4px 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
html[data-theme="light"] .tg-bubble { background: #fff; color: #0B1117; }
.tg-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.tg-bubble p { padding: 10px 12px 2px; font-size: .9375rem; line-height: 1.85; }
.tg-time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding: 0 12px 8px; font-size: .6875rem; opacity: .6; direction: ltr; }
.tg-time svg { width: 12px; height: 12px; }
.ig { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-head b { flex: 1; font-size: .875rem; direction: ltr; text-align: right; }
.ig-head > svg { width: 20px; height: 20px; transform: rotate(90deg); }
.ig-av { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF); display: flex; }
.ig-av .brand-ico { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); }
.ig-img { aspect-ratio: 1; background: #000; display: flex; align-items: center; }
.ig-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ig-acts { display: flex; gap: 14px; padding: 10px 12px 4px; }
.ig-acts svg { width: 24px; height: 24px; }
.ig-acts span { flex: 1; }
.ig-cap { padding: 4px 12px 14px; font-size: .9375rem; }
.ig-cap p { margin-top: 6px; line-height: 1.85; }
.ig-cap p b { font-weight: 800; }
.ig-tags { color: #4F8CF7; font-size: .875rem; word-spacing: 4px; }
.xt { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.xp { display: flex; gap: 10px; padding: 14px; position: relative; }
.xp + .xp { border-top: 1px solid var(--border); }
.xp:not(:last-child)::after { content: ''; position: absolute; right: 33px; top: 58px; bottom: -14px; width: 2px; background: var(--border); }
.xp-av .brand-ico { width: 40px; height: 40px; border-radius: 50%; }
.xp-b { flex: 1; min-width: 0; }
.xp-h { display: flex; gap: 6px; align-items: baseline; }
.xp-h small { color: var(--text-3); font-size: .8125rem; }
.xp-b p { margin-top: 2px; font-size: .9375rem; line-height: 1.85; white-space: pre-wrap; }
.xp-f { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.xp-c { font-size: .6875rem; color: var(--text-3); }
.xp-c.over { color: var(--danger); }
.icon-btn.sm { min-width: 36px; min-height: 36px; }
.icon-btn.sm svg { width: 17px; height: 17px; color: var(--text-2); }
.rl-top { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.rl-phone .brand-ico { width: 46px; height: 46px; }
.rl-top div { display: flex; flex-direction: column; line-height: 1.5; }
.rl-top b { font-weight: 800; }
.rl-top small { color: var(--text-2); font-size: .8125rem; }
.rl-hook { padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 106, 61, .16), rgba(225, 48, 108, .16)); border: 1px solid rgba(225, 48, 108, .25); }
.rl-hook span { font-size: .75rem; font-weight: 800; color: #E1306C; }
.rl-hook b { display: block; font-size: 1.0625rem; font-weight: 800; margin-top: 2px; }
.scenes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scene { display: flex; gap: 12px; }
.sc-t { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 54px; }
.sc-t span { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #FF6A3D, #E1306C); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8125rem; }
.sc-t small { font-size: .6875rem; color: var(--text-2); direction: ltr; font-weight: 700; }
.sc-b { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.sc-r { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; line-height: 1.8; color: var(--text-2); }
.sc-r svg { width: 16px; height: 16px; flex: none; margin-top: 5px; }
.sc-r.vo { color: var(--text); font-weight: 600; }
.sc-r.os span { background: var(--elevated); padding: 0 8px; border-radius: 6px; font-weight: 700; color: var(--text); }
.rl-cap p { color: var(--text-2); margin-top: 4px; }
.rl-music { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: .875rem; }
.rl-music svg { width: 18px; height: 18px; }

/* video page */
.vk { display: flex; flex-direction: column; }
.vk-row { border-bottom: 1px solid var(--border); }
.vk-row:last-child { border-bottom: 0; }
.vk-main { display: flex; align-items: center; gap: 12px; width: 100%; text-align: right; padding: 12px 14px; min-height: 64px; }
.vk-main:active { background: var(--elevated); }
.vk-main .ks-ico { background: var(--elevated); }
.vk-vers { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 66px 12px 14px; }
@media (prefers-reduced-motion: reduce) { .gen-ring, .gen-ico { animation: none; } .fc-in { transition: none; } }

/* compact 3-up option grid (keeps CTA above the fold on phones) */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 6px 12px; border-radius: 18px; }
.opt-ico { width: 40px; height: 40px; border-radius: 13px; }
.opt-ico svg { width: 20px; height: 20px; }
.opt-t { align-items: center; flex: none; }
.opt-t b { font-size: .9375rem; }
.opt-t small { font-size: .6875rem; line-height: 1.5; min-height: 2.1em; color: var(--text-3); }
.opt[aria-checked="true"] .opt-t small { color: var(--text-2); }
.hero-v2 { padding: var(--s16) 0 var(--s16); }
.hero-v2 h1 { font-size: 1.625rem; }
.vprev[hidden] { display: none; }

/* ---------- fix1: refined watch cards, action row, nav icons ---------- */
.tabbar .tab svg { width: 24px; height: 24px; stroke-width: 1.9; flex: none; }

.verdict { position: relative; display: block; padding: 18px 20px 18px 18px; padding-inline-start: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.verdict::before { content: ""; position: absolute; inset-block: 16px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--vd); }
.v-full, .v-parts, .v-sum { background: var(--surface); border: 1px solid var(--border); }
.v-full { --vd: var(--green); } .v-parts { --vd: var(--amber); } .v-sum { --vd: #8A939C; }
.vd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vd); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vd) 18%, transparent); flex: none; }
.verdict .vd-l, .v-full .vd-l, .v-parts .vd-l, .v-sum .vd-l { background: none; padding: 0; margin: 0; border-radius: 0; color: var(--vd); font-size: .8125rem; font-weight: 750; }
.vd-cap { margin-inline-start: auto; font-size: .75rem; color: var(--text-3); }
.verdict b { font-size: 1.0625rem; font-weight: 750; line-height: 1.6; letter-spacing: -.01em; }
.verdict p { color: var(--text-2); font-size: .9063rem; line-height: 1.85; margin-top: 6px; }

.best5 { gap: 0; padding: 18px 20px; border-radius: 18px; color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.b5-top { opacity: 1; margin-bottom: 10px; }
.b5-l { color: var(--text-2); font-weight: 650; font-size: .8125rem; }
.b5-l svg { width: 14px; height: 14px; color: var(--red); fill: currentColor; }
.b5-t { background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: .75rem; font-weight: 650; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 8px; }
.best5 b { font-size: 1.0625rem; font-weight: 750; line-height: 1.6; letter-spacing: -.01em; }
.best5 p { opacity: 1; color: var(--text-2); font-size: .9063rem; line-height: 1.85; margin-top: 6px; }
.b5-play { margin-top: 14px; gap: 8px; background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 650; font-size: .8125rem; padding: 6px 14px 6px 6px; padding-inline-start: 6px; padding-inline-end: 14px; border-radius: 999px; transition: background .15s; }
.b5-play:hover { background: var(--elevated); }
.b5-play:active { transform: scale(.98); }
.b5-pi { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.b5-pi svg, .b5-play svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }

.out-actions { display: flex; gap: 8px; align-items: stretch; }
.oa-ico, .oa-regen { height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); display: inline-flex; align-items: center; justify-content: center; transition: transform .1s, background .15s; }
.oa-ico { width: 46px; flex: none; }
.oa-ico svg { width: 20px; height: 20px; }
.oa-regen { flex: 1; min-width: 0; gap: 8px; padding: 0 12px 0 6px; padding-inline-start: 14px; padding-inline-end: 6px; font-weight: 700; font-size: .9063rem; white-space: nowrap; }
.oa-regen > svg { width: 18px; height: 18px; flex: none; }
.oa-regen > span:not(.price) { overflow: hidden; text-overflow: ellipsis; }
.oa-regen .price { margin-inline-start: auto; flex: none; white-space: nowrap; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 4px; }
.oa-ico:active, .oa-regen:active { transform: scale(.97); }

/* ---------- fix2: hero verdict + mini-player best-5 ---------- */
.v-full { --vd: #22C55E; } .v-parts { --vd: #F5A524; } .v-sum { --vd: #94A3B8; }
.verdict2 { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 18px; padding: 22px 20px 20px; border-radius: 24px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(150deg, color-mix(in srgb, var(--vd) 70%, transparent), transparent 45%, color-mix(in srgb, var(--vd) 22%, transparent)) border-box;
  border: 1px solid transparent; animation: cardIn .55s cubic-bezier(.2,.8,.2,1) both; }
.vd2-glow { position: absolute; z-index: -1; width: 260px; height: 260px; inset-inline-start: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vd) 30%, transparent), transparent 65%); filter: blur(8px); opacity: .9; pointer-events: none; }
[data-theme="light"] .vd2-glow, :root:not([data-theme="dark"]) .vd2-glow { opacity: .55; }
.vd2-ring { position: relative; width: 84px; height: 84px; flex: none; }
.vd2-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.vd2-ring > svg circle { fill: none; stroke-width: 6; }
.vd2-ring .trk { stroke: color-mix(in srgb, var(--vd) 14%, transparent); }
.vd2-ring .val { stroke: var(--vd); stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--vd) 70%, transparent)); animation: ringIn 1.1s .15s cubic-bezier(.2,.8,.2,1) both; }
.vd2-orb { position: absolute; inset: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--vd) 55%, #fff), var(--vd) 60%, color-mix(in srgb, var(--vd) 75%, #000));
  box-shadow: 0 0 24px color-mix(in srgb, var(--vd) 55%, transparent), inset 0 1px 1px rgba(255,255,255,.4); animation: orbPulse 3.2s ease-in-out 1.2s infinite; }
.vd2-orb svg { width: 24px; height: 24px; stroke-width: 2.6; }
.vd2-orb svg circle { fill: none; }
.vd2-body { min-width: 0; }
.vd2-l { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 750; color: var(--vd); letter-spacing: .01em; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--vd) 12%, transparent); border: 1px solid color-mix(in srgb, var(--vd) 28%, transparent); margin-bottom: 8px; }
.verdict2 h2 { font-size: 1.25rem; font-weight: 850; line-height: 1.5; letter-spacing: -.02em; }
.vd2-r { grid-column: 1 / -1; color: var(--text-2); font-size: .9063rem; line-height: 1.85; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 350px) { .vd2-ring { width: 68px; height: 68px; } .vd2-orb { inset: 12px; } .verdict2 h2 { font-size: 1.0938rem; } }

.b5x { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; color: #fff; margin-top: 14px; background: #0B0D12;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); animation: cardIn .55s .12s cubic-bezier(.2,.8,.2,1) both; }
.b5x-bg { position: absolute; inset: -20px; z-index: -2; background-size: cover; background-position: center; filter: blur(5px) saturate(1.25); transform: scale(1.06); opacity: .9; }
.b5x::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,10,14,.35), rgba(8,10,14,.78) 50%, rgba(8,10,14,.93)); }
.b5x-in { padding: 18px 20px 20px; display: flex; flex-direction: column; }
.b5x-l { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 750; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); }
.b5x-l svg { width: 13px; height: 13px; fill: #FFB020; color: #FFB020; }
.b5x-time { display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; margin: 16px 0 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, var(--font), monospace; font-variant-numeric: tabular-nums; }
.b5x-time span { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.b5x-time i { font-style: normal; opacity: .45; font-size: 1.1rem; }
.b5x-title { font-size: 1.0938rem; font-weight: 800; line-height: 1.55; }
.b5x p { color: rgba(255,255,255,.72); font-size: .875rem; line-height: 1.8; margin-top: 4px; }
.b5x-bar { position: relative; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 16px; overflow: visible; }
.b5x-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #FF7A59, #FF3D57); box-shadow: 0 0 12px rgba(255,80,80,.8); transform-origin: right; animation: barIn .9s .4s cubic-bezier(.2,.8,.2,1) both; }
.b5x-ticks { display: flex; justify-content: space-between; font-size: .6875rem; color: rgba(255,255,255,.5); margin-top: 6px; font-variant-numeric: tabular-nums; }
.b5x-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 5px 16px 5px 5px; padding-inline-start: 5px; padding-inline-end: 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); font-size: .875rem; font-weight: 650; color: #fff; transition: transform .12s, background .15s; }
.b5x-play b { font-variant-numeric: tabular-nums; }
.b5x-play:active { transform: scale(.97); }
.b5x-pc { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #0B0D12; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 22px rgba(255,255,255,.45); }
.b5x-pc svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-inline-end: -2px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
@keyframes barIn { from { transform: scaleX(0); opacity: 0; } }
@keyframes orbPulse { 50% { box-shadow: 0 0 34px color-mix(in srgb, var(--vd) 75%, transparent), inset 0 1px 1px rgba(255,255,255,.4); } }
@media (prefers-reduced-motion: reduce) { .verdict2, .b5x, .vd2-ring .val, .b5x-bar span, .vd2-orb { animation: none !important; } }

/* ---------- fix3: TL;DR + conclusion glass cards ---------- */
.gc-tldr { --ga: #FF574D; --gb: #FF8A3D; }
.gc-concl { --ga: #6E8BFF; --gb: #38BDF8; }
.gcard { position: relative; isolation: isolate; overflow: hidden; padding: 20px 20px 22px; border-radius: 24px; margin: 4px 0 18px;
  background: linear-gradient(color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface) 88%, transparent)) padding-box,
              linear-gradient(150deg, color-mix(in srgb, var(--ga) 75%, transparent), transparent 42%, color-mix(in srgb, var(--gb) 25%, transparent)) border-box;
  border: 1px solid transparent; backdrop-filter: blur(10px); animation: cardIn .55s cubic-bezier(.2,.8,.2,1) both; }
.gc-concl { margin: 22px 0 6px; animation-delay: .08s; }
.gc-glow { position: absolute; z-index: -1; width: 240px; height: 240px; inset-inline-start: -100px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ga) 28%, transparent), transparent 65%); pointer-events: none; }
html[data-theme="light"] .gc-glow { opacity: .6; }
.gc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gc-ico { width: 34px; height: 34px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(140deg, var(--gb), var(--ga)); box-shadow: 0 0 18px color-mix(in srgb, var(--ga) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.gc-ico svg { width: 17px; height: 17px; stroke-width: 2.2; }
.gc-l { font-size: .75rem; font-weight: 750; letter-spacing: .01em; padding: 3px 10px; border-radius: 999px; color: color-mix(in srgb, var(--ga) 85%, var(--text));
  background: color-mix(in srgb, var(--ga) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ga) 28%, transparent); }
.gc-lead { font-size: 1.0313rem; font-weight: 550; line-height: 2; color: var(--text); letter-spacing: -.005em; text-wrap: pretty; }
@media (max-width: 350px) { .gcard { padding: 18px 16px 20px; } .gc-lead { font-size: .9688rem; line-height: 1.95; } }
@media (prefers-reduced-motion: reduce) { .gcard { animation: none !important; } }
