:root {
  --bg: #0d0e12;
  --bg-gradient: radial-gradient(circle at 50% -10%, #173822 0%, #0e1d14 35%, #0d0e12 75%);
  --surface: rgba(26, 28, 35, 0.75);
  --surface-solid: #181a20;
  --surface-light: rgba(40, 43, 54, 0.7);
  --surface-hover: rgba(50, 54, 68, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(29, 185, 84, 0.6);
  --accent: #1db954;
  --accent-hover: #1ed760;
  --accent-glow: rgba(29, 185, 84, 0.35);
  --accent-gradient: linear-gradient(135deg, #1db954 0%, #1aa34a 100%);
  --text: #f5f5f7;
  --text-muted: #9ba1ad;
  --error: #ff5252;
  --error-bg: rgba(255, 82, 82, 0.12);
  --warning: #ffb300;
  --stripe: #635bff;
  --stripe-glow: rgba(99, 91, 255, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(29, 185, 84, 0.25);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body.auth-page {
  justify-content: center;
  padding: 40px 20px;
  background-image: radial-gradient(circle at 50% 20%, rgba(29, 185, 84, 0.12) 0%, rgba(13, 14, 18, 0.95) 70%);
}

body.generator-page {
  gap: 28px;
  padding: 32px 20px 240px;
}

/* ==========================================================================
   Header & User Bar
   ========================================================================== */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(26, 28, 35, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  box-shadow: var(--shadow-subtle);
  animation: slideDown 0.6s var(--ease-smooth) both;
  z-index: 10;
}

.user-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite;
}

.user-email {
  color: var(--text-muted);
  font-weight: 500;
}

.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-smooth);
}

.logout-link:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.25);
  transform: translateY(-1px);
}

.app-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.7s var(--ease-smooth) both;
  max-width: 680px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.15);
}

.spotify-badge-icon {
  animation: rotateGlow 8s linear infinite;
}

.app-header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 30%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header h1 span {
  background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Preset Chips */
.preset-chips-wrapper {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.preset-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.preset-chip:hover {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.2);
}

.preset-chip:active, .preset-chip.chip-active {
  transform: scale(0.96);
  background: rgba(29, 185, 84, 0.3);
}

/* ==========================================================================
   Preview & Empty State
   ========================================================================== */
.preview-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  min-height: 380px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-subtle);
  animation: fadeInUp 0.8s var(--ease-smooth) both;
  transition: all 0.3s ease;
}

.empty-state:hover {
  border-color: rgba(29, 185, 84, 0.4);
  box-shadow: var(--shadow-glow);
}

.empty-state-visual {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vinyl-record {
  position: absolute;
  right: 5px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #0a0a0a 30%, #1c1c1c 45%, #0d0d0d 60%, #1e1e1e 80%, #000 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border: 2px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 14s linear infinite;
}

.vinyl-center {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.empty-poster-silhouette {
  position: absolute;
  left: 10px;
  width: 120px;
  height: 165px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  transform: rotate(-4deg);
  transition: transform 0.4s var(--ease-spring);
}

.empty-state:hover .empty-poster-silhouette {
  transform: rotate(0deg) scale(1.05);
}

.silhouette-art {
  width: 100%;
  height: 80px;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.silhouette-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.s-line-title { width: 80%; background: var(--accent); }
.s-line-sub { width: 50%; }
.s-line-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.empty-state-text {
  text-align: center;
}

.empty-state-text h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.empty-state-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
}

/* ==========================================================================
   Poster Display & Canvas Card
   ========================================================================== */
.poster-display-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.poster-display-wrapper.appear-anim {
  animation: zoomFadeIn 0.6s var(--ease-spring) both;
}

.poster-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 28, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-subtle);
  animation: slideDown 0.4s var(--ease-smooth);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.action-btn:hover {
  background: var(--accent);
  color: #06180c;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.35);
}

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

.canvas-card {
  position: relative;
  display: inline-flex;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 40px rgba(29, 185, 84, 0.1);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.canvas-card:hover {
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.85), 0 0 50px rgba(29, 185, 84, 0.2);
}

canvas {
  display: block;
  max-height: 72vh;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 24px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
}

.sound-wave span {
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: soundWave 1.2s ease-in-out infinite alternate;
}
.sound-wave span:nth-child(1) { animation-delay: 0.1s; height: 30%; }
.sound-wave span:nth-child(2) { animation-delay: 0.3s; height: 80%; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.sound-wave span:nth-child(4) { animation-delay: 0.4s; height: 60%; }
.sound-wave span:nth-child(5) { animation-delay: 0.25s; height: 40%; }

.loading-spinner-box p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   Floating Dock / Generator Form
   ========================================================================== */
.floating-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(100% - 40px);
  max-width: 820px;
  background: rgba(26, 28, 35, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(29, 185, 84, 0.08);
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  margin: 0 auto;
  animation: slideUpDock 0.7s var(--ease-spring) both;
  transition: all 0.3s ease;
}

.floating-dock:focus-within {
  border-color: rgba(29, 185, 84, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(29, 185, 84, 0.2);
}

.input-field-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  pointer-events: none;
}

#link-input {
  width: 100%;
  padding: 14px 105px 14px 44px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-light);
  color: var(--text);
  transition: all 0.25s var(--ease-smooth);
}

