* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds */
  --bg-body: #1a1a2e;
  --bg-topbar: #16162a;
  --bg-card: #1e1e38;
  --bg-card-hover: #222244;
  --bg-elevated: #252545;
  --bg-elevated-hover: #2a2a50;

  /* Accent */
  --accent: #c9a0dc;
  --accent-end: #a87cc4;
  --accent-light: #e9b9ff;
  --accent-hover: #d4b4e6;

  /* Text */
  --text-primary: #e0e0e0;
  --text-secondary: #ddd;
  --text-muted: #aaa;
  --text-hint: #999;
  --text-dim: #888;
  --text-disabled: #666;

  /* Borders */
  --border-subtle: #2a2a4a;
  --border-default: #333;
  --border-strong: #444;

  /* Semantic */
  --error: #e07070;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Top bar ===== */

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 200;
}

.topbar-logo {
  height: 28px;
  width: auto;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.topbar-logo:hover {
  opacity: 1;
}

.topbar-logo-hidden {
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -4px;
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#topbar-auth-signed-in {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-tokens {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  color: var(--accent-light);
  margin-top: -2px;
}

.token-coin {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-right: -5px;
  margin-bottom: 0;
}

.topbar-tokens #token-balance {
  font-weight: 600;
  font-size: 1.05rem;
}

.token-reel {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

.token-reel-inner {
  display: flex;
  flex-direction: column;
}

.token-reel-digit {
  display: block;
  text-align: center;
}

.topbar-tokens.token-flash {
  animation: token-bg-flash 1.2s ease-out;
}

@keyframes token-bg-flash {
  0% {
    background: transparent;
  }
  15% {
    background: rgba(224, 112, 112, 0.2);
    border-radius: 6px;
  }
  60% {
    background: rgba(224, 112, 112, 0.1);
    border-radius: 6px;
  }
  100% {
    background: transparent;
  }
}

.topbar-tokens.token-flash-gain {
  animation: token-bg-flash-gain 1.2s ease-out;
}

@keyframes token-bg-flash-gain {
  0% {
    background: transparent;
  }
  15% {
    background: rgba(112, 224, 128, 0.2);
    border-radius: 6px;
  }
  60% {
    background: rgba(112, 224, 128, 0.1);
    border-radius: 6px;
  }
  100% {
    background: transparent;
  }
}

/* ===== Hamburger menu (mobile) ===== */

.topbar-mobile-only {
  display: none;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 1px;
  transition: opacity 0.2s;
}

.hamburger-btn:hover .hamburger-line {
  opacity: 0.7;
}

.hamburger-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 0.25rem 0;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 300;
}

.hamburger-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.hamburger-item:hover {
  background: var(--bg-elevated-hover);
}

@media (max-width: 640px) {
  .topbar-desktop-only {
    display: none;
  }
  .topbar-mobile-only {
    display: flex;
  }
  #topbar-auth-signed-in {
    position: relative;
  }
}

/* ===== Main content ===== */

.main-content {
  min-height: calc(100vh - 52px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
}

.section-inner {
  max-width: 800px;
  width: 100%;
  padding: 0 2rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 3rem;
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.tagline {
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== Landing page ===== */

.landing-inner {
  max-width: 900px;
}

.landing-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.landing-logo {
  height: 72px;
  width: auto;
}

.landing-tagline {
  display: none;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
  font-size: 1.5rem;
  font-family: serif;
}

.landing-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.2s;
  text-align: center;
}

.showcase-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.showcase-label {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
}

.showcase-images {
  margin-bottom: 1rem;
}

.showcase-before-after {
  position: relative;
  width: 70%;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

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

.showcase-img-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 55% 0 0);
}

/* ===== Shared slider (showcase + result) ===== */

.showcase-slider-line,
.result-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.showcase-slider-line {
  left: 45%;
}

.result-slider-line {
  left: 70%;
}

.showcase-slider-handle,
.result-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
}

.showcase-slider-handle::before,
.showcase-slider-handle::after,
.result-slider-handle::before,
.result-slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
}

.showcase-slider-handle::before,
.result-slider-handle::before {
  left: 5px;
  border-right-color: var(--text-dim);
}

.showcase-slider-handle::after,
.result-slider-handle::after {
  right: 5px;
  border-left-color: var(--text-dim);
}

