:root {
  --bg: #0d0e12;
  --surface: #16181f;
  --surface-2: #1e212a;
  --border: #2a2e3a;
  --text: #eef0f5;
  --muted: #8d93a5;
  --accent: #8b6cff;
  --accent-2: #ff4fd8;
  --accent-ink: #ffffff;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #c04cf0 55%, #ff4fd8 100%);
  --danger: #ff6b6b;
  --ok: #51cf66;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(13,14,18,.9); backdrop-filter: blur(8px); z-index: 5; }
@font-face { font-family: "CR Brand"; src: url("/fonts/montserrat-extrabold.woff") format("woff"); font-weight: 800; font-display: block; }
.logo { font-family: "CR Brand", Manrope, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 25px; line-height: 1; text-decoration: none;
  display: flex; gap: 13px; align-items: center; letter-spacing: -.02em; flex-shrink: 0; color: var(--text); }
.logo-mark { width: 46px; height: 46px; display: block; flex-shrink: 0; filter: drop-shadow(0 6px 16px rgba(192, 76, 240, .35)); }
.logo b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
#nav { display: flex; gap: 8px; align-items: center; }
#nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; }
#nav a:hover { color: var(--text); background: var(--surface); }
#nav a.btn-primary, #nav a.btn-primary:hover { color: var(--accent-ink); background: var(--gradient); padding: 8px 16px; }
.quota { color: var(--muted); font-size: 14px; margin-right: 8px; }

main { max-width: 1120px; margin: 0 auto; padding: 32px 16px 80px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--surface-2); color: var(--text); }
.btn:hover { filter: brightness(1.15); }
.btn-primary { background: var(--gradient); color: var(--accent-ink); box-shadow: 0 6px 24px -8px rgba(192, 76, 240, .6); }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #4a2a2e; }
.btn:disabled { opacity: .5; cursor: default; }


.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.auth { max-width: 400px; margin: 40px auto; }
.auth h2 { margin-top: 0; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
/* все текстовые поля, включая поля без type (коды) и поиск — тёмные, со светлым текстом */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=tel],
textarea, select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type=search]::-webkit-search-cancel-button { filter: invert(1) opacity(.6); cursor: pointer; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; font-size: 14px; }

.tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.tabs button.active { background: var(--surface-2); color: var(--text); }
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; cursor: pointer; color: var(--muted); }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--text); }
.grid-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 38px; color: var(--text); }
.progressbar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progressbar > div { height: 100%; background: var(--gradient); transition: width .4s; }

