/* ==========================================================================
   Hit Song Factory — Premium Design System
   Telegram Mini App · Premium Light Theme ("Soft Light")
   ========================================================================== */

/* ── CSS Variables (Premium Light Theme defaults) ───────────────────────── */
:root {
  --bg: #fdfcff;
  --text: #1a1523;
  --hint: #6f6581;
  --link: #7c3aed;
  --btn-bg: linear-gradient(135deg, #f43f5e 0%, #ec4899 40%, #8b5cf6 100%);
  --btn-text: #ffffff;
  --secondary-bg: rgba(255, 255, 255, 0.7);
  --accent: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.2);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(255, 255, 255, 1);
  --header-bg: rgba(253, 252, 255, 0.75);
  --radius: 24px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Light theme overrides (Ensure consistent layout) ───────────────────── */
.light-theme {
  --bg: #fdfbfe;
  --text: #2a2438;
  --hint: #7b708b;
  --secondary-bg: #f5f0f9;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(124, 58, 237, 0.08);
}

.light-theme .note {
  opacity: 0.12 !important;
}

.light-theme .btn-outline {
  border-color: rgba(124, 58, 237, 0.15);
  color: var(--text);
}

.light-theme .form-input {
  border-color: rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.light-theme .order-summary-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.08);
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(244, 63, 94, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  height: 100vh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  position: relative;
  height: var(--app-height, 100%);
  width: 100%;
  overflow: hidden;
}

/* ── Screen System ─────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
  transform: translateX(30px);
  will-change: transform, opacity;
}

.screen.active {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0s;
}

.screen.slide-out-left {
  transform: translateX(-30px);
  opacity: 0;
}

.screen.slide-in-right {
  transform: translateX(30px);
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px;
  padding-bottom: calc(100px + var(--safe-bottom));
}

/* ── Typography ────────────────────────────────────────────────────────── */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.param-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 1 — Welcome
   ═══════════════════════════════════════════════════════════════════════ */

#screen-welcome {
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  overflow: hidden;
}

/* Floating music notes */
.floating-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.note {
  position: absolute;
  font-size: 24px;
  opacity: 0.08;
  animation: floatNote linear infinite;
  will-change: transform;
}

.note-1  { left: 5%;  font-size: 28px; animation-duration: 12s; animation-delay: 0s;   top: 10%; }
.note-2  { left: 15%; font-size: 20px; animation-duration: 15s; animation-delay: -2s;  top: 25%; }
.note-3  { left: 30%; font-size: 32px; animation-duration: 10s; animation-delay: -4s;  top: 5%;  }
.note-4  { left: 50%; font-size: 22px; animation-duration: 14s; animation-delay: -1s;  top: 15%; }
.note-5  { left: 65%; font-size: 26px; animation-duration: 11s; animation-delay: -3s;  top: 30%; }
.note-6  { left: 80%; font-size: 18px; animation-duration: 16s; animation-delay: -5s;  top: 8%;  }
.note-7  { left: 90%; font-size: 30px; animation-duration: 13s; animation-delay: -6s;  top: 20%; }
.note-8  { left: 40%; font-size: 24px; animation-duration: 17s; animation-delay: -7s;  top: 35%; }
.note-9  { left: 70%; font-size: 20px; animation-duration: 9s;  animation-delay: -8s;  top: 40%; }
.note-10 { left: 20%; font-size: 26px; animation-duration: 18s; animation-delay: -9s;  top: 45%; }

@keyframes floatNote {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.06;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.welcome-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.logo-area {
  margin-bottom: 40px;
}

.logo-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: logoPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.logo-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #c084fc, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.logo-subtitle {
  font-size: 16px;
  color: var(--hint);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* Feature badges */
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 54px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
}

.btn-pay {
  background: linear-gradient(135deg, var(--success), #16a34a);
  margin-top: 24px;
}

/* Glow animation */
.btn-glow {
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(168, 85, 247, 0.15);
  animation: btnGlow 2.0s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(168, 85, 247, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 80px rgba(168, 85, 247, 0.25);
    transform: scale(1.03);
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.08);
}

.btn-outline:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 2 — Params (Chips, Gender Cards, Style Cards)
   ═══════════════════════════════════════════════════════════════════════ */
.param-group {
  margin-bottom: 28px;
}

/* Chips row */
.chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chip:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}

