/* Zombie AI Video SaaS — High-Performance Dark Theme */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
.history-card { border-bottom: 1px solid var(--z-border); padding: 18px 0; overflow-wrap: anywhere; }
.history-card video { display: block; width: min(100%, 280px); max-height: 450px; margin-bottom: 12px; }
.history-card button { margin: 10px; }
#reset-password input { display: block; width: 100%; padding: 12px; margin: 10px 0; }
#auth .checkbox-label { display: flex; align-items: start; gap: 10px; }
#auth .checkbox-label input { width: auto; margin: 4px 0; }
.saas-dialog { max-height: 90vh; overflow-y: auto; }
@media (max-width: 600px) {
 .header-container { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
 .header-account { width: 100%; justify-content: flex-end; gap: 10px; }
 .brand-text small { max-width: 220px; font-size: 9px; }
 .hero-content h1 { font-size: 30px; overflow-wrap: anywhere; }
 .lang-switcher { max-width: 130px; }
 .header-account .nav-cta { font-size: 12px; padding: 9px 12px; }
 .studio-section, .dashboard-section { padding-left: 16px; padding-right: 16px; }
 .world-radios { grid-template-columns: 1fr; }
}
:root {
  --z-bg: #0b0e14;
  --z-panel: #131924;
  --z-card: #18202e;
  --z-border: #232d3f;
  --z-border-focus: #ff7849;
  --z-text: #f1f5f9;
  --z-muted: #94a3b8;
  --z-accent: #ff7849;
  --z-accent-glow: rgba(255, 120, 73, 0.25);
  --z-crimson: #ef4444;
  --z-gold: #f59e0b;
}

body.zombie-saas-theme {
  background-color: var(--z-bg);
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(239, 68, 68, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 15%, rgba(255, 120, 73, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(19, 25, 36, 0.5) 0%, transparent 100%);
  color: var(--z-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* Header */
.saas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--z-border);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--z-text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--z-crimson), var(--z-accent));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.brand-text small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--z-muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 0;
}

.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--z-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--z-text);
}

.header-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-select-wrap {
  position: relative;
}

.lang-switcher {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}

.lang-switcher:hover {
  border-color: var(--z-muted);
}

.credit-chip {
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 120, 73, 0.12);
  border: 1px solid rgba(255, 120, 73, 0.4);
  color: var(--z-accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credit-chip:hover {
  background: rgba(255, 120, 73, 0.2);
  border-color: var(--z-accent);
  box-shadow: 0 0 15px var(--z-accent-glow);
}

.signin-button {
  background: transparent;
  border: none;
  color: var(--z-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
}

.signin-button:hover {
  color: var(--z-text);
}

.user-menu {
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
}

.user-menu summary {
  border: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--z-accent);
  color: #0b0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-popover {
  position: absolute;
  right: 0;
  top: 42px;
  width: 220px;
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.user-popover::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.popover-email {
  font-size: 11px;
  color: var(--z-muted);
  padding: 6px 8px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--z-border);
  overflow-wrap: anywhere;
}

.user-popover a,
.user-popover button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--z-text);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.user-popover a:hover,
.user-popover button:hover {
  background: var(--z-card);
  color: var(--z-accent);
}

.nav-cta {
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--z-accent), #f95721);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--z-accent-glow);
  transition: transform 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.icon-button {
  display: none;
  background: none;
  border: none;
  color: var(--z-text);
  font-size: 22px;
  cursor: pointer;
}

/* Hero Section */
.hero-video-saas {
  max-width: 1360px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 120, 73, 0.1);
  border: 1px solid rgba(255, 120, 73, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--z-accent);
  margin-bottom: 20px;
}

.pulsing-dot {
  width: 6px;
  height: 6px;
  background: var(--z-crimson);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--z-crimson);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.8px;
  margin: 0 0 24px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--z-muted);
  margin: 0 0 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-cta {
  background: linear-gradient(135deg, var(--z-accent), #f95721);
  color: #fff;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px var(--z-accent-glow);
}

.hero-outline {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  padding: 14px 24px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.hero-outline:hover {
  border-color: var(--z-muted);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--z-border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--z-muted);
}

.metric-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--z-text);
  margin-top: 4px;
}