.section-title { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 14px; }
.jobs { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; }
.job:hover { border-color: #3b4050; }
.job-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .progressbar { grid-column: 1 / -1; }
.badge { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.done { color: var(--ok); }
.badge.failed { color: var(--danger); }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.clip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.clip video { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; }
.clip-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.clip-title { font-weight: 700; }
.clip-meta { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
.score { color: var(--accent-2); font-weight: 800; }
.clip-text { color: var(--muted); font-size: 13px; max-height: 4.2em; overflow: hidden; }
.ai-reason { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.ai-badge { background: var(--gradient); color: #fff; font-weight: 800; font-size: 10px; padding: 2px 6px; border-radius: 6px; flex-shrink: 0; }
.post-text { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px; font-size: 13px; display: grid; gap: 6px; }
.post-text .tags { color: var(--accent); }
.copy-btn { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.copy-btn:hover { text-decoration: underline; }
.clip-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clip-actions .btn { padding: 10px 8px; font-size: 14px; }
.clip-busy { aspect-ratio: 9 / 16; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); text-align: center; }
.clip-busy.tall { border-radius: var(--radius); border: 1px solid var(--border); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent-2); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* редактор */
.small { font-size: 13px; }
.hint { font-size: 13px; color: var(--text); background: rgba(139, 108, 255, .12); border: 1px solid rgba(139, 108, 255, .35); border-radius: 10px; padding: 10px 12px; }
.hint a { color: var(--accent-2); }
.editor { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 24px; align-items: start; }
.editor-preview { position: sticky; top: 84px; }
.editor-preview video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); display: block; }
.editor-panel h3 { margin: 0 0 6px; font-size: 17px; }
.bounds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.bound { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; }
.bound .btn { padding: 8px 10px; font-size: 13px; }
.bound input { text-align: center; }
.captions { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.cap-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; }
.cap-time { background: var(--surface-2); color: var(--muted); border: 0; border-radius: 8px; padding: 9px 4px; cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; }
.cap-time:hover { color: var(--text); }
.cap-row input { padding: 9px 10px; }
#refreshCaps { margin-bottom: 8px; }
@media (max-width: 760px) {
  .editor { grid-template-columns: 1fr; }
  .editor-preview { position: static; max-width: 300px; margin: 0 auto; }
  .bounds { grid-template-columns: 1fr; }
}

.pricing-head { text-align: center; }
.pricing-head h1 { margin-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 24px auto; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .big { font-size: 38px; font-weight: 800; margin: 14px 0 8px; letter-spacing: -.02em; }
.plan .btn { margin-top: auto; }
.plan.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; border: 2px solid transparent; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.features { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.features li { padding-left: 24px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.features li.off { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(141, 147, 165, .5); }
.features li.off::before { content: "—"; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border); padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); z-index: 10; }
.toast.err { border-color: var(--danger); }

@media (max-width: 600px) {
  .topbar { padding: 10px 16px; gap: 8px; }
  .quota { display: none; }
  .logo { font-size: 20px; gap: 9px; }
  .logo-mark { width: 38px; height: 38px; }
  #nav { gap: 2px; }
  #nav a { padding: 6px 7px; font-size: 14px; white-space: nowrap; }
  #nav a.btn-primary, #nav a.btn-primary:hover { padding: 7px 12px; }
  .card { padding: 18px; }
}

/* статус задачи: прогресс, время ожидания, отмена/перезапуск */
.status-card { display: grid; gap: 12px; margin-bottom: 18px; }
.status-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-foot p { margin: 0; flex: 1 1 260px; }

/* согласия, права, подтверждение email */
.check.consent, .check.rights { align-items: flex-start; margin-top: 14px; font-size: 14px; line-height: 1.45; }
.check.consent input, .check.rights input { margin-top: 3px; flex-shrink: 0; }
.check.rights { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 79, 216, .35); background: rgba(255, 79, 216, .06); margin-top: 18px; }
.check a { color: var(--accent); }
.hint.verify { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

/* выбор стиля субтитров */
.style-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sp-card { position: relative; display: grid; gap: 6px; cursor: pointer; margin: 0; color: var(--text); }
.sp-card input { position: absolute; opacity: 0; pointer-events: none; }
.sp-prev { height: 64px; border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 6px; border: 2px solid var(--border);
  background: radial-gradient(120% 120% at 30% 0%, #3a2e70, #15121f); font-weight: 900; font-size: 13px; line-height: 1.15; transition: border-color .15s; }
.sp-card input:checked + .sp-prev { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(255, 79, 216, .2); }
.sp-card input:focus-visible + .sp-prev { outline: 2px solid var(--accent); }
.sp-name { font-size: 13px; text-align: center; color: var(--muted); }
.sp-card input:checked ~ .sp-name { color: var(--text); font-weight: 700; }

/* пакеты минут */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 760px; margin: 18px auto 0; }
.pack { display: grid; gap: 6px; text-align: center; }
.pack b { font-size: 24px; }
.pack-price { font-size: 20px; font-weight: 700; color: var(--accent-2); }
.pack .btn { margin-top: 8px; }

/* админка */
.adm-item { margin-bottom: 12px; }
.adm-item p { margin: 6px 0; overflow-wrap: anywhere; }
.adm-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-actions { display: grid; gap: 8px; margin-top: 10px; }
.adm-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.adm-search { display: flex; gap: 8px; margin-bottom: 14px; }
.adm-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.adm-table th, .adm-table td { border-top: 1px solid var(--border); padding: 8px 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.adm-table .btn { padding: 6px 10px; font-size: 13px; }

/* подвал со ссылками на документы */
.site-footer { max-width: 1120px; margin: 0 auto; padding: 22px 16px 36px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* вход через соцсети и коды из письма */
.social { display: grid; gap: 10px; margin: 16px 0 6px; }
.social-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.btn-social { width: 100%; gap: 10px; border: 1px solid transparent; }
.btn-social[data-provider="yandex"] { background: #000; color: #fff; border-color: #3a3a3a; }
.btn-social[data-provider="vk"] { background: #0077ff; color: #fff; }
.btn-social svg { flex-shrink: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.verify-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verify-row input { width: 130px; letter-spacing: .15em; text-align: center; font-weight: 700; }

/* страница аккаунта */
#nav a.account-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px; color: var(--text); }
#nav a.account-link:hover { border-color: var(--accent); background: var(--surface); }
#nav a.account-link.warn { border-color: #f5a524; }
.acc-title { font-size: 28px; margin: 0 0 18px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.acc-card { display: grid; gap: 10px; }
.acc-card h3 { margin: 0; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.acc-card .btn { justify-self: start; }
.acc-plan { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acc-plan b { font-size: 28px; }
.acc-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 4px; }
.acc-minutes { display: flex; align-items: baseline; gap: 8px; }
.acc-minutes b { font-size: 40px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acc-minutes span { color: var(--muted); }
.acc-bar { height: 10px; }
.acc-card p { margin: 0; }
.acc-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.acc-dl dt { color: var(--muted); }
.acc-dl dd { margin: 0; overflow-wrap: anywhere; }
.acc-ok { color: var(--ok); font-size: 13px; margin-left: 6px; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-legal { margin-top: 22px; }
.acc-legal a { color: var(--muted); }
@media (max-width: 600px) { #nav a.account-link span { display: none; } #nav a.account-link { padding: 6px 9px; } #nav #adminLink { display: none; } }

/* минуты закончились: серые цифры и пустая серая полоса */
.acc-bar { background: #2b2f3b; }
.acc-bar.is-empty > div { width: 0 !important; }
.acc-minutes.is-empty b { background: none; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.acc-minutes.is-empty span { color: #f5a524; }

/* подвал всегда внизу: страница — колонка на всю высоту экрана, контент растягивается */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .site-footer { width: 100%; flex-shrink: 0; }

/* ===================== Страница «Мои видео» ===================== */
.di { width: 20px; height: 20px; flex-shrink: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { margin: 0 0 4px; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; }
.dash-head p { margin: 0; max-width: 560px; }
.dash-minutes { display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: baseline; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; min-width: 190px; }
.dash-minutes:hover { border-color: var(--accent); }
.dash-minutes b { font-size: 20px; }
.dash-minutes small { color: var(--muted); text-align: right; }
.dash-minutes i { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: #2b2f3b; overflow: hidden; margin-top: 4px; }
.dash-minutes i em { display: block; height: 100%; background: var(--gradient); }
.dash-minutes i.empty em { width: 0 !important; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "source settings" "submit settings"; grid-template-rows: min-content 1fr; gap: 18px; align-items: start; }
.dash-source { grid-area: source; display: grid; gap: 14px; }
.dash-settings { grid-area: settings; display: grid; gap: 4px; }
.dash-submit { grid-area: submit; display: grid; gap: 10px; }
.dash-step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.dash-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--gradient); }

/* сегментированный переключатель */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 0; color: var(--muted); padding: 10px 12px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.seg button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.seg-sm button { padding: 7px 12px; font-size: 14px; }

/* зона загрузки */
.drop-big { display: grid; justify-items: center; gap: 6px; padding: 38px 20px; border-radius: 16px; border: 2px dashed #3a3f50;
  background: radial-gradient(120% 100% at 50% 0%, rgba(139, 108, 255, .10), transparent 70%); transition: border-color .2s, background .2s, transform .2s; }
.drop-big:hover, .drop-big.over, .drop-big:focus-visible { border-color: var(--accent-2); background: radial-gradient(120% 100% at 50% 0%, rgba(255, 79, 216, .14), transparent 70%); outline: none; }
.drop-big.over { transform: scale(1.01); }
.drop-big b { font-size: 17px; color: var(--text); }
.drop-big span { color: var(--muted); }
.drop-big u { color: var(--accent); text-decoration: none; font-weight: 700; }
.drop-big small { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.drop-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gradient); color: #fff; margin-bottom: 6px; box-shadow: 0 10px 30px -10px rgba(192, 76, 240, .7); }
.drop-icon .di { width: 26px; height: 26px; }
.drop-big.has-file { border-style: solid; border-color: rgba(81, 207, 102, .5); }
.drop-big.has-file b { overflow-wrap: anywhere; text-align: center; }
.url-field { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.url-field:focus-within { border-color: var(--accent); }
.url-field .di { color: var(--muted); }
.url-field input { border: 0; background: transparent; padding: 13px 0; }
.url-field input:focus { outline: none; }
.upload-state { display: grid; gap: 6px; }
.upload-state p { margin: 0; }

/* группы настроек */
.set-group { padding: 14px 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.dash-step + .set-group { border-top: 0; padding-top: 10px; }
.set-group h3 { margin: 0; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.set-head { display: flex; justify-content: space-between; align-items: center; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.set-row.col { display: grid; justify-content: stretch; gap: 8px; }
.set-row > span { font-size: 15px; }
.set-row select { width: auto; min-width: 170px; }

/* поле числа с кнопками − / +: системные стрелки скрыты во всём приложении */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
  transition: border-color .15s, box-shadow .15s; }
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 108, 255, .18); }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: background .15s, transform .1s, opacity .15s; touch-action: manipulation; user-select: none; }
.stepper button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper button:hover:not(:disabled) { background: var(--gradient); color: #fff; }
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.stepper input { width: 46px; border: 0; border-radius: 0; text-align: center; font-weight: 800; font-size: 16px; padding: 6px 0; background: transparent;
  font-variant-numeric: tabular-nums; outline: none; }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chips button { display: grid; gap: 2px; padding: 9px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; text-align: center; }
.chips button small { color: var(--muted); font-size: 12px; }
.chips button.active { border-color: var(--accent-2); background: rgba(255, 79, 216, .08); }
.len-custom { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.len-field { display: inline-flex; align-items: center; gap: 8px; }
.len-field small, .len-note { font-size: 13px; color: var(--muted); }

.choice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-cards label { margin: 0; cursor: pointer; color: var(--text); }
.choice-cards input { position: absolute; opacity: 0; pointer-events: none; }
.choice-cards span { display: grid; justify-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); text-align: center; transition: border-color .15s; height: 100%; }
.choice-cards span .di { color: var(--accent); width: 22px; height: 22px; margin-bottom: 2px; }
.choice-cards small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.choice-cards input:checked + span { border-color: var(--accent-2); background: rgba(255, 79, 216, .08); }
.choice-cards input:focus-visible + span { outline: 2px solid var(--accent); }

/* переключатель-тумблер */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #3a3f50; transition: background .2s; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--gradient); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
#subsBody { display: grid; gap: 12px; transition: opacity .2s; }
#subsBody.off { opacity: .35; pointer-events: none; }

.ai-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 10px 0 0; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(139, 108, 255, .4); background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(255, 79, 216, .08)); color: var(--text); }
.ai-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient); color: #fff; }
.ai-text { display: grid; gap: 2px; }
.ai-text small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.ai-card.locked { border-color: var(--border); background: var(--bg); cursor: default; }
.ai-card.locked .ai-icon { background: var(--surface-2); color: var(--muted); }

.dash-submit .check.rights { margin-top: 0; }
.submit-btn { width: 100%; gap: 10px; font-size: 17px; padding: 16px; }
.submit-btn .di { width: 22px; height: 22px; }
.dash-submit .error:empty { display: none; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* список видео */
.section-title { align-items: baseline; }
.jobs { gap: 10px; }
.job { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.job:hover { transform: translateY(-1px); }
.job-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.job-done .job-icon { color: var(--ok); background: rgba(81, 207, 102, .1); }
.job-failed .job-icon { color: var(--danger); background: rgba(255, 107, 107, .1); }
.job-cancelled .job-icon { color: var(--muted); }
.job-icon.spin .di { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.job-main { display: grid; gap: 4px; min-width: 0; }
.job-meta { color: var(--muted); font-size: 13px; }
.job .progressbar { display: block; height: 6px; margin-top: 4px; }
.job .progressbar > span { display: block; height: 100%; background: var(--gradient); }
.badge.queued, .badge.downloading, .badge.transcribing, .badge.analyzing, .badge.rendering { color: var(--accent); background: rgba(139, 108, 255, .12); }
.badge.done { background: rgba(81, 207, 102, .1); }
.badge.failed { background: rgba(255, 107, 107, .1); }
.jobs-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.jobs-empty .di { width: 36px; height: 36px; color: var(--accent); margin-bottom: 4px; }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "source" "settings" "submit"; grid-template-rows: auto; }
}
@media (max-width: 600px) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-minutes { width: 100%; }
  .choice-cards small { display: none; }
  .job { grid-template-columns: auto minmax(0, 1fr); }
  .job .badge { grid-column: 2; justify-self: start; }
  .set-row select { min-width: 0; width: 100%; }
}

.dash-settings .style-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dash-settings .sp-prev { height: 58px; font-size: 11.5px; padding: 4px; }
@media (max-width: 600px) { .dash-settings .style-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* площадки для загрузки по ссылке */
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.platforms span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); color: var(--text); transition: all .15s; }
.platforms span.on { border-color: var(--accent-2); background: rgba(255, 79, 216, .14); color: #fff; }
.platforms span.more { border-style: dashed; color: var(--muted); font-weight: 500; }
#srcUrl > p { margin: 8px 0 0; }

/* ===== субтитры на сайте: те же 5 стилей, что в рендере клипов (шрифт Montserrat, OFL) ===== */
@font-face { font-family: "Montserrat Cap"; src: url("/fonts/montserrat-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat Cap"; src: url("/fonts/montserrat-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat Cap"; src: url("/fonts/montserrat-black.woff") format("woff"); font-weight: 900; font-display: swap; }
.cap { font-family: "Montserrat Cap", "Arial Black", sans-serif; font-weight: 800; text-transform: uppercase; color: #fff; text-align: center;
  line-height: 1.25; letter-spacing: .01em; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .32em; }
.cap span { display: inline-block; transition: color .18s, transform .18s, background-color .18s, text-shadow .18s, opacity .18s; }
/* Классика: белый, тонкая обводка, мягкая тень, активное слово — тёплый жёлтый */
.cap-classic span { -webkit-text-stroke: .045em #000; paint-order: stroke fill; text-shadow: 0 .08em .3em rgba(0, 0, 0, .65); }
.cap-classic span.on { color: #ffd43b; transform: scale(1.06); }
/* Акцент: активное слово на скруглённой фиолетовой плашке */
.cap-accent { font-weight: 900; gap: .1em .5em; }
.cap-accent span { padding: .05em .28em; margin: 0 -.28em; border-radius: .3em; text-shadow: 0 .08em .3em rgba(0, 0, 0, .6); }
.cap-accent span.on { background: #7c5cff; text-shadow: none; }
/* Неон: светящийся текст, активное слово светится голубым */
.cap-neon span { -webkit-text-stroke: .03em #ff4fd8; paint-order: stroke fill;
  text-shadow: 0 0 .12em #ff4fd8, 0 0 .4em rgba(255, 79, 216, .85), 0 0 .9em rgba(255, 79, 216, .55); }
.cap-neon span.on { -webkit-text-stroke-color: #4fe3ff; text-shadow: 0 0 .12em #4fe3ff, 0 0 .4em rgba(79, 227, 255, .9), 0 0 .9em rgba(79, 227, 255, .6); transform: scale(1.04); }
/* Минимал: спокойный текст на полупрозрачной плашке, ещё не сказанные слова приглушены */
.cap-minimal { font-weight: 600; text-transform: none; background: rgba(0, 0, 0, .55); padding: .3em .7em; border-radius: .55em; gap: .1em .26em;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cap-minimal span.up { opacity: .45; }
/* По слову: одно крупное слово с мягким «выпрыгиванием» */
.cap-word { font-weight: 900; font-size: 1.5em; }
.cap-word span { -webkit-text-stroke: .04em #000; paint-order: stroke fill; text-shadow: 0 .08em .3em rgba(0, 0, 0, .65); animation: cap-pop .16s ease-out; }
@keyframes cap-pop { from { transform: scale(.72); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cap span { transition: none; animation: none; } }

/* превью стиля в выборе: кадр-заглушка с подписью */
.sp-prev { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 20% 0%, #4b3a8f 0%, #22193f 45%, #0d0c14 100%); }
.sp-prev .cap { font-size: 12px; padding-left: 4px; padding-right: 4px; }
.sp-prev .cap-minimal { font-size: 11px; }
.sp-prev .cap-word { font-size: 18px; }
.dash-settings .sp-prev .cap { font-size: 10.5px; }
.dash-settings .sp-prev .cap-word { font-size: 16px; }

/* ===== меню ===== */
.nav-create { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text) !important; padding: 7px 13px;
  border-radius: 999px; border: 1px solid rgba(139, 108, 255, .45); background: rgba(124, 92, 255, .12); }
.nav-create .di { width: 16px; height: 16px; }
.nav-create:hover { background: rgba(124, 92, 255, .22); }

/* ===== «Мои видео» ===== */
.vids-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vids-head h1 { margin: 0 0 4px; }
.vids-head p { margin: 0; }
.vids-head .btn { display: inline-flex; align-items: center; gap: 8px; }
.vids-head .btn .di { width: 18px; height: 18px; }
.vids-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.vids-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.vids-filters button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 13px; border-radius: 999px;
  cursor: pointer; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.vids-filters button span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--bg); }
.vids-filters button.active { color: #fff; background: var(--gradient); border-color: transparent; }
.vids-filters button.active span { background: rgba(0, 0, 0, .25); }
.vids-search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); min-width: 240px; }
.vids-search .di { width: 17px; height: 17px; color: var(--muted); }
.vids-search input { border: 0 !important; background: transparent !important; padding: 10px 0 !important; outline: none; }
.vids-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.vcard { display: grid; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s; }
.vcard:hover { transform: translateY(-3px); border-color: rgba(139, 108, 255, .55); box-shadow: 0 18px 40px -24px rgba(124, 92, 255, .7); }
.vcard-thumb { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 120% at 20% 0%, #2a2350, #121219); overflow: hidden; }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .3s; }
.vcard:hover .vcard-thumb img { transform: scale(1.04); }
.vcard-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.vcard-ph .di { width: 34px; height: 34px; }
.vcard-dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; }
.vcard-badge { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vcard-badge.done { background: rgba(43, 138, 62, .85); }
.vcard-badge.failed { background: rgba(201, 42, 42, .85); }
.vcard-progress { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; background: rgba(10, 10, 16, .72); text-align: center; padding: 10px; }
.vcard-progress b { font-size: 22px; }
.vcard-progress small { color: var(--muted); font-size: 12px; }
.vcard-progress .spinner { width: 22px; height: 22px; }
.vcard-progress i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.vcard-progress em { display: block; height: 100%; background: var(--gradient); }
.vcard-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.vcard-title { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vcard-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.vcard-meta .di { width: 14px; height: 14px; }
.vids-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 56px 20px; border: 1px dashed var(--border); border-radius: 18px; }
.vids-empty > .di { width: 40px; height: 40px; color: var(--accent); }
.vids-empty .btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; }
.vids-none { grid-column: 1 / -1; }

/* ===== клипы видео: выбор и удаление ===== */
.btn .di { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.btn.icon-only .di { margin: 0; }
.btn-danger-text { color: #ff8787 !important; }
.btn-danger-text:hover:not(:disabled) { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .4); }
.clips-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); position: sticky; top: 72px; z-index: 5; }
.clips-bar .check { margin: 0; }
.clips-bar-actions { margin-left: auto; display: flex; gap: 8px; }
.clips-bar-actions .btn { padding: 8px 12px; font-size: 14px; }
.clips-bar-actions .btn:disabled { opacity: .4; }
.clip-media { position: relative; }
.clip-media video, .clip-media .clip-busy { display: block; width: 100%; }
.clip-select { position: absolute; top: 8px; left: 8px; margin: 0; cursor: pointer; z-index: 2; }
.clip-select input { position: absolute; opacity: 0; }
.clip-select span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(0, 0, 0, .55);
  border: 2px solid rgba(255, 255, 255, .7); color: transparent; transition: all .15s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.clip-select span .di { width: 16px; height: 16px; }
.clip-select input:checked + span { background: var(--gradient); border-color: transparent; color: #fff; }
.clip-select input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.clip-select input:disabled + span { opacity: .3; }
.clip-score { position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; color: #fff; background: var(--gradient); }
.clip.selected { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(255, 79, 216, .35); }
.clip-actions { grid-template-columns: 1fr 1fr auto; }

/* ===== редактор ===== */
.ed-head { margin: 8px 0 18px; }
.ed-head h1 { margin: 0 0 2px; font-size: 24px; }
.ed-view { margin-bottom: 10px; }
.editor-preview video.src { aspect-ratio: 16 / 9; }
.ed-quick { display: grid; margin-top: 10px; }
.ed-quick .btn { display: inline-flex; justify-content: center; align-items: center; }
.editor-panel { padding: 0; overflow: hidden; }
.ed-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.ed-tabs button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; font: inherit; font-weight: 700; font-size: 14px; padding: 14px 8px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ed-tabs button .di { width: 17px; height: 17px; }
.ed-tabs button.active { color: var(--text); border-bottom-color: var(--accent-2); background: rgba(124, 92, 255, .06); }
.ed-pane { padding: 18px 20px 6px; display: grid; gap: 10px; }
.ed-pane h4 { margin: 10px 0 0; font-size: 15px; }
.ed-pane label { margin: 4px 0 -4px; }
.ed-pane textarea { width: 100%; resize: vertical; font: inherit; font-size: 15px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.ed-pane .set-head h4 { margin: 0; }
#edSubsBody.off { opacity: .4; pointer-events: none; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ed-save { display: grid; gap: 6px; padding: 14px 20px 18px; border-top: 1px solid var(--border); margin-top: 12px; position: sticky; bottom: 0; background: var(--surface); }
.ed-save .error { margin: 0; }
.ed-save .btn { display: inline-flex; justify-content: center; align-items: center; }
#dirtyInfo.on { color: var(--accent-2); font-weight: 700; }
.trim { display: grid; gap: 8px; }
.trim-head { display: flex; justify-content: space-between; align-items: baseline; }
.trim-head b { font-size: 20px; font-variant-numeric: tabular-nums; }
.trim-head b.bad { color: #ff8787; }
.trim-track { position: relative; height: 46px; border-radius: 10px; background: repeating-linear-gradient(90deg, #1b1e27 0 6px, #20242f 6px 12px); border: 1px solid var(--border); touch-action: none; }
.trim-range { position: absolute; top: -1px; bottom: -1px; border: 2px solid var(--accent-2); border-radius: 10px; background: rgba(255, 79, 216, .14); z-index: 2; }
.trim-orig { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, .25); z-index: 1; }
.trim-h { position: absolute; top: 50%; width: 16px; height: 34px; margin-top: -17px; border-radius: 6px; background: #fff; cursor: ew-resize; touch-action: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.trim-h::after { content: ""; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 4px; border-left: 1px solid #999; border-right: 1px solid #999; }
.trim-h[data-h="start"] { left: -9px; }
.trim-h[data-h="end"] { right: -9px; }
.trim-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trim-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.trim-nums { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.trim-num { display: grid; gap: 4px; }
.trim-num small { color: var(--muted); font-size: 12px; }
.trim-nudge { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.trim-nudge button { font: inherit; font-size: 12px; font-weight: 700; padding: 5px 8px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.trim-nudge button:hover { background: var(--gradient); color: #fff; }
.trim-nudge b { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.trim-reset { margin-left: auto; padding: 8px 12px; font-size: 13px; }
@media (max-width: 600px) {
  .vids-search { min-width: 0; width: 100%; }
  .ed-tabs button { font-size: 12.5px; padding: 12px 4px; }
  .ed-tabs button .di { display: none; }
  .clips-bar { top: 64px; }
}

@media (max-width: 600px) {
  .nav-create { padding: 7px; }
  .nav-create span { display: none; }
}

/* ===== создание видео: оценка минут и советы ===== */
.file-est { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(139, 108, 255, .3); }
.file-est .di { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.file-est.bad { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .4); }
.file-est.bad .di { color: #ff8787; }
.dash-tips { grid-column: 1 / -1; }
.dash-tips h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.dash-tips h3 .di { color: var(--accent); }
.dash-tips ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.dash-tips li { font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); line-height: 1.45; }
.dash-tips li b { display: block; color: var(--text); margin-bottom: 3px; }

/* ===== тарифы: сравнение и вопросы ===== */
.cmp-wrap, .pfaq { max-width: 1000px; margin: 46px auto 0; }
.cmp-wrap h2, .pfaq h2 { text-align: center; margin: 0 0 18px; }
.cmp-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--muted); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.cmp th { font-size: 16px; padding-top: 16px; }
.cmp th small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.cmp .hl { background: rgba(124, 92, 255, .08); }
.cmp th.hl { color: #fff; box-shadow: inset 0 3px 0 var(--accent-2); }
.cmp-yes { color: #51cf66; font-weight: 900; }
.cmp-no { color: #5c6273; }
.pfaq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pfaq-item { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.pfaq-item b { font-size: 15.5px; }
.pfaq-item p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; }

/* ===== 404 и «наверх» ===== */
.nf { text-align: center; padding: 70px 16px 40px; display: grid; justify-items: center; gap: 6px; }
.nf-code { font-size: clamp(80px, 18vw, 150px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.nf-code span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin: 10px 0 0; }
.nf-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: opacity .25s, transform .25s, background .2s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gradient); border-color: transparent; color: #fff; }
@media (max-width: 600px) {
  .pfaq-grid { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ===== аккаунт ===== */
.ring .ring-val { transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.acc-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; margin-bottom: 18px;
  border: 1px solid var(--border); background: radial-gradient(90% 140% at 0% 0%, rgba(124, 92, 255, .2), transparent 60%), var(--surface); }
.acc-avatar { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 32px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #2f7bff, #18c3d6); box-shadow: 0 14px 30px -12px rgba(24, 195, 214, .6); }
.acc-who h1 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.acc-who p { margin: 2px 0 10px; overflow-wrap: anywhere; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.acc-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-badge.ok { color: #51cf66; border-color: rgba(81, 207, 102, .35); }
.acc-badge.warn { color: #f5a524; border-color: rgba(245, 165, 36, .4); }
.acc-badge.plan-free { color: #c9c3ff; border-color: rgba(139, 108, 255, .4); }
.acc-badge.plan-start { color: #fff; background: linear-gradient(135deg, #7c5cff, #c04cf0); border-color: transparent; }
.acc-badge.plan-pro { color: #1b1206; background: linear-gradient(135deg, #ffd27a, #ff4fd8); border-color: transparent; }
.acc-hero-cta { display: inline-flex; align-items: center; gap: 8px; }
.acc-hero-cta .di { width: 18px; height: 18px; margin: 0; }

.acc-grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 18px; }
.acc-plan-card { position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 22px; color: #fff;
  background: linear-gradient(140deg, #2a2350 0%, #1a1730 55%, #141320 100%); border: 1px solid rgba(139, 108, 255, .35); }
.acc-plan-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, .45), transparent 70%); pointer-events: none; }
.acc-plan-card.plan-start { background: linear-gradient(140deg, #5a3fd6 0%, #8e3cc7 50%, #2a1840 100%); border-color: rgba(192, 76, 240, .55); }
.acc-plan-card.plan-start::before { background: radial-gradient(circle, rgba(255, 79, 216, .5), transparent 70%); }
.acc-plan-card.plan-pro { background: linear-gradient(140deg, #3a1f52 0%, #7a2c6e 45%, #b8577a 75%, #d9a55a 100%); border-color: rgba(255, 210, 122, .5); }
.acc-plan-card.plan-pro::before { background: radial-gradient(circle, rgba(255, 210, 122, .55), transparent 70%); }
.acc-plan-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acc-plan-top small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.acc-plan-top b { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
.acc-plan-price { font-size: 24px; font-weight: 800; white-space: nowrap; }
.acc-plan-price small { font-size: 14px; font-weight: 600; opacity: .75; }
.acc-plan-tag { position: relative; margin: -4px 0 0; opacity: .8; font-size: 14.5px; }
.acc-feats { position: relative; list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.acc-feats li { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.acc-feats svg, .acc-up svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-plan-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.acc-plan-foot .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.acc-plan-foot .btn:hover { background: rgba(255, 255, 255, .2); }

.acc-min { display: grid; gap: 14px; align-content: start; }
.acc-min h3, .acc-box h3 { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.acc-min-main { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.acc-ring { position: relative; width: 120px; height: 120px; }
.acc-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.acc-ring b { font-size: 30px; line-height: 1; font-weight: 900; }
.acc-ring small { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.acc-ring.is-empty b { color: var(--muted); }
.acc-min-hint { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.acc-min-hint.warn { color: #f5a524; }
.acc-min-side dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.acc-min-side dt { color: var(--muted); }
.acc-min-side dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-min p { margin: 0; }
.acc-min .btn { justify-self: start; }

.acc-up { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; margin-bottom: 18px;
  border: 1px dashed rgba(255, 79, 216, .45); background: linear-gradient(90deg, rgba(124, 92, 255, .1), rgba(255, 79, 216, .06)); }
.acc-up-text { display: grid; gap: 4px; }
.acc-up-text small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); font-weight: 700; }
.acc-up-text b { font-size: 17px; }
.acc-up ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.acc-up li { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.acc-up li svg { color: var(--accent-2); margin: 0; }

.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.acc-stat { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.acc-stat .di { width: 20px; height: 20px; color: var(--accent); margin-bottom: 6px; }
.acc-stat b { font-size: 26px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.acc-stat b small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.acc-stat span { color: var(--muted); font-size: 13px; }

.acc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.acc-box { display: grid; gap: 12px; }
.acc-box .btn { justify-self: start; }
.acc-last { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding: 8px; margin: 0 -8px;
  border-radius: 12px; transition: background .15s; }
.acc-last:hover { background: rgba(255, 255, 255, .04); }
.acc-last img, .acc-last-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.acc-last-ph { display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.acc-last b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-last small { color: var(--muted); font-size: 12.5px; }
.acc-links { display: grid; gap: 2px; }
.acc-links a { color: var(--text); text-decoration: none; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.acc-links a:last-child { border-bottom: 0; }
.acc-links a:hover { color: var(--accent); }

/* плашка минут на «Создать видео» */
.dash-minutes { display: flex !important; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; text-decoration: none; color: var(--text); }
.dm-ring { display: grid; }
.dm-ring.is-empty .ring-val { stroke: #5c6273; }
.dm-text { display: grid; line-height: 1.2; }
.dm-text b { font-size: 17px; }
.dm-text small { color: var(--muted); font-size: 12px; text-align: left; }

@media (max-width: 960px) {
  .acc-grid2, .acc-grid3 { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .acc-hero { grid-template-columns: auto 1fr; padding: 16px; }
  .acc-hero-cta { grid-column: 1 / -1; justify-content: center; }
  .acc-avatar { width: 56px; height: 56px; font-size: 26px; border-radius: 18px; }
  .acc-who h1 { font-size: 21px; }
  .acc-feats { grid-template-columns: 1fr; }
  .acc-plan-top b { font-size: 30px; }
  .acc-min-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .acc-min-side dl { text-align: left; }
}

/* подсветка раздела, к которому прокрутили по ссылке */
#packs, #cmpWrap { border-radius: 22px; scroll-margin-top: 84px; }
.lp-section.flash, .lp-showcase.flash { animation: none; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 3px rgba(255, 79, 216, .55), 0 0 40px rgba(255, 79, 216, .25); } 100% { box-shadow: 0 0 0 3px transparent; } }


/* пакеты минут: скидка растёт с размером */
.pack { position: relative; }
.pack-off { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 800; padding: 3px 10px;
  border-radius: 999px; color: #fff; background: rgba(124, 92, 255, .9); }
.pack-best { border-color: var(--accent-2); box-shadow: 0 0 0 1px rgba(255, 79, 216, .4), 0 20px 50px -30px rgba(255, 79, 216, .7); }
.pack-best .pack-off { background: var(--gradient); }
.pack-cost { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 38px; }
.pack-old { font-size: 17px; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; }
.pack-old::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; background: #ff6b6b; transform: rotate(-12deg); border-radius: 2px; }
.pack-sale { font-size: 14px; font-weight: 900; padding: 3px 9px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #ff4f6d, #ff4fd8);
  box-shadow: 0 6px 16px -6px rgba(255, 79, 109, .8); }

/* ===== выбор языка речи ===== */
.lang-pick { display: grid; gap: 8px; }
.lang-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lang-pick button { display: grid; justify-items: center; gap: 5px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.lang-pick button:hover { border-color: #3d4356; }
.lang-pick button b { font-size: 13px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lang-pick button.active { border-color: var(--accent-2); background: rgba(255, 79, 216, .08); }
.lang-code { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 11px; font-weight: 900;
  letter-spacing: .04em; color: var(--muted); background: rgba(255, 255, 255, .06); }
.lang-code.auto { color: var(--accent); background: rgba(124, 92, 255, .15); }
.lang-code .di { width: 14px; height: 14px; }
.lang-pick button.active .lang-code { color: #fff; background: var(--gradient); }
.lang-more { border-style: dashed !important; }
.lang-more.active { border-style: solid !important; }
.lang-pick.open .lang-more { border-color: var(--accent); }
.lang-panel { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
  animation: lang-in .18s ease; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } }
.lang-search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.lang-search .di { width: 16px; height: 16px; color: var(--muted); }
.lang-search input { border: 0 !important; background: transparent !important; padding: 9px 0 !important; outline: none; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; }
.lang-grid button { grid-auto-flow: column; justify-content: start; gap: 8px; padding: 8px 10px; }
.lang-grid button[hidden] { display: none; }
.lang-none { margin: 0; }
@media (max-width: 600px) {
  .lang-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lang-grid { scrollbar-width: thin; scrollbar-color: #3d4356 transparent; }
.lang-grid::-webkit-scrollbar { width: 8px; }
.lang-grid::-webkit-scrollbar-thumb { background: #3d4356; border-radius: 8px; }
.lang-grid::-webkit-scrollbar-track { background: transparent; }

/* ===== шаг «Подтвердите почту» ===== */
.verify-step { text-align: center; }
.verify-icon { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--gradient);
  box-shadow: 0 14px 30px -12px rgba(255, 79, 216, .7); }
.verify-icon .di { width: 28px; height: 28px; }
.verify-step p { margin: 6px 0; }
.verify-code { margin-top: 16px; text-align: center; font-size: 30px !important; font-weight: 800; letter-spacing: .5em; padding: 14px 0 14px .5em !important;
  font-variant-numeric: tabular-nums; }
.verify-code::placeholder { color: #3a3f4d; opacity: 1; letter-spacing: .5em; }
.verify-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.verify-hint { margin-top: 14px !important; }

/* ===== пароль: глазок и правила ===== */
.pw-field { position: relative; }
.pw-field input { padding-right: 44px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye:hover, .pw-eye.on { color: var(--accent); }
.pw-meter { margin: 10px 0 4px; display: grid; gap: 9px; --lvl: #4a5060; }
.pw-meter[data-level="1"], .pw-meter[data-level="2"] { --lvl: #ff6b6b; }
.pw-meter[data-level="3"] { --lvl: #f5a524; }
.pw-meter[data-level="4"] { --lvl: #c9d63a; }
.pw-meter[data-level="5"] { --lvl: #51cf66; }
.pw-meter-top { display: flex; align-items: center; gap: 12px; }
.pw-bar { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pw-bar i { height: 5px; border-radius: 9px; background: #2b2f3b; transition: background .2s; }
.pw-bar i.on { background: var(--lvl); }
.pw-level { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 112px; text-align: right; transition: color .2s; }
.pw-meter.touched .pw-level { color: var(--lvl); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border); transition: all .15s; cursor: default; }
.pw-rules li::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #4a5060; transition: all .15s; }
.pw-rules li.ok { color: #51cf66; border-color: rgba(81, 207, 102, .45); background: rgba(81, 207, 102, .08); }
.pw-rules li.ok::before { border-color: #51cf66; background: #51cf66 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0e12' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* ===== регистрация: шаг с кодом ===== */
.signup-code { text-align: center; }
.signup-code p { margin: 8px 0; }
.signup-code .verify-code { margin-top: 10px; }

/* ===== кнопка и меню аккаунта в шапке ===== */
.acc-menu { position: relative; }
.acc-btn { display: inline-flex; align-items: center; gap: 11px; padding: 5px 12px 5px 5px; min-height: 48px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.acc-btn:hover, .acc-btn[aria-expanded="true"] { border-color: rgba(139, 108, 255, .6); background: var(--surface-2); }
.acc-btn.warn { border-color: #f5a524; }
.acc-ava { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, #3a3550, #24222f); }
.acc-ava svg { width: 16px; height: 16px; }
.acc-ava.plan-free, .acc-ava.plan-start, .acc-ava.plan-pro, .acc-ava.plan-studio { background: linear-gradient(135deg, #2f7bff, #18c3d6); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.acc-ava.lg { width: 42px; height: 42px; font-size: 18px; }
.acc-btn-text { display: grid; gap: 4px; text-align: left; line-height: 1.1; min-width: 0; max-width: 170px; }
.acc-btn-text b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-btn-text small { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.nav-plan { font-style: normal; font-weight: 800; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  color: #d9d2ff; background: rgba(124, 92, 255, .2); border: 1px solid rgba(139, 108, 255, .35); }
.nav-plan.plan-start { color: #fff; background: linear-gradient(135deg, #7c5cff, #c04cf0); border-color: transparent; }
.nav-plan.plan-pro { color: #1b1206; background: linear-gradient(135deg, #ffd27a, #ff4fd8); border-color: transparent; }
.nav-min { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.nav-min svg { width: 13px; height: 13px; color: var(--muted); }
.acc-btn.warn .nav-min, .acc-btn.warn .nav-min svg { color: #f5a524; }
.acc-chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; transition: transform .2s; }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.acc-drop { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; z-index: 50; padding: 8px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); animation: acc-drop .16s ease; }
@keyframes acc-drop { from { opacity: 0; transform: translateY(-6px); } }
.acc-drop-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.acc-drop-head div { display: grid; min-width: 0; }
.acc-drop-head b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-drop-head small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-drop-min { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; margin: 0 0 6px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg); color: var(--text) !important; text-decoration: none; font-size: 13.5px; }
.acc-drop-min:hover { background: var(--surface-2); }
.acc-drop-min i { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: #2b2f3b; overflow: hidden; }
.acc-drop-min u { display: block; height: 100%; background: var(--gradient); }
.acc-drop-min i.empty u { width: 0 !important; }
.acc-drop-min em { font-style: normal; }
.acc-drop-links { display: grid; padding: 4px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.acc-drop-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text) !important; text-decoration: none; font-size: 14.5px; }
.acc-drop-links a:hover { background: var(--surface-2); }
.acc-drop-links a svg { width: 17px; height: 17px; color: var(--muted); }
.acc-drop-out { width: 100%; margin-top: 4px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #ff8787; font: inherit; font-size: 14.5px;
  text-align: left; cursor: pointer; }
.acc-drop-out:hover { background: rgba(255, 107, 107, .1); }
@media (max-width: 760px) {
  .nav-hide-sm { display: none !important; }
  .acc-btn-text, .acc-chev { display: none; }
  .acc-btn { padding: 3px; min-height: 0; }
}

/* ===== страница «Аккаунт»: две колонки, больше воздуха ===== */
.acc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.acc-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.acc-profile { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 20px 22px; border-radius: 22px; border: 1px solid var(--border);
  background: radial-gradient(120% 80% at 50% 0%, rgba(124, 92, 255, .2), transparent 70%), var(--surface); }
.acc-avatar { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #2f7bff, #18c3d6); box-shadow: 0 18px 40px -16px rgba(24, 195, 214, .6); margin-bottom: 4px; }
.acc-name { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.acc-name h1 { margin: 0; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name-edit { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0; }
.acc-name-edit:hover { color: var(--accent); border-color: var(--accent); }
.acc-name-edit .di { width: 15px; height: 15px; }
.acc-name-form { display: grid; gap: 8px; width: 100%; }
.acc-name-form div { display: flex; gap: 8px; justify-content: center; }
.acc-name-form .btn { padding: 8px 14px; font-size: 14px; }
.acc-name-form .error { margin: 0; }
.acc-email { margin: -2px 0 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.acc-profile .acc-badges { justify-content: center; }
.acc-tiles { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.acc-tile { display: grid; justify-items: start; gap: 2px; padding: 11px 12px; border-radius: 14px; text-align: left; min-width: 0;
  background: var(--bg); border: 1px solid var(--border); }
.acc-tile-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 6px; color: #c9c3ff;
  background: rgba(124, 92, 255, .14); }
.acc-tile-ico svg { width: 16px; height: 16px; }
.acc-tile-ico.ya { background: rgba(252, 63, 29, .12); }
.acc-tile small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acc-tile b { font-size: 13.5px; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.acc-side-cta { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.acc-side-cta .di { width: 18px; height: 18px; margin: 0; }
.acc-toc { display: grid; gap: 2px; padding: 8px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.acc-toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.acc-toc a:hover { background: var(--surface-2); }
.acc-toc a svg { width: 17px; height: 17px; color: var(--muted); }
.acc-main { display: grid; gap: 40px; min-width: 0; }
.acc-sec { display: grid; gap: 18px; scroll-margin-top: 84px; }
.acc-sec > h2 { margin: 0; font-size: 21px; }
.acc-main .acc-grid2 { margin: 0; gap: 20px; }
.acc-main .acc-up { margin: 0; }
.acc-main .acc-stats { margin: 0; gap: 16px; }
.acc-main .acc-stat { padding: 20px 20px; }
.acc-main .acc-box { padding: 22px 24px; gap: 14px; }
.acc-lastbox { max-width: 560px; }
.acc-sec.flash { animation: none; }
@media (max-width: 960px) {
  .acc-layout { grid-template-columns: 1fr; gap: 24px; }
  .acc-side { position: static; }
  .acc-toc { display: none; }
}

/* ===== приветствие на тарифах после регистрации ===== */
.welcome-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto 26px; padding: 18px 22px; border-radius: 18px;
  border: 1px solid rgba(255, 79, 216, .45); background: linear-gradient(110deg, rgba(124, 92, 255, .18), rgba(255, 79, 216, .1)); }
.welcome-emoji { font-size: 30px; }
.welcome-banner > div { flex: 1; min-width: 220px; }
.welcome-banner b { font-size: 17px; }
.welcome-banner p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.acc-main .acc-feats { grid-template-columns: 1fr; }
.acc-min-side dd { white-space: nowrap; }
.acc-main .acc-min-main { gap: 22px; }

/* ===== меню профиля: подписи пунктов ===== */
.acc-drop-links a span { display: grid; line-height: 1.25; }
.acc-drop-links a small { font-size: 12px; color: var(--muted); }

/* ===== аккаунт: профиль левее и на уровне карточек ===== */
.acc-side { margin-top: 43px; }
.acc-toc-sep { padding: 10px 12px 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 1240px) { .acc-layout { margin-left: -56px; gap: 44px; } }
@media (max-width: 960px) { .acc-side { margin-top: 0; } }

/* ===== общие шапки страниц ===== */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0 0 4px; }
.page-head p { margin: 0; max-width: 640px; }
.page-head .btn { display: inline-flex; align-items: center; gap: 8px; }
.page-head .btn .di { width: 17px; height: 17px; margin: 0; }

/* ===== помощь ===== */
.help-hero { margin-bottom: 20px; }
.help-hero h1 { margin: 0 0 4px; }
.help-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.help-card { display: grid; gap: 6px; text-decoration: none; color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s; }
.help-card:hover { border-color: rgba(139, 108, 255, .55); transform: translateY(-2px); }
.help-card .di { width: 24px; height: 24px; color: var(--accent); }
.help-card b { font-size: 15.5px; }
.help-card span { color: var(--muted); font-size: 13.5px; }
.help-h { margin: 34px 0 14px; font-size: 20px; }
.help-faq { display: grid; gap: 10px; }
.help-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 16px; }
.help-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.help-faq details p { margin: 0 0 14px; color: var(--muted); }
.help-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.help-docs a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.help-docs a:hover { border-color: var(--accent); }
@media (max-width: 900px) {
  .hist-sum, .help-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .help-cards { grid-template-columns: 1fr; }
}

/* ===== история минут ===== */
.hist-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.hist-sum .card { display: grid; gap: 4px; }
.hist-sum small { color: var(--muted); font-size: 12.5px; }
.hist-sum b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hist-sum b i { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }
.hist-sum span { color: var(--muted); font-size: 13px; }
.hist-list { padding: 6px 0; overflow-x: auto; }
.hist-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.hist-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.hist-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.hist-table tr:last-child td { border-bottom: 0; }
.hist-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hist-table td a { color: var(--text); font-weight: 600; text-decoration: none; }
.hist-table td a:hover { color: var(--accent); }
.hist-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.hist-table tr.free .num { color: var(--muted); font-weight: 500; }

/* ===== пригласить друга ===== */
.invite-note { margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: rgba(124, 92, 255, .14); border: 1px solid rgba(139, 108, 255, .4); }
.inv-hero { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 22px; margin-bottom: 20px; border: 1px solid rgba(255, 79, 216, .35);
  background: radial-gradient(80% 140% at 0% 0%, rgba(124, 92, 255, .25), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(255, 79, 216, .18), transparent 60%), var(--surface); }
.inv-gift { width: 84px; height: 84px; flex-shrink: 0; border-radius: 24px; display: grid; place-items: center; color: #fff; background: var(--gradient);
  box-shadow: 0 18px 40px -16px rgba(255, 79, 216, .8); }
.inv-gift .di { width: 42px; height: 42px; }
.inv-hero h1 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.inv-hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inv-hero p { margin: 0; max-width: 620px; }
.inv-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.inv-link-card, .inv-stats { display: grid; gap: 12px; align-content: start; }
.inv-link-card h3, .inv-stats h3 { margin: 0; font-size: 16px; }
.inv-link { display: flex; gap: 8px; }
.inv-link input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.inv-link .btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.inv-link .btn .di { width: 17px; height: 17px; margin: 0; }
.inv-code { letter-spacing: .12em; color: var(--text); }
.inv-share { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-share-btn { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff !important;
  background: color-mix(in srgb, var(--c) 85%, #000); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.inv-share-btn:hover { background: var(--c); }
.inv-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv-nums div { display: grid; gap: 2px; padding: 14px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.inv-nums b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.inv-nums span { font-size: 12.5px; color: var(--muted); }
.inv-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.inv-steps li { counter-increment: s; display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.inv-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff;
  background: var(--gradient); margin-bottom: 4px; }
.inv-steps span { color: var(--muted); font-size: 14px; }
.inv-rules { margin-top: 16px; }
@media (max-width: 800px) {
  .inv-grid, .inv-steps { grid-template-columns: 1fr; }
  .inv-hero { flex-direction: column; align-items: flex-start; }
}
.inv-example { margin-top: 14px; display: grid; gap: 10px; }
.inv-example h3 { margin: 0; font-size: 16px; }
.inv-example ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inv-example li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.inv-example li b { white-space: nowrap; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.inv-example p { margin: 0; }

/* ===== аккаунт: безопасность ===== */
.sec-list { padding: 6px 0 !important; display: grid; }
.sec-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 22px; }
.sec-row + .sec-row { border-top: 1px solid var(--border); }
.sec-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #c9c3ff;
  background: rgba(124, 92, 255, .12); border: 1px solid rgba(139, 108, 255, .25); }
.sec-ico svg { width: 21px; height: 21px; }
.sec-ico.ya { background: rgba(252, 63, 29, .1); border-color: rgba(252, 63, 29, .3); }
.sec-ico.danger { color: #ff8787; background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .25); }
.sec-text { display: grid; gap: 2px; min-width: 0; }
.sec-text b { font-size: 15px; }
.sec-text span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-dots { letter-spacing: .18em; font-size: 15px !important; }
.sec-status { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #51cf66; white-space: nowrap; }
.sec-status .di { width: 15px; height: 15px; }
.btn-sm { padding: 8px 14px !important; font-size: 14px !important; white-space: nowrap; }
.login-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); vertical-align: middle; }
.login-chip svg { width: 15px; height: 15px; }
.login-chip.mail svg { color: #a99bff; }
.login-chip.ya { border-color: rgba(252, 63, 29, .35); }
@media (max-width: 560px) {
  .sec-row { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 16px; gap: 12px; }
  .sec-ico { width: 38px; height: 38px; border-radius: 11px; }
  .sec-row > :last-child { grid-column: 2; justify-self: start; }
}
.sec-link { color: var(--text) !important; text-decoration: none; transition: background .15s; }
.sec-link[hidden] { display: none; }
.sec-link:hover { background: var(--surface-2); }
.sec-link:hover .sec-go { color: var(--text); transform: translateX(2px); }
.sec-go { width: 20px; height: 20px; color: var(--muted); transition: color .15s, transform .15s; }
.sec-go svg { width: 18px; height: 18px; }
.sec-ico.accent { color: #fff; background: var(--gradient); border-color: transparent; }
.sec-list .sec-row:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.sec-list .sec-row:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
@media (max-width: 560px) {
  .sec-link { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .sec-row.sec-link > :last-child { grid-column: auto; justify-self: end; }
}

/* ===== поддержка: форма ===== */
.sup-wrap { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.sup-head { display: flex; align-items: center; gap: 16px; }
.sup-head h1 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 30px); }
.sup-head p { margin: 0; }
.sup-badge { width: 56px; height: 56px; flex-shrink: 0; border-radius: 17px; display: grid; place-items: center; color: #fff; background: var(--gradient);
  box-shadow: 0 14px 30px -14px rgba(255, 79, 216, .8); }
.sup-badge .di { width: 26px; height: 26px; }
.sup-form { display: grid; gap: 18px; padding: 24px !important; }
.sup-field { display: grid; gap: 8px; }
.sup-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.sup-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-topic { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); transition: all .15s; margin: 0; }
.sup-topic .di { width: 17px; height: 17px; color: var(--muted); }
.sup-topic:hover { border-color: rgba(139, 108, 255, .5); }
.sup-topic[aria-checked="true"] { border-color: transparent; background: rgba(124, 92, 255, .22); box-shadow: inset 0 0 0 1.5px #8b6cff; }
.sup-topic[aria-checked="true"] .di { color: #c9c3ff; }
.sup-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.sup-count { justify-self: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -4px; }
.sup-me { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: 14.5px; }
.sup-me .di { width: 18px; height: 18px; color: #51cf66; }
.sup-tech { font-size: 13.5px; color: var(--muted); }
.sup-send { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; }
.sup-send .di { width: 18px; height: 18px; }
.sup-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 36px 24px !important; }
.sup-done h2 { margin: 6px 0 0; }
.sup-done p { margin: 0; max-width: 440px; }
.sup-done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #0d0e12; background: #51cf66; }
.sup-done-ico .di { width: 32px; height: 32px; stroke-width: 3; }
.sup-done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.sup-alt { text-align: center; margin: 0; }
.sup-copy { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 2px 8px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.sup-copy .di { width: 14px; height: 14px; color: var(--muted); }
.sup-copy:hover { border-color: rgba(139, 108, 255, .5); }
@media (max-width: 560px) {
  .sup-form { padding: 18px !important; }
  .sup-send { justify-self: stretch; justify-content: center; }
}

/* ===== тариф «Студия» ===== */
.acc-badge.plan-studio, .nav-plan.plan-studio { color: #ffe3a3; background: linear-gradient(135deg, #2a2233, #0f0c14); border: 1px solid #d9a55a; }
.acc-plan-card.plan-studio { background: linear-gradient(140deg, #14111c 0%, #241a2c 45%, #3b2a1f 80%, #6b4a22 100%); border-color: rgba(217, 165, 90, .6); }
.acc-plan-card.plan-studio::before { background: radial-gradient(circle, rgba(255, 210, 122, .45), transparent 70%); }
.plan.plan-studio { border-color: rgba(217, 165, 90, .55); background: radial-gradient(120% 60% at 100% 0%, rgba(217, 165, 90, .14), transparent 60%), var(--surface); }
.plan.plan-studio .plan-badge { color: #ffe3a3; background: linear-gradient(135deg, #2a2233, #0f0c14); border: 1px solid #d9a55a; }
.plan.plan-studio .big { background: linear-gradient(135deg, #ffe3a3, #d9a55a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* стили субтитров, недоступные на тарифе */
.sp-card.locked { cursor: not-allowed; }
.sp-card.locked .sp-prev { opacity: .38; filter: grayscale(.6); }
.sp-card.locked .sp-name { color: var(--muted); }
.sp-lock { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-decoration: none;
  color: #1b1206 !important; background: linear-gradient(135deg, #ffd27a, #ff4fd8); cursor: pointer; }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }
@media (max-width: 1000px) and (min-width: 641px) { .lp-price-row { grid-template-columns: repeat(2, 1fr) !important; } }

/* ===== «Создать»: оформление по тарифам ===== */
.feat-group { display: grid; gap: 4px; }
.feat-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; margin: 0;
  border-top: 1px solid var(--border); cursor: pointer; }
.feat-row:first-of-type { border-top: 0; }
.feat-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #c9c3ff; background: rgba(124, 92, 255, .12); }
.feat-ico .di { width: 18px; height: 18px; }
.feat-text { display: grid; gap: 1px; min-width: 0; }
.feat-text b { font-size: 14.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.feat-text small { font-size: 12.5px; color: var(--muted); }
.feat-ctl { display: flex; align-items: center; gap: 10px; }
.feat-ctl select { width: auto; min-width: 150px; padding: 8px 10px; font-size: 14px; }
.feat-tag { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.feat-tag.pro { color: #1b1206; background: linear-gradient(135deg, #ffd27a, #ff4fd8); }
.feat-tag.studio { color: #ffe3a3; background: linear-gradient(135deg, #2a2233, #0f0c14); border: 1px solid #d9a55a; }
.feat-row.locked { cursor: not-allowed; }
.feat-row.locked .feat-ico, .feat-row.locked .feat-ctl, .feat-row.locked .switch, .feat-row.locked small { opacity: .45; }
.url-batch { margin-top: 8px; resize: vertical; font-size: 14px; line-height: 1.55; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 2px; padding: 0; border: 0; background: none; color: var(--accent);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn .di { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .feat-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .feat-row[data-need="brand"], .feat-row[data-need="translate"] { grid-template-columns: 32px minmax(0, 1fr); }
  .feat-row[data-need="brand"] .feat-ctl, .feat-row[data-need="translate"] .feat-ctl { grid-column: 2; }
}

/* ===== фирменный стиль ===== */
.bk-phone { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 200px; border-radius: 18px; overflow: hidden; margin: 0 auto;
  background: radial-gradient(70% 45% at 50% 38%, #4a3d6b, transparent 70%), linear-gradient(180deg, #2b2440, #121018); border: 1px solid var(--border); }
.bk-logo { position: absolute; width: 22%; max-height: 14%; object-fit: contain; }
.bk-logo-empty { display: grid; place-items: center; height: 7%; font-size: 9px; font-weight: 800; color: var(--muted); border: 1.5px dashed #5a5470; border-radius: 6px; }
.bk-logo.pos-tl { top: 4%; left: 5%; } .bk-logo.pos-tr { top: 4%; right: 5%; }
.bk-logo.pos-bl { bottom: 5%; left: 5%; } .bk-logo.pos-br { bottom: 5%; right: 5%; }
.bk-cap { position: absolute; left: 6%; right: 6%; top: 64%; text-align: center; font-family: "Montserrat Cap", "Arial Black", sans-serif; font-weight: 800;
  font-size: clamp(12px, 1.6vw, 17px); line-height: 1.2; text-shadow: 0 2px 6px rgba(0, 0, 0, .7), 0 0 2px #000; }
.bk-act { display: inline-block; transform: scale(1.08); }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.bk-card { display: grid; gap: 12px; }
.bk-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bk-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-dots { display: flex; gap: 4px; }
.bk-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.bk-actions { display: flex; gap: 8px; }
.bk-new { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 260px; border-style: dashed !important; cursor: pointer; color: var(--text);
  font: inherit; background: transparent; }
.bk-new .di { width: 30px; height: 30px; color: var(--accent); }
.bk-new span { color: var(--muted); font-size: 13px; }
.bk-new:hover { border-color: rgba(139, 108, 255, .6) !important; }
.bk-editor { margin-top: 18px; padding: 24px !important; }
.bk-editor h2 { margin: 0 0 16px; }
.bk-ed-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.bk-ed-prev { position: sticky; top: 90px; }
.bk-ed-fields { display: grid; gap: 8px; }
.bk-ed-fields .sup-label { margin-top: 8px; }
.bk-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bk-logo-row label.btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bk-logo-row .di { width: 16px; height: 16px; }
#bkPos { flex-wrap: wrap; }
.bk-sw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); cursor: pointer; padding: 0; margin: 0; }
.bk-sw button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #8b6cff; }
.bk-sw input[type=color] { width: 44px; height: 32px; padding: 2px; border-radius: 8px; cursor: pointer; }
.bk-ed-actions { display: flex; gap: 10px; margin-top: 12px; }
.bk-upsell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px !important; }
.bk-upsell h2 { margin: 0 0 10px; }
.bk-list { margin: 0 0 18px; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 700px) {
  .bk-ed-grid, .bk-upsell { grid-template-columns: 1fr; }
  .bk-ed-prev { position: static; max-width: 180px; margin: 0 auto; }
}

/* ===== заготовки клипов, пока они собираются ===== */
.clip-skel { border-style: dashed; }
.skel-media { aspect-ratio: 9 / 16; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: var(--muted);
  background: linear-gradient(110deg, #15161c 30%, #1d1f27 50%, #15161c 70%) 0 0 / 300% 100%; animation: skel 1.6s linear infinite; }
.skel-media b { color: var(--text); font-size: 15px; }
.skel-media small { font-size: 12.5px; }
.clip-skel.now { border-color: rgba(139, 108, 255, .55); border-style: solid; }
.clip-skel.now .skel-media { background: radial-gradient(60% 40% at 50% 45%, rgba(124, 92, 255, .22), transparent 70%), #15161c; animation: none; }
.skel-body { padding: 14px; display: grid; gap: 8px; }
.skel-body i { height: 10px; border-radius: 6px; background: #22242d; }
.skel-body i:last-child { width: 60%; }
@keyframes skel { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .skel-media { animation: none; } }

.feat-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.feat-link:hover { text-decoration: underline; }

/* заглушка кнопки профиля до первого ответа сервера — того же размера, что и готовая кнопка */
.acc-btn-text { min-width: 92px; }
.nav-skel { display: block; height: 12px; width: 70px; border-radius: 6px; background: #262833; }
small.nav-skel { height: 10px; width: 92px; margin-top: 2px; }


/* место под полосу прокрутки всегда зарезервировано: короткая страница («Загрузка…») не сдвигает шапку на 15px */
html { scrollbar-gutter: stable; }
