/* ==========================================================================
   Birthday Magic - Modern Ultra-Premium Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Pacifico&family=Dancing+Script:wght@600;700&family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #8b5cf6;
  --primary-rgb: 139, 92, 246;
  --primary-hover: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.82);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-subtle: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-neon: 0 0 35px rgba(139, 92, 246, 0.35);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background floating decorative elements */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-item {
  position: absolute;
  opacity: 0.55;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.06));
  animation: floatDrift 14s ease-in-out infinite alternate;
}

@keyframes floatDrift {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(8deg); }
  100% { transform: translateY(10px) rotate(-6deg); }
}

/* Typography Helpers */
.font-fredoka { font-family: 'Fredoka', cursive, sans-serif; }
.font-pacifico { font-family: 'Pacifico', cursive; }
.font-dancing { font-family: 'Dancing Script', cursive; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #10b981;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.btn-nav-primary {
  background: var(--primary-gradient);
  color: white;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
  transition: var(--transition-normal);
}

.btn-nav-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

/* Main Layout */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 10;
}

.hero-banner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  padding: 0 0.5rem;
}

.hero-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-decoration: none;
  transition: var(--transition-fast);
}

.hero-pill--accent {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
  border-color: rgba(236, 72, 153, 0.25);
}

.hero-pill--accent:hover {
  background: rgba(236, 72, 153, 0.18);
  transform: translateY(-1px);
}

.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.hero-title-sub {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Generator Split Grid */
.creator-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

/* Wizard Glass Panel */
.wizard-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.wizard-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.wizard-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.wizard-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Stepper Tabs */
.stepper-nav {
  display: flex;
  background: #f1f5f9;
  padding: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  gap: 0.25rem;
  scrollbar-width: none;
}
.stepper-nav::-webkit-scrollbar { display: none; }

.step-btn {
  flex: 1;
  min-width: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.step-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.step-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Step Content Body */
.step-content {
  padding: 1.75rem;
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: #ef4444;
}

.form-label-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: white;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-textarea {
  padding-left: 1rem;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Cake Selection Grid */
.cake-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cake-card-option {
  background: white;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.cake-card-option:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-sm);
}

.cake-card-option.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.04);
  box-shadow: 0 0 0 2px var(--primary);
}

.cake-thumb {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-thumb img, .cake-thumb svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}

.cake-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Pills & Quotes */
.category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.cat-pill-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: white;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.cat-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-pill-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.quotes-list-scroll {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-right: 0.25rem;
}

.quote-item-card {
  background: white;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quote-item-card:hover {
  border-color: var(--primary);
  background: #faf5ff;
  transform: translateX(4px);
}

.quote-item-card.selected {
  border-color: var(--primary);
  background: #f3e8ff;
  border-left-width: 5px;
  font-weight: 500;
}

/* Design Studio Grid & Templates */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.theme-card-btn {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  background: white;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-normal);
}

.theme-card-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.theme-card-btn.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
  background: rgba(139, 92, 246, 0.03);
}

.theme-card-swatch {
  height: 60px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0.4rem;
}

.theme-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  color: var(--text-main);
}

.color-swatches-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.color-swatch-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.color-swatch-dot:hover {
  transform: scale(1.15);
}

.color-swatch-dot.selected {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--primary);
}

/* Custom Image Upload Dropzone */
.image-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: var(--transition-fast);
}

.image-dropzone:hover, .image-dropzone.dragover {
  border-color: var(--primary);
  background: #faf5ff;
}

.uploaded-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.photo-preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  border: 2px solid white;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

/* Sharing & Toggles */
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: white;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.toggle-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.switch input:checked + .slider {
  background: var(--primary-gradient);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

/* Action Buttons */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
  background: white;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-create-magic {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Live Preview Zone (Sticky Right Column)
   ========================================================================== */
.preview-sticky-col {
  position: sticky;
  top: 90px;
}

.preview-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #10b981;
}

.preview-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

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

.preview-canvas-card {
  min-height: 480px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: background 0.5s ease;
  overflow: hidden;
}

/* Modal Popups */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-body {
  padding: 1.75rem;
}

/* Share Link Box */
.share-link-row {
  display: flex;
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.share-link-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-main);
}

.btn-copy-link {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-link:hover {
  background: var(--primary-hover);
}

/* Social Sharing Icons Grid */
.social-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.social-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-share-btn.whatsapp { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.social-share-btn.telegram { color: #0284c7; background: #f0f9ff; border-color: #bae6fd; }
.social-share-btn.facebook { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.social-share-btn.twitter { color: #0f172a; background: #f8fafc; border-color: #e2e8f0; }

.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.qr-canvas-frame {
  background: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .creator-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .preview-sticky-col {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0.65rem 0.85rem;
  }
  .brand-logo {
    font-size: 1.2rem;
    gap: 0.5rem;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .brand-badge {
    display: none;
  }
  .nav-links {
    gap: 0.6rem;
  }
  .nav-links .nav-link {
    display: none;
  }
  .btn-nav-primary {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .main-wrapper {
    padding: 1.25rem 0.75rem 3rem;
  }
  .hero-banner {
    margin: 0 auto 1.5rem;
  }
  .hero-pills-row {
    gap: 0.4rem;
  }
  .hero-pill {
    font-size: 0.73rem;
    padding: 0.3rem 0.7rem;
  }
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    gap: 0.15rem;
  }
  .hero-title-sub {
    font-size: 1.25rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .wizard-panel {
    border-radius: 18px;
  }
  .wizard-header {
    padding: 1.25rem 1rem 0.75rem;
  }
  .wizard-title {
    font-size: 1.25rem;
  }

  .stepper-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.75rem;
    scrollbar-width: none;
    gap: 0.45rem;
    background: #f8fafc;
  }
  .stepper-nav::-webkit-scrollbar {
    display: none;
  }
  .step-btn {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
  }

  .step-content {
    padding: 1.25rem 0.85rem;
  }

  .form-input, .form-textarea, .form-select {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    padding: 0.65rem 0.85rem;
  }

  .input-shell .form-input,
  .input-shell .form-select {
    padding-left: 2.75rem !important;
  }

  .category-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    gap: 0.4rem;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .cat-pill-btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .cake-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .cake-card-option {
    padding: 0.5rem 0.35rem;
  }
  .cake-thumb {
    height: 62px;
  }
  .cake-name {
    font-size: 0.72rem;
  }

  .template-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .social-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .preview-canvas-card {
    padding: 1.5rem 0.85rem;
    min-height: 380px;
  }

  .modal-card {
    max-width: 95vw;
    margin: 10px auto;
  }
  .modal-header {
    padding: 1rem 1.25rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .cake-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cake-thumb {
    height: 70px;
  }
  .candle-count-pills {
    gap: 0.35rem;
  }
  .candle-count-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
}

/* Candle Settings Card & Count Pills */
.candle-settings-card {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  margin-top: 1.25rem;
  transition: var(--transition-normal);
}

.candle-settings-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.candle-count-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.candle-count-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: white;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.candle-count-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.candle-count-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   Preview Card Message & Mic Badge
   ========================================================================== */
.preview-message-body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
  max-width: 300px;
  margin: 0.75rem auto 0;
  text-align: center;
}

.preview-mic-badge {
  margin-top: 1.25rem;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ==========================================================================
   Section Header Pattern (Features, FAQ headings)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 92, 246, 0.2);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
  display: block;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