.showcase-desc {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.showcase-cta-btn {
  margin-top: 0.25rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.landing-section-label {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.landing-video-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.showcase-video-card {
  text-align: center;
}

.showcase-video-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.showcase-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border-default);
}

.showcase-video-label {
  font-size: 0.95rem;
  color: var(--text-hint);
  margin-top: 0.5rem;
}

.showcase-before-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 3;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.25s ease-in;
}

.showcase-before-img.hidden-fade {
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}

/* ===== Shared play overlay (showcase + video-style) ===== */

.showcase-play-overlay,
.video-style-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.showcase-play-overlay {
  transition:
    background 0.2s,
    opacity 0.3s;
  z-index: 4;
}

.video-style-play-overlay {
  transition: opacity 0.2s;
  z-index: 2;
}

.showcase-play-overlay.hidden-fade,
.video-style-play-overlay.hidden-fade {
  opacity: 0;
  pointer-events: none;
}

.showcase-play-overlay.hidden-fade {
  transition: opacity 0.2s ease-out;
}

.showcase-video-wrap:hover .showcase-play-overlay:not(.hidden-fade) {
  background: rgba(0, 0, 0, 0.15);
}

.showcase-play-icon,
.video-style-play-icon {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.showcase-play-icon {
  font-size: 2.5rem;
}

.video-style-play-icon {
  font-size: 2rem;
}

.landing-video-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.btn-landing-cta {
  padding: 1rem 3rem;
  font-size: 1.15rem;
}

/* ===== Token display ===== */

.btn-link {
  background: none;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  margin-left: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}

.btn-link:hover {
  opacity: 1;
}

/* ===== Toast notification ===== */

.toast {
  position: fixed;
  top: 1.15rem;
  right: 1.5rem;
  background: #2a1a3e;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Purchase modal ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 900;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* ===== Package cards ===== */

.package-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.package-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}

.package-card:hover {
  border-color: var(--accent);
}

.package-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.package-tokens {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.package-price {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.package-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--accent);
  color: var(--bg-body);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.package-buy-btn {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.9rem;
}

.test-mode-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-disabled);
  font-style: italic;
}

/* ===== Wizard instructions ===== */

.wizard-instructions {
  text-align: center;
  color: var(--text-hint);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.wizard-upload-actions {
  margin-top: 1.5rem;
  text-align: center;
}

/* ===== Upload area ===== */

.upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(201, 160, 220, 0.05); /* accent @ 5% */
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-hint {
  color: var(--text-hint);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ===== Confirm step ===== */

.confirm-area,
[data-step="confirm"] {
  text-align: center;
  padding: 2rem 0;
}

.confirm-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.confirm-preview {
  max-width: 360px;
  max-height: 400px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  margin-bottom: 1rem;
}

.confirm-token-cost {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.confirm-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 340px;
  margin: 0 auto 1.25rem;
  font-size: 0.9rem;
  color: var(--text-hint);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.confirm-consent input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */

.btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  color: var(--bg-body);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    filter 0.2s;
  box-shadow: 0 2px 8px rgba(201, 160, 220, 0.25); /* accent @ 25% */
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(201, 160, 220, 0.2); /* accent @ 20% */
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.btn-magic {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 2.5rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-magic::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%
  );
  animation: shimmer-sweep 3.5s ease-in-out infinite;
}

@keyframes magic-glow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(201, 160, 220, 0.3); /* accent @ 30% */
  }
  50% {
    box-shadow:
      0 0 20px rgba(201, 160, 220, 0.6),
      0 0 40px rgba(201, 160, 220, 0.2); /* accent @ 60%, 20% */
  }
}

@keyframes shimmer-sweep {
  0%,
  100% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
}

