/* CSS Variables */
:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f0eb;

  --grad-1: #e8774a;
  --grad-2: #e0634a;
  --grad-3: #d44f6e;
  --grad-4: #c94070;
  --grad-5: #b83072;
  --grad-6: #9b2080;

  --primary: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  --primary-solid: #d44f6e;

  --text: #1a1a1a;
  --text-secondary: #6b6055;
  --text-muted: #a89e96;

  --border: #e8e0d8;
  --border-hover: #c8bfb5;

  --success: #4a9e6e;
  --error: #c94040;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Jost', sans-serif;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hidden class - ensure it works */
[hidden] {
  display: none !important;
}

/* Opacity hidden - visually hidden, no layout impact */
.opacity-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-solid);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

.app {
  min-height: 100vh;
}

/* ===== MODULES ===== */
.module {
  position: relative;
  padding: 24px;
  padding-top: 60px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Module 1: Hero */
.module-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
  background: #faf7f4;
  overflow: hidden;
}

.module-hero::before,
.module-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.module-hero::before {
  width: 220px;
  height: 220px;
  top: 10%;
  left: -80px;
  background: radial-gradient(circle, rgba(232, 119, 74, 0.14) 0%, rgba(232, 119, 74, 0) 70%);
}

.module-hero::after {
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: 12%;
  background: radial-gradient(circle, rgba(212, 79, 110, 0.12) 0%, rgba(212, 79, 110, 0) 72%);
}

.hero-check-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  color: #5a5a5a;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 100%;
  max-width: 300px;
  padding: 17px 40px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.hero-check-status:hover {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
}

/* Module 2 & 3: Overlay style */
.module-styles,
.module-upload {
  background: #faf7f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.module-styles::before,
.module-styles::after,
.module-upload::before,
.module-upload::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.module-styles::before,
.module-upload::before {
  width: 220px;
  height: 220px;
  top: 10%;
  left: -92px;
  background: radial-gradient(circle, rgba(232, 119, 74, 0.12) 0%, rgba(232, 119, 74, 0) 72%);
  animation: bgFloat1 4s ease-in-out infinite;
}

.module-styles::after,
.module-upload::after {
  width: 260px;
  height: 260px;
  right: -124px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(212, 79, 110, 0.1) 0%, rgba(212, 79, 110, 0) 72%);
  animation: bgFloat2 5s ease-in-out infinite;
}

.module-styles > *,
.module-upload > * {
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.module .back-btn {
  position: absolute;
  top: 20px;
  left: 24px;
}

.module .section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.module-styles .section-title,
.module-upload .section-title {
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 22px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Back Button */
.back-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 360px;
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b0a090;
  margin-bottom: 24px;
  font-family: var(--font-body);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(224, 216, 208, 0.9);
  backdrop-filter: blur(8px);
}

.hero-dot { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.05;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-title-line {
  display: block;
}

.hero-title-italic {
  font-style: italic;
  font-weight: 700;
  color: #c96a3a;
}

.gradient-text { color: #1a1a1a; }

.hero-desc {
  font-size: 0.95rem;
  color: #8a7e74;
  line-height: 1.7;
  margin-bottom: 36px;
  font-family: var(--font-body);
  font-weight: 400;
}

/* CTA Button — Glossier pill */
.btn-create {
  display: inline-block;
  padding: 17px 40px;
  background: linear-gradient(135deg, #e8774a, #d44f6e);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 6px 24px rgba(212, 79, 110, 0.25);
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212, 79, 110, 0.35);
}

.btn-create:active {
  transform: translateY(0);
}

.btn-create svg { display: none; }

.hero-footnote {
  margin-top: 14px;
  font-size: 0.72rem;
  color: #b0a090;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  font-weight: 400;
}

/* hide legacy elements */
.hero-stats, .hero-tagline, .hero-orb, .hero-bg { display: none; }
.stat-num, .stat-label, .stat-divider { display: none; }

/* ===== MODULE 2: STYLES ===== */
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-top: 2px;
}

.style-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: #1a1a2e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.style-card.selected {
  border-color: var(--primary-solid);
  box-shadow: 0 14px 30px rgba(212, 79, 110, 0.16);
}

.style-media {
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.style-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.style-visual::before,
.style-visual-1::before,
.style-visual-2::before,
.style-visual-3::before,
.style-visual-4::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}

.style-visual-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.style-visual-1::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
}