.chip:active {
  transform: scale(0.96);
}

.chip.active {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

/* Gender cards */
.gender-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gender-card:active {
  transform: scale(0.96);
}

.gender-card.active {
  border-color: var(--accent) !important;
  background: rgba(124, 58, 237, 0.08) !important;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2) !important;
  transform: scale(0.98);
}

.gender-card.active span {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.gender-icon {
  font-size: 36px;
}

.gender-label {
  font-size: 15px;
  font-weight: 600;
}

/* Style grid */
.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.style-card:active {
  transform: scale(0.95);
}

.style-card.active {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  transform: scale(1.02);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
  }
  100% {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
  }
}

/* Play buttons inside genre style cards */
.genre-play-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.light-theme .genre-play-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.genre-play-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  transform: scale(1.15);
}

.genre-play-btn:active {
  transform: scale(0.9);
}

.genre-play-btn svg {
  display: block;
}

/* Playing animation/glow for style card */
.style-card.genre-playing {
  animation: genreGlow 1.5s infinite alternate;
  border-color: var(--accent);
}

@keyframes genreGlow {
  0% {
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
  }
  100% {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
  }
}

.style-icon {
  font-size: 28px;
}

.style-label {
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 3 — Story Form
   ═══════════════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 18px 16px 8px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
  resize: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background: rgba(168, 85, 247, 0.04);
}

.floating-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--hint);
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-textarea ~ .floating-label {
  top: 18px;
  transform: translateY(0);
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
  top: 8px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.input-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--hint);
  padding-left: 16px;
  opacity: 0.7;
}

/* Character counter */
.char-counter {
  margin-top: 24px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.char-counter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.char-counter-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease;
  background: #ef4444;
}

