@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Oleo+Script&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-deep: #050507;
  --bg-surface: rgba(18, 18, 24, 0.65);
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-card-active: rgba(255, 255, 255, 0.07);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 255, 255, 0.35);
  
  --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  --glass-specular-hover: inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  
  --accent-blue: #3b82f6;
  --accent-indigo: #8b5cf6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
  
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-surface: linear-gradient(180deg, rgba(22, 22, 30, 0.75) 0%, rgba(12, 12, 18, 0.85) 100%);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.42);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere Gradients - Soft Apple Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -12vh;
  left: 8%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 50%, transparent 80%);
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15vh;
  right: 6%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 75%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

/* Container */
.app-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-bottom: 36px;
  background: var(--bg-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-specular), var(--glass-shadow);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-logo-badge img,
.brand-logo-badge svg {
  display: block;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.spatialux {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 1px;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.header-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
}

.header-status-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding-top: 14px;
  margin-bottom: 40px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.pill-sparkle {
  color: var(--accent-cyan);
  font-size: 13px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section Label */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.category-card {
  background: var(--gradient-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--glass-specular), var(--glass-shadow);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glass-specular-hover), 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

.category-card.active {
  background: var(--bg-card-active);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15), 0 25px 50px -10px rgba(0, 0, 0, 0.8);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.category-card:hover .card-icon-wrap {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.category-card.active .card-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.card-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.category-card.active .card-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.card-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: auto;
}

/* Apple Bento Pill Badges */
.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.pill-indigo {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.pill-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.pill-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.pill-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.pill-ruby {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.28);
}

/* Studio Workspace Panel */
.workspace-panel {
  background: var(--gradient-surface);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  scroll-margin-top: 24px;
}

/* Template Selector Carousel (For Category 4) */
.template-selector-box {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.template-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.template-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

.template-item.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: var(--accent-cyan-glow);
}

.template-item-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.template-item-text {
  display: flex;
  flex-direction: column;
}

.template-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.template-item-badge {
  font-size: 11px;
  color: var(--text-muted);
}

/* Dynamic Drop Zones */
.dropzones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Primary Input Wrapper & Switcher */
.primary-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 3px;
  width: fit-content;
  margin-bottom: 2px;
}

.input-mode-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.input-mode-pill:hover {
  color: var(--text-primary);
}

.input-mode-pill.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.input-mode-pill .pill-sparkle {
  color: var(--accent-cyan);
}

/* Motion Prompt Field */
.ai-prompt-card {
  background: rgba(0, 240, 255, 0.025);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  animation: fadeIn 0.2s ease-out;
}

.ai-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-prompt-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
}

.ai-prompt-badge {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  color: var(--accent-cyan);
}

.ai-prompt-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.ai-prompt-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.25);
}

.dropzone-box {
  background: rgba(255, 255, 255, 0.018);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.dropzone-box.compact {
  min-height: 120px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.dropzone-box:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.dropzone-box.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: var(--accent-cyan-glow);
  transform: scale(1.01);
}

.dropzone-box.has-file {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.04);
}

.dropzone-icon {
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-icon.small {
  margin-bottom: 6px;
}

.dropzone-box:hover .dropzone-icon {
  color: var(--accent-cyan);
}

.dropzone-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.dropzone-file-preview {
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.alpha-detected-badge {
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
  animation: pulseAlphaBadge 2.4s infinite ease-in-out;
}

.alpha-badge-icon {
  font-size: 13px;
  color: var(--accent-cyan);
}

@keyframes pulseAlphaBadge {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: rgba(0, 240, 255, 0.7);
  }
}

/* Dedicated Audio Configuration Card */
.audio-config-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.audio-title-group {
  display: flex;
  flex-direction: column;
}

.audio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.audio-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.audio-mode-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.audio-mode-pill {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-mode-pill:hover {
  color: #ffffff;
}

.audio-mode-pill.active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.audio-mode-pill.active span,
.audio-mode-pill.active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.custom-audio-box {
  margin-top: 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category Specific Refinement Controls */
.refinements-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.refinement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-model-config {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease;
}

.refinement-row-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.refinement-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.highlight-val {
  color: var(--accent-cyan);
  font-weight: 700;
  margin-left: 4px;
}

.hint-val {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  margin-left: 6px;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pro-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.pro-slider:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pro-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan), 0 2px 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.pro-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  padding: 0 4px;
}

.slider-ticks span {
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  user-select: none;
}

.slider-ticks span:hover {
  color: var(--text-primary);
}

.slider-ticks span.active-tick {
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.refinement-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.refinement-row:first-child {
  padding-top: 0;
}

.refinement-info {
  display: flex;
  flex-direction: column;
}

.refinement-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.refinement-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Segmented Control / Radio Pill */
.segmented-control {
  display: flex;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.segment-btn svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.segment-btn:hover svg,
.segment-btn.active svg {
  opacity: 1;
}

.segment-btn:hover {
  color: #ffffff;
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dedicated Real-World Placement Grid */
#row-realworld-anchor {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#row-realworld-anchor .refinement-info {
  margin-bottom: 2px;
}

#row-realworld-anchor .anchor-grid-control {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.45) !important;
  padding: 5px !important;
  border-radius: 14px !important;
  border: 1px solid var(--border-subtle) !important;
  gap: 6px !important;
}

#row-realworld-anchor .anchor-grid-control .segment-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 6px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast) !important;
}

#row-realworld-anchor .anchor-grid-control .segment-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

#row-realworld-anchor .anchor-grid-control .segment-btn.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 680px) {
  #row-realworld-anchor .anchor-grid-control {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  #row-realworld-anchor .anchor-grid-control .segment-btn {
    padding: 11px 8px !important;
    font-size: 12px !important;
  }
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: .25s;
  border-radius: 34px;
  border: 1px solid var(--border-subtle);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked + .toggle-slider {
  background-color: #34c759;
  border-color: #34c759;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* Action Button - Apple visionOS Luminescent Button */
.submit-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary-action {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 235, 245, 0.92) 100%);
  color: #06070a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-primary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 14px 32px rgba(255, 255, 255, 0.15), 0 12px 28px rgba(0, 0, 0, 0.6);
}