.style-visual-2 { background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%); }
.style-visual-2::before {
  background: radial-gradient(circle at 60% 20%, rgba(255, 0, 128, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 150, 255, 0.2) 0%, transparent 50%);
}

.style-visual-3 { background: linear-gradient(135deg, #4a1942 0%, #1a1a2e 100%); }
.style-visual-3::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 165, 0, 0.3) 0%, transparent 60%);
}

.style-visual-4 { background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%); }
.style-visual-4::before {
  background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(255, 105, 180, 0.2) 0%, transparent 50%);
}

.style-poster {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.03) 24%, rgba(0,0,0,0.16) 100%),
    linear-gradient(180deg, rgba(13, 11, 23, 0) 0%, rgba(13, 11, 23, 0.15) 58%, rgba(13, 11, 23, 0.55) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.style-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 26%);
  z-index: 1;
}

.style-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.style-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.04) 0%, rgba(10, 12, 24, 0.12) 44%, rgba(10, 12, 24, 0.56) 100%);
  z-index: 1;
}

.style-audio-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: white;
  background: rgba(16, 18, 32, 0.56);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 3;
  cursor: pointer;
  transition: var(--transition);
}

.style-audio-toggle:hover {
  background: rgba(16, 18, 32, 0.74);
}

.style-audio-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.style-audio-toggle svg {
  width: 15px;
  height: 15px;
}

.style-audio-toggle .icon-sound-on {
  display: none;
}

.style-card.audio-on .style-audio-toggle {
  background: rgba(212, 79, 110, 0.88);
}

.style-card.audio-on .style-audio-toggle .icon-sound-on {
  display: block;
}

.style-card.audio-on .style-audio-toggle .icon-sound-off {
  display: none;
}

.style-dancer {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 48px;
  height: 104px;
  transform: translateX(-50%);
  z-index: 1;
}

.style-dancer::before,
.style-dancer::after {
  content: '';
  position: absolute;
}

.style-dancer::before {
  width: 20px;
  height: 20px;
  left: 50%;
  top: 0;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff6ef 0%, #ffd7c3 100%);
  box-shadow: 0 0 18px rgba(255, 238, 226, 0.35);
}

.style-dancer::after {
  left: 50%;
  top: 16px;
  width: 32px;
  height: 78px;
  transform: translateX(-50%);
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,214,188,0.82) 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.style-dancer-1 {
  transform: translateX(-50%) rotate(-8deg);
}

.style-dancer-2 {
  transform: translateX(-50%) rotate(7deg);
}

.style-dancer-3 {
  transform: translateX(-50%) rotate(-14deg);
}

.style-dancer-4 {
  transform: translateX(-50%) rotate(10deg);
}

.style-dancer-1::after {
  background: linear-gradient(180deg, #fff4dd 0%, #ffb78f 100%);
}

.style-dancer-2::after {
  background: linear-gradient(180deg, #fff1ff 0%, #ffaad0 100%);
}

.style-dancer-3::after {
  background: linear-gradient(180deg, #fff0d6 0%, #ff9b6b 100%);
}

.style-dancer-4::after {
  background: linear-gradient(180deg, #f6f4ff 0%, #b4c4ff 100%);
}

.style-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 42px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0) 80%);
  filter: blur(1px);
}

.style-poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.style-poster-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.style-poster-sub {
  color: rgba(255, 245, 235, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.style-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.style-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.style-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.style-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--primary-solid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.style-card.selected .style-check {
  opacity: 1;
  transform: scale(1);
}

.style-check svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* ===== MODULE 3: UPLOAD ===== */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 28px rgba(78, 52, 46, 0.05);
}

.upload-area {
  position: relative;
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  background: #fdf9f6;
  border: 1.5px dashed var(--border);
}

.upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(232,119,74,0.3), rgba(212,79,110,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition);
  opacity: 0;
}

.upload-area:hover::before {
  opacity: 1;
}

.upload-area:hover {
  background: #fdf5f0;
  border-color: #d4a090;
  transform: translateY(-1px);
}

.upload-area.drag-over {
  background: rgba(232, 119, 74, 0.06);
  border-color: var(--grad-1);
}

.upload-area.drag-over::before {
  opacity: 1;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.upload-demo-avatar {
  width: 46px;
  height: 74px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(246, 230, 225, 0.92) 100%);
  border: 1px solid rgba(232,119,74,0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: uploadPulse 2.5s ease-in-out infinite;
  box-shadow: 0 8px 18px rgba(198, 141, 118, 0.12);
}

@keyframes uploadPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,119,74,0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(232,119,74,0); }
}