.char-counter-fill.level-low    { background: #ef4444; }
.char-counter-fill.level-mid    { background: #eab308; }
.char-counter-fill.level-good   { background: var(--success); }

.char-counter-text {
  font-size: 13px;
  color: var(--hint);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 4 — Generating
   ═══════════════════════════════════════════════════════════════════════ */
#screen-generating {
  justify-content: center;
  align-items: center;
}

.generating-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}

.generating-icon {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.pulse-note {
  font-size: 56px;
  animation: notePulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes notePulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ringPulse 2s ease-out infinite;
  opacity: 0;
}

.pulse-ring-2 {
  animation-delay: 0.8s;
}

@keyframes ringPulse {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.generating-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.generating-subtitle {
  font-size: 15px;
  color: var(--hint);
  margin-bottom: 32px;
}

/* Animated dots */
.dots-anim::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%  { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* Audio bars */
.generating-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.generating-bars .bar {
  width: 6px;
  background: linear-gradient(to top, var(--accent), #c084fc);
  border-radius: 3px;
  animation: barBounce 1.2s ease-in-out infinite;
}

.generating-bars .bar:nth-child(1) { height: 16px; animation-delay: 0s; }
.generating-bars .bar:nth-child(2) { height: 28px; animation-delay: 0.15s; }
.generating-bars .bar:nth-child(3) { height: 36px; animation-delay: 0.3s; }
.generating-bars .bar:nth-child(4) { height: 24px; animation-delay: 0.45s; }
.generating-bars .bar:nth-child(5) { height: 20px; animation-delay: 0.6s; }

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 5 — Lyrics Review
   ═══════════════════════════════════════════════════════════════════════ */
.lyrics-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 45vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lyrics-text {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.lyrics-text .lyrics-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 12px 0 4px;
  padding: 2px 10px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 6px;
}

.lyrics-text .lyrics-label:first-child {
  margin-top: 0;
}

.lyrics-editor {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  margin-bottom: 24px;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.lyrics-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lyrics-secondary-actions {
  display: flex;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 6 — Tariff Selection
   ═══════════════════════════════════════════════════════════════════════ */
.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tariff-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  touch-action: manipulation;
  min-height: 80px;
}

.tariff-card:active {
  transform: scale(0.98);
}

.tariff-card.active {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.15);
}

.tariff-card.popular {
  padding-top: 32px;
}

.tariff-card.popular.active {
  border-width: 2px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.25), 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.tariff-card.popular.active:active {
  transform: scale(1);
}

.tariff-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-alt {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.tariff-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.tariff-card.active .tariff-radio {
  border-color: var(--accent);
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tariff-card.active .radio-dot {
  transform: scale(1);
}

.tariff-info {
  flex: 1;
  min-width: 0;
}

.tariff-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tariff-icon {
  font-size: 20px;
}

.tariff-name {
  font-size: 16px;
  font-weight: 600;
}

.tariff-desc {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.4;
}

.tariff-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCREEN 7 — Payment & Success
   ═══════════════════════════════════════════════════════════════════════ */
.order-summary-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.summary-label {
  font-size: 14px;
  color: var(--hint);
}

.summary-value {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.summary-divider {
  height: 1px;
  background: var(--card-border);
  margin: 8px 0;
}

.summary-total .summary-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.summary-total .summary-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Success view ──────────────────────────────────────────────────── */
#screen-payment {
  position: absolute;
}

.success-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: var(--bg);
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
}

/* Checkmark animation */
.success-check {
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
}

.checkmark {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success);
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke-linecap: round;
  stroke: var(--success);
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-text {
  font-size: 15px;
  color: var(--hint);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 280px;
}

/* ── Confetti ──────────────────────────────────────────────────────── */
.confetti-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  will-change: transform;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

/* Smooth scrollbar */
.screen-scroll::-webkit-scrollbar {
  width: 3px;
}
.screen-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.screen-scroll::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 3px;
}

/* Prevent pull-to-refresh on mobile */
body {
  overscroll-behavior-y: contain;
}

/* Keyboard pushes content */
@supports (height: 100dvh) {
  body {
    height: 100dvh;
  }
}

/* Small screen tweaks */
@media (max-width: 350px) {
  .logo-title {
    font-size: 26px;
  }
  .logo-icon {
    font-size: 56px;
  }
  .style-grid {
    gap: 6px;
  }
  .style-card {
    padding: 14px 6px;
  }
  .chips-row {
    gap: 6px;
  }
  .chip {
    font-size: 12px;
    padding: 10px 6px;
  }
}

/* ── AI Chat Screen ─────────────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: bubbleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  word-wrap: break-word;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble .bubble-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.7;
}

.chat-bubble.ai .bubble-name {
  color: var(--accent);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Chat input area */
.chat-input-area {
  padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-bottom));
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 4px 4px 4px 16px;
  transition: border-color var(--transition);
}

.chat-input-wrapper:focus-within {
  border-color: var(--accent);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 8px 0;
  resize: none;
  max-height: 120px;
  min-height: 20px;
}

.chat-input::placeholder {
  color: var(--hint);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  opacity: 0.5;
}

.chat-send-btn:not(:disabled) {
  opacity: 1;
}

.chat-send-btn:not(:disabled):hover {
  background: #9333ea;
  transform: scale(1.05);
}

.chat-send-btn:not(:disabled):active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  cursor: not-allowed;
}

/* ── Legal Links & Modals ──────────────────────────────────────────── */
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
}

.legal-links a {
  color: var(--hint);
  text-decoration: none;
  transition: color var(--transition);
}

.legal-links a:hover,
.legal-links a:active {
  color: var(--accent);
  text-decoration: underline;
}

.legal-sep {
  color: var(--hint);
  opacity: 0.5;
  font-size: 8px;
}

/* Legal Modal Overlay */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.legal-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.legal-modal-content {
  background: var(--bg);
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal.open .legal-modal-content {
  transform: translateY(0);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.legal-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}

.legal-modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.legal-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hint);
}

.legal-modal-body h3 {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-modal-body p {
  margin-bottom: 8px;
}

.legal-modal-body ul {
  margin: 8px 0;
  padding-left: 20px;
}

.legal-modal-body li {
  margin-bottom: 4px;
}

.legal-modal-body strong {
  color: var(--text);
}

/* ── Microphone & Recording ────────────────────────────────────────── */
.chat-mic-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--hint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-mic-btn:hover {
  color: var(--accent);
}

.chat-mic-btn:active {
  transform: scale(0.9);
}

.chat-mic-btn.recording {
  color: #ef4444;
  animation: micPulse 1s infinite;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* Recording indicator bar */
.recording-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #ef4444;
  animation: fadeIn 0.2s ease;
}

.recording-bar.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.recording-text {
  flex: 1;
  font-size: 13px;
  color: var(--hint);
}

.recording-cancel {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.recording-cancel:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Voice message bubble */
.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ==========================================================================
   Music Player Screen
   ========================================================================== */

/* ── Player view layout ───────────────────────────────────────────────── */
.player-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  background: var(--bg);
  z-index: 10;
}

.player-header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent), #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Generating state ─────────────────────────────────────────────────── */
.player-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  gap: 16px;
}