#link-input::placeholder {
  color: var(--text-muted);
}

#link-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(45, 49, 62, 0.9);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.25);
}

.field-quick-btn {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.field-quick-btn:hover {
  background: var(--accent);
  color: #06180c;
  border-color: var(--accent);
}

.clear-btn {
  right: 86px;
  padding: 6px 8px;
  border-radius: 50%;
}

.control-selects-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.custom-select-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.select-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 4px;
}

select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-light);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231db954' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.25s var(--ease-smooth);
}

select:hover {
  border-color: rgba(29, 185, 84, 0.4);
  background-color: var(--surface-hover);
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.25);
}

#generate-btn {
  flex: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  margin-top: 18px;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #06180c;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(29, 185, 84, 0.4);
  transition: all 0.25s var(--ease-smooth);
}

#generate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.55);
}

#generate-btn:active:not(:disabled) {
  transform: translateY(0);
}

#generate-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#generate-btn .btn-arrow-icon {
  transition: transform 0.25s ease;
}

#generate-btn:hover:not(:disabled) .btn-arrow-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Auth Cards & Forms
   ========================================================================== */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.7s var(--ease-smooth) both;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-header h1 span {
  color: var(--accent);
}

.auth-header p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.optional-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-lead-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  padding: 13px 40px 13px 40px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-light);
  color: var(--text);
  transition: all 0.25s var(--ease-smooth);
}

.form-input:placeholder-shown {
  padding-left: 40px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(45, 49, 62, 0.9);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.25);
}

.form-input:focus + .input-lead-icon,
.input-with-icon:focus-within .input-lead-icon {
  color: var(--accent);
}

.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.pwd-toggle-btn:hover {
  color: var(--text);
}

.match-check-icon {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
}

/* Password Strength Indicator */
.password-strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { background: var(--error); }
.strength-medium { background: var(--warning); }
.strength-strong { background: var(--accent); }

.password-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

/* Messages & Alerts */
.error-box, .info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  animation: shakeAlert 0.4s ease;
}

.error-box {
  color: #ff6b6b;
  background: var(--error-bg);
  border: 1px solid rgba(255, 82, 82, 0.35);
}

.info-box {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.error-notification {
  margin: 0;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid rgba(255, 82, 82, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  display: none;
  animation: shakeAlert 0.4s ease;
}

/* Pricing Badges */
.pricing-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(29, 185, 84, 0.08);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  transition: transform 0.2s ease;
}

.pricing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(29, 185, 84, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-details {
  flex: 1;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.pricing-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.pricing-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.payment-trust-badge {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-trust-badge svg {
  color: var(--accent);
}

.payment-trust-badge strong {
  color: #635bff;
}

/* Buttons */
.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #06180c;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
  transition: all 0.25s var(--ease-smooth);
  margin-top: 8px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29, 185, 84, 0.55);
}

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

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Success & Stripe Mock Specifics
   ========================================================================== */
.success-icon-animation {
  margin-bottom: 16px;
}

.checkmark-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--accent);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--accent);
  animation: checkFill .4s ease-in-out .4s forwards, checkScale .3s ease-in-out .9s both;
}

.checkmark-circle-bg {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--accent);
  fill: none;
  animation: checkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--accent);
  stroke-width: 3.5;
  animation: checkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.redirect-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin: 16px 0;
  overflow: hidden;
}

.redirect-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #635bff;
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 15px var(--stripe-glow);
}

.stripe-pricing-badge {
  border-color: #635bff;
  background: rgba(99, 91, 255, 0.08);
}

.stripe-icon-box {
  background: rgba(99, 91, 255, 0.15);
  color: #635bff;
}

.stripe-amount-text {
  color: #635bff;
  font-size: 18px;
}

.stripe-simulation-info {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--surface-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stripe-btn-confirm {
  background: linear-gradient(135deg, #635bff 0%, #4b44db 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--stripe-glow);
}

.stripe-btn-confirm:hover {
  background: linear-gradient(135deg, #746cff 0%, #5750eb 100%);
  box-shadow: 0 8px 30px rgba(99, 91, 255, 0.5);
}

.btn-cancel-action {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-action:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Toast Notification & Modal Lightbox
   ========================================================================== */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(26, 28, 35, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
  z-index: 2000;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification.success {
  border-color: rgba(29, 185, 84, 0.4);
  background: rgba(18, 38, 26, 0.95);
  color: #1ed760;
}

.toast-notification.error {
  border-color: rgba(255, 82, 82, 0.4);
  background: rgba(45, 20, 20, 0.95);
  color: #ff6b6b;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  animation: zoomFadeIn 0.3s var(--ease-spring);
}

.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}

.modal-close:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
  transform: scale(1.1);
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes zoomFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes soundWave {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes checkStroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes checkFill {
  100% { box-shadow: inset 0px 0px 0px 30px transparent; }
}

@keyframes checkScale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 680px) {
  body.generator-page {
    padding: 24px 16px 360px;
  }

  .app-header h1 {
    font-size: 28px;
  }

  .floating-dock {
    padding: 14px;
    bottom: 14px;
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .control-selects-group {
    flex-direction: column;
    gap: 10px;
  }

  #generate-btn {
    width: 100%;
    margin-top: 6px;
  }

  .auth-card {
    padding: 30px 20px;
  }

  .poster-actions-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
}