.upload-demo-avatar svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.upload-demo-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--primary-solid);
}

.upload-demo-result {
  width: 46px;
  height: 74px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 28%, rgba(0,0,0,0.18) 100%), linear-gradient(135deg, var(--grad-3), var(--grad-5));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(48, 22, 43, 0.16);
}

.demo-emoji {
  font-size: 1.5rem;
}

#templateThumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.upload-text {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-preview {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.upload-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--error);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.remove-btn:hover {
  transform: scale(1.1);
}

.remove-btn svg {
  width: 14px;
  height: 14px;
  color: white;
}

/* Tips */
.upload-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.tip-good {
  background: rgba(74, 158, 110, 0.08);
  border: 1px solid rgba(74, 158, 110, 0.2);
}

.tip-good .tip-icon {
  color: var(--success);
}

.tip-bad {
  background: rgba(201, 64, 64, 0.07);
  border: 1px solid rgba(201, 64, 64, 0.18);
}

.tip-bad .tip-icon {
  color: var(--error);
}

.tip-note {
  background: rgba(206, 168, 97, 0.08);
  border: 1px solid rgba(206, 168, 97, 0.22);
}

.tip-note .tip-icon {
  color: #a77a2a;
}

.tip-icon {
  font-weight: 700;
  font-size: 0.9rem;
}

.tip-text {
  color: var(--text-secondary);
}

.error-message {
  color: var(--error);
  font-size: 0.75rem;
  text-align: left;
  margin-bottom: 12px;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 148, 51, 0.3);
}

.btn-submit:disabled {
  background: var(--border);
  cursor: not-allowed;
  color: var(--text-muted);
  box-shadow: none;
}

#submitBtn {
  display: block;
  width: 236px;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 14px 20px;
}

/* ===== MODULE 4 & 5: FULL PAGES ===== */
.page-waiting,
.page-notified {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.4s ease-out;
  background: #f7f2ee;
  overflow: hidden;
}

.page-waiting::before,
.page-notified::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 119, 74, 0.18) 0%, rgba(232, 119, 74, 0) 70%);
  animation: bgFloat1 8s ease-in-out infinite;
  pointer-events: none;
}

.page-waiting::after,
.page-notified::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 79, 110, 0.15) 0%, rgba(212, 79, 110, 0) 70%);
  animation: bgFloat2 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bgFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.08); }
}

@keyframes bgFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -30px) scale(1.06); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.waiting-content {
  text-align: center;
  max-width: 360px;
  width: calc(100% - 32px);
  padding: 28px 20px 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 48px rgba(83, 54, 44, 0.1),
    0 0 0 1px rgba(232, 119, 74, 0.06) inset;
  position: relative;
  z-index: 1;
}

.status-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(224, 216, 208, 0.95);
  color: #9a7f72;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.waiting-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI Orb 动画 */
.ai-orb {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-orb-core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8774a, #d44f6e);
  box-shadow:
    0 0 16px rgba(232, 119, 74, 0.5),
    0 0 32px rgba(212, 79, 110, 0.3);
  animation: orbPulse 2.4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(232,119,74,0.5), 0 0 32px rgba(212,79,110,0.3); }
  50% { transform: scale(1.12); box-shadow: 0 0 24px rgba(232,119,74,0.7), 0 0 48px rgba(212,79,110,0.4); }
}