.btn-primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.5);
}

/* Live Terminal / Progress View */
.progress-container {
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.progress-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-track {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.terminal-window {
  padding: 16px 20px;
  max-height: 180px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #a5f3fc;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-line.error {
  color: #f87171;
}

.terminal-line.success {
  color: #34d399;
  font-weight: 600;
}

/* 3D Model Viewer Modal / Result View */
.result-section {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.03) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--accent-cyan-glow);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Result Section Ready Card & 3-Button Actions Grid */
.result-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.result-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-status-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.result-status-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-status-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

.result-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.btn-result-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.btn-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-action-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-action-main {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-action-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.82;
  white-space: nowrap;
}

/* Button 1: Download - Rich Emerald */
.btn-action-download {
  background: var(--accent-emerald);
  color: #07080d;
  border: 1px solid transparent;
}

.btn-action-download .btn-action-icon {
  color: #07080d;
}

.btn-action-download:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.45);
}

/* Button 2: AR Quick Look - Electric Spatial Cyan */
.btn-action-ar {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16) 0%, rgba(14, 165, 233, 0.28) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.12);
}

.btn-action-ar .btn-action-icon {
  color: var(--accent-cyan);
}

.btn-action-ar:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.26) 0%, rgba(14, 165, 233, 0.42) 100%);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

/* Button 3: Create Another - Subtle Glass */
.btn-action-reset {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-action-reset .btn-action-icon {
  color: var(--text-muted);
}

.btn-action-reset:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-action-reset:hover .btn-action-icon {
  color: var(--text-primary);
}

/* Instant Spatial QR Code Card (Apple visionOS Frosted Glass) */
.result-qr-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.qr-card-left {
  flex-shrink: 0;
}

.qr-code-frame {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  width: 204px;
  height: 204px;
}

.qr-code-frame canvas,
.qr-code-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.qr-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.qr-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.qr-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.qr-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn-qr-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-qr-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-qr-copy {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
}

.btn-qr-copy:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
}

@media (max-width: 680px) {
  .result-qr-card {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 20px;
  }
  .qr-card-tag {
    align-self: center;
  }
  .qr-actions-row {
    justify-content: center;
  }
}

/* Expandable Advanced Section */
.advanced-drawer-toggle {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition-fast);
}

.advanced-drawer-toggle:hover {
  color: var(--accent-cyan);
}

.advanced-content {
  margin-top: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.input-field-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.input-field-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Guide Pulse Animation for Category Selection */
@keyframes dropzoneFocusPulse {
  0% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }
  35% {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.05);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.018);
  }
}

.dropzone-box.dropzone-pulse {
  animation: dropzoneFocusPulse 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .app-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .workspace-panel {
    padding: 20px 16px;
  }
  .audio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .audio-mode-selector {
    width: 100%;
  }
  .audio-mode-pill {
    flex: 1;
    justify-content: center;
  }
  .refinement-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .refinement-row .segmented-control {
    width: 100%;
  }
  .refinement-row .segment-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  .result-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .btn-result-action {
    padding: 14px 16px;
  }
}

