:root {
  --bg: #0d0b14;
  --bg2: #15121f;
  --card: #1a1726;
  --line: #2a2538;
  --text: #f3f1f8;
  --muted: #9d97b0;
  --accent: #c6ff3d;
  --accent-ink: #0d0b14;
  --pink: #ff4fa3;
  --danger: #ff5c6c;
  --radius: 16px;
  --font: "Cairo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.vhide { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; inset-inline-start: -10px; top: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.3em; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--font); cursor: pointer; transition: transform .15s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { padding: .4em .9em; font-size: .88rem; }
.btn-xl { padding: .9em 1.7em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-accent { background: var(--pink); color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.danger { color: var(--danger); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13, 11, 20, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 900; font-size: 1.25rem; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.nav > a:not(.btn) { color: var(--text); opacity: .85; }
.nav > a:not(.btn):hover { opacity: 1; color: var(--accent); }
.lang-switch { display: flex; gap: 2px; background: var(--bg2); border-radius: 999px; padding: 3px; }
.lang-switch a { color: var(--muted); font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.lang-switch a.on { background: var(--card); color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background:
  radial-gradient(40% 50% at 75% 30%, rgba(198, 255, 61, .16), transparent 70%),
  radial-gradient(35% 45% at 20% 70%, rgba(255, 79, 163, .14), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-block; padding: .35em .9em; border-radius: 999px; background: rgba(198, 255, 61, .1); color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(198, 255, 61, .3); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: #cfcadd; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone { width: 240px; height: 460px; border-radius: 36px; padding: 10px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 2px #2a2538; transform: rotate(-4deg); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #3b2f5c, #1b1630 55%, #4a2141); }
.ph-hook { position: absolute; top: 34px; inset-inline: 22px; background: #fff; color: #111; font-weight: 800; font-size: .95rem; text-align: center; border-radius: 10px; padding: 6px; }
.ph-person { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 250px; }
.ph-head { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 76px; height: 86px; border-radius: 50%; background: #c99a7a; }
.ph-body { position: absolute; bottom: 0; left: 0; width: 150px; height: 160px; border-radius: 75px 75px 0 0; background: #e7e2f2; }
.ph-cap { position: absolute; bottom: 92px; inset-inline: 0; text-align: center; font-weight: 900; font-size: 1.4rem; color: #fff; text-shadow: 0 0 2px #000, 0 2px 6px #000; }
.ph-cap .hl { color: #ffe14d; display: inline-block; transform: scale(1.1); }
.ph-bar { position: absolute; bottom: 0; inset-inline: 0; height: 5px; background: rgba(255, 255, 255, .2); }
.ph-bar i { display: block; height: 100%; width: 62%; background: var(--accent); }
.float { position: absolute; padding: .45em .9em; border-radius: 12px; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--line); font-weight: 800; animation: bob 4s ease-in-out infinite; }
.f1 { top: 18%; inset-inline-start: 2%; color: var(--accent); }
.f2 { bottom: 22%; inset-inline-end: 0; color: var(--pink); animation-delay: -1.3s; }
.f3 { top: 8%; inset-inline-end: 10%; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
section h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; text-align: center; margin-bottom: 1.2em; }
.features, .how, .pricing { padding: 56px 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; }
.feat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg2); font-size: 1.4rem; margin-bottom: 14px; }
.feat h3 { font-size: 1.15rem; }
.feat p { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.steps b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 18px; align-items: stretch; }
.plan { position: relative; padding: 28px 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; color: var(--muted); }
.price { font-size: 2.1rem; font-weight: 900; margin-bottom: 12px; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0; padding-inline-start: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 900; }
.plan li.dim { color: var(--muted); }
.plan li.dim::before { content: "•"; color: var(--muted); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--accent), 0 20px 50px rgba(198, 255, 61, .08); }
.ribbon { position: absolute; top: -12px; inset-inline-end: 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .78rem; padding: 3px 12px; border-radius: 999px; }
.ribbon.alt { background: var(--pink); color: #fff; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.auth-page { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 40px 16px; }
.auth-card { width: min(420px, 100%); padding: 32px 28px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 900; }
.form { display: grid; gap: 14px; margin: 18px 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input, select, textarea { width: 100%; padding: .65em .85em; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 500 .95rem var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type="color"] { padding: 2px; height: 40px; cursor: pointer; }
input[type="range"] { padding: 0; accent-color: var(--accent); background: transparent; border: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.alert { background: rgba(255, 92, 108, .12); color: #ffb3bb; padding: .7em 1em; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 92, 108, .3); }
.alert.ok { background: rgba(198, 255, 61, .1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(198, 255, 61, .3); }
.note { background: var(--bg2); padding: .7em 1em; border-radius: 10px; font-size: .9rem; margin: 0; }
output { color: var(--accent); font-weight: 800; }

/* ---------- admin ---------- */
.admin { padding: 32px 0; }
.stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stat { padding: 16px 22px; display: grid; min-width: 180px; }
.stat b { font-size: 1.8rem; }
.search { margin-bottom: 12px; max-width: 360px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 700; }
.row-form { display: flex; gap: 6px; align-items: center; }
.row-form select, .row-form input { width: auto; padding: .4em .5em; }
.pill { font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.pill-monthly { background: rgba(198, 255, 61, .12); color: var(--accent); }
.pill-lifetime { background: rgba(255, 79, 163, .14); color: var(--pink); }

/* ---------- editor ---------- */
.app-body { height: 100vh; overflow: hidden; }
.editor { display: grid; grid-template-columns: 1fr 380px; height: calc(100vh - 64px); }
.stage { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; min-width: 0; background:
  radial-gradient(60% 60% at 50% 40%, #1c1830, var(--bg)); }
.drop { width: min(560px, 100%); aspect-ratio: 4 / 3; display: grid; place-content: center; text-align: center; gap: 6px; border-radius: 24px; cursor: pointer;
  border: 2px dashed #3a3350; background: rgba(26, 23, 38, .6); transition: border-color .15s, background .15s; padding: 24px; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(198, 255, 61, .05); }
.drop-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.drop-title { font-weight: 800; font-size: 1.15rem; margin: 0; }
.player { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; }
.canvas-box { position: relative; flex: 1; min-height: 0; width: 100%; }
.canvas-box canvas { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); background: #000; }
.controls { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); direction: ltr; }
.seek { flex: 1; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; min-width: 92px; text-align: center; }
.panel { background: var(--bg2); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.tab { background: transparent; border: 0; color: var(--muted); font: 700 .88rem var(--font); padding: .55em .4em; border-radius: 10px; cursor: pointer; }
.tab:hover { color: var(--text); background: var(--card); }
.tab.on { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.tab-body { display: none; padding: 16px; gap: 14px; overflow-y: auto; flex: 1; align-content: start; }
.tab-body.on { display: grid; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lbl { font-weight: 700; font-size: .92rem; margin-bottom: -6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em; font: 700 .85rem var(--font); cursor: pointer; }
.chip.on { border-color: var(--accent); color: var(--accent); background: rgba(198, 255, 61, .08); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset { height: 58px; background: #000 linear-gradient(160deg, #2c2445, #120f1c); border: 2px solid transparent; border-radius: 12px; cursor: pointer; color: #fff; font: 900 .95rem "Montserrat", var(--font); text-shadow: 0 0 2px #000, 0 2px 4px #000; }
.preset.on { border-color: var(--accent); }
.pv-box { background: #c6ff3d; color: #111; padding: 0 6px; border-radius: 4px; text-shadow: none; }
.pv-neon { color: #fff; text-shadow: 0 0 8px #ff3df0, 0 0 16px #ff3df0; }
.pv-classic { }
.pv-min { background: rgba(0, 0, 0, .6); padding: 2px 8px; border-radius: 6px; text-shadow: none; font-weight: 700; }
.progress { display: grid; gap: 6px; }
.progress .bar { height: 8px; border-radius: 999px; background: var(--card); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #8cff9e); transition: width .3s; }
.progress span { font-size: .85rem; color: var(--muted); }
.lines { display: grid; gap: 6px; }
.line { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: start; padding: 8px; border-radius: 10px; background: var(--card); }
.line.cut { opacity: .45; }
.line.cut textarea { text-decoration: line-through; }
.line input { margin-top: 8px; }
.ts { background: var(--bg2); color: var(--accent); border: 0; border-radius: 6px; font: 700 .78rem var(--font); padding: 4px 6px; margin-top: 4px; cursor: pointer; }
.line textarea { resize: vertical; min-height: 38px; padding: .4em .6em; font-size: .92rem; }
.logo-row { display: flex; gap: 8px; align-items: center; }
.logo-row input { flex: 1; }
.upsell { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(255, 79, 163, .08); box-shadow: inset 0 0 0 1px rgba(255, 79, 163, .3); }
.upsell p { margin: 0; font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .feat-grid, .plans, .steps { grid-template-columns: 1fr; }
  .app-body { height: auto; overflow: auto; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .stage { min-height: 70vh; }
  .canvas-box { flex: none; height: 62vh; }
  .panel { border-inline-start: 0; border-top: 1px solid var(--line); }
  .tab-body { overflow: visible; }
}
@media (max-width: 640px) {
  .nav { gap: 10px; font-size: .9rem; }
  .nav > a:not(.btn):not(.keep) { display: none; }
  .hero { padding-top: 40px; }
  .grid2 { grid-template-columns: 1fr; }
}

/* ---------- setup wizard & admin settings ---------- */
.wizard { width: min(520px, 100%); }
.wizard .brand { margin-bottom: 18px; }
.wsteps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.wsteps li { counter-increment: s; font-size: .8rem; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.wsteps li::before { content: counter(s) ". "; }
.wsteps li.on { color: var(--accent); border-color: var(--accent); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
details summary { cursor: pointer; }
details label { margin-top: 10px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 6px; margin: 8px 0 16px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: .6em 1.1em; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-tabs a.on { color: var(--accent); border-color: var(--accent); }
.settings { display: grid; gap: 14px; max-width: 820px; }
.settings > .btn { justify-self: start; }
.set-card { padding: 20px 22px; }
.set-card h2 { font-size: 1.05rem; text-align: start; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks .ok { color: var(--accent); }
.checks .bad { color: #ffb3bb; }