.ai-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.ai-orb-ring-1 {
  width: 52px;
  height: 52px;
  border-color: rgba(232, 119, 74, 0.35);
  animation: orbRing1 3s linear infinite;
}

.ai-orb-ring-2 {
  width: 72px;
  height: 72px;
  border-color: rgba(212, 79, 110, 0.2);
  animation: orbRing2 4.5s linear infinite reverse;
}

@keyframes orbRing1 {
  from { transform: rotate(0deg); border-top-color: rgba(232,119,74,0.8); }
  to   { transform: rotate(360deg); border-top-color: rgba(232,119,74,0.8); }
}

@keyframes orbRing2 {
  from { transform: rotate(0deg); border-right-color: rgba(212,79,110,0.5); }
  to   { transform: rotate(360deg); border-right-color: rgba(212,79,110,0.5); }
}

.ai-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8774a, #d44f6e);
}

.ai-particle-1 { animation: particle1 2.8s ease-in-out infinite; }
.ai-particle-2 { animation: particle2 3.2s ease-in-out infinite 0.4s; }
.ai-particle-3 { animation: particle3 2.6s ease-in-out infinite 0.8s; }
.ai-particle-4 { animation: particle4 3.4s ease-in-out infinite 1.2s; }
.ai-particle-5 { animation: particle5 2.9s ease-in-out infinite 0.6s; }
.ai-particle-6 { animation: particle6 3.1s ease-in-out infinite 1.5s; }

@keyframes particle1 {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translate(-28px, -18px) scale(1); }
  80% { opacity: 0.4; transform: translate(-36px, -28px) scale(0.5); }
}
@keyframes particle2 {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translate(26px, -22px) scale(1); }
  80% { opacity: 0.4; transform: translate(34px, -32px) scale(0.5); }
}
@keyframes particle3 {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translate(30px, 16px) scale(1); }
  80% { opacity: 0.4; transform: translate(38px, 26px) scale(0.5); }
}
@keyframes particle4 {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translate(-24px, 20px) scale(1); }
  80% { opacity: 0.4; transform: translate(-32px, 30px) scale(0.5); }
}
@keyframes particle5 {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: translate(8px, -32px) scale(0.8); }
  80% { opacity: 0; transform: translate(12px, -42px) scale(0.3); }
}
@keyframes particle6 {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: translate(-10px, 30px) scale(0.8); }
  80% { opacity: 0; transform: translate(-14px, 40px) scale(0.3); }
}

.waiting-icon::before,
.waiting-icon::after {
  display: none;
}

.waiting-icon svg { display: none; }

.waiting-title {
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 4.9vw, 1.48rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  white-space: nowrap;
}

/* Time estimate badge */
.waiting-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(212,79,110,0.08);
  border: 1px solid rgba(212,79,110,0.2);
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--primary-solid);
  margin-bottom: 16px;
}

/* Progress steps */
.waiting-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
  text-align: left;
}

.waiting-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.waiting-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 29px;
  bottom: -2px;
  width: 1px;
  background: var(--border);
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-dot.done {
  background: rgba(74,158,110,0.12);
  border: 1px solid rgba(74,158,110,0.4);
  color: var(--success);
}

.step-dot.active {
  background: linear-gradient(135deg, rgba(232,119,74,0.15), rgba(212,79,110,0.15));
  border: 1.5px solid rgba(212,79,110,0.5);
  color: var(--primary-solid);
  animation: activeDotPulse 2s ease-in-out infinite;
}

@keyframes activeDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,79,110,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(212,79,110,0); }
}

.step-dot.pending {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.step-body {
  flex: 1;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}

.step-label.muted { color: var(--text-muted); }

.step-sublabel {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.28;
}

/* Unique ID Display */
.your-id {
  background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(212, 79, 110, 0.05) 100%);
  border: 1px solid rgba(212, 79, 110, 0.14);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.your-id-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.your-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.your-id-code {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--primary-solid);
  letter-spacing: 0.08em;
}