/* Small Smartphone Optimization (iPhone 13 mini, SE, Galaxy, max-width: 480px) */
@media (max-width: 480px) {
  .app-container {
    padding: 14px 12px 60px;
  }

  .app-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 20px;
    gap: 10px;
  }

  .brand-group {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo-badge {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand-logo-badge svg,
  .brand-logo-badge img {
    width: 20px;
    height: 20px;
  }

  .brand-titles {
    min-width: 0;
  }

  .brand-title {
    font-size: 19px;
  }

  .spatialux {
    font-size: 12.5px;
  }

  .header-status-pill {
    font-size: 10px;
    padding: 5px 9px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
  }

  .hero-section {
    margin-bottom: 24px;
  }

  .hero-pill {
    font-size: 10px;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 13px;
    line-height: 1.45;
  }

  /* Category Grid: Compact, sleek cards that don't take over the screen */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .category-card {
    padding: 14px 14px 12px;
    border-radius: var(--radius-md);
  }

  .card-top {
    margin-bottom: 8px;
  }

  .card-icon-wrap {
    width: 34px;
    height: 34px;
  }

  .card-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .card-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .card-title {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .card-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .card-footer {
    padding-top: 8px;
    font-size: 10.5px;
  }

  /* Workspace & Dropzones */
  .workspace-panel {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .dropzones-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .dropzone-box {
    padding: 22px 14px;
    min-height: 140px;
  }

  .dropzone-title {
    font-size: 15px;
  }

  .dropzone-subtext {
    font-size: 11.5px;
  }

  /* Refinements & Sliders */
  .refinements-section {
    padding: 14px 12px;
    margin-bottom: 18px;
  }

  .refinement-header-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .refinement-title {
    font-size: 13.5px;
  }

  .hint-val {
    font-size: 12px;
    margin-left: 0;
    margin-top: 2px;
    display: inline-block;
  }

  .slider-ticks {
    font-size: 9.5px;
    padding: 0 1px;
  }

  .slider-ticks span {
    padding: 3px 1px;
  }

  .audio-mode-pill {
    padding: 6px 4px;
    font-size: 11px;
    gap: 4px;
  }

  .btn-primary-action {
    padding: 15px 16px;
    font-size: 13px;
  }
}

/* Auto-Inspect Banner (Intelligent Mesh Detection) */
.auto-inspect-banner {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(139, 92, 246, 0.15);
}

.inspect-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c4b5fd;
}

.inspect-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9d5ff;
}

.inspect-selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inspect-selector-group label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.inspect-select {
  background: rgba(20, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.inspect-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

/* App Footer - Apple Glass Theme */
.app-footer {
  margin-top: 60px;
  padding: 28px 20px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 16, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
}

.footer-sep {
  opacity: 0.3;
}

.footer-email {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-email:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Stripe Checkout Modal & Monetization (Apple Glass)
   ========================================================================== */
.btn-price-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.3px;
  text-shadow: none;
}

.btn-action-ar-apple {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  transition: transform var(--transition-fast) !important;
}

.apple-ar-badge-img {
  width: 100% !important;
  height: 52px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.45) !important;
  transition: all var(--transition-fast) !important;
}

.btn-action-ar-apple:hover .apple-ar-badge-img {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(0, 122, 255, 0.65) !important;
}

.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.checkout-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(22, 22, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  text-align: center;
}

.checkout-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkout-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.checkout-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.checkout-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  margin-bottom: 22px;
}

.checkout-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  text-align: left;
}

.checkout-tier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkout-tier:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.checkout-tier.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(0, 242, 254, 0.3);
}

.tier-badge-pill {
  position: absolute;
  top: -9px;
  right: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.checkout-tier.active .tier-radio {
  border-color: #00f2fe;
}

.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f2fe;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.checkout-tier.active .tier-dot {
  opacity: 1;
  transform: scale(1);
}

.tier-info {
  flex: 1;
}

.tier-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.tier-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.tier-price {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

/* Community Promo Code Input */
.promo-code-container {
  margin: 14px 0 10px;
  text-align: left;
}

.promo-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 14px;
  transition: all var(--transition-fast);
}

.promo-input-group:focus-within {
  border-color: rgba(0, 242, 254, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
}

.promo-icon {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  margin-right: 8px;
}

.promo-code-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: #ffffff;
  min-width: 0;
}

.promo-code-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-apply-promo {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-apply-promo:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.5);
  color: #00f2fe;
}

.btn-apply-promo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.promo-code-msg {
  font-size: 11.5px;
  margin-top: 6px;
  padding-left: 14px;
  line-height: 1.4;
}

.promo-code-msg.success {
  color: #10b981;
}

.promo-code-msg.error {
  color: #f87171;
}

.checkout-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0 16px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-divider span {
  padding: 0 12px;
}

.btn-checkout-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #050508;
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  transition: all var(--transition-fast);
}

.btn-checkout-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.55);
}

.checkout-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Glass Notification Toast */
.spatial-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  background: rgba(16, 24, 38, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spatial-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.spatial-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


