:root {
  --bg: #0b0b12;
  --card: #151521;
  --line: #2a2a3d;
  --text: #f3f3f7;
  --muted: #9a9ab0;
  --accent: #ff2d75;
  --accent2: #7b5cff;
  --ok: #35e07a;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 18px 16px;
}
.logo { font-weight: 900; font-size: 24px; letter-spacing: -0.5px; }
.logo span, .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
nav a { color: var(--muted); text-decoration: none; }
main { max-width: 980px; margin: 0 auto; padding: 0 16px 60px; }
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -1.5px; }
.sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 24px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 15px;
}
.tab.active { background: #1f1f30; color: var(--text); border-color: var(--accent2); }
.drop {
  display: block; border: 2px dashed var(--line); border-radius: 14px; padding: 34px 16px;
  text-align: center; cursor: pointer; transition: .15s;
}
.drop.over, .drop:hover { border-color: var(--accent); background: #1a1622; }
.drop-icon { font-size: 30px; margin-bottom: 6px; }
.input, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #0f0f18; color: var(--text); font-size: 15px;
}
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
h3 { margin: 22px 0 10px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.style {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer;
  background: #0f0f18; text-align: left; color: var(--text);
}
.style.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.style .preview {
  height: 54px; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(135deg, #2b2b44, #1a1a28);
  font-family: "Arial Black", Impact, sans-serif; font-size: 17px;
}
.style .name { font-weight: 700; font-size: 14px; }
.style .desc { color: var(--muted); font-size: 12px; line-height: 1.3; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.grid label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--text) !important; font-size: 14px; }
.rights { display: flex; margin: 20px 0 4px; font-size: 14px; color: var(--muted) !important; align-items: flex-start !important; }
.rights input { margin-top: 4px; }
.btn {
  width: 100%; margin-top: 16px; padding: 15px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: 17px; font-weight: 800; color: white;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost { width: auto; margin: 0; padding: 10px 16px; font-size: 14px; background: #1f1f30; border: 1px solid var(--line); }
.error { margin-top: 12px; padding: 12px; border-radius: 10px; background: #3a1220; color: #ffb3c6; }
.hidden { display: none !important; }
.bar { height: 10px; background: #0f0f18; border-radius: 99px; overflow: hidden; margin: 14px 0; }
.fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 12px; }
.clip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clip video { width: 100%; aspect-ratio: 9/16; background: #000; display: block; }
.clip .body { padding: 14px; }
.clip .title { font-weight: 800; margin-bottom: 4px; }
.score { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #12321f; color: var(--ok); margin-bottom: 6px; }
.reason { color: var(--muted); font-size: 13px; }
.tags { color: var(--accent2); font-size: 13px; margin: 6px 0 10px; word-break: break-word; }
.row { display: flex; gap: 8px; }
.row .btn { margin: 0; padding: 10px; font-size: 14px; text-align: center; text-decoration: none; }
.how { margin-top: 40px; }
.steps { color: var(--muted); padding-left: 20px; }
.steps b { color: var(--text); }
nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
nav a:hover { color: var(--text); }
.pill { background: #1f1f30; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--muted); font-size: 12px; }
.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.center { text-align: center; }
.overlay-box { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.overlay-box h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.ideas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.idea {
  text-align: left; background: #0f0f18; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 14px; line-height: 1.3;
}
.idea:hover, .idea.active { border-color: var(--accent2); }
.overlay-box .input { font-size: 14px; padding: 10px; }
.overlay-box .check { margin: 8px 0; font-size: 13px; }
.link-btn { background: none; border: 0; color: var(--accent2); cursor: pointer; padding: 0; font-size: 13px; }
.status-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.status-note.err { color: #ffb3c6; }
.clip { position: relative; }
.clip .busy {
  position: absolute; inset: 0 0 auto 0; aspect-ratio: 9/16; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.65); font-weight: 700; z-index: 2;
}
.history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.history-item {
  display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; cursor: pointer; color: var(--text); text-align: left; width: 100%;
}
.history-item img { width: 54px; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; background: #000; }
.history-item .meta { color: var(--muted); font-size: 13px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 18px; }
.acc-grid.tight { gap: 0 14px; }
#account .card { margin-bottom: 18px; }
#account .results-head { margin-bottom: 14px; }
.acc-h { margin: 0 0 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-all; }
.btn.small { width: auto; padding: 10px 16px; font-size: 14px; margin-top: 14px; }
.plan-badge { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; padding: 2px 10px; border-radius: 99px; font-size: 12px; }
.meter { margin-bottom: 14px; font-size: 14px; }
.meter .lbl { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 6px; }
.meter .lbl b { color: var(--text); }
.meter .bar { margin: 0; height: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; text-align: center; }
.stats div { background: #0f0f18; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
.stats b { display: block; font-size: 22px; }
.stats span { color: var(--muted); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #0f0f18; }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h4 { margin: 0 0 4px; font-size: 18px; }
.plan ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.plan .tag { font-size: 12px; color: var(--accent); font-weight: 700; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.badge.wm { background: #3a2a10; color: #ffc966; }
.badge.ok { background: #12321f; color: var(--ok); }
.wm-box { background: #1b1626; border: 1px solid #3a2d55; border-radius: 12px; padding: 12px; margin: 6px 0 10px; }
.wm-text { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.wm-text b { color: var(--text); }
.wm-box .btn { margin-top: 8px; padding: 11px; font-size: 15px; }
.acc-sub { margin: 18px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.offline {
  position: sticky; top: 0; z-index: 50; background: #5a1f30; color: #ffd6e0;
  text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600;
}
.badge.lock { background: #2a2140; color: #c7b8ff; }
.lock-preview { position: relative; aspect-ratio: 9/16; background: #000; overflow: hidden; }
.lock-preview img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.55); transform: scale(1.1); }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; }
.lock-icon { font-size: 44px; }
.wm-box .btn.ghost { margin-top: 8px; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 800; }
/* --- admin --- */
#admin .card { margin-bottom: 18px; }
#admin .results-head { margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile .k { color: var(--muted); font-size: 13px; }
.tile .v { font-size: 30px; font-weight: 800; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.chart-wrap { position: relative; }
.chart-wrap svg { max-width: 100%; display: block; }
.chart-wrap .axis { fill: var(--muted); font-size: 11px; }
.chart-wrap .grid { stroke: var(--line); stroke-width: 1; }
.chart-wrap .bar { fill: var(--accent2); }
.chart-wrap .hit { fill: transparent; cursor: default; }
.chart-wrap .hit:hover + .bar, .chart-wrap .bar.on { fill: var(--accent); }
.tip { position: absolute; pointer-events: none; background: #0f0f18; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); z-index: 3; }
.tip b { font-size: 14px; }
.split-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.split-row b { font-variant-numeric: tabular-nums; }
.split-bar { height: 8px; border-radius: 99px; background: #0f0f18; overflow: hidden; display: flex; gap: 2px; margin: 4px 0 10px; }
.split-bar span { display: block; height: 100%; }
.plan-form .row { gap: 10px; align-items: center; margin-top: 8px; }
.plan-form .row .btn { margin: 0; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pl { padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.pl.free { background: #1f1f30; color: var(--muted); }
.pl.pro { background: #2a2140; color: #c7b8ff; }
.pl.admin { background: #3a1430; color: #ff9ec0; }
.demo-bar {
  position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: center; padding: 10px 16px; background: linear-gradient(90deg, #3a1430, #2a2140);
  border-bottom: 1px solid #5a2a55; font-size: 14px;
}
.demo-bar .btn.small { margin: 0; padding: 7px 12px; font-size: 13px; }
.view-as { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.view-as .acc-h { margin-bottom: 4px; }
.view-as .hint { margin: 0; max-width: 520px; }
.view-as .row { gap: 10px; }
.view-as .btn.small { margin: 0; }
.support-link { color: var(--accent2); font-weight: 600; }
footer div + div { margin-top: 6px; }
.history-row { display: flex; gap: 8px; align-items: stretch; }
.history-row .history-item { flex: 1; }
.icon-btn {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
  width: 52px; font-size: 18px; cursor: pointer;
}
.icon-btn:hover { border-color: #b3264d; color: #ffb3c6; background: #2a1420; }
.danger-link { color: #ff8fab; margin-top: 12px; display: block; }
.danger-link:hover { text-decoration: underline; }
.head-btns { gap: 8px; }
.head-btns .btn { margin: 0; }
.ai-box { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.ai-box h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.ai-box.teaser { background: #1b1626; border: 1px solid #3a2d55; border-radius: 12px; padding: 12px; }
.ai-box.teaser .btn { margin-top: 4px; }
.ai-chat { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; max-height: 220px; overflow-y: auto; }
.ai-msg { font-size: 13px; padding: 7px 10px; border-radius: 10px; line-height: 1.35; max-width: 92%; }
.ai-msg.you { align-self: flex-end; background: #2a2140; }
.ai-msg.ai { align-self: flex-start; background: #0f0f18; border: 1px solid var(--line); color: #d8d8e6; }
.ai-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { background: #0f0f18; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--accent2); color: var(--text); }
.ai-input { resize: vertical; font: inherit; font-size: 14px; }
.ai-box .row { margin-top: 8px; }
.ai-box .row .btn { margin: 0; padding: 10px; font-size: 14px; }
.plan .buy-pro { margin-top: 14px; }
.plan .hint.center { margin-top: 6px; }
.sub-box { margin-top: 14px; padding: 12px; border-radius: 12px; background: #1b1626; border: 1px solid #3a2d55; font-size: 14px; }
.sub-box .btn.small { margin-top: 10px; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.packs .btn.pack { margin: 0; padding: 10px 8px; font-size: 14px; line-height: 1.25; }
.packs .btn.pack span { display: block; font-size: 11px; font-weight: 600; opacity: .85; }
.unlock-area .btn { margin-top: 8px; }
.unlock-area .hint.center { margin-top: 4px; }
.limit-offer { margin-top: 12px; }
.limit-offer .btn { margin-top: 8px; }
.plan .btn.buy-pro { margin-top: 10px; }
.save { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #12321f; color: var(--ok); font-size: 11px; }
.danger { border-color: #5a1f30; }
.danger-btn { background: #b3264d; }
.status-note.ok { color: var(--ok); }
@media (max-width: 560px) {
  nav { gap: 10px; font-size: 13px; }
  .pill { display: none; }
}
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; border-top: 1px solid var(--line); }