.player-gen-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.player-gen-subtitle {
  font-size: 0.9rem;
  color: var(--hint);
}

/* Vinyl loader */
.vinyl-loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
}

.vinyl-loader-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a2e, #2d1b69, #1a1a2e, #2d1b69, #1a1a2e);
  animation: spin 3s linear infinite;
  position: relative;
}

.vinyl-loader-disc::after {
  content: '🎵';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.vinyl-loader-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  animation: spin 2s linear infinite;
}

.vinyl-loader-ring-2 {
  inset: -16px;
  border-top-color: #c084fc;
  animation-duration: 3s;
  animation-direction: reverse;
}

/* ── 3D Vinyl disc ────────────────────────────────────────────────────── */
.vinyl-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  perspective: 800px;
}

.vinyl-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a2e 0%, #2d1b69 25%, #1a1a2e 50%, #2d1b69 75%, #1a1a2e 100%);
  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.3),
    0 0 30px rgba(168, 85, 247, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: rotateX(10deg);
  transition: transform 0.5s ease;
}

.vinyl-disc.spinning {
  animation: vinyl-spin 3s linear infinite;
}

@keyframes vinyl-spin {
  from { transform: rotateX(10deg) rotateZ(0deg); }
  to { transform: rotateX(10deg) rotateZ(360deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.vinyl-logo {
  font-size: 1.8rem;
}

.vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vinyl-groove {
  inset: 20%;
}

.vinyl-groove-2 {
  inset: 30%;
}

.vinyl-groove-3 {
  inset: 40%;
}

/* ── Equalizer ────────────────────────────────────────────────────────── */
.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 20px;
}

.eq-bar {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transition: height 0.15s ease;
}

.equalizer.active .eq-bar {
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.equalizer.active .eq-bar:nth-child(1) { animation-delay: 0s; }
.equalizer.active .eq-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer.active .eq-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer.active .eq-bar:nth-child(4) { animation-delay: 0.05s; }
.equalizer.active .eq-bar:nth-child(5) { animation-delay: 0.15s; }
.equalizer.active .eq-bar:nth-child(6) { animation-delay: 0.25s; }
.equalizer.active .eq-bar:nth-child(7) { animation-delay: 0.08s; }

@keyframes eq-bounce {
  0% { height: 6px; opacity: 0.6; }
  100% { height: 28px; opacity: 1; }
}

/* ── Track info ───────────────────────────────────────────────────────── */
.track-info {
  text-align: center;
  margin-bottom: 16px;
}

.track-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.track-style {
  font-size: 0.85rem;
  color: var(--hint);
}

/* ── Progress bar ─────────────────────────────────────────────────────── */
.progress-container {
  margin-bottom: 20px;
  padding: 0 4px;
}

.progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #c084fc);
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-container:hover .progress-thumb,
.progress-container.active .progress-thumb {
  opacity: 1;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--hint);
}

/* ── Player controls ──────────────────────────────────────────────────── */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.ctrl-btn:active {
  transform: scale(0.95);
}

.ctrl-play {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  box-shadow: 0 4px 20px var(--accent-glow);
  color: white;
}

.ctrl-play:hover {
  color: white;
  transform: scale(1.08);
  box-shadow: 0 6px 30px var(--accent-glow);
}

/* ── Download button ──────────────────────────────────────────────────── */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 28px;
}

.btn-download:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-download:active {
  transform: scale(0.98);
}

/* ── Track list ───────────────────────────────────────────────────────── */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all var(--transition);
}

.track-card:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.06);
}

.track-card.active {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 15px var(--accent-glow);
}

.track-card-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.track-card.active .track-card-play {
  animation: pulse-play 1.5s ease-in-out infinite;
}

