:root, [data-theme="dark"] {
  /* Dark is the default theme. Accent/brand hues are matched to HeyGen's public site
     (checked live 2026-09): accent #00C3FF, 12px radius. Fonts are free look-alikes for
     their paid TT Norms Pro / ABC Solar Display (General Sans / Clash Display). */
  --bg: #0B0E14;
  --bg-subtle: #10141C;
  --panel: #171C27;
  --card: #151A24;
  --border: #262C3A;
  --accent: #00C3FF;
  --accent-hover: #33D1FF;
  --accent-text: #04222A;
  --live: #FF4D5E;
  --success: #22C55E;
  --warning: #F59E0B;
  --text: #F4F6FB;
  --text-secondary: #9AA3B8;
  --radius: 12px;
  --radius-xl: 28px;
  --glow: rgba(120, 140, 190, 0.22);
  --input-bg: #10141C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --panel: #F5F7F8;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --accent: #00C3FF;
  --accent-hover: #00AEE0;
  --accent-text: #033337;
  --live: #FF4D5E;
  --success: #22C55E;
  --warning: #F59E0B;
  --text: #171717;
  --text-secondary: #6B7280;
  --radius: 12px;
  --radius-xl: 28px;
  --glow: rgba(0, 195, 255, 0.12);
  --input-bg: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Clash Display', 'General Sans', sans-serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: var(--accent); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Clash Display', sans-serif;
  color: var(--text);
}

.brand .logo-mark { display: block; flex-shrink: 0; }
a.brand:hover { color: var(--text); }