/* Hero Player Mockup */
.video-mockup {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  max-width: 440px;
  margin: 0 auto;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--z-muted);
  letter-spacing: 0.8px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  background: var(--z-crimson);
  border-radius: 50%;
}

.badge-tag {
  background: rgba(255, 120, 73, 0.15);
  color: var(--z-accent);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 9px;
}

.video-mockup video {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 16px;
  display: block;
  background: #000;
}

.mockup-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockup-footer p {
  margin: 0;
  font-size: 11px;
  color: var(--z-muted);
}

.mini-cta {
  background: var(--z-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Common Section */
.content-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 70px 24px;
  border-top: 1px solid var(--z-border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--z-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
}

.section-header h2 em {
  font-style: normal;
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
}

.section-lead {
  font-size: 16px;
  color: var(--z-muted);
  line-height: 1.6;
  margin: 0;
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.showcase-card {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 120, 73, 0.4);
}

.media-container {
  position: relative;
  background: #000;
  width: 100%;
}

.media-container video {
  width: 100%;
  aspect-ratio: 9/16;
  display: block;
}

.card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--z-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
}

.placeholder-badge {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--z-gold);
}

.concept-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 380px;
}

.split-frame {
  position: relative;
  height: 100%;
}

.split-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.card-details {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--z-accent);
  margin: 0 0 8px;
}

.card-details h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--z-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--z-muted);
  border-top: 1px solid var(--z-border);
  padding-top: 12px;
  margin-top: auto;
}

.prompt-details {
  margin-top: 12px;
  font-size: 12px;
  color: var(--z-muted);
}

.prompt-details summary {
  cursor: pointer;
  color: var(--z-accent);
  font-weight: 600;
}

.prompt-details pre {
  margin-top: 8px;
  background: var(--z-card);
  padding: 10px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
}

.card-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  transition: all 0.15s ease;
}

.card-cta:hover {
  background: var(--z-accent);
  color: #fff;
  border-color: var(--z-accent);
}

/* Beats Section */
.beats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.beat-card {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}

.beat-time {
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--z-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.beat-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--z-muted);
  margin-bottom: 6px;
  font-family: ui-monospace, Consolas, monospace;
}

.beat-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.3;
}

.beat-desc {
  font-size: 13px;
  color: var(--z-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

.beat-hint {
  font-size: 11px;
  color: var(--z-muted);
  background: var(--z-card);
  padding: 8px;
  border-radius: 8px;
  margin-top: auto;
  border-left: 2px solid var(--z-accent);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 16px;
  padding: 28px 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d6d;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 13px;
  color: var(--z-muted);
  line-height: 1.6;
  margin: 0;
}

/* Pricing Grid */
.pricing-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plan-card {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 20px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.popular-plan {
  border-color: var(--z-accent);
  background: linear-gradient(180deg, rgba(255, 120, 73, 0.08) 0%, var(--z-panel) 100%);
  box-shadow: 0 10px 35px var(--z-accent-glow);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--z-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
}

.plan-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
}

.plan-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 8px;
}

.plan-desc {
  font-size: 13px;
  color: var(--z-muted);
  margin: 0 0 24px;
}

.plan-card button {
  margin-top: auto;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  transition: all 0.15s ease;
}

.popular-plan button {
  background: var(--z-accent);
  color: #fff;
  border-color: var(--z-accent);
}

.plan-card button:hover {
  background: #f95721;
  color: #fff;
  border-color: #f95721;
}

.pricing-guarantee {
  text-align: center;
  font-size: 13px;
  color: var(--z-muted);
  margin-top: 28px;
}

/* FAQ */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  display: inline;
}

.faq-answer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--z-muted);
  line-height: 1.65;
}

/* Studio Section */
.studio-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--z-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--z-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--z-text);
}

.studio-header {
  margin-bottom: 32px;
}

.studio-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 8px 0;
}

.studio-lead {
  font-size: 16px;
  color: var(--z-muted);
  margin: 0 0 20px;
}

.studio-wallet-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  width: max-content;
}