@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.track-card-info {
  flex: 1;
  min-width: 0;
}

.track-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-duration {
  font-size: 0.8rem;
  color: var(--hint);
}

.track-card-download {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: none;
  color: var(--hint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.track-card-download:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Player close button ──────────────────────────────────────────────── */
.player-close {
  margin-top: 8px;
  margin-bottom: 20px;
}

/* ── Light theme overrides for player ─────────────────────────────────── */
.light-theme .vinyl-disc {
  background: conic-gradient(from 0deg, #e8e8f0 0%, #c4b5fd 25%, #e8e8f0 50%, #c4b5fd 75%, #e8e8f0 100%);
}

.light-theme .vinyl-loader-disc {
  background: conic-gradient(from 0deg, #e8e8f0, #c4b5fd, #e8e8f0, #c4b5fd, #e8e8f0);
}

.light-theme .progress-bar {
  background: rgba(0, 0, 0, 0.08);
}

/* ── Share & Guest CTA styling ───────────────────────────────────────── */
.btn-share {
  transition: all var(--transition);
}

.btn-share:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-share:active {
  transform: scale(0.98);
}

.btn-guest-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-guest-cta:active {
  transform: scale(0.98);
}

/* ── Discount Banner ─────────────────────────────────────────────────── */
.discount-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(236, 72, 153, 0.9);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  white-space: nowrap;
}

.discount-banner.fade-out {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -40px);
    opacity: 0;
  }
}

/* =======================================================================
   Landing Page & Reviews
   ======================================================================= */
.landing-section {
  width: 100%;
  margin-bottom: 32px;
  text-align: left;
}

.landing-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  text-align: center;
}

.step-card {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  gap: 16px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-info p {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.4;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.value-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.value-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.value-item h5 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.4;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light-theme .review-avatar {
  background: rgba(0, 0, 0, 0.05);
}

.review-user {
  display: flex;
  flex-direction: column;
}

.review-user strong {
  font-size: 14px;
  font-weight: 600;
}

.review-user .stars {
  color: #fbbf24;
  font-size: 12px;
}

.review-text {
  font-size: 13px;
  color: var(--hint);
  font-style: italic;
  line-height: 1.4;
}

/* =======================================================================
   Share Sheet (Bottom Sheet)
   ======================================================================= */
.share-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.share-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--secondary-bg);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.3, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.share-sheet.active {
  transform: translateY(0);
}

.share-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  margin: -12px auto 20px;
}

.share-sheet-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.share-sheet-subtitle {
  font-size: 14px;
  color: var(--hint);
  text-align: center;
  margin-bottom: 24px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.share-btn:active {
  transform: scale(0.9);
}

.share-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-icon.tg { background: #2AABEE; }
.share-icon.wa { background: #25D366; }
.share-icon.vb { background: #7360F2; }
.share-icon.copy { background: #64748b; }

.share-btn span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

/* Video Styles */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: #000;
}

.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-unmute {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-unmute:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.8);
}

/* Video Styles */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: #000;
}
.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-unmute {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  z-index: 10;
}
.btn-unmute:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.8);
}
 
 
.sticky-cta-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px calc(16px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  z-index: 100;
  pointer-events: none;
}
.sticky-cta-container button {
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.quick-replies-container {
  display: none;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-replies-container::-webkit-scrollbar {
  display: none;
}
.quick-reply-chip {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.quick-reply-chip:active {
  transform: scale(0.95);
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════
   Global Progress & Timer
   ═══════════════════════════════════════════════════════════════════════ */
.global-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 12px;
  background: var(--bg);
  z-index: 50;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 1px solid var(--card-border);
}
.global-progress.visible {
  transform: translateY(0);
}
.global-progress .progress-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--hint);
  margin-bottom: 8px;
}
.global-progress .progress-track {
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  overflow: hidden;
}
.global-progress .progress-fill {
  height: 100%;
  background: var(--accent);
  width: 25%;
  transition: width 0.4s ease;
}
.has-progress .screen-scroll, .has-progress .chat-container {
  padding-top: 64px;
}
.timer-banner {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.timer-icon {
  font-size: 24px;
  animation: pulse-timer 2s infinite;
}
.timer-content {
  flex: 1;
}
.timer-title {
  font-size: 13px;
  font-weight: 600;
  color: #ff3b30;
  margin-bottom: 4px;
}
.timer-countdown {
  font-size: 12px;
  color: var(--text);
}
#timer-digits {
  font-weight: 700;
  color: #ff3b30;
  font-variant-numeric: tabular-nums;
}
@keyframes pulse-timer {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Fortune Wheel
   ═══════════════════════════════════════════════════════════════════════ */

/* Button on Welcome Screen */
.btn-fortune-wheel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  position: relative;
  box-sizing: border-box;
  text-align: left;
  animation: btnWheelPulse 3.5s ease-in-out infinite;
}
.btn-fortune-wheel:hover {
  background: rgba(168, 85, 247, 0.04);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--text);
}
.btn-fortune-wheel:active {
  transform: scale(0.98);
}
.btn-fortune-wheel.available {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15), 0 4px 15px rgba(0, 0, 0, 0.02);
  animation: btnWheelPulseAvailable 2.5s ease-in-out infinite;
}
.wheel-btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}
.btn-fortune-wheel.available .wheel-btn-icon {
  background: rgba(245, 158, 11, 0.15);
}
.wheel-btn-badge {
  display: none;
  position: absolute;
  top: 12px;
  left: 44px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: badgePulse 1.5s ease-in-out infinite;
}
.wheel-btn-badge.active {
  display: block;
}

