/* MajorClip. Палитра: тёмный фиолетовый «эфир», фиолетовый для действий, розовый «пик» для всего,
   что связано с яркими моментами (оценки, отметки на шкале). Шрифты: Unbounded для заголовков, Manrope для текста. */
:root {
  --bg: #13111c;
  --bg-2: #181523;
  --panel: #1d1a2a;
  --panel-2: #252135;
  --line: #322d47;
  --text: #f2effa;
  --muted: #a49fbb;
  --dim: #6f6a88;
  --act: #7c5cff;
  --act-2: #9d85ff;
  --peak: #ff4fa3;
  --gold: #ffc94a;
  --ok: #34d39a;
  --warn: #f5b546;
  --bad: #ff6464;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --head: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 var(--body); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--act-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 19px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.35; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--act-2); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--act); color: #fff; border: 0; border-radius: var(--r-sm); padding: 10px 18px;
  font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background .15s;
}
.btn:hover { background: #6a48f5; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.quiet { background: var(--panel-2); color: var(--text); font-weight: 600; }
.btn.quiet:hover { background: #2e2942; }
.btn.danger { background: transparent; border: 1px solid rgba(255,100,100,.5); color: var(--bad); font-weight: 600; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { width: 100%; }

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; width: 100%;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--act); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--act); }