.mini-button {
  background: var(--z-card);
  border: 1px solid var(--z-border);
  color: var(--z-accent);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.creator-form {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--z-border);
  border-radius: 18px;
  padding: 32px 18px;
  cursor: pointer;
  background: var(--z-card);
  transition: all 0.2s ease;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.dropzone:hover {
  border-color: var(--z-accent);
  background: rgba(255, 120, 73, 0.04);
}

.slot-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(255, 120, 73, 0.15);
  color: var(--z-accent);
  padding: 3px 8px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.dropzone strong {
  font-size: 16px;
  margin-bottom: 6px;
}

.portrait-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.dropzone input[type="file"] {
  display: none;
}

.remove-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--z-crimson);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.world-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.world-fieldset legend {
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.world-radios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.world-card {
  display: block;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.world-card input {
  display: none;
}

.world-card:has(input:checked) {
  border-color: var(--z-accent);
  background: rgba(255, 120, 73, 0.08);
}

.world-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.world-card small {
  display: block;
  font-size: 11px;
  color: var(--z-muted);
}

.memory-input-group {
  margin-bottom: 24px;
}

.memory-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.memory-input-group input {
  width: 100%;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--z-text);
  font-size: 14px;
  box-sizing: border-box;
}

.consent-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--z-muted);
  cursor: pointer;
}

.action-bar {
  text-align: center;
}

.generate-button {
  background: linear-gradient(135deg, var(--z-accent), #f95721);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--z-accent-glow);
  transition: transform 0.15s ease;
}

.generate-button:hover {
  transform: translateY(-2px);
}

.generate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.specs-note {
  font-size: 12px;
  color: var(--z-muted);
  margin-top: 12px;
}

.creator-message {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--z-card);
  font-size: 13px;
  text-align: center;
}

/* Result Panel */
.result-panel {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  margin-bottom: 50px;
}

.result-panel video {
  max-width: 360px;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 16px;
  margin: 18px auto;
  display: block;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.result-actions .button {
  padding: 12px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

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

.text-button {
  background: none;
  border: none;
  color: var(--z-muted);
  text-decoration: underline;
}

.caption-box {
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.caption-box textarea {
  width: 100%;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
  box-sizing: border-box;
}

/* Dashboard */
.dashboard-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 30px;
}

.dashboard-sidebar {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 18px;
  padding: 24px;
  height: fit-content;
}

.user-profile {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--z-border);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--z-accent);
  color: #0b0e14;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.balance-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--z-border);
  text-align: center;
}

.balance-figure {
  font-size: 22px;
  margin: 6px 0 12px;
}

.dash-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-nav a,
.dash-nav button {
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--z-text);
  text-decoration: none;
  cursor: pointer;
}

.dash-nav a:hover,
.dash-nav button:hover {
  background: var(--z-card);
  color: var(--z-accent);
}

.signout-link {
  color: var(--z-crimson) !important;
}

.dashboard-main {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 18px;
  padding: 30px;
}

.history-list {
  margin-top: 20px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.history-card {
  background: var(--z-card);
  border: 1px solid var(--z-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.history-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
}

.history-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-meta {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-meta h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.history-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.mini-button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--z-card);
  border: 1px dashed var(--z-border);
  border-radius: 14px;
}

.empty-state p {
  margin-bottom: 16px;
}

.orders-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.orders-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--z-border);
  color: var(--z-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--z-border);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.paid {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Guides & Articles */
.content-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content-article h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 12px 0 20px;
}

.article-lead {
  font-size: 18px;
  color: var(--z-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.guide-section {
  margin-bottom: 34px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-section p {
  font-size: 15px;
  color: var(--z-muted);
  line-height: 1.7;
}

.article-cta-box {
  background: var(--z-card);
  border: 1px solid var(--z-border);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  margin-top: 50px;
}

.article-cta-box .cta-btn {
  background: var(--z-accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 700;
  margin-top: 16px;
}

/* Footer */
.saas-footer {
  max-width: none;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--z-border);
  background: transparent;
  padding: 50px 24px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 13px;
  color: var(--z-muted);
  max-width: 380px;
  margin: 10px 0;
}

.copyright {
  font-size: 11px !important;
  color: #64748b !important;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: var(--z-muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--z-text);
}

/* Dialogs */
.saas-dialog {
  background: var(--z-panel);
  border: 1px solid var(--z-border);
  border-radius: 24px;
  color: var(--z-text);
  padding: 34px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  margin: auto;
}

.pricing-dialog {
  max-width: 1080px;
}

.saas-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--z-muted);
  font-size: 26px;
  cursor: pointer;
}

.modal-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--z-accent);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--z-muted);
  margin: 4px 0 20px;
}