@keyframes btnWheelPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: var(--card-border);
  }
  50% {
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.08), 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(168, 85, 247, 0.25);
  }
}
@keyframes btnWheelPulseAvailable {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(168, 85, 247, 0.25);
  }
  50% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.2), 0 4px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(245, 158, 11, 0.45);
  }
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Video Slider CSS
   ═══════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════
   Upgraded Premium Video Carousel CSS
   ═══════════════════════════════════════════════════════════════════════ */
.video-examples-section {
  padding-bottom: 24px;
}
.video-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  touch-action: pan-y;
}
.video-slider-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #000;
}
.video-slider {
  display: flex;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.video-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: #000;
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient Cover Overlay */
.video-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.video-cover-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: floatIcon 3s ease-in-out infinite;
}
.video-cover-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.video-cover-sub {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.video-wrapper.playing .video-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes floatIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Glassmorphism Arrows (positioned inside the bounds) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.9);
  background: rgba(255, 255, 255, 0.3);
}
.slider-arrow.prev {
  left: 12px;
}
.slider-arrow.next {
  right: 12px;
}
.slider-arrow[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.play-overlay svg {
  margin-left: 2px;
}
.video-wrapper.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}



/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

/* Active Prize Banner */
.wheel-prize-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 auto 20px auto;
  max-width: 340px;
  animation: prizeBannerGlow 2s ease-in-out infinite;
}
.prize-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.prize-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
}
.prize-banner-timer {
  font-size: 12px;
  color: var(--hint);
  font-variant-numeric: tabular-nums;
}
@keyframes prizeBannerGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.1); }
  50% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.25); }
}

/* Wheel Modal */
.modal-wheel-content {
  background: var(--secondary-bg);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  padding: 24px;
  width: 92%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  animation: modalSlideUp 0.3s ease;
}
.wheel-modal-title {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 4px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wheel-modal-subtitle {
  font-size: 14px;
  color: var(--hint);
  margin-bottom: 20px;
}

/* Canvas Container */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: #f59e0b;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
#wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 60px rgba(245, 158, 11, 0.15),
              inset 0 0 20px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* Spin Button */
.btn-spin {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  margin-bottom: 12px;
}
.btn-spin:active {
  transform: scale(0.96);
}
.btn-spin:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-spin.spinning {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: none;
}

/* Cooldown */
.wheel-cooldown {
  text-align: center;
  font-size: 14px;
  color: var(--hint);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 12px;
}
.cooldown-timer {
  font-weight: 700;
  color: #f59e0b;
  font-variant-numeric: tabular-nums;
}

/* Rules */
.wheel-rules {
  font-size: 12px;
  color: var(--hint);
  line-height: 1.6;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
  margin-top: 4px;
}
.wheel-rules p {
  margin: 4px 0;
}

/* Prize Result Modal */
.modal-prize-content {
  background: var(--secondary-bg);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  padding: 32px 24px;
  width: 88%;
  max-width: 340px;
  text-align: center;
  animation: modalSlideUp 0.3s ease, confettiBurst 0.5s ease;
}
.prize-result-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: prizeIconBounce 0.6s ease;
}
.prize-result-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f59e0b, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prize-result-desc {
  font-size: 15px;
  color: var(--hint);
  line-height: 1.5;
  margin-bottom: 8px;
}