/* App shell (logged-in pages): floating icon rail + slim top bar */
.app-shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 92px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  align-self: flex-start;
  height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 6px;
  z-index: 40;
}
.rail-close { display: none; }
.rail-nav {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rail-nav::-webkit-scrollbar { display: none; }
.rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 7px 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.rail-link:hover { color: var(--text); }
.rail-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.rail-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.rail-icon svg.logo-mark { width: 30px; height: 30px; stroke: none; }
.rail-link:hover .rail-icon { background: var(--card); }
.rail-link.active { color: var(--accent); }
.rail-link.active .rail-icon {
  background: rgba(0, 195, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 195, 255, 0.4), 0 0 22px rgba(0, 195, 255, 0.18);
}
.rail-divider { width: 36px; height: 1px; background: var(--border); margin: 6px 0; flex-shrink: 0; }
.rail-bottom .rail-link { padding-top: 0; }
.rail-bottom {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}
.credit-ring { position: relative; width: 52px; height: 52px; display: block; }
.credit-ring svg.ring { width: 52px; height: 52px; transform: rotate(-90deg); display: block; }
.credit-ring .gem { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.credit-ring .gem svg, .upgrade-pill svg { stroke: #F5B83D; fill: rgba(245, 184, 61, 0.25); }
.credit-ring .gem svg { width: 20px; height: 20px; }
.rail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #FF9A3D, #FF5E62);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
}
.avatar-menu {
  display: none;
  position: absolute;
  left: calc(100% + 12px);
  bottom: 0;
  width: 250px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.avatar-menu.open { display: block; }
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; font-size: 13px; color: var(--text-secondary); overflow: hidden; }
.menu-head strong { color: var(--text); font-size: 15px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
a.menu-item:hover { background: var(--panel); color: var(--text); }
.menu-item svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }
.menu-item .theme-toggle svg { width: 16px; height: 16px; }

.app-main { flex: 1; min-width: 0; position: relative; }
.app-main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background: radial-gradient(900px 440px at 50% 0, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.app-topbar, .app-main-content { position: relative; z-index: 1; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px 0; }
.menu-btn {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.menu-btn .dot { position: absolute; top: 7px; right: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--live); border: 2px solid var(--panel); }
.upgrade-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.upgrade-pill:hover { border-color: var(--accent); color: var(--text); }
.upgrade-pill svg { width: 22px; height: 22px; }
.upgrade-pill .bal { font-family: 'JetBrains Mono', monospace; color: var(--success); font-size: 13px; padding-right: 10px; border-right: 1px solid var(--border); }
.app-main-content {
  --gutter: 28px;
  padding: 22px var(--gutter) 70px;
  max-width: 1240px;
}
.rail-backdrop { display: none; }

@media (max-width: 860px) {
  .rail {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: 12px;
    height: auto;
    margin: 0;
    transform: translateX(-140%);
    transition: transform 0.25s ease;
  }
  .rail.open { transform: none; box-shadow: 0 0 80px rgba(0, 0, 0, 0.6); }
  .rail-close {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 6px;
    flex-shrink: 0;
  }
  .rail-close svg { width: 22px; height: 22px; stroke: currentColor; }
  .rail-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 35; }
  .rail-backdrop.open { display: block; }
  .menu-btn { display: inline-flex; }
  .app-topbar { padding: 14px 16px 0; }
  .app-main-content { --gutter: 16px; padding-top: 16px; padding-bottom: 50px; }
  .upgrade-pill .bal { display: none; }
  .avatar-menu { bottom: 56px; left: 0; }
}

.credit-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.credit-pill .amount { color: var(--success); font-weight: 600; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

main {
  padding: 32px 0 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-text);
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-live {
  background: var(--live);
  color: #fff;
}
.btn-live:hover { background: #E8394A; }

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover { background: var(--panel); }

input, textarea, select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15);
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.field { margin-bottom: 16px; }

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.flash-error { background: rgba(255, 77, 94, 0.1); color: var(--live); border: 1px solid rgba(255, 77, 94, 0.3); }
.flash-success { background: rgba(34, 197, 94, 0.1); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }

.auth-shell {
  max-width: 400px;
  margin: 60px auto;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-weight: 500; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-approved, .badge-verified, .badge-completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-rejected, .badge-failed { background: rgba(255, 77, 94, 0.15); color: var(--live); }
.badge-started { background: rgba(0, 195, 255, 0.15); color: var(--accent); }

/* Marketing/landing page */
.announce-banner {
  background: var(--accent);
  color: var(--accent-text);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
}
.announce-banner a { color: var(--accent-text); text-decoration: underline; }

.grad {
  background: linear-gradient(90deg, #00C3FF, #7C5CFF 60%, #FF6AD5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6);
  animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}
.btn-lg { padding: 14px 28px; font-size: 16px; white-space: nowrap; }

/* Nav + brand lockup */
.marketing-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.brand-word {
  display: inline-flex;
  align-items: center;
  font-family: 'Clash Display', 'General Sans', sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-word b { font-weight: 700; color: var(--text); }
.brand-word i {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(90deg, #00C3FF, #7C5CFF 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .brand-word i { background-image: linear-gradient(90deg, #0098D4, #6B4CF0 70%); }
.brand-word em {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.brand-logo { display: block; height: 34px; width: auto; max-width: 200px; }
.marketing-nav .brand { flex-shrink: 0; gap: 9px; }
.marketing-nav .links { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.marketing-nav .links a { color: var(--text); font-weight: 500; font-size: 15px; }
.marketing-nav .links a:hover { color: var(--accent); }
.marketing-nav .links .only-narrow { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 10px 20px; white-space: nowrap; }
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-burger svg { width: 20px; height: 20px; stroke: currentColor; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 20px 90px;
}
.hero-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(70px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}
.hero-blob-1 { top: -180px; right: -120px; background: linear-gradient(135deg, #00C3FF, #7C5CFF 55%, #4ADE80); animation: blob-float-1 14s ease-in-out infinite; }
.hero-blob-2 { bottom: -220px; left: -160px; width: 420px; height: 420px; background: linear-gradient(135deg, #FF8AD4, #00C3FF 60%); animation: blob-float-2 16s ease-in-out infinite; }
@keyframes blob-float-1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-20px, 20px) rotate(8deg); } }
@keyframes blob-float-2 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(20px, -15px) rotate(-6deg); } }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-inner.hero-solo { grid-template-columns: 1fr; text-align: center; max-width: 820px; }
.hero-solo .hero-actions { justify-content: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 66px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero-solo p { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 13.5px; color: var(--text-secondary); }

/* Hero demo: a looping raw-to-character wipe with a live session meter */
.demo {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  aspect-ratio: 4 / 4.7;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(165deg, #151b29, #0b0f18);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 92, 255, 0.18);
}
.demo-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.demo-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.demo-layer svg { width: 80%; height: auto; display: block; }
.demo-char { clip-path: inset(0 100% 0 0); animation: demo-wipe 7s ease-in-out infinite alternate; }
.demo-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #00C3FF 20%, #7C5CFF 80%, transparent);
  box-shadow: 0 0 22px 2px rgba(0, 195, 255, 0.7);
  animation: demo-scan 7s ease-in-out infinite alternate;
}
@keyframes demo-wipe { 0%, 8% { clip-path: inset(0 100% 0 0); } 92%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes demo-scan { 0%, 8% { left: 0%; } 92%, 100% { left: 100%; } }
.demo-hud { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #fff; }
.demo-hud-top { top: 16px; }
.demo-hud-bottom { bottom: 16px; }
.demo-live, .demo-chip, .demo-time, .demo-cost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 600;
}

.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: var(--bg-subtle); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-item {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .demo-char, .demo-scan, .hero-blob, .live-dot { animation: none; }
  .demo-char { clip-path: inset(0 0 0 50%); }
  .demo-scan { left: 50%; }
}

/* Sections */
.mkt-section { max-width: 1100px; margin: 120px auto 0; padding: 0 20px; scroll-margin-top: 20px; }
.mkt-section h2 { font-size: 40px; letter-spacing: -0.03em; text-align: center; margin-bottom: 12px; }
.mkt-section .lead { color: var(--text-secondary); text-align: center; max-width: 580px; margin: 0 auto 40px; font-size: 17px; }
.mkt-section h2 + .steps, .mkt-section h2 + .feat-grid, .mkt-section h2 + .faq, .mkt-section h2 + .rate-grid, .mkt-section h2 + .text-block { margin-top: 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); }
.step-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #00C3FF, #7C5CFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 15px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); transition: transform 0.15s ease, border-color 0.15s ease; }
.feat:hover { transform: translateY(-3px); border-color: var(--accent); }
.feat-icon { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-icon svg { width: 24px; height: 24px; stroke: #fff; }
.feat-0 .feat-icon { background: linear-gradient(135deg, #00C3FF, #0B84B0); }
.feat-1 .feat-icon { background: linear-gradient(135deg, #B98CFF, #6E42D6); }
.feat-2 .feat-icon { background: linear-gradient(135deg, #FF8AD4, #C2417F); }
.feat-3 .feat-icon { background: linear-gradient(135deg, #4ADE80, #16966A); }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }

.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.rate { padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); text-align: left; }
.rate-label { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.rate-price { font-family: 'Clash Display', sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px; }
.rate-unit { color: var(--text-secondary); font-size: 13.5px; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--text-secondary); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--text-secondary); font-size: 15px; }
.text-block { max-width: 720px; margin: 0 auto; color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; }

.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 28px;
  border-radius: 36px;
  color: #fff;
  background: radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(135deg, #00A9E8, #6B4CF0 60%, #B04DE0);
}
.cta-panel h2 { color: #fff; font-size: 44px; margin-bottom: 10px; }
.cta-panel .grad { background: none; color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.cta-panel p { color: rgba(255, 255, 255, 0.9); font-size: 17px; max-width: 520px; margin: 0 auto 26px; }
.cta-btn { background: #fff; color: #1b1340; }
.cta-btn:hover { background: #f1eeff; }

.mkt-footer {
  max-width: 1200px;
  margin: 100px auto 0;
  padding: 32px 20px 44px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mkt-footer .foot-links { display: flex; gap: 22px; }

.desktop-only-notice {
  display: none;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .credit-pill { padding: 4px 10px; font-size: 12px; }
  #livecam-app > div[style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .tool-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero { padding: 60px 20px 80px; }
}

@media (max-width: 860px), (pointer: coarse) {
  #livecam-app { display: none; }
  .desktop-only-notice { display: block; }
}

/* Dashboard */
.home-title { font-size: 30px; margin: 0 0 4px; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 38px; }
.action-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 176px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)), var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Clash Display', 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.action-tile:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); box-shadow: 0 10px 30px rgba(0, 195, 255, 0.12); }
.action-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.action-tile small { display: block; font-family: 'General Sans', sans-serif; font-weight: 400; font-size: 13px; color: var(--text-secondary); margin-top: 4px; letter-spacing: 0; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; margin: 0; }
.section-head h2 svg { width: 20px; height: 20px; stroke: var(--text-secondary); }
.section-head a.link { color: var(--text-secondary); text-decoration: underline; font-size: 15px; }

.prompt-scroll {
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1) 38px;
  padding: 0 var(--gutter) 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.prompt-scroll::-webkit-scrollbar { display: none; }
.prompt-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 188px);
  grid-auto-columns: 340px;
  gap: 16px;
  width: max-content;
}
.prompt-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  scroll-snap-align: start;
  background-image: radial-gradient(120% 90% at 88% 12%, rgba(255, 255, 255, 0.26), transparent 55%), var(--pc);
}
.prompt-card h3 { margin: 0; max-width: 72%; font-size: 26px; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25); }
.prompt-card .art { position: absolute; right: -14px; bottom: -18px; width: 150px; height: 150px; opacity: 0.25; z-index: -1; }
.prompt-card .art svg { width: 100%; height: 100%; stroke: #fff; }
.glass-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease;
}
.glass-btn svg { width: 14px; height: 14px; stroke: #fff; }
.prompt-card:hover { color: #fff; }
.prompt-card:hover .glass-btn { background: rgba(255, 255, 255, 0.3); }
.pc-1 { --pc: linear-gradient(135deg, #C9663F, #8A3524); }
.pc-2 { --pc: linear-gradient(135deg, #3F7480, #1B3943); }
.pc-3 { --pc: linear-gradient(135deg, #7A8A3C, #343E1B); }
.pc-4 { --pc: linear-gradient(135deg, #7C5CFF, #35278A); }
.pc-5 { --pc: linear-gradient(135deg, #2574F0, #0B2A6B); }
.pc-6 { --pc: linear-gradient(135deg, #D8587F, #7A1D44); }
.pc-7 { --pc: linear-gradient(135deg, #1FA37A, #0B4A38); }
.pc-8 { --pc: linear-gradient(135deg, #DB9B2B, #77470B); }
.pc-9 { --pc: linear-gradient(135deg, #566174, #1E2736); }

.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.stat-chip strong { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 13px; }

@media (max-width: 900px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .action-tile { min-height: 150px; padding: 18px; font-size: 18px; }
  .prompt-grid { grid-template-rows: repeat(3, 172px); grid-auto-columns: min(78vw, 320px); }
  .prompt-card h3 { font-size: 24px; }
  .home-title { font-size: 25px; }
}

.activity-feed {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child { border-bottom: none; }
.activity-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 16px; height: 16px; stroke: var(--text-secondary); }

@media (max-width: 640px) {
  .activity-row { flex-wrap: wrap; }
  .activity-row > div:last-child { width: auto; text-align: left; }
}

/* Admin panel */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.admin-tab-group { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.admin-tab-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-right: 6px; opacity: 0.8; }
.admin-tabs a {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
}
.admin-tabs a:hover { color: var(--text); background: var(--panel); }
.admin-tabs a.active { color: var(--accent); background: rgba(0, 195, 255, 0.12); }
.count-pill {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.impersonation-bar {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--warning);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.app-announce { border-radius: 8px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card .label { color: var(--text-secondary); font-size: 13px; }
.stat-card .value { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 600; margin-top: 2px; }
.stat-card .sub { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.table-wrap { overflow-x: auto; padding: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 140px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--text-secondary); font-size: 14px; }
.badge-admin { background: rgba(124, 92, 255, 0.18); color: #A58BFF; }
.badge-user, .badge-ok { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-suspended, .badge-bad { background: rgba(255, 77, 94, 0.15); color: var(--live); }
.badge-warn { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-processing { background: rgba(0, 195, 255, 0.15); color: var(--accent); }
.badge-muted { background: var(--panel); color: var(--text-secondary); }
.admin-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; margin-bottom: 20px; }
.danger-zone { border-color: rgba(255, 77, 94, 0.4); }
.btn-danger { background: var(--live); color: #fff; }
.btn-danger:hover { background: #E8394A; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: none; }
.switch-row .hint { color: var(--text-secondary); font-size: 13px; }
.switch-row input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar-chart .bar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; opacity: 0.85; }
.bar-chart .bar:hover { opacity: 1; }
.bar-labels { display: flex; gap: 6px; color: var(--text-secondary); font-size: 11px; margin-top: 4px; }
.bar-labels span { flex: 1; text-align: center; }

/* Admin: homepage editor */
.hint-text { color: var(--text-secondary); font-size: 12.5px; margin-top: 6px; }
.brand-preview {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
}
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text); font-weight: 400; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.sec-card { margin-bottom: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sec-id { color: var(--text-secondary); font-size: 12px; }
.item-box { border: 1px solid var(--border); background: var(--bg-subtle); border-radius: 14px; padding: 14px; margin-bottom: 12px; }

/* Alerts and Operator Messages */
.alert-banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert-critical { background: rgba(255, 77, 94, 0.12); border: 1px solid rgba(255, 77, 94, 0.5); color: var(--live); }
.alert-warning { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.5); color: var(--warning); }
.op-msg {
  position: relative;
  margin-bottom: 22px;
  padding: 34px 36px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(0, 195, 255, 0.10), rgba(124, 92, 255, 0.08)), var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.op-msg-urgent { background: linear-gradient(160deg, rgba(255, 77, 94, 0.18), rgba(255, 77, 94, 0.05)), var(--card); border-color: rgba(255, 77, 94, 0.55); }
.op-msg-success { background: linear-gradient(160deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.05)), var(--card); border-color: rgba(34, 197, 94, 0.5); }
.op-msg-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; }
.op-msg-headline { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.op-msg-body { font-size: 17px; line-height: 1.6; max-width: 820px; margin-bottom: 16px; }
.op-msg-timer { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.op-msg-btn { padding: 13px 28px; font-size: 16px; }
.op-msg-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 720px) { .op-msg { padding: 24px 20px 18px; } .op-msg-headline { font-size: 26px; } .op-msg-body { font-size: 15.5px; } }

/* Credit packages (buy page, restock page) */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
}
.pkg-popular { border-color: var(--accent); box-shadow: 0 10px 40px rgba(0, 195, 255, 0.12); }
.pkg-flag { position: absolute; top: -11px; left: 22px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.pkg-card h3 { margin: 0 0 4px; font-size: 18px; }
.pkg-credits { font-size: 34px; font-weight: 600; line-height: 1.1; }
.pkg-bonus { font-size: 14px; color: var(--success); font-weight: 500; }
.pkg-price { font-family: 'Clash Display', sans-serif; font-size: 22px; font-weight: 600; }
.pkg-off { font-size: 12px; font-weight: 700; color: var(--success); font-family: 'General Sans', sans-serif; }
.pkg-sub { color: var(--text-secondary); font-size: 13px; }
.pkg-features { margin: 8px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 14px; }
.pkg-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
.brand-initial { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #00C3FF, #7C5CFF); color: #fff; font-weight: 700; font-family: 'Clash Display', sans-serif; margin-right: 9px; }

/* Admin pages on phones: compact nav strip and two stat cards per row */
@media (max-width: 720px) {
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px 16px; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab-group { flex-wrap: nowrap; white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .value { font-size: 21px; }
}

/* Short windows: tighten the rail so every item fits without scrolling */
@media (max-height: 820px) and (min-width: 861px) {
  .rail { padding: 10px 6px; }
  .rail-link { padding: 3px 0; gap: 3px; font-size: 11px; }
  .rail-icon { width: 38px; height: 38px; border-radius: 12px; }
  .rail-icon svg { width: 19px; height: 19px; }
  .rail-icon svg.logo-mark { width: 26px; height: 26px; }
  .rail-divider { margin: 3px 0; }
  .credit-ring, .credit-ring svg.ring { width: 42px; height: 42px; }
  .rail-avatar { width: 38px; height: 38px; font-size: 16px; }
  .rail-bottom { gap: 8px; padding-top: 8px; }
}

/* LiveCam: stage controls, setup mode */
.lc-local { position: absolute; bottom: 12px; right: 12px; width: 160px; border-radius: 8px; border: 2px solid var(--border); object-fit: cover; background: #000; transition: width 0.2s ease; }
.lc-local:not([srcObject]) { }
.lc-local-large { width: 34%; }
.lc-pill { background: rgba(0, 0, 0, 0.62); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lc-pill-btn { cursor: pointer; font-family: inherit; }
.lc-pill-btn:hover { background: rgba(0, 0, 0, 0.8); }
.lc-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lc-stage-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #9aa3b8; font-size: 15px; pointer-events: none; }
.lc-setup { padding: 0; }
.lc-setup summary { cursor: pointer; padding: 18px 22px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.lc-setup summary::-webkit-details-marker { display: none; }
.lc-setup summary::before { content: '▸'; color: var(--accent); font-size: 14px; }
.lc-setup[open] summary::before { content: '▾'; }
.lc-setup-title { font-family: 'Clash Display', sans-serif; font-size: 18px; font-weight: 600; }
.lc-setup-sub { color: var(--text-secondary); font-size: 13px; }
.lc-setup-body { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.lc-setup-body h4 { margin: 20px 0 10px; font-size: 15px; }
.lc-setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.lc-checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lc-check { padding: 8px 12px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border); }
.lc-check span { color: var(--text-secondary); }
.lc-check-ok strong { color: var(--success); }
.lc-check-warn strong { color: var(--warning); }
.lc-check-fail strong { color: var(--live); }
.lc-check-run strong { color: var(--text-secondary); }
.lc-steps { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.lc-steps strong, .lc-steps .mono { color: var(--text); }
.lc-diag { margin: 0; max-height: 180px; overflow: auto; padding: 12px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-secondary); white-space: pre-wrap; }

.lc-stats { position: absolute; bottom: 12px; left: 12px; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.lc-stats.lc-stats-good { border-color: rgba(34, 197, 94, 0.6); }
.lc-stats.lc-stats-ok { border-color: rgba(245, 158, 11, 0.7); }
.lc-stats.lc-stats-bad { border-color: rgba(239, 68, 68, 0.8); }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lc-chip { border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text-secondary); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.lc-chip:hover { color: var(--text); border-color: var(--accent); }

/* Landing page — phones and small tablets (kept last so it overrides the rules above) */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 48px; }
  .demo { max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .announce-banner { font-size: 13px; padding: 8px 14px; line-height: 1.35; }
  .container { padding: 0 16px; }

  .marketing-nav { gap: 10px; padding: 12px 0; }
  .brand-word { font-size: 19px; }
  .brand-word em { margin-left: 5px; padding: 1px 5px; }
  .marketing-nav .brand .logo-mark { width: 30px; height: 30px; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .nav-cta { padding: 9px 14px; font-size: 13.5px; }
  .nav-burger { display: inline-flex; }
  .marketing-nav .links {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    z-index: 20;
  }
  .marketing-nav .links.open { display: flex; }
  .marketing-nav .links a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .marketing-nav .links a:hover { background: var(--panel); }

  .hero { padding: 36px 20px 64px; }
  .hero h1 { font-size: 40px; line-height: 1.06; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .hero-badge { font-size: 12px; margin-bottom: 18px; }
  .hero-blob { width: 320px; height: 320px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { text-align: left; }

  .mkt-section { margin-top: 76px; padding: 0 16px; }
  .mkt-section h2 { font-size: 29px; }
  .mkt-section .lead { margin-bottom: 26px; font-size: 15px; }
  .step { padding: 22px; border-radius: 22px; }
  .feat-grid { grid-template-columns: 1fr; gap: 12px; }
  .feat { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; border-radius: 22px; }
  .feat-icon { grid-row: span 2; margin-bottom: 0; }
  .rate-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rate { padding: 18px; border-radius: 20px; }
  .rate-price { font-size: 28px; }
  .cta-panel { padding: 44px 20px; border-radius: 28px; }
  .cta-panel h2 { font-size: 30px; }
  .cta-btn, .mkt-section .btn-lg { width: 100%; }

  .mkt-footer { margin-top: 60px; flex-direction: column; text-align: center; padding: 28px 16px 36px; }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
  .marketing-nav .links .only-narrow { display: block; color: var(--accent); font-weight: 600; }
  .rate-grid { grid-template-columns: 1fr; }
}

/* Image Editing: template library */
.ie-tpl { margin-bottom: 20px; }
.ie-tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ie-tpl-sub { color: var(--text-secondary); font-size: 13.5px; }
.ie-tpl-head input[type="search"] { min-width: 260px; max-width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font: inherit; }
.ie-tpl-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ie-chip, .ie-idea { border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text-secondary); border-radius: 999px; padding: 6px 13px; font: 500 13px 'General Sans', sans-serif; cursor: pointer; }
.ie-chip:hover, .ie-idea:hover { color: var(--text); border-color: var(--accent); }
.ie-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.ie-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ie-tpl-item { position: relative; padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: var(--bg-subtle); cursor: pointer; aspect-ratio: 4 / 3; text-align: left; }
.ie-tpl-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ie-tpl-item:hover img { transform: scale(1.05); }
.ie-tpl-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 12.5px; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(8, 10, 24, .75)); }
.ie-tpl-item.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 195, 255, .25); }
.ie-tpl-item.loading { opacity: .55; pointer-events: none; }
.ie-tpl-empty, .ie-tpl-foot { color: var(--text-secondary); font-size: 13.5px; margin-top: 14px; }
.ie-ideas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ie-idea { text-align: left; font-size: 12.5px; }
@media (max-width: 700px) { .ie-tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .ie-tpl-head input[type="search"] { min-width: 0; width: 100%; } }

/* "Confirm your email" banner */
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); color: var(--text); font-size: 14px; }
.verify-banner form { margin: 0; }

/* Consent pop-up and "Report this result" */
.consent-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(5, 8, 16, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.consent-box { width: 100%; max-width: 480px; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.consent-box h3 { margin: 0 0 10px; font-size: 20px; }
.consent-box p { margin: 0 0 16px; color: var(--text-secondary); line-height: 1.6; font-size: 14.5px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.report-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--text-secondary); text-decoration: underline; }

/* LiveCam: setup checklist */
.lc-ready { margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--border); background: var(--bg-subtle); }
.lc-ready-steps { margin-top: 6px; font-size: 13.5px; color: var(--text-secondary); white-space: pre-wrap; }
.lc-ready.lc-ready-done { border-style: solid; border-color: var(--success); }
.lc-ready.lc-ready-done strong::after { content: ' — yes! Press Go Live.'; color: var(--success); font-weight: 600; }

/* AI tools: cost line, result actions, voice recorder */
.cost-line { margin-top: 10px; font-size: 13px; color: var(--text-secondary); text-align: center; min-height: 18px; }
.cost-line.cost-low { color: var(--warning); }
.cost-line a { margin-left: 4px; font-weight: 600; text-decoration: underline; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.vc-rec { margin-top: 12px; }
.table-wrap table { width: 100%; }

/* LiveCam: recent reference pictures */
.lc-recent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.lc-recent .lc-item { position: relative; }
.lc-recent .lc-pick { width: 100%; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-subtle); cursor: pointer; aspect-ratio: 1; display: block; }
.lc-recent .lc-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-recent .lc-pick:hover { border-color: var(--accent); }
.lc-recent .lc-pick.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 195, 255, .25); }
.lc-recent .lc-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; }
.lc-recent .lc-item:hover .lc-del, .lc-recent .lc-del:focus { opacity: 1; }
.lc-recent .lc-del:hover { background: #d62f4b; }
@media (hover: none) { .lc-recent .lc-del { opacity: .9; } }
.lc-link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 12.5px; }
.lc-link-btn:hover { text-decoration: underline; }

/* LiveCam: Windows app promo (hidden on phones) */
@media (max-width: 900px) { .desktop-promo { display: none !important; } }