/* Copy ID button */
.btn-copy-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(212,79,110,0.08);
  border: 1px solid rgba(212,79,110,0.25);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-solid);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy-id:hover {
  background: rgba(212,79,110,0.15);
}

.btn-copy-id.copied {
  background: rgba(74,158,110,0.1);
  border-color: rgba(74,158,110,0.3);
  color: var(--success);
}

.btn-copy-id svg {
  width: 13px;
  height: 13px;
}

.waiting-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.btn-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-option svg {
  width: 20px;
  height: 20px;
}

.option-divider {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.email-capture {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(232, 224, 216, 0.9);
}

.email-input {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: var(--transition);
  text-align: center;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px rgba(212, 79, 110, 0.1);
}

.email-input.error {
  border-color: var(--error);
}

.form-hint {
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.28;
}

.form-hint.error {
  color: var(--error);
}

.btn-notify {
  margin-top: 0;
  padding: 14px 18px;
  font-size: 0.88rem;
}

/* Check Status Page */
.page-check-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.4s ease-out;
}

.check-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.check-status-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 6px 0 20px;
}

.check-status-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.id-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 310px;
  justify-content: center;
  align-items: center;
}

.id-input-group .email-input {
  flex: 1;
  min-width: 0;
}

.btn-check-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e8774a, #d44f6e);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(212, 79, 110, 0.28);
}

.btn-check-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 79, 110, 0.36);
}

.id-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.id-result.ready {
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.3);
}

.id-result.processing {
  background: rgba(240, 199, 90, 0.14);
  border: 1px solid rgba(222, 180, 72, 0.34);
}

.result-status {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

.id-result.ready .result-status {
  color: #00d26a;
}

.id-result.processing .result-status {
  color: var(--primary-solid);
}

.result-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.download-link {
  color: var(--success);
  text-decoration: none;
  font-weight: 600;
}

.download-link:hover {
  text-decoration: underline;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.close-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.close-btn svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.id-result.ready {
  background: rgba(74, 158, 110, 0.08);
  border: 1px solid rgba(74, 158, 110, 0.25);
}

.id-result.processing {
  background: rgba(247, 224, 168, 0.28);
  border: 1px solid rgba(227, 190, 88, 0.34);
}

.id-result.error {
  background: rgba(201, 64, 64, 0.06);
  border: 1px solid rgba(201, 64, 64, 0.2);
}

.id-result.ready .result-status {
  color: var(--success);
}

.id-result.processing .result-status {
  color: #ba7b1f;
}

.check-status-link {
  margin-top: 24px;
  text-align: center;
}

.check-status-link a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.check-status-link a:hover {
  color: var(--primary-solid);
  text-decoration: underline;
}

/* ===== VIDEO READY PAGE ===== */
.page-video-ready {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(232, 119, 74, 0.08) 0%, rgba(232, 119, 74, 0) 32%),
    radial-gradient(circle at bottom right, rgba(212, 79, 110, 0.08) 0%, rgba(212, 79, 110, 0) 34%),
    var(--bg);
  z-index: 100;
  overflow-y: auto;
  animation: fadeIn 0.4s ease-out;
}

.video-ready-content {
  max-width: 420px;
  margin: 20px auto 32px;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(232, 224, 216, 0.95);
  border-radius: 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(83, 54, 44, 0.08);
}

.video-ready-head {
  text-align: center;
}

.video-ready-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-ready-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Video player */
.video-player-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9/16;
  max-height: 60vh;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.result-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: white;
}

/* Download button */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

/* Share section */
.share-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(232, 224, 216, 0.9);
}

.share-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

.btn-share:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-share.copied {
  background: rgba(74,158,110,0.08);
  border-color: rgba(74,158,110,0.3);
  color: var(--success);
}

.btn-instagram {
  background: linear-gradient(135deg, rgba(232,119,74,0.06), rgba(212,79,110,0.06));
  border-color: rgba(232,119,74,0.2);
}