/* переключатель */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--act); border-color: var(--act); }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.switch input:disabled + span { opacity: .4; }
.optrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.optrow + .optrow { border-top: 1px solid var(--line); }
.optrow .t { font-weight: 600; }
.lock { font-size: 12px; color: var(--warn); border: 1px solid rgba(245,181,70,.4); border-radius: 99px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: var(--r-sm); z-index: 60; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.bad { border-color: var(--bad); }

/* ===== каркас приложения ===== */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--text); font-family: var(--head); font-weight: 600; font-size: 17px; text-decoration: none !important; }
.mark { width: 30px; height: 30px; flex: none; }
.side .new { margin-bottom: 12px; }
.navlink { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; text-decoration: none !important; }
.navlink svg { width: 18px; height: 18px; flex: none; }
.navlink:hover { color: var(--text); background: var(--panel); }
.navlink.on { color: var(--text); background: var(--panel-2); }
.side .grow { flex: 1; }
.meter { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; }
.meter .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter b { font-size: 18px; }
.bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--act); }
.bar i.x { background: var(--peak); }
.userbox { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--act); display: grid; place-items: center; font-weight: 700; flex: none; }
.userbox .who { min-width: 0; flex: 1; }
.userbox .who div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.topbar .burger { display: none; margin-right: auto; }
.content { padding: 28px 32px 80px; max-width: 1240px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead p { margin-top: 6px; }
select.lang { width: auto; padding: 6px 28px 6px 10px; font-size: 13px; background-color: var(--panel); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.grid { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { justify-content: space-between; }

/* создание проекта */
.create { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.urlrow { display: flex; gap: 10px; }
.urlrow input { flex: 1; padding: 14px 16px; font-size: 16px; }
.drop { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 14px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--act); color: var(--text); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; border-top: 1px solid var(--line); }
.opts .optrow { border-bottom: 1px solid var(--line); }
.opts .optrow + .optrow { border-top: 0; }
.opts .optrow:first-child { grid-row: span 2; align-items: flex-start; }
.progress { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--act); width: 0; transition: width .2s; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat b { display: block; font-family: var(--head); font-size: 24px; font-weight: 600; margin-top: 4px; }

/* проекты */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.proj { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; }
.proj:hover { border-color: #4a4366; }
.proj .thumb { aspect-ratio: 16/9; background: var(--bg-2); position: relative; display: grid; place-items: center; color: var(--dim); overflow: hidden; }
.proj .thumb video { width: 100%; height: 100%; object-fit: cover; }
.proj .meta { padding: 12px 14px; display: grid; gap: 4px; }
.proj .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.running::before, .badge.queued::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: pulse 1.1s infinite; }
.badge.done { color: var(--ok); }
.badge.error { color: var(--bad); }
.thumb .badge { position: absolute; left: 10px; top: 10px; background: rgba(19,17,28,.85); }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .badge::before { animation: none !important; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 40px 20px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* проект: шкала моментов и клипы */
.moments { position: relative; height: 54px; border-radius: var(--r-sm); background:
  repeating-linear-gradient(90deg, var(--panel-2) 0 2px, transparent 2px 7px), var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.moments a { position: absolute; top: 0; bottom: 0; min-width: 4px; background: var(--peak); opacity: .85; border-radius: 2px; }
.moments a:hover { opacity: 1; }
.moments a span { position: absolute; top: 4px; left: 6px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 6px; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin-top: 18px; }
.clip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.clip .vid { position: relative; }
.clip video, .clip .ph { width: 100%; aspect-ratio: 9/16; background: #000; display: block; object-fit: contain; }
.clip .ph { display: grid; place-items: center; color: var(--dim); }
.score { position: absolute; right: 10px; top: 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; background: conic-gradient(var(--peak) calc(var(--s) * 1%), rgba(255,255,255,.15) 0); }
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(19,17,28,.9); }
.score b { position: relative; }
.clip .body { padding: 12px 14px 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.clip .title { font-weight: 700; line-height: 1.3; }
.clip .reason { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.log { font: 12px/1.5 ui-monospace, Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; color: var(--muted); white-space: pre-wrap; max-height: 240px; overflow: auto; }
.steps { display: grid; gap: 2px; }

/* редактор */
.editor { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.stage { position: relative; background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; }
.stage video { width: 100%; height: 100%; display: block; object-fit: fill; }
.camrect { position: absolute; border: 2px solid var(--peak); background: rgba(255,79,163,.12); cursor: move; touch-action: none; }
.camrect .hd { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--peak); border-radius: 3px; cursor: nwse-resize; }
.camrect .lab { position: absolute; left: 4px; top: 2px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; }
.timeline { position: relative; height: 44px; margin: 14px 0 6px; background: var(--panel-2); border-radius: var(--r-sm); touch-action: none; cursor: pointer; }
.timeline .sel { position: absolute; top: 0; bottom: 0; background: rgba(124,92,255,.28); border-left: 3px solid var(--act); border-right: 3px solid var(--act); }
.timeline .hdl { position: absolute; top: -4px; bottom: -4px; width: 14px; margin-left: -7px; background: var(--act); border-radius: 4px; cursor: ew-resize; }
.timeline .head { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; pointer-events: none; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 600; }
.words { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.words input { width: auto; min-width: 30px; padding: 3px 6px; font-size: 13px; border-radius: 6px; background: var(--panel); }
.preview video { width: 100%; max-width: 230px; aspect-ratio: 9/16; background: #000; border-radius: var(--r); display: block; margin: 0 auto; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--muted); font-weight: 600; padding: 8px 12px; cursor: pointer; }
.seg button.on { background: var(--act); color: #fff; }

/* тарифы */
.period { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.period button { border: 0; background: transparent; color: var(--muted); padding: 7px 16px; border-radius: 99px; font-weight: 700; cursor: pointer; }
.period button.on { background: var(--text); color: var(--bg); }
.save { color: var(--ok); font-weight: 700; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.pop { border-color: var(--act); box-shadow: inset 0 0 0 1px var(--act); }
.plan .tag { position: absolute; top: -11px; left: 22px; background: var(--act); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.plan .price { font-family: var(--head); font-size: 34px; font-weight: 600; line-height: 1; }
.plan .price small { font-family: var(--body); font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--ok); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5.1-5.1 1.1 1.1z'/%3E%3C/svg%3E") center/100% no-repeat, linear-gradient(#000,#000); -webkit-mask-composite: source-in; }
.plan li.no { color: var(--dim); }
.plan li.no::before { background: var(--dim); }
.plan .btn { margin-top: auto; }
.costs { width: 100%; border-collapse: collapse; }
.costs td, .costs th { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.costs th { color: var(--muted); font-weight: 600; }
.costs td.num, .costs th.num { text-align: right; white-space: nowrap; }
.costs tr:last-child td { border-bottom: 0; }
.plus { color: var(--ok); } .minus { color: var(--peak); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--act); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.notice { border: 1px solid rgba(245,181,70,.45); background: rgba(245,181,70,.06); border-radius: var(--r); padding: 12px 16px; }

/* вход */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth { width: 100%; max-width: 410px; display: grid; gap: 16px; }
.auth .top { display: flex; align-items: center; justify-content: space-between; }
.auth form { display: grid; gap: 10px; }
a.google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-radius: var(--r-sm);
  background: #fff; color: #1f1f1f; font-weight: 700; text-decoration: none !important; }
a.google:hover { background: #eef0f3; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.err { color: var(--bad); min-height: 1.3em; font-size: 14px; }

/* ===== лендинг ===== */
.lnav { display: flex; align-items: center; gap: 22px; padding: 18px 40px; max-width: 1240px; margin: 0 auto; }
.lnav .links { display: flex; gap: 22px; margin-left: 18px; }
.lnav .links a { color: var(--muted); font-weight: 600; }
.lnav .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lsec { max-width: 1240px; margin: 0 auto; padding: 70px 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 50px; align-items: center; padding-top: 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.hero p { font-size: 18px; color: var(--muted); margin: 20px 0 28px; max-width: 520px; }
.hero .urlrow { max-width: 560px; }
.hero .note { margin-top: 12px; font-size: 13px; color: var(--dim); }
.sources { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--dim); font-weight: 700; font-size: 14px; }
/* главная картинка: шкала стрима, пики которой превращаются в вертикальные клипы */
.vis { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.vis .wave { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.vis .wave i { flex: 1; background: var(--panel-2); border-radius: 2px; }
.vis .wave i.hot { background: var(--peak); }
.vis .cut { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.vis .phone { aspect-ratio: 9/16; border-radius: 14px; background: linear-gradient(180deg, #2a2440 0 34%, #1b1828 34%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.vis .phone .cap { position: absolute; left: 10%; right: 10%; bottom: 22%; height: 10px; border-radius: 3px; background: #fff; opacity: .85; }
.vis .phone .cap.b { bottom: 16%; width: 50%; left: 25%; background: var(--warn); }
.vis .phone .sc { position: absolute; right: 8px; top: 8px; font-size: 12px; font-weight: 800; background: var(--peak); padding: 2px 7px; border-radius: 99px; }
.vis .time { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 8px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.how .n { font-family: var(--head); font-size: 15px; color: var(--peak); }
.how h3 { margin: 10px 0 8px; font-size: 18px; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.feat .card h3 { margin-bottom: 8px; font-size: 17px; }
.center { text-align: center; }
.lsec > h2 { font-size: clamp(24px, 3vw, 36px); max-width: 720px; }
.lsec > p.lead { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 640px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 16px; }
details p { color: var(--muted); margin-top: 10px; max-width: 760px; }
footer { border-top: 1px solid var(--line); padding: 28px 40px; color: var(--dim); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; max-width: 1240px; margin: 0 auto; }

/* ===== телефон ===== */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .side.open { transform: none; }
  .topbar { padding: 10px 16px; }
  .topbar .burger { display: inline-flex; }
  .content { padding: 20px 16px 60px; }
  .editor, .hero, .how, .feat, .packs { grid-template-columns: 1fr; }
  .lnav { padding: 14px 16px; }
  .lnav .links { display: none; }
  .lsec { padding: 44px 16px; }
  footer { padding: 24px 16px; }
  .urlrow { flex-direction: column; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .opts .optrow:first-child { grid-row: auto; }
  h1 { font-size: 23px; }
}

/* =====================================================================
   Новый каркас в духе HeyGen: колонка значков + панель недавних + рабочая область
   ===================================================================== */
.ic { display: inline-flex; flex: none; }
.grow { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--panel-2); color: var(--text); }
.btn.pill { border-radius: 99px; }
.appwrap { display: grid; grid-template-columns: 86px auto minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px;
  background: #0f0d17; border-right: 1px solid var(--line); z-index: 30; }
.rlogo { margin-bottom: 14px; display: grid; place-items: center; }
.rlogo .mark { width: 34px; height: 34px; }
.ritem { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border-radius: 12px;
  color: var(--muted); font-size: 10.5px; font-weight: 700; text-decoration: none !important; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.ritem:hover { color: var(--text); background: var(--panel); }
.ritem.on { color: var(--text); background: var(--panel-2); }
.ritem.on .ic { color: var(--act-2); }
.rgem { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--warn);
  border: 2px solid rgba(245,181,70,.6); margin-bottom: 12px; }
.rgem:hover { background: rgba(245,181,70,.1); }
.ravatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--act), var(--peak)); color: #fff; font-weight: 800; cursor: pointer; }
.umenu { position: absolute; left: 52px; bottom: 0; width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: grid; gap: 2px; z-index: 50; }
.umenu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; }
.umenu a, .umenu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); background: transparent; border: 0;
  text-align: left; cursor: pointer; font-weight: 600; text-decoration: none !important; }
.umenu a:hover, .umenu button:hover { background: var(--panel-2); }
.panel { width: 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.panel.hide { display: none; }
.phead { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-family: var(--head); font-size: 15px; }
.plink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none !important; }
.plink:hover { color: var(--text); background: var(--panel); }
.plink.on { color: var(--text); background: linear-gradient(90deg, rgba(124,92,255,.32), rgba(124,92,255,.12)); }
.psep { height: 1px; background: var(--line); margin: 12px 4px; }
.rhead { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--dim); }
.rhead a { font-size: 12px; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.recents { display: grid; gap: 2px; min-width: 0; }
.ritem2 { display: block; min-width: 0; overflow: hidden; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.ritem2:hover { background: var(--panel); }
.ritem2 .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel .meter { margin-top: 14px; }
main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 28px; border-bottom: 0; }
.topbar .burger { display: none; }
.content { padding: 8px 36px 80px; max-width: 1280px; margin: 0 auto; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; }

/* главная */
.hello { text-align: center; padding: 34px 0 6px; display: grid; gap: 14px; justify-items: center; }
.hello h1 { font-size: clamp(28px, 4vw, 44px); background: linear-gradient(90deg, #fff, #cbbcff 60%, #ff9fd0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigurl { display: flex; align-items: center; gap: 10px; width: min(720px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 8px 8px 16px; color: var(--muted); box-shadow: 0 10px 40px rgba(124,92,255,.12); }
.bigurl:focus-within { border-color: var(--act); }
.bigurl input { border: 0 !important; background: transparent !important; padding: 10px 4px; font-size: 16px; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tools.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none !important;
  display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.tool:hover { transform: translateY(-2px); border-color: #4d4570; }
.tool.disabled { opacity: .55; }
.tool .art { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; overflow: hidden; }
.tool .art .ic { position: relative; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.tool .art .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(30px); }
.tool .tag { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.45); color: #fff; }
.tool .tag.soon { background: rgba(255,255,255,.2); }
.tool .tbody { padding: 14px 16px 16px; display: grid; gap: 4px; }
.tool .tt { font-weight: 800; font-size: 16px; }
.a1 { background: radial-gradient(circle at 20% 20%, #a48bff, transparent 55%), linear-gradient(135deg, #5b3df5, #ff4fa3); }
.a2 { background: radial-gradient(circle at 80% 20%, #8ef0ff, transparent 55%), linear-gradient(135deg, #0aa2ff, #7c5cff); }
.a3 { background: radial-gradient(circle at 20% 80%, #ffd38a, transparent 55%), linear-gradient(135deg, #ff8a3c, #ff4fa3); }
.a4 { background: radial-gradient(circle at 80% 80%, #a6ffd8, transparent 55%), linear-gradient(135deg, #13b97b, #0a84ff); }
.a5 { background: linear-gradient(135deg, #3b3360, #6a5bb5); }
.a6 { background: linear-gradient(135deg, #3a2f4f, #8b5a8f); }

/* страница инструмента */
.toolhead { text-align: center; margin: 14px 0 28px; display: grid; gap: 10px; }
.toolhead h1 { font-size: clamp(28px, 4vw, 42px); }
.toolhead p { max-width: 640px; margin: 0 auto; }
.toolgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.upcard { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.dz { border: 1.5px dashed transparent; border-radius: 16px; min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 10px;
  text-align: center; cursor: pointer; padding: 24px; transition: border-color .15s, background .15s; }
.dz:hover, .dz.over { border-color: var(--act); background: rgba(124,92,255,.06); }
.dz .cloud { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: #222;
  box-shadow: 0 0 0 3px rgba(124,92,255,.5), 0 0 0 6px rgba(255,79,163,.25); margin-bottom: 6px; }
.dz .dzt { font-weight: 800; font-size: 18px; }
.filechip { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; background: rgba(52,211,154,.12); color: var(--ok); border-radius: 99px; padding: 4px 6px 4px 12px; font-weight: 700; font-size: 14px; }
.filechip span { color: var(--text); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or2 { text-align: center; color: var(--dim); font-size: 13px; }
.urlbox { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; color: var(--muted); }
.urlbox:focus-within { border-color: var(--act); }
.urlbox input { border: 0 !important; background: transparent !important; padding: 10px 4px; }
.opts2 { display: grid; gap: 22px; }
.orow2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; }
.ofield { display: grid; gap: 10px; }
.olabel { font-weight: 800; }
.olabel a { font-weight: 700; display: inline-flex; align-items: center; }
.segpill { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.segpill button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 9px 8px; border-radius: 9px; font-weight: 700; cursor: pointer; white-space: nowrap; font-size: 13px; }
.segpill button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stile { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; display: grid; gap: 8px; cursor: pointer; color: var(--text); }
.stile:hover { border-color: #4d4570; }
.stile.on { border-color: var(--act-2); background: rgba(124,92,255,.12); }
.stile .nm { font-weight: 700; font-size: 13px; }
.spv { height: 66px; border-radius: 10px; background: linear-gradient(135deg, #3b3550, #1d1a2a); display: grid; place-items: center; padding: 6px; text-align: center; overflow: hidden; }
.spv.none { color: var(--muted); background: var(--bg-2); }
.spv span { font-size: 12.5px; line-height: 1.25; }
.spv b { font-weight: 900; }
.cs-pop b { color: #fff; text-transform: uppercase; -webkit-text-stroke: 3px #000; paint-order: stroke fill; font-family: "Arial Black", var(--body); }
.cs-pop b.hl { color: #ffe600; }
.cs-clean b { color: #c8c8c8; font-weight: 700; text-shadow: 0 1px 2px #000; }
.cs-clean b.hl { color: #fff; }
.cs-box span { background: rgba(0,0,0,.65); padding: 3px 7px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cs-box b { color: #fff; text-transform: uppercase; font-family: "Arial Black", var(--body); }
.cs-box b.hl { color: #ffe600; }
.cs-neon b { color: #fff; text-transform: uppercase; -webkit-text-stroke: 3px #000; paint-order: stroke fill; font-family: "Arial Black", var(--body); }
.cs-neon b.hl { color: #39ff88; }
.cs-stamp span { background: #e03030; padding: 3px 7px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cs-stamp b { color: #fff; text-transform: uppercase; font-family: "Arial Black", var(--body); }
.cs-stamp b.hl { color: #ffe600; }
.cs-gold b { color: #ffd54a; text-transform: uppercase; -webkit-text-stroke: 3px #402010; paint-order: stroke fill; font-family: "Arial Black", var(--body); }
.cs-gold b.hl { color: #fff; }
.opts2 textarea { resize: vertical; min-height: 84px; }
details.more { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--panel); }
details.more summary { font-size: 14px; padding: 10px 0; }
.genbox { display: grid; gap: 10px; }
.notice2 { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); }

/* проекты */
.proj .thumb img, .proj .thumb video { width: 100%; height: 100%; object-fit: cover; }
.proj .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: .85; }
.proj .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.5); }
.proj .pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--act), var(--peak)); transition: width .4s; }
.badge.tb { color: var(--text); gap: 5px; }

/* прогресс проекта */
.pgcard { position: relative; border-radius: 24px; overflow: hidden; min-height: 440px; display: grid; place-items: center; border: 1px solid var(--line); background: #0d0b14; }
.pgbg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(26px) brightness(.45) saturate(1.2); transform: scale(1.05); }
.pgbg.grad { background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.55), transparent 50%), radial-gradient(circle at 70% 70%, rgba(255,79,163,.45), transparent 50%); filter: blur(10px); }
.pgin { position: relative; display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); }
.ring .bgc { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 9; }
.ring .fgc { fill: none; stroke: url(#none); stroke: #fff; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 34px; font-weight: 600; }
.pgstep { font-weight: 800; font-size: 18px; margin-top: 8px; }
.pgeta { color: rgba(255,255,255,.75); }
.phases { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.phase { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.phase i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.phase.now { background: rgba(255,255,255,.18); color: #fff; }
.phase.now i { animation: pulse 1.1s infinite; background: var(--warn); }
.phase.done { color: var(--ok); }
.admlog { margin-top: 16px; }
.jtitle { word-break: break-word; }
.transcript { white-space: pre-wrap; font: 14px/1.6 var(--body); max-height: 560px; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; }
.result1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.rvid video, .rvid .ph { width: 100%; border-radius: 16px; background: #000; display: block; aspect-ratio: 16/9; }
.rvid.vert video, .rvid.vert .ph { aspect-ratio: 9/16; max-height: 75vh; width: auto; margin: 0 auto; }
.rvid .ph { display: grid; place-items: center; color: var(--dim); }

/* лендинг: начальный экран */
.hero2 { text-align: center; display: grid; justify-items: center; gap: 18px; padding-top: 50px; position: relative; }
.hero2::before { content: ""; position: absolute; inset: -60px 10% auto; height: 420px; z-index: -1;
  background: radial-gradient(circle at 30% 40%, rgba(124,92,255,.35), transparent 55%), radial-gradient(circle at 70% 50%, rgba(255,79,163,.25), transparent 55%); filter: blur(30px); }
.hero2 h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.025em; max-width: 960px;
  background: linear-gradient(90deg, #fff 20%, #cbbcff 60%, #ff9fd0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead2 { font-size: 18px; color: var(--muted); max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: rgba(124,92,255,.15); border: 1px solid rgba(124,92,255,.4); color: #d6ccff; font-weight: 700; font-size: 13px; }
.hero2 .note { color: var(--dim); font-size: 13px; }
.lchips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lchips > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.hero2 .vis { width: min(860px, 100%); margin-top: 24px; text-align: left; }

@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolgrid, .result1 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .appwrap { grid-template-columns: 1fr; }
  .rail, .panel { position: fixed; left: 0; top: 0; transform: translateX(-400px); transition: transform .2s; }
  main { overflow-x: hidden; }
  .segpill { flex-wrap: wrap; }
  .segpill button { white-space: normal; }
  .panel { left: 86px; display: flex !important; }
  .appwrap.mob .rail, .appwrap.mob .panel { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .topbar { padding: 10px 16px; }
  .topbar .burger { display: inline-grid; }
  .content { padding: 8px 16px 60px; }
  .orow2 { grid-template-columns: 1fr; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz { min-height: 220px; }
}
@media (max-width: 560px) { .tools, .tools.big { grid-template-columns: 1fr; } .bigurl { flex-wrap: wrap; } .bigurl .btn { width: 100%; } }

/* ===== хэштеги на карточке клипа ===== */
.clip .tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.clip .tags span { font-size: 12px; font-weight: 700; color: var(--act-2); background: rgba(124,92,255,.12); padding: 2px 7px; border-radius: 99px; }
.tagcopy { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; font-size: 12px; padding: 2px 8px; cursor: pointer; font-weight: 700; }
.tagcopy:hover { color: var(--text); border-color: var(--act); }

/* ===== редактор (мини-CapCut) ===== */
.editor2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 330px) minmax(300px, 360px); gap: 20px; align-items: start; }
.edprev { display: grid; gap: 12px; position: sticky; top: 12px; }
.canvas { position: relative; width: 100%; aspect-ratio: 9/16; background: #000; border-radius: 16px; overflow: hidden; user-select: none; max-height: 72vh; margin: 0 auto; }
.canvas .fimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.canvas.loading .fimg { opacity: .55; }
.ovl { position: absolute; inset: 0; container-type: inline-size; }
.otext { position: absolute; transform: translate(-50%, -50%); font-family: "Arial Black", var(--body); font-weight: 900; white-space: pre-wrap; text-align: center;
  line-height: 1.15; cursor: move; touch-action: none; padding: 2px 6px; max-width: 96%;
  -webkit-text-stroke: .08em #000; paint-order: stroke fill; }
.otext.box { -webkit-text-stroke: 0; background: rgba(0,0,0,.55); border-radius: 4px; }
.otext.sel { outline: 2px dashed var(--peak); outline-offset: 3px; }
.otext.ghost { opacity: .45; }
.ologo { position: absolute; transform: translate(-50%, -50%); cursor: move; touch-action: none; }
.ologo:hover { outline: 2px dashed var(--act-2); }
.finalv video { width: 100%; max-height: 72vh; aspect-ratio: 9/16; background: #000; border-radius: 16px; display: block; }
.ttrack { position: relative; height: 14px; margin: 2px 0 6px; }
.ttrack i { position: absolute; top: 2px; height: 10px; border-radius: 4px; background: rgba(245,181,70,.6); cursor: pointer; }
.ttrack i.on { background: var(--warn); }
.edpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.edtabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.edtabs button { border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: 13px 4px; cursor: pointer; font-size: 13px; border-bottom: 2px solid transparent; }
.edtabs button.on { color: var(--text); border-bottom-color: var(--act); background: rgba(124,92,255,.08); }
.edbody { padding: 16px; display: grid; gap: 14px; max-height: calc(100vh - 160px); overflow-y: auto; }
.edbody .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edbody .segpill { flex-wrap: wrap; }
.titem { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: var(--bg-2); cursor: pointer; }
.titem.on { border-color: var(--warn); }
.tmbox { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 4px 4px 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--act); }
input[type=range] { width: 100%; accent-color: var(--act); }
.logobox { background: repeating-conic-gradient(#2a2638 0 25%, #1f1c2b 0 50%) 0 0/16px 16px; border-radius: 12px; padding: 14px; display: grid; place-items: center; }
.logobox img { max-width: 100%; max-height: 90px; }
.ftiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ftile { border: 1.5px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 4px; cursor: pointer; color: var(--text); display: grid; gap: 4px; }
.ftile.on { border-color: var(--act-2); }
.ftile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #000; }
.ftile span { font-size: 12px; font-weight: 700; }
@media (max-width: 1250px) { .editor2 { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); } .edsrc { grid-column: 1 / -1; } }
@media (max-width: 760px) { .editor2 { grid-template-columns: 1fr; } .edprev { position: static; } }

/* ===== оплата и юридические страницы ===== */
.modalbg { position: fixed; inset: 0; background: rgba(5,4,10,.7); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.paysum { display: flex; justify-content: space-between; align-items: baseline; background: var(--bg-2); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.paysum b { font-family: var(--head); font-size: 22px; }
.payopt { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); cursor: pointer; }
.payopt:hover { border-color: var(--act); }
.payopt:disabled { opacity: .5; }
.legal { max-width: 780px; margin: 0 auto; padding: 30px 24px 60px; }
.legal h1 { font-size: 32px; margin-bottom: 18px; }
.legal h3 { margin: 26px 0 8px; font-size: 17px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; margin: 8px 0; }
.legallinks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.legallinks a { color: var(--dim); }
.panel .legallinks { padding: 12px 6px 0; }

/* ===================== MajorClip: лендинг, кампании, заработок ===================== */
.wordmark { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; }
.btn.gold { background: linear-gradient(135deg, #ffd45c, #ffb02e); color: #231a00; }
.btn.gold:hover { background: linear-gradient(135deg, #ffdc78, #ffba45); }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.pubwrap { min-height: 100vh; display: flex; flex-direction: column; }
.pubwrap > footer { margin-top: auto; }
.pubwrap > * { width: 100%; }
.kicker .ic { color: var(--gold); }

.trustrow { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust { display: inline-flex; gap: 6px; align-items: center; }
.trust .ic { color: var(--ok); }
.plats { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.plats b { color: var(--muted); font-weight: 800; letter-spacing: .02em; }
.livebar { display: inline-flex; gap: 10px; align-items: center; padding: 8px 16px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.livebar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.livebar .dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,154,.18); animation: pulse 1.6s infinite; }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.pathcard { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.pathcard.p1 { background: radial-gradient(120% 90% at 100% 0%, rgba(124,92,255,.35), transparent 60%), var(--panel); }
.pathcard.p2 { background: radial-gradient(120% 90% at 100% 0%, rgba(255,201,74,.25), transparent 60%), var(--panel); }
.pathcard .pic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.pathcard.p2 .pic { color: var(--gold); }
.pathcard .ptag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pathcard h3 { font-size: 24px; }
.pathcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pathcard li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.pathcard li .ic { color: var(--ok); margin-top: 3px; }
.pathcard .btn { justify-self: start; margin-top: 6px; }

.fblocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.fblock { grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.fblock:nth-child(4), .fblock:nth-child(5) { grid-column: span 3; }
.fblock h3 { font-size: 18px; }
.fnum { font-family: var(--head); font-size: 14px; color: var(--peak); }
.fblock:nth-child(5) { background: radial-gradient(100% 120% at 100% 100%, rgba(255,201,74,.18), transparent 60%), var(--panel); }
.fblock:nth-child(5) .fnum { color: var(--gold); }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stats4 > div { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 4px; }
.stats4 b { font-family: var(--head); font-size: 26px; font-weight: 600; }

.refband { display: flex; gap: 20px; align-items: center; padding: 26px; border-radius: var(--r-lg); border: 1px solid rgba(255,201,74,.35);
  background: radial-gradient(80% 140% at 0% 0%, rgba(255,201,74,.16), transparent 60%), var(--panel); flex-wrap: wrap; }
.refband h2 { font-size: 24px; margin-bottom: 6px; }
.rbi { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,201,74,.15); color: var(--gold); display: grid; place-items: center; flex: none; }
.finalcta { text-align: center; padding: 56px 24px; border-radius: 28px; display: grid; gap: 22px; justify-items: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(124,92,255,.38), transparent 70%), radial-gradient(60% 100% at 50% 100%, rgba(255,79,163,.18), transparent 70%), var(--panel); border: 1px solid var(--line); }
.finalcta h2 { font-size: clamp(26px, 3.4vw, 42px); max-width: 780px; }
.stickycta { display: none; }

.bigfoot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; align-items: start; }
.bigfoot .fbrand { display: grid; gap: 10px; }
.fcol { display: grid; gap: 8px; }
.fcol b { color: var(--text); font-size: 14px; }
.fcol a { color: var(--muted); font-size: 14px; }
.fcopy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---- кампании ---- */
.cfilters { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.cfilters select { width: auto; min-width: 170px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.ccard:hover { transform: translateY(-2px); border-color: #4a4268; }
.cart { position: relative; height: 112px; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.ccat { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 99px; color: #fff; }
.chero .ccat { position: static; }
.chouse { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; background: var(--gold); color: #231a00; padding: 3px 9px; border-radius: 99px; }
.cart .chouse { position: absolute; right: 10px; top: 10px; }
.cat-gaming { background: linear-gradient(135deg, #6a3dff, #2b1d7a); }
.cat-irl { background: linear-gradient(135deg, #ff6aa8, #7b2a6b); }
.cat-music { background: linear-gradient(135deg, #3fd1ff, #1d4a8a); }
.cat-business { background: linear-gradient(135deg, #3ad59a, #145a49); }
.cat-crypto { background: linear-gradient(135deg, #ffc94a, #9a5a00); }
.cat-sports { background: linear-gradient(135deg, #ff8a3d, #8a2a12); }
.cat-tech { background: linear-gradient(135deg, #8aa2ff, #2a3270); }
.cat-entertainment { background: linear-gradient(135deg, #ff4f7a, #5a1a3a); }
.cbody { padding: 16px; display: grid; gap: 8px; }
.ctitle { font-weight: 800; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crate b { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--gold); }
.cbar { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.cbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--act), var(--peak)); border-radius: 99px; }
.cplats { display: flex; gap: 6px; flex-wrap: wrap; }
.cplats span { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }
.chero { border-radius: var(--r-lg); padding: 30px; margin: 14px 0 16px; display: grid; gap: 10px; color: #fff; }
.chero h1 { font-size: clamp(24px, 3vw, 36px); }
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ctile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.ctile > .ic { color: var(--gold); margin-top: 2px; }
.ctile b { font-size: 16px; }
.cdetail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 8px; align-items: flex-start; }
.rules .ic { color: var(--ok); margin-top: 3px; }
.steps { margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.badge.s-pending, .badge.c-review, .badge.c-draft { color: var(--warn); }
.badge.s-approved, .badge.c-active { color: var(--ok); }
.badge.s-rejected, .badge.c-rejected { color: var(--bad); }
.badge.c-paused, .badge.c-ended, .badge.c-done { color: var(--muted); }
.cform { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.cside { position: sticky; top: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chipcheck { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 14px; }
.chipcheck:has(input:checked) { border-color: var(--act); background: rgba(124,92,255,.14); }
.csum { border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); padding: 14px; }
.csum .big { font-weight: 800; font-size: 15px; }
.admrow { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.admrow > div:first-child { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.refcard .urlbox input { min-width: 0; }

@media (max-width: 1100px) {
  .fblocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fblock, .fblock:nth-child(4), .fblock:nth-child(5) { grid-column: span 1; }
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdetail, .cform { grid-template-columns: 1fr; }
  .cside { position: static; }
}
@media (max-width: 860px) {
  .paths, .stats4 { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr; }
  .bigfoot { grid-template-columns: 1fr 1fr; }
  .bigfoot .fbrand { grid-column: 1 / -1; }
  .hide-m { display: none !important; }
  .stickycta { display: block; position: sticky; bottom: 0; padding: 10px 84px 10px 16px; background: rgba(19,17,28,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 20; }
}
@media (max-width: 560px) {
  .fblocks, .stats4, .two { grid-template-columns: 1fr; }
  .ctiles { grid-template-columns: 1fr 1fr; }
  .cfilters select { flex: 1 1 140px; min-width: 0; }
  .chero { padding: 20px; }
  .lnav .right > .btn:not(.ghost) { display: none; }
  .lnav .lang { max-width: 104px; }
}

/* ===================== настройки нарезки, каналы, рефералка ===================== */
.aihead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aihead b { font-family: var(--head); font-size: 16px; font-weight: 600; }
.costpill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold); background: rgba(255,201,74,.1); border: 1px solid rgba(255,201,74,.3); padding: 4px 10px; border-radius: 99px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pillsel { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 14px; font-size: 14px; }
.pillsel .pl { color: var(--muted); white-space: nowrap; }
.pillsel select { background: transparent; border: 0; padding: 6px 22px 6px 2px; font-weight: 800; width: auto; }
.pillsel .switch { margin-right: 4px; }
.pillsel.locked { opacity: .75; }
.pillsel .lock, .optrow .lock { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 800; color: var(--gold); margin-left: 6px; }
.rslider .track { position: relative; height: 34px; }
.rslider .track::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 4px; background: var(--panel-2); }
.rslider .track > i { position: absolute; top: 15px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--act), var(--peak)); }
.rslider input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 34px; }
.rslider input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--act); cursor: grab; }
.rslider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--act); cursor: grab; }
.rslider .tbox { width: 110px !important; text-align: center; font-variant-numeric: tabular-nums; }
.saver { font-size: 11px; font-weight: 800; color: var(--ok); background: rgba(52,211,154,.12); padding: 2px 8px; border-radius: 99px; margin-left: 8px; }
.wmnote { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,201,74,.08); border: 1px solid rgba(255,201,74,.25); color: var(--muted); }
.wmnote .ic { color: var(--gold); }
.wmnote a { margin-left: auto; font-weight: 800; white-space: nowrap; }
.srcmeta { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.srcmeta img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.srcmeta b { display: block; font-size: 14px; line-height: 1.3; }
.srcbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.srcbtn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--text); font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none !important; }
.srcbtn:hover { background: var(--panel); }
.protag { font-size: 10px; font-weight: 800; background: var(--gold); color: #231a00; padding: 1px 7px; border-radius: 99px; }
.pill2 { margin-left: auto; white-space: nowrap; font-size: 11px; font-weight: 800; color: var(--gold); background: rgba(255,201,74,.12); padding: 2px 8px; border-radius: 99px; }
.ovl .owm { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); opacity: .62; pointer-events: none; }
.thumb .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.pltiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pltile { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.pltile.on { border-color: var(--act); box-shadow: inset 0 0 0 1px var(--act); }
.pltile:disabled { cursor: default; opacity: .8; }
.pltile .protag { position: absolute; right: 8px; top: 8px; }
.pdot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #0b0b10; flex: none; }
.chrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upsell { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid rgba(255,201,74,.35); background: radial-gradient(80% 140% at 0% 0%, rgba(255,201,74,.14), transparent 60%), var(--panel); margin-bottom: 18px; flex-wrap: wrap; }
.upsell > .ic { color: var(--gold); }
.refhero { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 36px 20px; border-radius: var(--r-lg); margin-bottom: 18px;
  background: radial-gradient(70% 120% at 50% 0%, rgba(255,201,74,.16), transparent 70%), var(--panel); border: 1px solid var(--line); }
.refhero h1 { font-size: clamp(24px, 3vw, 34px); }
.refhero p { max-width: 560px; }
.refsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.refsteps .card { display: grid; gap: 8px; }
.refsteps .ic { color: var(--gold); }
@media (max-width: 860px) { .refsteps { grid-template-columns: 1fr; } .pltiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================== выпадающие списки, золотая корона, курсор ===================== */
:root { color-scheme: dark; }
select option, select optgroup { background: #1d1a2a; color: #f2effa; }
select option:disabled { color: #6f6a88; }
.haspro { position: relative; }
.crown { position: absolute; top: -10px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffe08a, #ffb02e); color: #3a2600 !important; box-shadow: 0 2px 8px rgba(255,176,46,.45); z-index: 3; text-decoration: none !important; }
.crown.inl { position: relative; top: -1px; right: auto; display: inline-grid; width: 20px; height: 20px; margin-right: 6px; vertical-align: middle; }
.crown .ic svg { width: 12px; height: 12px; }
.crown::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap;
  background: #2a2340; color: #ffe08a; border: 1px solid rgba(255,201,74,.4); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  display: none; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.crown:hover::after, .crown:focus-visible::after { display: block; transform: translateX(-50%); }
.pltile .crown { top: 8px; right: 8px; }
.srcbtn .crown.inl { margin: 0 0 0 4px; }
.brandgrid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.lgprev { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #2b2442, #17141f); }
.lgframe { position: relative; aspect-ratio: 9/16; }
.lgwm { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); opacity: .62; }
.lgimg { position: absolute; transform: translate(-50%, -50%); }
.nothumb { width: 96px; aspect-ratio: 16/9; border-radius: 6px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
.srcmeta > .ic { color: var(--bad); }
.chpick { display: grid; gap: 10px; width: 100%; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: 10px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.chv { display: block; height: auto; min-height: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; color: var(--text); }
.chv:hover { border-color: var(--act); }
.chv .cth { position: relative; aspect-ratio: 16/9; background: var(--panel-2); display: grid; place-items: center; color: var(--muted); }
.chv .cth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chv .cth > span:not(.ic) { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.75); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.chv .ct { padding: 8px; font-size: 12px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .brandgrid { grid-template-columns: 90px minmax(0, 1fr); } }

html, body { cursor: url("/static/cursor.svg") 4 3, auto; }
a, button, select, summary, label.switch, label.check, .chipcheck, .tool, .proj, .ccard, .stile, .pltile, .chv, .srcbtn, [role=button], input[type=checkbox], input[type=range], input[type=file] {
  cursor: url("/static/cursor-pointer.svg") 4 3, pointer; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea { cursor: text; }
button:disabled, select:disabled, input:disabled { cursor: url("/static/cursor.svg") 4 3, not-allowed; }

/* ===================== стили заголовка, фон-рамка, кнопка с расходом, спецпредложение, чат ===================== */
.tsp { font-family: "Arial Black", var(--body); font-weight: 900; font-size: 12px; line-height: 1.2; padding: 3px 6px; border-radius: 4px; }
.ts-classic { color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.ts-box { color: #000; background: #fff; }
.ts-yellow { color: #ffd700; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.ts-brand { color: #fff; background: #7c5cff; }
.ts-red { color: #fff; background: #e82a2a; }
.ts-neon { color: #39ff88; text-shadow: 0 0 6px #39ff88, 0 0 12px #1f8a4a; }
.gencost { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 13px; }
.lgbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lginner { position: absolute; border-radius: 6px; background: linear-gradient(180deg, #3b3352, #241f33); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.rbadge { position: absolute; top: 4px; right: 12px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--peak); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
.ritem { position: relative; }
.offtag { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 800; color: #231a00; background: linear-gradient(135deg, #ffe08a, #ffb02e); padding: 3px 9px; border-radius: 99px; width: fit-content; }
.oldp { color: var(--dim); font-size: 20px; text-decoration-thickness: 2px; }

.offerbar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; font-weight: 700; font-size: 14px;
  background: linear-gradient(90deg, rgba(124,92,255,.35), rgba(255,79,163,.3), rgba(255,201,74,.3)); border-bottom: 1px solid rgba(255,201,74,.35); }
.obicon { color: var(--gold); display: inline-flex; }
.obtime { display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 8px; }
.obtime b { font-family: var(--head); letter-spacing: .03em; }
.offerbox { position: relative; max-width: 620px; text-align: center; display: grid; gap: 14px; justify-items: center;
  background: radial-gradient(90% 70% at 50% 0%, rgba(255,201,74,.18), transparent 70%), var(--panel); border-color: rgba(255,201,74,.4); }
.offerbox .ocl { position: absolute; right: 12px; top: 12px; }
.offerbox h2 { font-size: clamp(24px, 3.5vw, 34px); }
.obadge { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.otimer { display: grid; gap: 2px; }
.otimer b { font-family: var(--head); font-size: 34px; font-variant-numeric: tabular-nums; color: var(--gold); }
.oplans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.oplan { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; text-align: left; background: var(--bg-2); }
.oplan.pop { border-color: var(--gold); }
.oplan .op s { color: var(--dim); }
.oplan .op span { font-family: var(--head); font-size: 24px; font-weight: 600; }

#support { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; justify-items: end; gap: 12px; }
.subtn { width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; background: linear-gradient(135deg, #8b5cff, #ff4fa3); box-shadow: 0 10px 30px rgba(124,92,255,.45); display: grid; place-items: center; position: relative; }
.subtn:hover { transform: translateY(-1px); }
.subadge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: #231a00; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.subtn .subadge { position: absolute; top: -2px; right: -2px; }
.supanel { width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.suhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, rgba(139,92,255,.5), rgba(255,79,163,.35)); }
.suhead .small { opacity: .85; }
.sumsgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sumsgs.big { min-height: 320px; max-height: 60vh; flex: none; }
.sumsg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; display: grid; gap: 4px; }
.sumsg.admin { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 4px; }
.sumsg.me { align-self: flex-end; background: var(--act); color: #fff; border-bottom-right-radius: 4px; }
.sutime { font-size: 10px; opacity: .6; }
.suform { padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.suform textarea, .suconv textarea { resize: none; flex: 1; }
.supadmin { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.sulist { padding: 6px; max-height: 75vh; overflow-y: auto; display: grid; gap: 2px; }
.suth { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.suth:hover { background: var(--panel-2); }
.suth.on { background: rgba(124,92,255,.18); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suconv { display: grid; gap: 12px; }
@media (max-width: 860px) { .supadmin { grid-template-columns: 1fr; } .oplans { grid-template-columns: 1fr; } #support { right: 12px; bottom: 12px; } .stickycta ~ #support { bottom: 76px; } }

/* иконки тарифов */
.planic { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; }
.pl-free { color: #9be7c4; background: rgba(52,211,154,.14); }
.pl-starter { color: #8fd3ff; background: rgba(79,180,255,.16); }
.pl-pro { color: #c9b8ff; background: rgba(124,92,255,.22); }
.pl-premium { color: #ffd76a; background: rgba(255,201,74,.18); }
.rgem.pl-free, .rgem.pl-starter, .rgem.pl-pro, .rgem.pl-premium { border-color: currentColor !important; }
.rgem.pl-premium { box-shadow: 0 0 16px rgba(255,201,74,.35); }
.rgem.pl-pro { box-shadow: 0 0 14px rgba(124,92,255,.35); }
.payopt.rec { border-color: rgba(255,201,74,.5); background: rgba(255,201,74,.06); }
.rectag { margin-left: 8px; font-size: 11px; font-weight: 800; color: #231a00; background: var(--gold); padding: 2px 8px; border-radius: 99px; vertical-align: middle; }

/* ===================== библиотека клипов, главная, шаблоны ===================== */
.libbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.libbar select { width: auto; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.libclip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.libclip:hover { border-color: #4d4570; }
.lv { position: relative; aspect-ratio: 9/16; background: #000; }
.lv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.lscore { position: absolute; left: 8px; top: 8px; background: var(--peak); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.ldur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.lbody { padding: 10px; display: grid; gap: 3px; min-width: 0; }
.ltitle { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.homex { display: grid; gap: 16px; margin-top: 26px; }
.bannerwrap { position: relative; }
.banner { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--r-lg); color: #fff; text-decoration: none !important; min-height: 92px; border: 1px solid rgba(255,255,255,.08); }
.banner.b1 { background: linear-gradient(110deg, #6a3dff, #b04fd6 60%, #ff4fa3); }
.banner.b2 { background: linear-gradient(110deg, #9a5a00, #ffb02e); }
.banner.b3 { background: linear-gradient(110deg, #1d4a8a, #3fd1ff); }
.banner > div:nth-child(2) { flex: 1; }
.banner b { font-family: var(--head); font-size: 17px; font-weight: 600; display: block; margin-bottom: 4px; }
.banner .small { opacity: .9; }
.banner .btn { background: rgba(255,255,255,.95); color: #1a1530; }
.bic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.bdots { position: absolute; right: 18px; bottom: 10px; display: flex; gap: 6px; }
.bdots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); }
.bdots button.on { background: #fff; width: 18px; border-radius: 4px; }
.checklist { display: grid; gap: 12px; }
.chkbar { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.chkbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--act), var(--gold)); }
.chksteps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.chkstep { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none !important; }
.chkstep:hover { border-color: var(--act); }
.chkic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
.chkstep.ok { color: var(--muted); }
.chkstep.ok .chkic { background: rgba(52,211,154,.18); color: var(--ok); }
.tplrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tplchip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-2); color: var(--text); font-size: 13px; font-weight: 700; overflow: hidden; }
.tplchip > button { background: none; border: 0; color: inherit; padding: 6px 4px 6px 12px; font-weight: 700; }
.tplchip .tplx { padding: 6px 10px 6px 4px; color: var(--dim); }
.tplchip.add { padding: 6px 12px; gap: 4px; border-style: dashed; color: var(--act-2); }
@media (max-width: 1100px) { .chksteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chksteps { grid-template-columns: 1fr; } .banner { flex-wrap: wrap; } .libgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.testwarn { background: #7a1020; color: #fff; text-align: center; font-weight: 800; padding: 8px 16px; font-size: 14px; }
.lbody .row .btn { padding: 6px 10px; font-size: 12px; }
@media (max-width: 560px) {
  .offerbar { gap: 8px; padding: 7px 12px; font-size: 12px; }
  .offerbar .obicon { display: none; }
  .offerbar .obt { flex: 1 1 100%; text-align: center; }
  .offerbar .btn.sm { padding: 4px 10px; }
}

/* клип после срока редактирования */
.btn.off { opacity: .45; cursor: not-allowed; pointer-events: auto; }
.btn.off:hover { transform: none; filter: none; }
.edlocked { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 420px); gap: 22px; align-items: start; }
.edlocked .rvid video { width: 100%; border-radius: 14px; background: #000; display: block; }
@media (max-width: 760px) { .edlocked { grid-template-columns: 1fr; } }
