:root {
  --bg: #08080c;
  --panel: rgba(255, 255, 255, .05);
  --panel-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .11);
  --text: #ffffff;
  --soft: #e2dfec;
  --muted: #b3b0c2;
  --accent: #a855f7;
  --accent-2: #6366f1;
  --accent-3: #22d3ee;
  --ok: #34d399;
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.glow { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .45; pointer-events: none; z-index: 0; }
.glow-a { width: 640px; height: 640px; background: #7c3aed; top: -280px; left: -160px; }
.glow-b { width: 560px; height: 560px; background: #2563eb; bottom: -260px; right: -160px; opacity: .32; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: rgba(8, 8, 12, .8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; color: #fff; white-space: nowrap; }
.brand-icon { width: 40px; height: auto; display: block; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.brand-text small { font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: .05em; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 12px; color: #fff;
}

.steps { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.step { font-size: 14.5px; color: var(--soft); padding: 7px 14px; border-radius: 999px; transition: .2s; white-space: nowrap; }
.step.active { color: #fff; background: var(--panel-2); font-weight: 600; }
.step.done { color: var(--accent-3); }

.nav-btn, .help-btn, .account-btn {
  background: transparent; border: 1px solid var(--line); color: var(--soft);
  font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.nav-btn:hover, .help-btn:hover, .account-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

.balance {
  font-size: 14.5px; color: var(--soft); padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); white-space: nowrap;
}
.balance span { color: #fff; font-weight: 700; }
.balance em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 4px; }

main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 48px 28px 120px; }
.screen { }
.hidden { display: none !important; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 700; color: #fff; }
h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.03em; margin: 0 0 12px; font-weight: 700; color: #fff; }
h3 { font-size: 20px; margin: 0 0 14px; color: #fff; }
.mt { margin-top: 44px; }
.lead { color: #f0edf8; font-size: 18.5px; line-height: 1.6; max-width: 720px; margin: 0 0 28px; }
.lead.small { font-size: 17px; margin-bottom: 18px; }

.btn {
  font-family: inherit; font-size: 16.5px; font-weight: 600; padding: 14px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px rgba(124, 58, 237, .3); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--soft); }
.btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn.big { padding: 17px 42px; font-size: 17.5px; }

.foot { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.note { font-size: 15.5px; color: #cfccdb; max-width: 620px; line-height: 1.55; }

.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab {
  background: var(--panel); border: 1px solid var(--line); color: var(--soft);
  padding: 12px 20px; border-radius: 999px; font-size: 15.5px; cursor: pointer; font-family: inherit;
}
.tab.active { background: var(--panel-2); color: #fff; border-color: rgba(168, 85, 247, .55); font-weight: 600; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 240px; padding: 32px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, .2); border-radius: var(--radius);
  background: var(--panel); transition: .2s;
}
.dropzone:hover, .dropzone.drag { border-color: rgba(168, 85, 247, .65); background: rgba(168, 85, 247, .08); }
.dz-icon { font-size: 34px; color: var(--accent); }
.dz-title { font-size: 17.5px; font-weight: 600; color: #fff; }
.dz-hint { font-size: 15px; color: var(--muted); }
.dz-file { margin-top: 8px; font-size: 15px; color: var(--accent-3); }

.cards { display: grid; gap: 14px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  text-align: left; padding: 22px; border-radius: var(--radius); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: .18s; font-family: inherit;
}
.card:hover { background: var(--panel-2); transform: translateY(-2px); }
.card.on { border-color: rgba(168, 85, 247, .8); background: rgba(168, 85, 247, .12); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.badge { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--soft); }
.badge.accent { background: rgba(168, 85, 247, .22); color: #e2c9ff; }
.price { font-size: 15px; color: var(--accent-3); font-weight: 700; white-space: nowrap; }
.card-title { font-size: 19px; font-weight: 650; margin-bottom: 12px; color: #fff; }

.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feats li { font-size: 15px; color: var(--soft); padding-left: 18px; position: relative; line-height: 1.4; }
.feats li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 8px; font-size: 15px; color: var(--soft); }
.field input {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: #fff; font-size: 16px; font-family: inherit; outline: none; width: 100%;
}
.field input::placeholder { color: #8d8a9c; }
.field input:focus { border-color: rgba(168, 85, 247, .7); }

.hint-box {
  margin-top: 20px; padding: 15px 17px; border-radius: 14px; font-size: 15px; line-height: 1.5;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); color: #c8f7ff;
}
.hint-box strong { color: #fff; }

.dd { position: relative; }
.dd-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: #fff; font-size: 16px; font-family: inherit; cursor: pointer; text-align: left;
}
.dd.open .dd-btn { border-color: rgba(168, 85, 247, .7); }
.caret {
  width: 0; height: 0; flex: none; transition: transform .2s;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--soft);
}
.dd.open .caret { transform: rotate(180deg); }
.dd-menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 100%; width: max-content; max-width: 340px;
  background: #191823; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: none; max-height: 300px; overflow: auto;
}
.dd.open .dd-menu { display: block; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: none; border: none; color: #fff; font-size: 15.5px; font-family: inherit;
  padding: 11px 13px; border-radius: 10px; cursor: pointer; text-align: left;
}
.dd-item:hover { background: rgba(255, 255, 255, .08); }
.dd-item.on { background: rgba(168, 85, 247, .2); }
.dd-item small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.dd-item > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-search {
  width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px;
  color: #fff; font-size: 15px; font-family: inherit; padding: 10px 12px; margin-bottom: 6px; outline: none;
}
.dd-search::placeholder { color: #8d8a9c; }
.dd-search:focus { border-color: rgba(168, 85, 247, .6); }
.dd-empty { padding: 14px 12px; font-size: 14.5px; color: var(--muted); }

.own-script { margin: 6px 0 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.own-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: #fff; font-size: 16px; font-family: inherit;
  padding: 17px 20px; cursor: pointer; text-align: left;
}
.own-label { font-weight: 600; }
.own-cta { margin-left: 6px; color: var(--accent-3); border-bottom: 1px dashed rgba(34, 211, 238, .55); font-weight: 600; }
.own-toggle .caret { margin-left: auto; }
.own-script.open .own-toggle .caret { transform: rotate(180deg); }
.own-body { padding: 0 20px 20px; }
.own-body textarea {
  width: 100%; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 12px;
  color: #f1eff8; font-family: inherit; font-size: 15.5px; line-height: 1.6; padding: 15px; resize: vertical;
}
.own-body textarea::placeholder { color: #8d8a9c; }
.own-estimate {
  margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--soft);
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.own-estimate b { color: #fff; }
.own-estimate.warn { color: #ffe08a; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); }
.own-estimate.ok { color: #b6f5da; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .32); }
.own-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }

.trim-note {
  margin: 0 0 18px; padding: 15px 17px; border-radius: 14px; font-size: 15px; line-height: 1.5;
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #ffe08a;
}

.style-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { font-size: 14px; color: var(--soft); padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }

.scenes { display: grid; gap: 12px; }
.scene { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.scene-num { font-size: 15px; color: var(--accent-3); font-weight: 700; }
.scene-time { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.scene-title { font-size: 17px; font-weight: 650; margin-bottom: 8px; color: #fff; }
.scene-prompt { font-size: 15.5px; color: var(--soft); line-height: 1.55; }
.scene-edit {
  margin-top: 12px; width: 100%; background: rgba(0, 0, 0, .4); border: 1px solid var(--line);
  border-radius: 10px; color: #eee; font-size: 14.5px; padding: 12px; font-family: inherit; resize: vertical; display: none;
}
.scene.open .scene-edit { display: block; }
.scene-toggle { background: none; border: none; color: #c084fc; font-size: 14.5px; cursor: pointer; padding: 0; margin-top: 12px; font-family: inherit; }

.heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.hero {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; transition: .18s; padding: 0; font-family: inherit; color: var(--text);
}
.hero:hover { transform: translateY(-2px); }
.hero.on { border-color: rgba(168, 85, 247, .85); box-shadow: 0 0 0 1px rgba(168, 85, 247, .45); }
.hero img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.hero-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 13px; font-size: 15px; color: #fff; }
.hero-name small { color: var(--muted); font-size: 13px; }

.own-photo { margin-top: 14px; display: grid; gap: 12px; }
.photo-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: 16px; background: var(--panel);
  transition: .2s; color: var(--soft); font-size: 15px; line-height: 1.45;
}
.photo-card:hover { border-color: rgba(168, 85, 247, .65); }
.photo-card b { color: #fff; font-size: 16px; }
.photo-card.loaded { border-style: solid; border-color: rgba(52, 211, 153, .5); }
.photo-card.on { border-color: rgba(168, 85, 247, .8); background: rgba(168, 85, 247, .1); }
.photo-card img { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.photo-plus {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(168, 85, 247, .18); color: #e9d5ff; font-size: 22px;
}
.photo-msg { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.photo-msg.warn { color: #ffe08a; }
.photo-msg.ok { color: #b6f5da; }

.genre-note {
  margin: 0 0 16px; padding: 13px 15px; border-radius: 12px; font-size: 15px; line-height: 1.5;
  color: #d8c9ff; background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .3);
}

.archetype {
  margin: 0 0 20px; padding: 18px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.arch-head { font-size: 16.5px; font-weight: 650; color: #fff; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.arch-rec {
  font-size: 13px; font-weight: 500; color: #b6f5da; background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .3); padding: 4px 10px; border-radius: 999px;
}
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.seg { background: none; border: none; color: var(--soft); padding: 10px 22px; border-radius: 999px; cursor: pointer; font-size: 15px; font-family: inherit; }
.seg.active { background: var(--panel-2); color: #fff; font-weight: 600; }
.arch-gender { margin-bottom: 14px; }
.arch-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.arch-chip {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--soft);
  font-size: 14.5px; padding: 9px 15px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.arch-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.arch-chip.on { background: rgba(168, 85, 247, .2); border-color: rgba(168, 85, 247, .7); color: #fff; font-weight: 600; }
.arch-tags { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.arch-tags b { color: #fff; }
.arch-tags code { color: #c084fc; font-family: inherit; }

.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(3, 1fr); } }
.voice {
  display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: .18s;
  font-family: inherit; color: var(--text); text-align: left;
}
.voice:hover { background: var(--panel-2); }
.voice.on { border-color: rgba(168, 85, 247, .85); background: rgba(168, 85, 247, .12); }
.voice-play {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .12); font-size: 13px;
}
.voice-info { display: grid; gap: 3px; min-width: 0; }
.voice-info b { font-size: 15.5px; color: #fff; }
.voice-info span { font-size: 13.5px; color: var(--muted); }

.receipt { display: grid; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 19px; background: var(--panel); font-size: 15.5px; color: #fff; }
.receipt-row span:first-child { color: var(--soft); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.total span { font-size: 16px; color: var(--soft); }
.total strong { font-size: 30px; color: #fff; }
.total-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.total-sum em { font-style: normal; font-size: 16px; color: var(--accent-3); }
.receipt-row.warn-row { background: rgba(251, 191, 36, .12); color: #ffe08a; }
.receipt-row.warn-row span:first-child { color: #ffe08a; font-weight: 600; }

.progress { height: 9px; border-radius: 999px; background: var(--panel); overflow: hidden; margin: 18px 0 26px; }
.bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transition: width .4s; }
.jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jobs li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--soft); padding: 14px 17px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.jobs li.done { color: #fff; }
.jobs li.done .dot { background: var(--ok); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); flex: none; }
.spin { margin-left: auto; font-size: 13.5px; color: var(--accent-3); }
.ok { margin-left: auto; font-size: 13.5px; color: var(--ok); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.result { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.result video { width: 100%; display: block; background: #000; }
.result-foot { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; font-size: 14.5px; color: var(--soft); }
.result-foot a { color: var(--accent-3); text-decoration: none; font-weight: 600; }

.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.panel-card { padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.panel-title { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.big-number { font-size: 44px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.packs { display: grid; gap: 10px; margin-bottom: 12px; }
.pack {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); cursor: pointer; font-family: inherit; color: #fff; font-size: 15px; text-align: left;
}
.pack:hover { background: rgba(168, 85, 247, .12); border-color: rgba(168, 85, 247, .5); }
.pack b { font-size: 16px; }
.pack small { color: var(--muted); font-size: 13px; }
.warning-banner {
  margin: 0 0 16px; padding: 15px 17px; border-radius: 14px; font-size: 15px; line-height: 1.5;
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #ffe08a;
}
.history { display: grid; gap: 10px; }
.hist-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
}
.hist-title { font-size: 15.5px; color: #fff; margin-bottom: 4px; }
.hist-meta { font-size: 13.5px; color: var(--muted); }
.hist-expire { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.hist-expire.soon { color: #fbbf24; font-weight: 600; }
.hist-actions { display: flex; gap: 8px; }
.mini-btn {
  background: transparent; border: 1px solid var(--line); color: var(--soft);
  font-size: 13.5px; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.mini-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

.auth-providers { display: grid; gap: 10px; margin-bottom: 18px; }
.auth-btn { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff; width: 100%; }
.auth-btn:hover { background: rgba(255, 255, 255, .12); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; margin-bottom: 14px; }
.auth-form .btn { width: 100%; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 4, 8, .8); backdrop-filter: blur(10px); }
.modal-card {
  width: min(600px, 100%); padding: 30px; border-radius: 22px;
  background: #131220; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
}
.modal-head { font-size: 24px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.howto { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 13px; color: var(--soft); font-size: 15.5px; line-height: 1.55; }
.howto b { color: #fff; font-weight: 700; }
.howto i { color: var(--accent-3); font-style: normal; }
.modal-note {
  font-size: 14.5px; color: var(--soft); line-height: 1.55; padding: 14px 16px; border-radius: 12px;
  background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .25); margin-bottom: 24px;
}
.modal-text { color: var(--soft); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.modal-text b { color: #fff; }
.trim-actions { display: grid; gap: 10px; margin-bottom: 16px; }
.trim-actions .btn { width: 100%; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; font-family: inherit; text-decoration: underline; padding: 0; }

.disclaimer { position: relative; z-index: 1; text-align: center; color: #8c899a; font-size: 13.5px; padding: 0 24px 40px; line-height: 1.55; }

@media (max-width: 900px) {
  .topbar { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .steps { order: 5; width: 100%; flex: none; justify-content: flex-start; gap: 4px; }
  .step { font-size: 13px; padding: 5px 10px; }
  .nav-btn, .help-btn, .account-btn { font-size: 13px; padding: 7px 11px; }
  .balance { font-size: 13px; }
  main { padding: 32px 16px 100px; }
  .scene { grid-template-columns: 1fr; gap: 8px; }
  .foot { gap: 12px; }
  .btn { width: 100%; }
  .foot .note { width: 100%; }
  .hist-row { grid-template-columns: 1fr; gap: 10px; }
}

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan {
  display: flex; flex-direction: column;
  padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  display: grid; gap: 10px; align-content: start;
}
.plan.best { border-color: rgba(168, 85, 247, .65); background: rgba(168, 85, 247, .1); }
.plan-name { font-size: 17px; color: #f2effa; }
.plan-price { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-price small { font-size: 15px; color: #d5d2e0; font-weight: 400; }
.plan-credits { font-size: 16px; color: #7ee8f7; }
.plan-note { font-size: 15px; color: #d5d2e0; line-height: 1.5; margin-top: auto; }
.plan .btn { width: 100%; margin-top: 6px; }

/* галерея примеров */
.showcase{margin:26px 0 10px}
.showcase-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.showcase-head h3{margin:0;font-size:18px}
.link-btn{background:none;border:0;color:var(--cyan);font-size:13.5px;cursor:pointer;padding:0}
.showcase-strip{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.showcase-strip::-webkit-scrollbar{display:none}
.sh-card{position:relative;flex:none;width:150px;aspect-ratio:9/16;border-radius:14px;overflow:hidden;
         border:1px solid var(--line);background:#14131b center/cover no-repeat;cursor:pointer}
.sh-card span{position:absolute;left:8px;bottom:8px;right:8px;font-size:12px;font-weight:600;
              text-shadow:0 1px 6px rgba(0,0,0,.9)}
.sh-card i{position:absolute;top:8px;right:8px;font-size:10.5px;font-style:normal;background:rgba(0,0,0,.55);
           padding:3px 7px;border-radius:999px;color:#fff}
.modal-card.wide{max-width:760px;width:calc(100% - 40px)}
.gallery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.icon-btn{background:rgba(255,255,255,.08);border:1px solid var(--line);color:#fff;width:34px;height:34px;
          border-radius:50%;cursor:pointer;font-size:14px;flex:none}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;max-height:60vh;overflow-y:auto}
.player-card{max-width:420px;width:calc(100% - 40px)}
.player-wrap{background:#000;border-radius:14px;overflow:hidden;margin-bottom:12px}
.player-wrap video{display:block;width:100%;max-height:62vh;background:#000}
.player-meta{font-size:14px;color:var(--soft);margin-bottom:14px}

/* видео-фон на первых шагах */
.hero-bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .4s ease}
.hero-bg.on{opacity:1}
.hero-bg video{width:100%;height:100%;object-fit:cover;opacity:.45}
.hero-fade{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,8,12,.55) 0%,rgba(8,8,12,.82) 45%,#08080c 88%)}
.topbar,.wrap,main,.screen{position:relative;z-index:1}

.field textarea{width:100%;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;
  padding:12px 14px;color:var(--text);font:inherit;font-size:15px;line-height:1.5;resize:vertical;min-height:120px}
.field textarea::placeholder{color:#8d8a9c}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.chip{border:1px solid var(--line);background:var(--panel-2);color:var(--soft);border-radius:999px;
  padding:8px 14px;font-size:14px;cursor:pointer}
.chip.on{border-color:rgba(168,85,247,.75);background:rgba(168,85,247,.16);color:#fff}

.price-table{width:100%;border-collapse:collapse;margin:10px 0 6px;font-size:15px}
.price-table th,.price-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}
.price-table th{color:var(--muted);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.price-table td:not(:first-child),.price-table th:not(:first-child){text-align:right}
.price-table tbody tr:hover{background:rgba(255,255,255,.03)}

/* подвал */


.f-logo{width:150px;height:auto;display:block;margin-bottom:14px}
.f-about{font-size:14.5px;color:var(--muted);line-height:1.55;margin:0;max-width:280px}
.f-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);
  margin-bottom:12px;font-weight:600}



.f-muted{color:var(--muted);font-size:14.5px}

@media (max-width:900px){
  
}
@media (max-width:560px){
  
}

/* cookies */
.cookie-bar{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;
  display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;
  background:rgba(24,23,32,.97);border:1px solid var(--line);border-radius:14px;
  padding:14px 18px;font-size:14.5px;color:var(--soft);box-shadow:0 14px 40px rgba(0,0,0,.5)}
.cookie-bar a{color:var(--cyan)}
.cookie-bar button{background:linear-gradient(135deg,var(--accent),var(--accent-2));border:0;color:#fff;
  border-radius:999px;padding:9px 20px;font-size:14.5px;font-weight:600;cursor:pointer;flex:none}

.auth-error{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#fca5a5;
  border-radius:12px;padding:11px 14px;font-size:14.5px;margin:4px 0 12px;line-height:1.45}
.demo-note{color:#8b8899;font-size:13.5px;margin-top:10px}

.auth-demo{background:rgba(168,85,247,.1);border:1px solid rgba(168,85,247,.35);
  border-radius:14px;padding:16px;margin-bottom:16px}
.auth-demo-title{font-size:16px;font-weight:700;margin-bottom:6px}
.auth-demo-text{font-size:14.5px;color:var(--soft);line-height:1.5;margin:0 0 14px}
.auth-demo-actions{display:flex;gap:10px;flex-wrap:wrap}
.auth-demo-actions .btn{flex:1;min-width:160px;margin:0}

/* заявка о браке */
.claim-box{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.claim-toggle{background:none;border:0;color:var(--muted);font-size:15px;cursor:pointer;
  padding:0;text-decoration:underline;text-underline-offset:3px}
.claim-toggle:hover{color:var(--soft)}
.claim-body{margin-top:16px;background:var(--panel);border:1px solid var(--line);
  border-radius:16px;padding:18px}
.claim-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:12px}
@media (max-width:700px){.claim-grid{grid-template-columns:1fr}}
.claim-file{display:block;margin:12px 0 4px}
.claim-file input{display:none}
.claim-file span{display:inline-block;border:1px dashed var(--line);border-radius:12px;
  padding:11px 16px;font-size:14.5px;color:var(--soft);cursor:pointer}
.claim-file span.on{border-color:var(--accent);color:#fff}
.claim-error{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#fca5a5;
  border-radius:12px;padding:11px 14px;font-size:14.5px;margin:10px 0}
.claim-done{margin-top:22px;background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.4);
  border-radius:16px;padding:20px}
.claim-done-title{font-size:19px;font-weight:700;color:#6ee7b7;margin-bottom:6px}

/* переключатель субтитров */
.switch-row{display:flex;gap:14px;align-items:flex-start;background:var(--panel);
  border:1px solid var(--line);border-radius:16px;padding:16px 18px;cursor:pointer;margin-bottom:8px}
.switch-row input{display:none}
.switch-box{flex:none;width:46px;height:26px;border-radius:999px;background:rgba(255,255,255,.14);
  position:relative;transition:background .18s}
.switch-box::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;transition:transform .18s}
.switch-row input:checked + .switch-box{background:linear-gradient(135deg,var(--accent),var(--accent-2))}
.switch-row input:checked + .switch-box::after{transform:translateX(20px)}
.switch-text{display:flex;flex-direction:column;gap:4px}
.switch-text b{font-size:15.5px;color:#f2effa;font-weight:600}
.switch-text em{font-style:normal;font-size:14px;color:var(--muted);line-height:1.45}

.site-footer{position:relative;z-index:2;background:#08080c;margin-top:70px;
  border-top:1px solid var(--line);padding:46px 0 24px}
.f-inner{max-width:1180px;margin:0 auto;padding:0 24px;display:grid;
  grid-template-columns:1.4fr .8fr 1.6fr 1fr 1fr .9fr;gap:24px;align-items:start}
.f-brand{min-width:0}
.f-logo{width:150px;height:auto;display:block;margin-bottom:14px}
.f-about{font-size:14.5px;color:var(--muted);line-height:1.55;margin:0;max-width:260px}
.f-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);
  margin-bottom:12px;font-weight:600}
.f-col{min-width:0;display:flex;flex-direction:column;gap:9px}
.f-col a{color:var(--soft);font-size:15px;text-decoration:none;line-height:1.35}
.f-col a:hover{color:#fff;text-decoration:underline}
.f-links{display:grid;gap:9px 20px}
.f-links-2{grid-template-columns:1fr 1fr}
.f-muted{color:var(--muted);font-size:14.5px}
.f-bottom{max-width:1180px;margin:32px auto 0;padding:18px 24px 0;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13.5px}
@media (max-width:1200px){
  .f-inner{grid-template-columns:1.3fr .9fr 1.5fr 1fr 1fr;gap:22px}
  .f-inner .f-col:nth-child(6){grid-column:span 2}
}
@media (max-width:1024px){
  .f-inner{grid-template-columns:1fr 1fr;gap:26px 30px}
  .f-wide{grid-column:1 / -1}
}
@media (max-width:700px){
  .f-inner{grid-template-columns:1fr;gap:26px}
  .f-wide{grid-column:auto}
  .f-links-2{grid-template-columns:1fr 1fr}
}

.promo-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin:18px 0 8px}
.promo-row .field{margin:0}
.promo-row .btn{height:46px}
@media (max-width:560px){.promo-row{grid-template-columns:1fr}}

/* логотип как кнопка «на главную» */
a.brand{text-decoration:none;color:inherit;cursor:pointer;transition:opacity .15s}
a.brand:hover{opacity:.82;text-decoration:none}
a.brand:hover .brand-text b{color:#fff}
a.brand:focus-visible{outline:2px solid var(--accent);outline-offset:6px;border-radius:10px}

.claim-window{background:rgba(251,191,36,.1);border:1px solid rgba(251,191,36,.3);color:#fcd34d;
  border-radius:12px;padding:11px 14px;font-size:14.5px;line-height:1.5;margin:0 0 16px}
.claim-deadline{margin-top:8px;font-size:14.5px;color:#d5d2e0}
.claim-deadline b{color:#fff}