.btn-instagram:hover {
  background: linear-gradient(135deg, rgba(232,119,74,0.12), rgba(212,79,110,0.12));
  border-color: rgba(232,119,74,0.35);
}

.btn-tiktok {
  background: #f8f5f2;
  border-color: var(--border);
}

.btn-tiktok:hover {
  background: #f0ebe4;
  border-color: var(--border-hover);
}

/* Try again */
.try-again-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.try-again-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-try-again {
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ===== VIDEO READY PAGE END ===== */

/* Success */
.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(74, 158, 110, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn-ghost {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--border-hover);
  color: var(--text);
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 20px 16px 32px;
  background: transparent;
}

/* Privacy note above submit */
.upload-privacy {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Footer links */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:visited {
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--primary-solid);
}

/* Responsive */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-content {
    max-width: 300px;
  }

  .btn-create {
    padding: 16px 28px;
    font-size: 0.9rem;
  }

  .style-grid {
    gap: 8px;
  }
}

/* ===== ADMIN PAGE ===== */
.page-admin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  padding: 24px;
}

.admin-container {
  max-width: 600px;
  margin: 0 auto;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-refresh {
  padding: 10px 20px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-loading {
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.admin-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-id {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-solid);
}

.admin-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-status.processing {
  background: rgba(240, 148, 51, 0.2);
  color: var(--primary-solid);
}

.admin-status.ready {
  background: rgba(0, 210, 106, 0.2);
  color: #00d26a;
}

.admin-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.admin-video-input {
  display: flex;
  gap: 8px;
}

.admin-video-input input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
}

.admin-video-input input:focus {
  outline: none;
  border-color: var(--primary-solid);
}

.btn-update {
  padding: 10px 16px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.back-home {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  text-decoration: none;
}

.back-home:hover {
  color: var(--primary-solid);
}

/* ===== B VERSION: HOTTER / FASTER VISUAL DIRECTION ===== */
body.variant-b {
  background: #f7f0ea;
}

.variant-b .app {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 119, 74, 0.16) 0%, rgba(232, 119, 74, 0) 22%),
    radial-gradient(circle at 84% 20%, rgba(212, 79, 110, 0.14) 0%, rgba(212, 79, 110, 0) 22%),
    radial-gradient(circle at 76% 78%, rgba(155, 32, 128, 0.11) 0%, rgba(155, 32, 128, 0) 18%),
    linear-gradient(180deg, #f9f3ee 0%, #f7efe8 38%, #f7f1eb 100%);
}

.variant-b .app::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.24) 44%, rgba(255,255,255,0) 66%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 58%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.variant-b .module-hero,
.variant-b .module-styles,
.variant-b .module-upload {
  background:
    radial-gradient(circle at 14% 18%, rgba(232, 119, 74, 0.12) 0%, rgba(232, 119, 74, 0) 32%),
    radial-gradient(circle at 86% 76%, rgba(212, 79, 110, 0.12) 0%, rgba(212, 79, 110, 0) 34%),
    linear-gradient(180deg, #fbf7f3 0%, #f8f1ee 100%);
}

.variant-b .module-hero {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-top: max(84px, calc(env(safe-area-inset-top) + 64px));
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px));
}

.variant-b .module-hero::before,
.variant-b .module-styles::before,
.variant-b .module-upload::before {
  width: 320px;
  height: 320px;
  top: 7%;
  left: -130px;
  background: radial-gradient(circle, rgba(232, 119, 74, 0.18) 0%, rgba(232, 119, 74, 0) 70%);
  filter: blur(6px);
}

.variant-b .module-hero::after,
.variant-b .module-styles::after,
.variant-b .module-upload::after {
  width: 340px;
  height: 340px;
  right: -150px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(212, 79, 110, 0.18) 0%, rgba(212, 79, 110, 0) 72%);
  filter: blur(6px);
}