@keyframes prizeIconBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Modal close button */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--hint);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

/* Photoshoot screen styling */
.photo-tariff-card {
  cursor: pointer;
  padding: 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: all var(--transition);
}

.photo-tariff-card.active {
  border: 2px solid var(--accent) !important;
  background: rgba(168, 85, 247, 0.1) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

#screen-admin-photo .tariff-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  transition: all var(--transition);
  padding: 16px;
  display: block;
  min-height: auto;
  align-items: initial;
  gap: initial;
}

#screen-admin-photo .tariff-card.active {
  border: 2px solid var(--accent) !important;
  background: rgba(168, 85, 247, 0.1) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

#photo-upload-zone {
  border: 2px dashed var(--card-border) !important;
  background: var(--card-bg) !important;
}

/* Bottom Sheet Drawer */
.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}

.bottom-sheet.show {
  visibility: visible;
  pointer-events: auto;
}

.bottom-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-sheet.show .bottom-sheet-backdrop {
  opacity: 1;
}

.bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--secondary-bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid var(--card-border);
  padding: 8px 16px 24px 16px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.bottom-sheet.show .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.btn-close-sheet {
  background: none;
  border: none;
  color: var(--hint);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* ==========================================================================
   Welcome Screen Dashboard & Grid Layout (Option 2)
   ========================================================================== */
.main-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 20px 24px 20px;
}

.product-card {
  position: relative;
  cursor: pointer;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 12px 35px rgba(124, 58, 237, 0.08), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.product-card-primary::before {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

.product-card-secondary::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:active {
  transform: scale(0.96);
  box-shadow: 0 5px 20px rgba(124, 58, 237, 0.05);
}

.product-card .product-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.icon-glow-pink {
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.icon-glow-purple {
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.icon-glow-blue {
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.product-card:active .product-icon {
  transform: scale(1.1);
}

.product-card h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  z-index: 2;
  position: relative;
}

.product-card p {
  margin: 0;
  font-size: 12px;
  color: var(--hint);
  line-height: 1.3;
  z-index: 2;
  position: relative;
}

.glass-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(124, 58, 237, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
}

.glass-button:active {
  transform: scale(0.96);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.03);
}

/* Photo examples grid */
.photo-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.photo-example-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.05);
  background: #f5f0f9;
}

.photo-example-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@keyframes floatFAB { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }

@keyframes pulseSoft { 0% { transform: scale(1); box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2); } 50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4); } 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2); } }

@keyframes pulseSoftPurple { 0% { transform: scale(1); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2); } 50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4); } 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2); } }

/* Next Stage Button in Chat */
.btn-chat-next-stage {
  display: block;
  width: calc(100% - 32px);
  margin: 12px auto;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulseSoftPurple 2s infinite ease-in-out;
  box-sizing: border-box;
  z-index: 100;
}

.btn-chat-next-stage.hidden {
  display: none !important;
}

.btn-chat-next-stage:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Share Modal Grid */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  padding: 10px 0;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.share-item:active {
  transform: scale(0.9);
}

.share-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all 0.2s ease;
}

.share-item:active .share-icon-wrapper {
  filter: brightness(0.9);
}

.share-tg {
  background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
  box-shadow: 0 4px 14px rgba(33, 150, 200, 0.3);
}

.share-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.share-viber {
  background: linear-gradient(135deg, #7c2ae8 0%, #6f22cc 100%);
  box-shadow: 0 4px 14px rgba(111, 34, 204, 0.3);
}

.share-fb {
  background: linear-gradient(135deg, #1877f2 0%, #135cb4 100%);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

.share-tw {
  background: linear-gradient(135deg, #15202b 0%, #000000 100%);
  box-shadow: 0 4px 14px rgba(21, 32, 43, 0.3);
}

.share-copy {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.share-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