.google-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--z-muted);
  font-size: 11px;
  margin-bottom: 18px;
}

.auth-divider:before,
.auth-divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--z-border);
}

#auth label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

#auth input {
  display: block;
  width: 100%;
  background: var(--z-card);
  border: 1px solid var(--z-border);
  color: var(--z-text);
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 5px;
  box-sizing: border-box;
}

#auth-submit {
  width: 100%;
  background: var(--z-accent);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.auth-switch {
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
  color: var(--z-muted);
}

.site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--z-card);
  border: 1px solid var(--z-border);
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--z-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

/* Responsiveness */
@media (max-width: 1450px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--z-panel); padding: 20px; border-bottom: 1px solid var(--z-border); }
  .icon-button { display: block; flex-shrink: 0; }
}

@media (max-width: 1000px) {
  .header-container { flex-wrap: wrap; }
  .header-account { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 600px) {
  .header-container { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .header-account { width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .header-account .lang-switcher { width: 84px; font-size: 12px; padding: 6px; }
  .header-account .credit-chip { padding: 6px 7px; gap: 3px; font-size: 11px; }
  .header-account .user-name { display: none; }
  .header-account .user-avatar { width: 28px; height: 28px; }
  .header-account .user-menu summary { gap: 5px; }
  .header-account .nav-cta { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .beats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card-grid { grid-template-columns: repeat(2, 1fr); }
  .world-radios { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--z-panel); padding: 20px; border-bottom: 1px solid var(--z-border); }
  .icon-button { display: block; }
  .hero-content h1 { font-size: 38px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .beats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-card-grid { grid-template-columns: 1fr; }
  .photo-upload-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Visual depth: preserve the existing layout and component dimensions. */
body.zombie-saas-theme {
  background-image:
    radial-gradient(ellipse 75% 650px at 12% 280px, rgba(116, 35, 40, .18), transparent 75%),
    radial-gradient(ellipse 60% 750px at 88% 480px, rgba(29, 61, 73, .22), transparent 75%);
}

.saas-header {
  background: rgba(10, 13, 19, .94);
  border-bottom-color: rgba(255, 198, 157, .12);
  box-shadow: 0 5px 30px rgba(0, 0, 0, .18);
}

.hero-video-saas {
  position: relative;
  isolation: isolate;
}

.hero-video-saas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 65%, rgba(187, 63, 37, .10), transparent 50%),
    radial-gradient(ellipse at 83% 36%, rgba(80, 120, 134, .12), transparent 45%);
}

.hero-content h1 {
  color: #fff8ee;
  background: linear-gradient(155deg, #ffffff 25%, #fff2df 62%, #ffb78e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(255, 153, 90, .06);
}

.hero-lead { color: #adb8c7; }

.eyebrow-pill {
  background: linear-gradient(110deg, rgba(160, 47, 35, .22), rgba(255, 120, 73, .08));
  border-color: rgba(255, 155, 100, .38);
  color: #ffa97e;
  box-shadow: inset 0 1px 0 rgba(255, 219, 184, .08);
}

.hero-cta, .nav-cta, .mini-cta {
  background: linear-gradient(135deg, #ff925b, #ff672f 65%, #ec4c26);
  border-color: #ffbb8c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 28px rgba(242, 85, 37, .25);
}

.hero-outline {
  background: linear-gradient(145deg, #1d2633, #111923);
  border-color: #354459;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.video-mockup {
  background: linear-gradient(145deg, #222a36, #131a24 45%, #111820);
  border-color: #3c4858;
  box-shadow: inset 0 1px 0 rgba(255, 231, 204, .1), 0 30px 75px rgba(0, 0, 0, .55), 0 0 70px rgba(76, 115, 133, .10);
}

.mockup-title { color: #b6c5d6; }
.mockup-dot { box-shadow: 0 0 12px rgba(239, 68, 68, .55); }
.hero-metrics { border-top-color: rgba(255, 185, 135, .22); }
.metric-label { color: #c5a68f; }

.section-header .eyebrow { color: #f59b72; }
.section-header h2 em { color: #ffb789; }

.showcase-card, .feature-card, .beat-card, .plan-card {
  background: linear-gradient(145deg, #1a2330, #111923 75%);
  border-color: #303e50;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 15px 35px rgba(0, 0, 0, .18);
}

.popular-plan {
  background: linear-gradient(150deg, #38241e, #19202b 65%);
  border-color: #ff9566;
  box-shadow: inset 0 1px 0 rgba(255, 214, 170, .10), 0 14px 40px rgba(237, 91, 42, .15);
}

@media (forced-colors: active) {
  .hero-content h1 { background: none; -webkit-text-fill-color: CanvasText; }
}

/* Compact authentication dialog; scoped to avoid changes to the main page. */
.auth-dialog { padding: 30px; border-radius: 20px; }
.auth-dialog h2 { margin: 0 40px 8px 0; font-size: 25px; line-height: 1.25; }
.auth-dialog .modal-subtitle { margin: 0 0 22px; line-height: 1.6; }
.auth-dialog .dialog-close { top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border-radius: 10px; line-height: 1; }
.auth-dialog .dialog-close:hover { background: var(--z-card); color: var(--z-text); }
.auth-dialog #auth-terms-field { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 16px; color: var(--z-muted); font-size: 12px; line-height: 1.6; }
.auth-dialog #auth-terms { flex-shrink: 0; margin: 3px 0 0; accent-color: var(--z-accent); }
.auth-dialog #auth-submit { margin-top: 4px; }
.auth-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.auth-dialog .auth-switch { margin: 0; }
.auth-dialog .text-button { padding: 4px 0; }
.auth-dialog .auth-policy { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; color: var(--z-muted); font-size: 11px; }
.auth-dialog .auth-policy a { color: var(--z-muted); text-decoration: none; }
.auth-dialog .auth-policy a:hover { color: var(--z-text); text-decoration: underline; }
@media (max-width: 600px) { .auth-dialog { padding: 24px; } .auth-footer { justify-content: center; } }

.google-button .google-logo { display: block; flex: 0 0 20px; }

/* Generator: creation first, reference content below the workspace. */
#creator .studio-wallet-bar { margin: 18px auto 0; padding: 0; border: 0; background: transparent; width: auto; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--z-muted); }
.generator-guide .section-lead { max-width: 850px; }
.generator-guide > h2 { font-size: 26px; margin: 36px 0 20px; }
.generator-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.generator-guide-grid > li, .generator-guide-grid > article { background: var(--z-panel); border: 1px solid var(--z-border); border-radius: 18px; padding: 24px; }
.generator-step-number { color: var(--z-accent); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.generator-guide-grid h3 { font-size: 18px; margin: 10px 0 12px; }
.generator-guide-grid p { margin: 0; color: var(--z-muted); font-size: 14px; line-height: 1.75; }
.generator-resources { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; font-size: 14px; }
.generator-resources a { color: var(--z-accent); text-decoration: none; }
.generator-resources a:hover { text-decoration: underline; }
@media (max-width: 850px) { .generator-guide-grid { grid-template-columns: 1fr; } }

/* Footer navigation grouped by task. */
.saas-footer { display: block; }
.footer-container { display: grid; grid-template-columns: minmax(220px,1fr) minmax(0,2fr); gap: 64px; }
.footer-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 32px; }
.footer-link-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.footer-link-group h2 { margin: 0 0 4px; color: var(--z-text); font-size: 13px; font-weight: 700; }
.footer-link-group a { line-height: 1.6; overflow-wrap: anywhere; }
.footer-bottom { max-width: 1360px; margin: 36px auto 0; padding-top: 12px; border-top: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; color: var(--z-muted); font-size: 12px; }
.footer-bottom p { margin: 0; overflow-wrap: anywhere; }
.footer-bottom a { color: var(--z-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--z-text); text-decoration: underline; }
@media (max-width: 1000px) { .footer-container { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; } .footer-bottom { flex-direction: column; line-height: 1.7; } }