.variant-b .hero-check-status {
  margin-top: 14px;
  background: rgba(255, 248, 243, 0.14);
  border-color: rgba(255, 241, 232, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  color: rgba(255, 244, 237, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.variant-b .hero-content {
  max-width: 390px;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.variant-b .hero-eyebrow {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(224, 204, 191, 0.95);
  box-shadow: 0 10px 28px rgba(117, 78, 67, 0.08);
  color: #b18c74;
}

.variant-b .hero-title {
  margin-bottom: 22px;
  color: #f6ece4;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.variant-b .hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #d7cbc3;
}

.variant-b .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) contrast(1.01) brightness(0.6);
}

.variant-b .hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 237, 231, 0.38) 0%, rgba(245, 237, 231, 0.1) 18%, rgba(9, 6, 13, 0.34) 56%, rgba(9, 6, 13, 0.6) 100%),
    linear-gradient(90deg, rgba(245,237,231,0.44) 0%, rgba(245,237,231,0.06) 18%, rgba(245,237,231,0) 50%, rgba(245,237,231,0.06) 82%, rgba(245,237,231,0.44) 100%),
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 28%);
}

.variant-b .hero-copy-card {
  width: min(100%, 360px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.variant-b .hero-desc {
  max-width: none;
  margin: 0 auto 18px;
  color: rgba(255, 247, 241, 0.92);
  line-height: 1.6;
  font-size: 0.98rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.variant-b .hero-footnote {
  color: rgba(255, 240, 228, 0.84);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.variant-b .btn-create {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(212, 79, 110, 0.24);
}

.variant-b .btn-create::before {
  content: '';
  position: absolute;
  inset: -2px auto -2px -44%;
  width: 40%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.34) 50%, rgba(255,255,255,0) 100%);
  animation: variantBSheen 4.2s ease-in-out infinite;
}

@keyframes variantBSheen {
  0%, 72% { left: -44%; }
  100% { left: 124%; }
}

.variant-b .section-kicker {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 2px auto 12px;
  padding: 8px 14px;
  color: #cf6d64;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(230, 206, 197, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(117, 78, 67, 0.08);
  backdrop-filter: blur(10px);
}

.variant-b .section-title {
  font-size: 1.62rem;
  color: #20191b;
  text-shadow: 0 10px 22px rgba(255, 255, 255, 0.2);
}

.variant-b .section-subtitle {
  color: #7c675c;
  max-width: 360px;
}

.variant-b .style-grid {
  gap: 14px;
  margin-top: 8px;
}

.variant-b .style-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(81, 52, 54, 0.11);
  position: relative;
  overflow: hidden;
}

.variant-b .style-card.selected {
  border-color: rgba(212, 79, 110, 0.6);
  box-shadow: 0 22px 46px rgba(212, 79, 110, 0.18);
}

.variant-b .style-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.variant-b .style-card::after {
  content: '';
  position: absolute;
  width: 128px;
  height: 128px;
  right: -44px;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,119,74,0.12) 0%, rgba(212,79,110,0.06) 38%, rgba(212,79,110,0) 72%);
  pointer-events: none;
}

.variant-b .style-media {
  padding: 8px 8px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.08) 100%);
}

.variant-b .style-poster {
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 34px rgba(4, 0, 24, 0.24);
}

.variant-b .style-poster::before {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 36%),
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.22) 100%);
}

.variant-b .style-info {
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.82) 100%);
  padding: 11px 12px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.variant-b .style-name {
  letter-spacing: -0.01em;
}

.variant-b .upload-card,
.variant-b .waiting-content,
.variant-b .video-ready-content,
.variant-b .check-status-card,
.variant-b .success-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 249, 247, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 52px rgba(85, 53, 49, 0.12);
  backdrop-filter: blur(18px);
}

.variant-b .upload-card::before,
.variant-b .waiting-content::before,
.variant-b .video-ready-content::before,
.variant-b .check-status-card::before,
.variant-b .success-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 96px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.12) 42%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.variant-b .upload-card::after,
.variant-b .waiting-content::after,
.variant-b .video-ready-content::after,
.variant-b .check-status-card::after,
.variant-b .success-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -72px;
  right: -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(232,119,74,0.16) 0%, rgba(212,79,110,0.08) 40%, rgba(212,79,110,0) 72%);
  pointer-events: none;
}

