:root {
  --bg:#08090d;
  --surface:#0e1018;
  --surface2:#151824;
  --border:#242838;
  --border2:#303548;
  --text:#eef0f7;
  --muted:#9298aa;
  --dim:#5f6678;
  --accent:#7c6af7;
  --accent2:#9d8fff;
  --success:#34d399;
  --error:#fb7185;
  --warn:#fbbf24;
  --radius:18px;
  --font:'Montserrat',system-ui,sans-serif;
}

* { box-sizing:border-box; margin:0; padding:0; }
body {
  min-height:100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(124,106,247,.12), transparent 34%),
    radial-gradient(circle at 20% 100%, rgba(52,211,153,.06), transparent 28%),
    var(--bg);
  color:var(--text);
  font-family:var(--font);
  line-height:1.55;
}
button,input,select { font-family:var(--font); }
button { border:0; background:none; cursor:pointer; color:inherit; }
a { color:inherit; text-decoration:none; }
.hidden { display:none !important; }

.header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(8,9,13,.82);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
}
.header-inner {
  max-width:1120px;
  height:64px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:var(--accent2);
  letter-spacing:-.3px;
}
.logo-img {
  width:30px;
  height:30px;
  object-fit:contain;
}
.nav {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.btn-primary,
.btn-ghost {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:10px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  transition:.18s ease;
}
.btn-primary {
  background:var(--accent);
  color:white;
  box-shadow:0 14px 34px rgba(124,106,247,.18);
}
.btn-primary:hover {
  background:var(--accent2);
  transform:translateY(-1px);
}
.btn-ghost {
  border:1px solid var(--border2);
  background:rgba(255,255,255,.02);
}
.btn-ghost:hover { background:var(--surface2); border-color:#454b62; }
.btn-sm { min-height:34px; padding:7px 13px; font-size:13px; }
.btn-lg { min-height:52px; padding:14px 26px; font-size:16px; }
.btn-full { width:100%; }
.btn-link {
  color:var(--accent2);
  font-size:14px;
  font-weight:700;
}
.btn-link.center { align-self:center; }

.plan-chip {
  display:inline-flex;
  align-items:center;
  height:22px;
  padding:0 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.5px;
}
.plan-free { color:#34d399; background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.22); }
.plan-starter { color:#60a5fa; background:rgba(96,165,250,.1); border:1px solid rgba(96,165,250,.22); }
.plan-pro { color:#a78bfa; background:rgba(167,139,250,.12); border:1px solid rgba(167,139,250,.25); }
.plan-creator { color:#fbbf24; background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.25); }
.usage-label { color:var(--muted); font-size:12px; }

.verify-banner {
  position:sticky;
  top:64px;
  z-index:40;
  background:rgba(251,191,36,.12);
  border-bottom:1px solid rgba(251,191,36,.28);
  color:#fde68a;
  padding:10px 18px;
  display:flex;
  justify-content:center;
  gap:12px;
  align-items:center;
  text-align:center;
  font-size:14px;
}
.verify-banner button {
  color:white;
  background:rgba(251,191,36,.22);
  border:1px solid rgba(251,191,36,.4);
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
}

#appRoot {
  max-width:900px;
  margin:0 auto;
  padding:56px 24px 80px;
}
.state { animation:fadeUp .24s ease; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

.hero {
  text-align:center;
  margin-bottom:34px;
}
.hero h1 {
  font-size:clamp(34px,6vw,62px);
  line-height:1.04;
  font-weight:900;
  letter-spacing:-1.4px;
}
.hero h1 span {
  background:linear-gradient(135deg,var(--accent2),#d8b4fe);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero p {
  max-width:680px;
  margin:18px auto 0;
  color:var(--muted);
  font-size:16px;
}
.free-pill {
  display:inline-flex;
  margin-top:18px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}

.upload-zone {
  border:2px dashed var(--border2);
  background:rgba(14,16,24,.86);
  border-radius:26px;
  padding:54px 22px;
  text-align:center;
  transition:.18s ease;
}
.upload-zone:hover,
.upload-zone:focus,
.upload-zone.drag-over {
  border-color:var(--accent);
  background:rgba(124,106,247,.07);
  box-shadow:0 0 60px rgba(124,106,247,.16);
}
.upload-icon {
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
  margin:0 auto 18px;
  border-radius:50%;
  background:var(--surface2);
  color:var(--accent2);
  font-size:38px;
  font-weight:900;
}
.upload-zone h2 {
  font-size:22px;
  margin-bottom:6px;
}
.upload-zone p {
  color:var(--muted);
  margin-bottom:22px;
}

.section-head {
  margin:56px 0 18px;
}
.section-head h2 {
  font-size:24px;
  font-weight:900;
}
.section-head p {
  color:var(--muted);
  font-size:14px;
}

.style-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:14px;
}
.style-grid-home {
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
}
.style-card {
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:18px;
  overflow:hidden;
  transition:.18s ease;
  cursor:pointer;
}
.style-card:hover {
  transform:translateY(-2px);
  border-color:var(--accent);
}
.style-card.selected {
  border-color:var(--accent2);
  box-shadow:0 0 0 2px rgba(124,106,247,.22), 0 18px 40px rgba(0,0,0,.24);
}
.style-card.locked {
  opacity:.55;
}
.preview-wrap {
  height:104px;
  position:relative;
  overflow:hidden;
}
.lock-layer {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.62);
  color:white;
  font-weight:900;
  font-size:13px;
}
.style-meta {
  padding:12px 13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.style-meta strong {
  font-size:14px;
}

.sdemo {
  height:104px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:14px;
  overflow:hidden;
}
.sdemo span {
  display:inline-block;
  white-space:nowrap;
  line-height:1;
}
.sdemo-hormozi {
  background:#000;
  color:#fff;
  font-weight:900;
  font-size:14px;
  letter-spacing:.4px;
}
.sdemo-hormozi span {
  background:#070707;
  padding:8px 4px;
}
.sdemo-hormozi .hl { color:#ffe500; transform:scale(1.12); }

.sdemo-pop {
  background:linear-gradient(135deg,#151515,#070707);
  color:white;
  font-weight:900;
  font-size:14px;
  text-shadow:0 2px 0 #000,0 0 8px rgba(0,0,0,.8);
}
.sdemo-pop .hl { color:#ffe500; transform:scale(1.18); }

.sdemo-clean,
.sdemo-minimal {
  background:#101010;
  color:#d7d7d7;
  font-weight:800;
  font-size:13px;
  text-shadow:0 2px 4px #000;
}
.sdemo-clean .hl { color:white; transform:scale(1.12); }
.sdemo-minimal { font-weight:600; font-size:12px; }

.sdemo-pastel {
  background:linear-gradient(135deg,#26002d,#110016);
  color:#f0e6ff;
  font-weight:900;
  font-size:13px;
}
.sdemo-pastel .hl { color:#ff6ec7; transform:scale(1.14); }

.sdemo-fire {
  background:linear-gradient(135deg,#160600,#030100);
  color:#bcbcbc;
  font-family:'Oswald',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:.7px;
}
.sdemo-fire .hl { color:#ff6b00; transform:scale(1.18); text-shadow:0 0 12px rgba(255,107,0,.55); }

.sdemo-ice {
  background:linear-gradient(135deg,#00111c,#02070d);
  color:#aaeeff;
  font-weight:900;
  font-size:13px;
}
.sdemo-ice .hl { color:#00ffff; transform:scale(1.14); text-shadow:0 0 14px rgba(0,255,255,.7); }

.sdemo-cinema {
  background:#050505;
  color:#4b4b4b;
  font-weight:700;
  font-size:13px;
  letter-spacing:.2px;
}
.sdemo-cinema .hl { color:#f5f5f5; transform:scale(1.22); }

.sdemo-green {
  background:#000;
  color:white;
  font-weight:900;
  font-size:14px;
}
.sdemo-green span {
  background:#070707;
  padding:8px 4px;
}
.sdemo-green .hl { color:#39ff14; transform:scale(1.12); }

.sdemo-karaoke {
  background:#101010;
  color:#666;
  font-weight:900;
  font-size:13px;
}
.sdemo-karaoke .done { color:#ffe500; }
.sdemo-karaoke .hl { color:#555; }
.sdemo-karaoke .sweep {
  background:linear-gradient(90deg,#ffe500 55%,#555 55%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.features {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:54px;
}
.features article {
  border:1px solid var(--border);
  background:rgba(14,16,24,.8);
  border-radius:20px;
  padding:22px;
}
.features h3 { margin-bottom:8px; }
.features p { color:var(--muted); font-size:14px; }

.panel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.file-chip {
  max-width:360px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  background:var(--surface2);
  border:1px solid var(--border);
  color:var(--muted);
  border-radius:999px;
  padding:7px 13px;
  font-size:13px;
}
.options-bar {
  margin-top:24px;
  display:flex;
  gap:16px;
}
.options-bar label {
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.select,
.input {
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid var(--border2);
  background:var(--surface2);
  color:var(--text);
  padding:0 14px;
  outline:none;
}
.select:focus,
.input:focus { border-color:var(--accent); }
.submit-row {
  margin-top:32px;
  text-align:center;
}
.submit-row p {
  color:var(--muted);
  font-size:13px;
  margin-top:10px;
}

.center-box {
  max-width:520px;
  margin:40px auto;
  text-align:center;
  padding:44px 24px;
  border:1px solid var(--border);
  background:rgba(14,16,24,.75);
  border-radius:28px;
}
.center-box h2 {
  font-size:28px;
  margin-bottom:10px;
}
.center-box p {
  color:var(--muted);
  margin-bottom:24px;
}
.center-box small {
  display:block;
  color:var(--dim);
  margin-top:18px;
}
.spinner {
  width:58px;
  height:58px;
  border-radius:50%;
  border:4px solid var(--border2);
  border-top-color:var(--accent2);
  margin:0 auto 20px;
  animation:spin .9s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

.progress {
  height:8px;
  background:var(--surface2);
  border-radius:999px;
  overflow:hidden;
  margin:22px 0 10px;
}
.progress div {
  width:0%;
  height:100%;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  transition:width .4s ease;
}
#progressPct {
  display:block;
  color:var(--accent2);
  font-size:30px;
  margin-bottom:6px;
}
.error-msg {
  color:var(--error) !important;
}

.footer {
  max-width:1120px;
  margin:0 auto;
  padding:32px 24px;
  border-top:1px solid var(--border);
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
}
.footer button,
.footer a { color:var(--muted); }

.modal-overlay {
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(10px);
  padding:20px;
}
.modal {
  width:100%;
  max-width:430px;
  position:relative;
  border:1px solid var(--border2);
  background:var(--surface);
  border-radius:24px;
  padding:30px;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
}
.modal-wide { max-width:900px; }
.modal-close {
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--border2);
  background:var(--surface2);
  color:var(--muted);
  font-size:22px;
}
.modal h2,
.modal-title {
  text-align:center;
  margin-bottom:20px;
}
.tabs {
  display:flex;
  gap:8px;
  background:var(--surface2);
  padding:5px;
  border-radius:999px;
  margin-bottom:20px;
}
.tab {
  flex:1;
  min-height:38px;
  border-radius:999px;
  font-weight:900;
  color:var(--muted);
}
.tab.active {
  background:var(--accent);
  color:white;
}
.tab-pane {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.form-err {
  min-height:18px;
  color:var(--error);
  text-align:center;
  font-size:13px;
}
.muted {
  color:var(--muted);
  text-align:center;
  margin-bottom:12px;
}
.code-input {
  text-align:center;
  font-size:22px;
  font-weight:900;
  letter-spacing:8px;
}
.dev-code {
  color:#fde68a;
  text-align:center;
  font-size:13px;
  min-height:18px;
}

.pricing-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.pricing-card {
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:20px;
  padding:22px;
}
.pricing-card.featured {
  border-color:var(--accent);
  box-shadow:0 0 36px rgba(124,106,247,.18);
}
.pricing-card h3 {
  margin-bottom:8px;
}
.pricing-card strong {
  display:block;
  color:var(--accent2);
  font-size:24px;
  margin-bottom:14px;
}
.pricing-card ul {
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:20px;
  color:var(--muted);
  font-size:14px;
}
.pricing-card li::before {
  content:"✓";
  color:var(--success);
  font-weight:900;
  margin-right:8px;
}

.toast-root {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:150;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.toast {
  transform:translateX(120%);
  opacity:0;
  transition:.25s ease;
  max-width:340px;
  padding:13px 16px;
  border:1px solid var(--border2);
  background:var(--surface2);
  border-radius:14px;
  font-weight:700;
  font-size:13px;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
}
.toast.show { transform:translateX(0); opacity:1; }
.toast.success { border-color:var(--success); }
.toast.error { border-color:var(--error); }
.toast.warn { border-color:var(--warn); }

@media (max-width:760px) {
  .header-inner { padding:0 14px; }
  .nav { gap:6px; }
  .usage-label { display:none; }
  #appRoot { padding:36px 16px 64px; }
  .style-grid,
  .style-grid-home { grid-template-columns:repeat(2,1fr); }
  .features { grid-template-columns:1fr; }
  .pricing-grid { grid-template-columns:1fr; }
  .modal-wide {
    align-self:flex-end;
    max-height:92vh;
    overflow:auto;
    border-radius:24px 24px 0 0;
  }
}

@media (max-width:430px) {
  .style-grid,
  .style-grid-home { grid-template-columns:1fr; }
  .hero h1 { font-size:36px; }
}

.hero-badges {
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-badges span {
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.seo-section {
  margin-top:48px;
  padding:28px;
  border:1px solid var(--border);
  border-radius:24px;
  background:rgba(14,16,24,.72);
}

.seo-section h1,
.seo-section h2 {
  margin-bottom:14px;
  font-size:24px;
  line-height:1.2;
}

.seo-section p {
  color:var(--muted);
  font-size:15px;
}

.seo-section ol {
  padding-left:22px;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.seo-section details {
  border-top:1px solid var(--border);
  padding:14px 0;
}

.seo-section details:first-of-type {
  border-top:0;
}

.seo-section summary {
  cursor:pointer;
  font-weight:800;
}

.seo-section details p {
  margin-top:8px;
}

.legal-page a {
  color:var(--accent2);
  font-weight:800;
}

@media (max-width:760px) {
  .seo-section {
    padding:22px 18px;
  }

  .hero-badges {
    justify-content:center;
  }
}
.hero-badges {
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-badges span {
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.seo-section {
  margin-top:48px;
  padding:28px;
  border:1px solid var(--border);
  border-radius:24px;
  background:rgba(14,16,24,.72);
}

.seo-section h1,
.seo-section h2 {
  margin-bottom:14px;
  font-size:24px;
  line-height:1.2;
}

.seo-section p {
  color:var(--muted);
  font-size:15px;
  margin-bottom:12px;
}

.seo-section ol {
  padding-left:22px;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.seo-section details {
  border-top:1px solid var(--border);
  padding:14px 0;
}

.seo-section details:first-of-type {
  border-top:0;
}

.seo-section summary {
  cursor:pointer;
  font-weight:800;
}

.seo-section details p {
  margin-top:8px;
}

.legal-page a,
.seo-section a {
  color:var(--accent2);
  font-weight:800;
}

.legal-table {
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  overflow:hidden;
  border-radius:16px;
}

.legal-table th,
.legal-table td {
  border:1px solid var(--border);
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
}

.legal-table th {
  width:220px;
  color:var(--text);
  background:rgba(255,255,255,.035);
}

.legal-table td {
  color:var(--muted);
}

.legal-note {
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(251,191,36,.28);
  background:rgba(251,191,36,.08);
  color:#fde68a !important;
}

@media (max-width:760px) {
  .seo-section {
    padding:22px 18px;
  }

  .hero-badges {
    justify-content:center;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display:block;
    width:100%;
  }

  .legal-table th {
    border-bottom:0;
  }
}