.btn-secondary {
  background: rgba(201, 160, 220, 0.08); /* accent @ 8% */
  color: var(--accent);
  border: 1px solid rgba(201, 160, 220, 0.3); /* accent @ 30% */
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.btn-secondary:hover {
  background: rgba(201, 160, 220, 0.15); /* accent @ 15% */
  border-color: rgba(201, 160, 220, 0.5); /* accent @ 50% */
  box-shadow: 0 0 12px rgba(201, 160, 220, 0.1); /* accent @ 10% */
}

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

.btn-tertiary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.btn-tertiary:hover {
  color: var(--text-primary);
  border-color: var(--text-disabled);
}

.btn-tertiary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Progress ===== */

.progress-area,
[data-step="image-progress"],
[data-step="video-progress"] {
  text-align: center;
  padding: 3rem;
  padding-top: 1rem;
}

.progress-mice {
  display: block;
  max-width: 150px;
  margin: 1.5rem auto;
  border-radius: 10px;
}

.progress-bar-track {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  margin: 1.5rem auto 1.5rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.progress-bar-fill.indeterminate {
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--accent) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.status-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.queue-info {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.progress-hint {
  color: var(--text-hint);
  font-size: 0.95rem;
}

.progress-actions {
  margin-top: 1.5rem;
}

/* ===== Results ===== */

.result-area,
[data-step="image-result"],
[data-step="video-result"] {
  text-align: center;
}

.result-slider {
  position: relative;
  max-width: 320px;
  margin: 0 auto 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  cursor: ew-resize;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.result-slider-img {
  width: 100%;
  height: auto;
  display: block;
}

.result-slider-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 30% 0 0);
}

/* Slider line & handle defined in "Shared slider" section above */

.result-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Wizard video prompt ===== */

.wizard-video-prompt {
  margin-top: 2rem;
  text-align: center;
}

.wizard-video-pitch {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.wizard-video-time-note {
  font-size: 0.85rem;
  color: var(--text-hint);
  margin-bottom: 1rem;
  font-style: italic;
}

.wizard-video-prompt .btn-magic {
  margin-bottom: 1.25rem;
}

.wizard-video-time-warning {
  font-size: 0.85rem;
  color: var(--text-hint);
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== Video style selection ===== */

.video-style {
  text-align: center;
}

.video-style-preview-wrap {
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
}

.video-style-preview {
  max-width: 200px;
  max-height: 240px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border-default);
}

.video-style-label {
  font-size: 0.95rem;
  color: var(--text-hint);
  margin-bottom: 1rem;
  text-align: center;
}

.video-style-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.video-style-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  min-width: 160px;
  flex: 1;
  max-width: 200px;
}

.video-style-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated-hover);
}

.video-style-card.selected {
  border-color: var(--accent);
  background: var(--bg-elevated-hover);
  box-shadow: 0 0 0 2px rgba(201, 160, 220, 0.27); /* accent @ 27% */
}

.video-style-video-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.video-style-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Play overlay & icon defined in "Shared play overlay" section above */

.video-style-name {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.video-style-choose-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.video-style-actions {
  margin-top: 0.5rem;
  text-align: center;
}

/* ===== Final results (image + video side by side) ===== */

.wizard-final-results {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.wizard-final-card {
  flex: 1;
  min-width: 250px;
  max-width: 360px;
  text-align: center;
}

.wizard-final-media {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  margin-bottom: 0.75rem;
}

.wizard-final-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.wizard-final-dl {
  min-width: 160px;
}

/* ===== Video player ===== */

.video-player {
  max-width: 100%;
  max-height: 500px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  margin-bottom: 1.5rem;
}

/* ===== Error ===== */

.error-area {
  text-align: center;
  padding: 2rem;
}

.error-text {
  color: var(--error);
  margin-bottom: 1rem;
}

/* ===== Legal pages ===== */

.legal-page {
  max-width: 680px;
  line-height: 1.7;
  padding-bottom: 3rem;
}

.legal-title {
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.legal-effective {
  font-size: 0.85rem;
  color: var(--text-disabled);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.legal-link:hover {
  color: var(--accent-hover);
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===== Footer ===== */

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-primary);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-sep {
  color: var(--border-strong);
  font-size: 0.8rem;
}

/* ===== Utilities ===== */

.hidden {
  display: none;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .topbar {
    padding: 0.5rem 0.75rem;
  }

  .topbar-logo {
    height: 22px;
  }

  .topbar-right {
    gap: 0.5rem;
  }

  .topbar-tokens {
    font-size: 0.9rem;
  }

  .token-coin {
    width: 26px;
    height: 26px;
  }

  .main-content {
    padding-top: 1.5rem;
  }

  .section-inner {
    padding: 0 1rem 1.5rem;
  }

  .section-header h1 {
    font-size: 2.4rem;
  }

  .result-slider {
    max-width: 100%;
  }

  .package-cards {
    flex-direction: column;
  }

  .landing-logo {
    height: 52px;
  }

  .landing-showcase {
    grid-template-columns: 1fr;
  }

  .landing-video-showcase {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .showcase-play-icon {
    font-size: 1.5rem;
  }

  .wizard-final-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .wizard-final-dl {
    width: 100% !important;
  }
}