.variant-b .upload-card > *,
.variant-b .waiting-content > *,
.variant-b .video-ready-content > *,
.variant-b .check-status-card > *,
.variant-b .success-card > * {
  position: relative;
  z-index: 1;
}

/* close-btn must stay absolute so it sits in the top-right corner */
.variant-b .check-status-card > .close-btn {
  position: absolute;
}

.variant-b .upload-area {
  background: linear-gradient(180deg, rgba(255,255,255,0.54) 0%, rgba(255,245,247,0.72) 100%);
  border-color: rgba(219, 201, 190, 0.88);
}

.variant-b .upload-area::before {
  background: linear-gradient(135deg, rgba(232,119,74,0.16), rgba(212,79,110,0.12));
}

.variant-b .tip {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(230, 214, 205, 0.86);
}

.variant-b #submitBtn,
.variant-b .btn-notify,
.variant-b .btn-download,
.variant-b .btn-try-again,
.variant-b .btn-check-arrow {
  box-shadow: 0 18px 36px rgba(212, 79, 110, 0.2);
}

.variant-b .waiting-step,
.variant-b .share-section,
.variant-b .your-id {
  background: rgba(255, 255, 255, 0.42);
}

.variant-b .page-waiting,
.variant-b .page-notified,
.variant-b .page-check-status,
.variant-b .page-video-ready {
  background:
    radial-gradient(circle at 8% 16%, rgba(232, 119, 74, 0.13) 0%, rgba(232, 119, 74, 0) 30%),
    radial-gradient(circle at 88% 78%, rgba(212, 79, 110, 0.14) 0%, rgba(212, 79, 110, 0) 34%),
    linear-gradient(180deg, #fbf7f3 0%, #f8f1ee 100%);
}

.variant-b .waiting-content {
  box-shadow: 0 26px 56px rgba(85, 53, 49, 0.14);
}

.variant-b .success-card {
  box-shadow: 0 26px 56px rgba(85, 53, 49, 0.14);
}

.variant-b .success-icon {
  background: linear-gradient(180deg, rgba(94, 190, 132, 0.16) 0%, rgba(255,255,255,0.72) 100%);
  border: 1px solid rgba(116, 197, 146, 0.24);
  box-shadow: 0 14px 32px rgba(74, 158, 110, 0.12);
}

.variant-b .btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,248,244,0.72) 100%);
  border-color: rgba(227, 205, 193, 0.92);
  color: #7a5d57;
  box-shadow: 0 10px 26px rgba(117, 78, 67, 0.06);
}

.variant-b .btn-ghost:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,250,247,0.9) 100%);
  border-color: rgba(217, 168, 151, 0.96);
  color: #5d433d;
}

@media (max-width: 1024px) {
  .variant-b .module-hero {
    padding-top: 82px;
  }
}

@media (max-width: 640px) {
  .variant-b .module-hero {
    padding-top: max(74px, calc(env(safe-area-inset-top) + 56px));
    justify-content: center;
    padding-bottom: max(36px, calc(env(safe-area-inset-bottom) + 18px));
    padding-left: 32px;
    padding-right: 32px;
  }

  .variant-b .hero-content {
    max-width: 308px;
  }

  .variant-b .hero-title {
    font-size: 2.68rem;
    margin-bottom: 16px;
  }

  .variant-b .hero-copy-card {
    width: 100%;
  }

  .variant-b .hero-check-status {
    margin-top: 12px;
    padding: 17px 40px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }

  .variant-b .hero-bg-video {
    object-position: center center;
    filter: saturate(0.92) contrast(1.01) brightness(0.64);
  }

  .variant-b .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.55;
  }

  .variant-b .hero-footnote {
    color: rgba(255, 240, 228, 0.84);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    font-size: 0.69rem;
  }

  .variant-b .upload-privacy {
    font-size: 0.56rem;
  }

  .variant-b .section-kicker {
    margin-top: 6px;
  }
}
