:root {
  --bg: #000000; --surface: #0a0a0b; --surface-2: #111113; --surface-3: #1a1a1d; --line: #1f1f23; --line-2: #2c2c31;
  --ink: #ededed; --ink-2: #c4c4c9; --muted: #8a8a93; --brand: #ffffff; --brand-2: #e4e4e7;
  --ok: #3ecf8e; --warn: #f5a524; --bad: #f04444; --radius: 14px;
  --grad: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
input, select, textarea { width: 100%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; font: inherit; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin: 0 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink); padding: 10px 16px; border-radius: 12px; font: 600 14px/1.2 inherit; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 24px rgba(255, 255, 255, .3); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { border-color: rgba(239, 68, 68, .4); color: #fca5a5; }

/* -------------------------------------------------- landing */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: -6px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; }
.lnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lnav-links { display: flex; gap: 22px; margin-left: 16px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.lnav-links a:hover { color: var(--ink); }
.lnav-actions { margin-left: auto; display: flex; gap: 10px; }
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 20px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-2); margin: 20px 0 28px; max-width: 580px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
/* phone with an auto-scrolling short-video ad feed */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone { position: relative; z-index: 1; width: 270px; height: 550px; border-radius: 44px; padding: 11px; background: #05060a;
  border: 1px solid #27272a; box-shadow: 0 40px 90px rgba(0, 0, 0, .65), inset 0 0 0 2px #111113, 0 0 0 1px rgba(255, 255, 255, .15); }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 99px; background: #000; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.feed-track { position: absolute; inset: 0; animation: feed 22s cubic-bezier(.7, 0, .2, 1) infinite; }
.feed-top { position: absolute; top: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, .65); z-index: 2; }
.feed-top b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.reel { position: relative; height: 528px; overflow: hidden; background: var(--bg-g); display: flex; align-items: center; justify-content: center; }
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 7s ease-in-out infinite alternate; }
.reel:nth-child(2n) .reel-img { animation-direction: alternate-reverse; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -3%); } }
.reel-art { font-size: 120px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); animation: float 4s ease-in-out infinite; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 25%, transparent 50%, rgba(0, 0, 0, .75) 100%); }
.reel-side { position: absolute; right: 10px; bottom: 120px; z-index: 2; display: grid; gap: 14px; text-align: center; color: #fff; font-size: 11px; font-weight: 700; }
.reel-side i { display: block; font-style: normal; font-size: 24px; }
.reel-info { position: absolute; left: 14px; right: 64px; bottom: 22px; z-index: 2; color: #fff; }
.reel-info b { font-size: 14px; display: block; }
.reel-info p { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.reel-info .spons { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, .2); margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.reel-cta { display: block; width: 100%; text-align: center; padding: 9px; border-radius: 8px; background: var(--cta, #fe2c55); color: #fff; font-weight: 800; font-size: 13px; }
@keyframes feed { 0%, 15% { transform: translateY(0); } 20%, 35% { transform: translateY(-528px); } 40%, 55% { transform: translateY(-1056px); }
  60%, 75% { transform: translateY(-1584px); } 80%, 95% { transform: translateY(-2112px); } 100% { transform: translateY(-2640px); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-4deg); } }
.hero-visual .mock { position: absolute; right: -56px; bottom: -18px; width: 270px; z-index: 2; padding: 13px; }
.hero-visual .phone { transform: translateX(-60px); }
.hero-visual .mock-kpis b { font-size: 17px; } .hero-visual .mock-chart { height: 70px; } .hero-visual .mock-feed div { font-size: 12px; padding: 6px 0; }
@media (max-width: 1100px) { .hero-visual .mock { display: none; } }
@media (prefers-reduced-motion: reduce) { .feed-track, .reel-art { animation: none; } }

.mock { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); position: relative; }
.mock::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); filter: blur(30px); }
.mock-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-head b { margin-left: 8px; font-size: 13px; color: var(--muted); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.mock-kpis small { color: var(--muted); font-size: 12px; display: block; }
.mock-kpis b { font-size: 22px; display: block; }
.up { color: var(--ok); font-style: normal; font-size: 12px; font-weight: 700; }
.mock-chart { width: 100%; height: 110px; margin: 14px 0 8px; }
.mock-feed div { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.tag { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 13px; }
.tag.bad { background: rgba(239, 68, 68, .15); } .tag.ok { background: rgba(34, 197, 94, .15); } .tag.info { background: rgba(255, 255, 255, .18); }
.strip { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.pchips { display: flex; gap: 10px; flex-wrap: wrap; }
.pchips i { font-style: normal; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--ink); font-size: 14px; }
.section { max-width: 1180px; margin: 0 auto; padding: 72px 20px 24px; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); text-align: center; font-weight: 800; }
.sub { text-align: center; color: var(--muted); margin: 12px auto 36px; max-width: 640px; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step b { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; } .step p { color: var(--muted); margin: 0; font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.fi { font-size: 26px; margin-bottom: 12px; } .feat h3 { font-size: 18px; margin-bottom: 8px; } .feat p { color: var(--muted); margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px rgba(255, 255, 255, .2); }
.plan .hot-tag { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; } .price { font-size: 38px; font-weight: 800; } .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.plan li.no { color: var(--muted); } .plan li.no::before { content: "—"; color: var(--muted); }
.plan .btn { margin-top: auto; }
.faq { max-width: 780px; margin: 30px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 700; } .faq p { color: var(--ink-2); margin: 10px 0 0; }
.final-cta { text-align: center; padding: 80px 20px; } .final-cta h2 { font-size: 34px; margin-bottom: 24px; }
.foot { text-align: center; color: var(--muted); padding: 30px 20px 40px; border-top: 1px solid var(--line); font-size: 14px; }

/* -------------------------------------------------- app shell */
#appShell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--surface); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.side .logo { padding: 0 8px; }
.snav { display: grid; gap: 2px; }
.snav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.snav a i { font-style: normal; width: 22px; text-align: center; }
.snav a:hover { background: var(--surface-2); color: var(--ink); }
.snav a.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
.side-plan { margin-top: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13px; }
.side-plan b { display: block; font-size: 15px; margin-bottom: 4px; }
.main { min-width: 0; padding: 22px clamp(16px, 3vw, 36px) 60px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.topbar h1 { font-size: 26px; font-weight: 800; }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; display: block; }
.kpi b { font-size: 24px; font-weight: 800; display: block; margin-top: 4px; letter-spacing: -0.02em; }
.chart { width: 100%; height: 220px; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; font: 600 13px inherit; cursor: pointer; }
.seg button.on { background: var(--surface-3); color: #fff; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tscroll { overflow-x: auto; margin: 0 -4px; }
.pl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.pl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #888); }
.cname { font-weight: 700; } .cname small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.ok { background: rgba(34, 197, 94, .14); color: #86efac; } .chip.off { background: var(--surface-3); color: var(--muted); }
.chip.bad { background: rgba(239, 68, 68, .14); color: #fca5a5; } .chip.brand { background: rgba(255, 255, 255, .16); color: #e4e4e7; }

.feed { display: grid; gap: 2px; }
.feed div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.feed div:first-child { border-top: 0; }
.feed time { color: var(--muted); font-size: 12px; white-space: nowrap; margin-left: auto; }
.empty { text-align: center; padding: 50px 20px; }
.empty .big { font-size: 46px; } .empty h2 { justify-content: center; font-size: 22px; margin: 10px 0; } .empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* wizard */
.wiz-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wiz-steps span { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; border: 1px solid var(--line); }
.wiz-steps span.on { background: rgba(255, 255, 255, .16); color: #fff; border-color: var(--brand); }
.wiz-steps span.done { color: var(--ok); }
.niche-group { margin-bottom: 16px; } .niche-group h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); padding: 9px 14px; border-radius: 12px; font: 600 14px inherit; cursor: pointer; transition: all .12s; }
.chips button:hover { border-color: var(--brand); }
.chips button.on { background: rgba(255, 255, 255, .18); border-color: var(--brand); color: #fff; }
.pick-plat { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick-plat label { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; cursor: pointer; margin: 0; color: var(--ink); font-size: 14px; }
.pick-plat input { width: auto; accent-color: var(--brand); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.form { display: grid; gap: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.thinking { text-align: center; padding: 60px 20px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line-2); border-top-color: var(--brand); animation: spin 0.9s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.strategy-sum { font-size: 16px; color: var(--ink); line-height: 1.6; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; } .pill-list span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--ink-2); }
.split { display: grid; gap: 10px; }
.split div { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cr { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.cr-img { aspect-ratio: 1; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.cr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-body { padding: 14px; display: grid; gap: 8px; }
.cr-body .angle { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #e4e4e7; font-weight: 800; }
.cr-body h4 { margin: 0; font-size: 15px; } .cr-body p { margin: 0; color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; }
.side-foot { display: grid; gap: 8px; } .side-foot select { padding: 8px 10px; font-size: 13px; }
.langs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; }
.langs button { background: none; border: 0; color: var(--muted); font: 700 12px inherit; padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.langs button.on { background: var(--surface-3); color: #fff; }
.side .langs { justify-self: start; }
.announce { background: var(--grad); color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 14px; }
.fc { background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .3); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.fc:empty { display: none; }
.occ { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.occ-i { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.occ-i p { margin: 4px 0 8px; color: var(--ink-2); font-size: 13.5px; } .occ-i .btn { justify-self: start; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.idea { background: var(--surface-2); border-radius: 12px; padding: 12px; margin-bottom: 10px; } .idea p { margin: 6px 0; }
.link-box { background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .45); border-radius: 14px; padding: 14px; }
.link-row { display: flex; gap: 10px; align-items: center; } .link-row > input, .link-row > select { flex: 1; min-width: 0; } .link-row .btn { flex: none; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; } .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.vid { display: grid; gap: 6px; } .vid video { width: 100%; aspect-ratio: 9/16; border-radius: 12px; background: #000; }
.vid.wait { aspect-ratio: 9/16; place-items: center; align-content: center; background: var(--surface-2); border-radius: 12px; text-align: center; }
.vid.wait .spinner { margin-bottom: 8px; }
.prop-card { border-color: rgba(255, 255, 255, .5); margin-bottom: 16px; }
.prop { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.prop:first-of-type { border-top: 0; }
.limit-card { margin-bottom: 16px; }
.radio { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; cursor: pointer; margin: 0; color: var(--ink); font-weight: 500; }
.radio input { width: auto; margin-top: 4px; accent-color: var(--brand); }
select.lead-st { width: auto; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.chip-ok { color: #86efac; } .chip-bad { color: #fca5a5; } .chip-brand { color: #e4e4e7; }
.cr-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cr-body .cta { font-size: 12.5px; font-weight: 800; color: var(--brand-2); }
.warn-box { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #fcd34d; }
.ok-box { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.err-box { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #fecaca; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; } .kw span { background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); }

/* platforms */
.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.plat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.plat-head { display: flex; align-items: center; gap: 12px; }
.plat-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c); flex: none; }
.plat h3 { font-size: 16px; } .plat p { margin: 0; color: var(--muted); font-size: 13px; }
.plat .btn { margin-top: auto; }
.conn { display: grid; gap: 10px; }
.conn-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.conn-row:first-child { border-top: 0; }

/* chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 480px; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 6px 2px 16px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.assistant { white-space: normal; }
.md-h { font-weight: 800; font-size: 15.5px; margin: 6px 0 4px; }
.md-li { padding-left: 16px; position: relative; } .md-li::before { content: "•"; position: absolute; left: 3px; color: var(--brand); }
.md-gap { height: 8px; } .md-t { margin: 6px 0; font-size: 13px; } .md-t td, .md-t th { padding: 6px 8px; }
.msg code { background: var(--bg); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.chat-form { display: flex; gap: 10px; } .chat-form input { flex: 1; }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sugg button { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 7px 12px; font: 600 13px inherit; cursor: pointer; }

/* modal & toast */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 10, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; width: 100%; max-width: 420px; position: relative; max-height: 92vh; overflow-y: auto; }
.modal-card.wide { max-width: 640px; }
.modal-card h2 { font-size: 24px; margin-bottom: 6px; }
.modal-card .form { margin-top: 18px; }
.modal-x { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: up .2s ease; }
.toast.ok { border-color: rgba(34, 197, 94, .5); } .toast.err { border-color: rgba(239, 68, 68, .55); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.copy { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; word-break: break-all; }
ol.steps-list { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }

/* -------------------------------------------------- responsive */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .features { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; } .hero-visual { min-height: 0; } .lnav-links { display: none; } .plans { grid-template-columns: 1fr; }
  #appShell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .side.open { transform: none; }
  .burger { display: inline-grid; place-items: center; }
  .grid2, .grid3 { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); } .features, .steps { grid-template-columns: 1fr; }
  .lnav-actions .ghost { display: none; } .topbar h1 { font-size: 21px; } .msg { max-width: 92%; }
  .split div { grid-template-columns: 1fr 70px; } .split .bar { display: none; }
}

/* «Мои видео» gallery */
.vg{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.vg-i{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.vg-i video{width:100%;aspect-ratio:9/16;background:#000;display:block;object-fit:cover}
.vg-wait{aspect-ratio:9/16;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;background:#0b0b10}
.vg-meta{padding:10px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.vg-meta .cr-actions{margin-top:6px}

/* auth screens */
#authModal .modal-card { max-width: 420px; padding: 30px 28px 24px; }
#authTitle { font-size: 24px; margin-bottom: 4px; }
#authSub { margin: 0 0 22px; font-size: 14px; line-height: 1.5; }
.af { display: flex; flex-direction: column; gap: 16px; }
.af .hidden { display: none !important; }
.af-group { display: flex; flex-direction: column; gap: 16px; }
.af-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.af-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; }
.af-forgot { font-weight: 500; color: var(--brand-2); font-size: 13px; text-decoration: none; }
.af-forgot:hover { text-decoration: underline; }
.af input { height: 48px; font-size: 15px; padding: 0 14px; }
.af input::placeholder { color: #5d647a; }
.af input.bad { border-color: #f05d6c; box-shadow: 0 0 0 3px rgba(240, 93, 108, .14); }
.af-err { color: #ff8793; font-size: 12.5px; }
.af-pw { position: relative; display: block; }
.af-pw input { padding-right: 48px; }
.af-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 16px; cursor: pointer; opacity: .55; filter: grayscale(1); }
.af-eye:hover, .af-eye.on { opacity: 1; filter: none; background: var(--surface-3); }
.af-meter { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.af-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.af-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; transition: width .25s, background .25s; }
.af-meter[data-lvl="weak"] i::after { width: 33%; background: #f05d6c; }
.af-meter[data-lvl="ok"] i::after { width: 66%; background: #f5b445; }
.af-meter[data-lvl="strong"] i::after { width: 100%; background: #34d399; }
.af-meter em { font-style: normal; min-width: 120px; text-align: right; }
.af-meter[data-lvl=""] { display: none; }
.af-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.af-otp input { height: 56px; padding: 0; text-align: center; font-size: 24px; font-weight: 700; border-radius: 12px; }
.af-hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.af-hint a { color: var(--brand-2); }
.af-cap { display: grid; grid-template-columns: auto 40px 1fr; gap: 8px; align-items: center; }
.af-cap img { height: 48px; width: 137px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer; object-fit: cover; }
.af-refresh { width: 40px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2);
  font-size: 18px; cursor: pointer; }
.af-refresh:hover { border-color: var(--brand); color: #fff; }
.af-cap input { min-width: 0; }
.af-submit { height: 50px; font-size: 15px; margin-top: 4px; }
#authSwitch { margin: 18px 0 0; font-size: 14px; }
@media (max-width: 420px) {
  #authModal .modal-card { padding: 26px 18px 20px; }
  .af-cap { grid-template-columns: 1fr 40px; }
  .af-cap img { width: 100%; height: 56px; object-fit: contain; background: #181824; }
  .af-cap .af-refresh { height: 56px; }
  .af-cap input { grid-column: 1 / -1; }
  .af-otp { gap: 6px; } .af-otp input { height: 50px; font-size: 20px; }
}

/* free traffic & Telegram */
.tr-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.tr-pick { display: flex; flex-direction: column; gap: 6px; min-width: 220px; flex: 1; max-width: 360px; }
.tr-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-tab { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.tr-tab.on { background: rgba(255, 255, 255, .18); border-color: var(--brand); color: #fff; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tr-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tr-item p { margin: 0; }
.tr-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.tr-top b { margin-right: auto; font-size: 15px; }
.tr-copy { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; margin: 6px 0; word-break: break-word; }
.tr-copy .muted { font-size: 12px; }
.pre { white-space: pre-wrap; }
.tr-steps { margin: 6px 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.tr-ad { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.tr-ad .muted { font-size: 12px; }
.tr-cost { width: 90px; height: 34px; padding: 0 8px; text-align: right; }

/* legal links, support */
.foot-links { margin-top: 8px; font-size: 13px; }
.foot-links a, .foot a { color: var(--muted); }
.foot-note { margin: 10px auto 0; max-width: 760px; font-size: 12px; color: #6c7287; line-height: 1.5; }
.side-help { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-top: 6px; }
.side-help:hover { color: #fff; }
.side-legal { font-size: 11.5px; color: #6c7287; }
.side-legal a { color: #6c7287; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* -------------------------------------------------- monochrome theme (black, white accents, hairline borders) */
body { background: radial-gradient(1200px 520px at 50% -180px, rgba(255, 255, 255, .09), transparent 70%) no-repeat, #000; }
h1, h2 { letter-spacing: -0.035em; font-weight: 700 !important; }
.hero h1, .section h2 { background: linear-gradient(180deg, #fff 30%, #9b9ba3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { border-radius: 10px; font-weight: 600; background: transparent; border-color: var(--line-2); }
.btn:hover { border-color: #52525b; background: rgba(255, 255, 255, .04); }
.btn.primary, .logo-mark, .step b, .plan .hot-tag, .announce, .msg.user { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.btn.primary:hover { background: #e4e4e7 !important; }
.btn.lg { border-radius: 12px; }
.logo b { background: none; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.badge { background: rgba(255, 255, 255, .04); border-color: var(--line-2); font-weight: 600; }
.step, .feat, .plan, .mock, .card { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border-color: var(--line); }
.feat:hover { border-color: #3f3f46; }
.plan.hot { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 20px 80px rgba(255, 255, 255, .06); }
.mock::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent); }
.pchips i { background: rgba(255, 255, 255, .03); border-color: var(--line-2); }
input, select, textarea { background: #0a0a0b; border-color: var(--line-2); border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.snav a.on { box-shadow: inset 2px 0 0 #fff; }
.bar i { background: #fff; }
::selection { background: rgba(255, 255, 255, .85); color: #000; }html, body { overflow-x: clip; }
