/* ===================================================================
   DEEPOTSAV 2026 - DIWALI GREETINGS & AI CARD GENERATOR STYLESHEET
   Aesthetics: Royal Gold, Deep Maroon, Saffron, Glassmorphism & Neon Glow
   =================================================================== */

:root {
  --gold-primary: #fbbf24;
  --gold-glow: #f59e0b;
  --gold-dark: #b45309;
  --gold-light: #fef3c7;
  --saffron: #f97316;
  --deep-maroon: #250612;
  --royal-purple: #170d2c;
  --festive-bg: #090614;
  --card-bg: rgba(23, 14, 38, 0.82);
  --glass-border: rgba(251, 191, 36, 0.28);
  --glass-glow: 0 8px 32px 0 rgba(245, 158, 11, 0.18);
  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --font-title: 'Cinzel Decorative', serif;
  --font-festive: 'Rozha One', 'Cinzel Decorative', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img, canvas, svg, video {
  max-width: 100%;
}

body.festive-body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 10%, #2e1026 0%, #150b28 45%, #070410 100%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Canvas Layers for Fireworks & Floating Lanterns (GPU Accelerated, 0 Input Lag) */
#fireworksCanvas, #lanternCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}

#fireworksCanvas {
  z-index: 85;
  pointer-events: none !important;
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 6, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.25rem;
}

.nav-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-diya {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px #f59e0b);
  animation: diyaFlicker 2.5s infinite alternate ease-in-out;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff7ed 0%, #fbbf24 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.brand-title span {
  font-size: 0.85em;
  color: #f59e0b;
  -webkit-text-fill-color: #f59e0b;
}

/* Countdown Widget */
.countdown-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(43, 20, 64, 0.6);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.time-block {
  background: rgba(0, 0, 0, 0.45);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: #fde047;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.time-block small {
  font-size: 0.65rem;
  color: #cbd5e1;
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pill-btn {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--glass-border);
  color: #fef08a;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.pill-btn:hover {
  background: var(--gold-glow);
  color: #110519;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.rocket-btn {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #fff;
  border: none;
}

.rocket-btn:hover {
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6);
  color: #fff;
}

/* Main Container */
.main-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem 1.25rem;
  position: relative;
  z-index: 10;
}

/* Top Responsive Banner & Notice Slot */
.ad-banner-slot.top-banner {
  max-width: 1300px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.ad-placeholder {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(180, 83, 9, 0.14));
  border: 1px dashed rgba(251, 191, 36, 0.38);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ad-label {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ad-placeholder p {
  margin: 0;
  color: #fef3c7;
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Top Strategic Monetization Bar */
.monetization-bar {
  background: linear-gradient(90deg, rgba(58, 20, 20, 0.8), rgba(28, 13, 58, 0.8), rgba(46, 26, 10, 0.8));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
}

.monetization-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: shineSweep 4s infinite linear;
}

.ad-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fde047;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.festive-deal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.deal-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: pulseBadge 1.8s infinite;
}

.deal-info {
  flex: 1;
  min-width: 260px;
}

.deal-info strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.deal-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.deal-cta {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a0826;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  white-space: nowrap;
}

.deal-cta:hover {
  background: #fff;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.7);
}

/* Hero Section in Creator View */
.section-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.2rem auto;
}

.festive-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde047;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.hero-heading {
  font-family: var(--font-festive);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 10%, #fde047 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.hero-description {
  font-size: 1rem;
  color: #e2e8f0;
  opacity: 0.9;
}

/* Receiver View (Special Wish Mode) */
.reveal-section {
  max-width: 820px;
  margin: 0 auto 3rem auto;
  animation: fadeIn 0.8s ease;
}

.reveal-card-envelope {
  background: var(--card-bg);
  border: 2px solid var(--gold-glow);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.envelope-ribbon {
  display: inline-block;
  background: linear-gradient(95deg, #b45309, #f59e0b, #b45309);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  margin-bottom: 1rem;
}

.receiver-highlight-name {
  font-family: var(--font-festive);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fde047;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  margin: 0.3rem 0;
}

.sender-tag {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.sender-tag span {
  color: #38bdf8;
  font-weight: 700;
}

.card-display-box {
  margin: 1.5rem auto;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 3px solid #fbbf24;
  max-width: 520px;
}

#receiverCardCanvas,
#wishCardCanvas,
.card-display-box canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.tap-hint {
  background: rgba(10, 6, 20, 0.85);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.receiver-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

/* Two-Column Generator Grid */
.generator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 980px) {
  .generator-grid {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphism Panel Common */
.card-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--glass-glow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.panel-header h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-surprise {
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  border: none;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
  transition: var(--transition);
}

.btn-surprise:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.resolution-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Form Styles */
.greeting-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  transition: var(--transition);
}

.link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  background: rgba(12, 7, 24, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group select.form-select {
  width: 100%;
  background: rgba(12, 7, 24, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.form-group select.form-select option {
  background: #140a24;
  color: #fff;
  padding: 0.5rem;
}

.form-group select.form-select:focus {
  border-color: var(--gold-glow);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* Multi-Template Selection Container & Controls */
.template-selection-container {
  margin-top: 0.5rem;
  background: rgba(15, 8, 28, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.selection-status-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fef08a;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-count {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0826;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.section-help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.batch-generate-box {
  margin: 0.8rem 0 0.5rem;
}

.batch-generate-box .btn {
  width: 100%;
}

/* Category Filter Pills (Horizontal Scroll) */
.category-filters-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
}

.category-filters-scroll::-webkit-scrollbar {
  height: 4px;
}

.category-filters-scroll::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.4);
  border-radius: 4px;
}

.category-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.category-filter-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fff;
}

.category-filter-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #12041c;
  border-color: #fbbf24;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Template Selection Action Toolbar */
.template-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.selection-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-tool-btn {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fef08a;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.pill-tool-btn:hover {
  background: rgba(251, 191, 36, 0.25);
  color: #fff;
  border-color: var(--gold-glow);
}

/* Visual Template Gallery Grid */
.template-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
}

@media (max-width: 600px) {
  .template-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.template-card {
  background: rgba(14, 8, 28, 0.9);
  border: 1.5px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.template-card:hover {
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.template-card.active {
  border-color: #fbbf24;
  background: rgba(50, 22, 75, 0.85);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5), inset 0 0 10px rgba(251, 191, 36, 0.2);
  border-width: 2px;
}

.template-thumb {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #090514;
}

.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.template-card:hover .template-thumb img {
  transform: scale(1.06);
}

.category-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(10, 6, 20, 0.8);
  color: #fde047;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.active-check {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #10b981;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
}

.active-check.visible,
.template-card.active .active-check {
  display: flex;
}

.template-meta {
  width: 100%;
  text-align: center;
}

.template-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.template-category-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: #12041c;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Batch Generate CTA Box */
.batch-generate-box {
  margin-top: 1rem;
  text-align: center;
}

.btn-xl {
  width: 100%;
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
}

.btn-xl:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6);
}

/* Decor Chips */
.decor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.chip:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fff;
}

.chip.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--gold-glow);
  color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Card Canvas Wrapper (Preview Panel) */
.canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.4rem;
}

.card-frame {
  position: relative;
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 3px solid #fbbf24;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(251, 191, 36, 0.3);
  overflow: hidden;
  background: #090514;
}

#cardCanvas {
  width: 100%;
  height: auto;
  display: block;
}

.canvas-decor-floating {
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.floating-diya {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 12px #f59e0b);
  animation: diyaFlicker 2s infinite alternate ease-in-out;
}

.right-diya {
  animation-delay: 1s;
}

/* Share & Action Buttons */
.share-action-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.primary-share-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .primary-share-row {
    grid-template-columns: 1fr;
  }
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee06f, #159b8c);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1a0826;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fde047, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.55);
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  transform: translateY(-2px);
}

/* Secondary Share Row (Copy Link & Social Icons) */
.secondary-share-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.link-copy-container {
  flex: 1;
  display: flex;
  min-width: 200px;
  background: rgba(10, 6, 20, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.link-copy-container input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.55rem 0.8rem;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
}

.btn-copy {
  background: rgba(251, 191, 36, 0.15);
  color: #fde047;
  border: none;
  border-left: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--gold-glow);
  color: #1a0826;
}

.social-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.fb-btn:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 0 10px rgba(24, 119, 242, 0.5); }
.x-btn:hover { background: #000; border-color: #555; }
.tg-btn:hover { background: #229ed9; border-color: #229ed9; box-shadow: 0 0 10px rgba(34, 158, 217, 0.5); }
.native-btn:hover { background: #ea580c; border-color: #ea580c; }

/* Monetization Grid (Festive Deals & Affiliate Slots) */
.monetization-grid {
  margin: 3.5rem 0 2.5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 1.6rem;
}

.ad-disclosure {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fde047;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

.section-title-wrap h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #fef3c7;
}

.deals-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 1024px) {
  .deals-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .deals-cards-container {
    grid-template-columns: 1fr;
  }
}

.deal-item {
  background: rgba(20, 12, 33, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.deal-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-glow);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.deal-item-img {
  height: 140px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.dryfruits-img {
  background: radial-gradient(circle, #5b21b6, #1e1b4b);
}
.dryfruits-img::after {
  content: "🥜 🎁 🍬";
  font-size: 2.8rem;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}

.diyas-img {
  background: radial-gradient(circle, #78350f, #451a03);
}
.diyas-img::after {
  content: "🪔 🪔 🪔";
  font-size: 2.8rem;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.7));
}

.lights-img {
  background: radial-gradient(circle, #1e293b, #0f172a);
}
.lights-img::after {
  content: "✨ 🏮 💡";
  font-size: 2.8rem;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.7));
}

.gold-img {
  background: radial-gradient(circle, #854d0e, #422006);
}
.gold-img::after {
  content: "🪙 🪙 🪙";
  font-size: 2.8rem;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.8));
}

.deal-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.deal-item-details {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-item-details h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.deal-item-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  flex: 1;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.deal-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fde047;
}

.deal-strike {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.discount-badge {
  font-size: 0.7rem;
  color: #4ade80;
  font-weight: 700;
}

.btn-deal {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--gold-glow);
  color: #fef08a;
  padding: 0.55rem;
  font-size: 0.85rem;
}

.btn-deal:hover {
  background: var(--gold-glow);
  color: #1a0826;
}

/* Festive Gifts & Essentials Showcase */
.affiliate-showcase {
  margin-top: 2.5rem;
}

.affiliate-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.affiliate-header h4 {
  font-family: var(--font-title);
  color: #fef08a;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.affiliate-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.deals-grid .deal-item {
  padding: 1.25rem 1rem;
  text-align: center;
  align-items: center;
}

.deal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

.deals-grid .deal-item h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.deals-grid .deal-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Fireworks Soundboard Bar */
.cracker-soundboard {
  margin-top: 2rem;
  background: rgba(20, 12, 33, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: center;
}

.soundboard-header h4 {
  font-family: var(--font-title);
  color: #fef08a;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.soundboard-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.cracker-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cracker-btn {
  background: rgba(43, 20, 64, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.cracker-btn:hover {
  background: linear-gradient(135deg, #f97316, #dc2626);
  border-color: #f97316;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
}

.cracker-icon {
  font-size: 1.2rem;
}

.cracker-title {
  font-size: 0.82rem;
}

/* Festive Footer */
.festive-footer {
  background: rgba(6, 4, 12, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-diya {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 8px #f59e0b);
}

.shloka-text {
  font-family: var(--font-festive);
  font-size: 1.05rem;
  color: #fde68a;
  max-width: 650px;
  margin: 0 auto 1.2rem auto;
  line-height: 1.6;
}

.shloka-text em {
  font-family: var(--font-body);
  font-size: 0.82rem;
  display: block;
  color: #cbd5e1;
  font-style: normal;
  margin-top: 0.35rem;
}

.footer-credits {
  font-size: 0.85rem;
  color: #94a3b8;
}

.copyright {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  opacity: 0.7;
}

/* Toast Alert Popup */
.toast-popup {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

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

/* Keyframes & Utility Animations */
@keyframes diyaFlicker {
  0% { transform: scale(1) rotate(-1deg); filter: drop-shadow(0 0 8px #f59e0b); }
  50% { transform: scale(1.08) rotate(1deg); filter: drop-shadow(0 0 16px #fbbf24); }
  100% { transform: scale(0.96) rotate(-0.5deg); filter: drop-shadow(0 0 10px #f97316); }
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shineSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

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

.hidden {
  display: none !important;
}

.pulse-effect {
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Navigation Links & VFX Toggle */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.pill-btn.muted {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.08);
}

.pill-btn.vfx-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde047;
}

/* Responsive Monetization Ad Slots (Clearly Labeled) */
.ad-banner-slot {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.top-banner {
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}


.bottom-banner {
  margin: 2.5rem auto 1rem auto;
}

.ad-placeholder {
  background: rgba(18, 10, 30, 0.7);
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  text-align: center;
  position: relative;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fbbf24;
  margin-bottom: 0.3rem;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.ad-placeholder p {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* =========================================================
   GENERATED CARDS GALLERY SECTION (Multi-Card Results)
   ========================================================= */
.generated-cards-section {
  margin: 3.5rem 0;
  animation: fadeIn 0.7s ease;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.title-with-badge h3 {
  font-family: var(--font-festive);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #fef08a;
  margin: 0.3rem 0;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.title-with-badge p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 650px;
}

/* Responsive Grid of Generated Cards */
.generated-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

@media (max-width: 768px) {
  .generated-cards-grid {
    grid-template-columns: 1fr;
  }
}

.generated-card-item {
  background: var(--card-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.generated-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-glow);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.25);
}

.card-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-index-badge {
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.card-item-title h4 {
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cat-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.card-canvas-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.4);
  background: #090514;
  aspect-ratio: 4 / 5;
}

.card-canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.zoom-preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 6, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.85;
}

.zoom-preview-btn:hover {
  opacity: 1;
  background: var(--gold-glow);
  color: #12041c;
  transform: scale(1.1);
}

.card-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-sm {
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  flex: 1;
}

.btn-copy-card-link {
  flex: 0 0 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* =========================================================
   FULLSCREEN LIGHTBOX MODAL
   ========================================================= */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 2, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  background: var(--card-bg);
  border: 2px solid var(--gold-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 580px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.3);
  overflow-y: auto;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lightbox-header h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #fef08a;
}

.lightbox-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.4rem;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: #ef4444;
  transform: scale(1.15);
}

.lightbox-canvas-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid #fbbf24;
  margin-bottom: 1.2rem;
  background: #090514;
}

.lightbox-canvas-wrapper canvas {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .lightbox-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SHARE GREETING MASTER BUTTON & MODAL
   ========================================================= */
.prominent-share-header {
  width: 100%;
}

.btn-share-greeting-main {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #ea580c 100%);
  color: #1a0826;
  border: 1.5px solid #fef08a;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 0 15px rgba(254, 240, 138, 0.3);
  cursor: pointer;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: var(--transition);
}

.btn-share-greeting-main:hover {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #f97316 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6);
}

.share-modal-content {
  max-width: 500px;
}

.share-modal-description {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.share-modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.share-opt-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 10, 32, 0.75);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.share-opt-btn:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  background: rgba(35, 20, 58, 0.9);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.share-opt-btn:focus-visible {
  outline: 2px solid #fbbf24 !important;
  outline-offset: 2px;
}

.share-opt-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.btn-whatsapp-opt .share-opt-icon {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
}

.btn-facebook-opt .share-opt-icon {
  background: rgba(24, 119, 242, 0.2);
  color: #1877f2;
}

.btn-download-opt .share-opt-icon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.btn-copy-opt .share-opt-icon {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.share-opt-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.share-opt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.share-opt-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.3;
}

.share-opt-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  transition: var(--transition);
}

.share-opt-btn:hover .share-opt-arrow {
  color: #fbbf24;
  transform: translateX(3px);
}


/* Wish Page Specific Adjustments */
.wish-page-body .reveal-section {
  margin-top: 2rem;
}

.wish-main {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===================================================================
   MOBILE-FIRST DEEP RESPONSIVE ENHANCEMENTS
   Optimized for iPhones, Android, Tablets, Small Screens & Touch
   =================================================================== */

@media (max-width: 768px) {
  /* Prevent iOS auto-zoom and clean touch inputs */
  input[type="text"],
  textarea,
  select.form-select {
    font-size: 16px !important;
  }

  /* Body & Wrapper */
  body.festive-body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .main-wrapper {
    padding: 0.75rem 0.65rem 4rem 0.65rem;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Compact Sleek Top Nav */
  .top-nav {
    padding: 0.45rem 0.65rem;
  }

  .nav-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-diya {
    font-size: 1.35rem;
  }

  .brand-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }

  .nav-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .pill-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    min-height: 32px;
  }

  .countdown-container {
    width: 100%;
    order: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0.5rem;
    margin-top: 0.15rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
  }

  .countdown-label {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .countdown-timer {
    font-size: 0.78rem;
    gap: 0.2rem;
  }

  .time-block {
    padding: 0.05rem 0.2rem;
  }

  /* Hero Section */
  .section-hero {
    margin-bottom: 1.1rem;
    padding: 0 0.25rem;
  }

  .festive-badge {
    font-size: 0.74rem;
    padding: 0.25rem 0.75rem;
    line-height: 1.3;
  }

  .hero-heading {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0.4rem 0;
  }

  .hero-description {
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 0;
  }

  /* Generator Grid Single Column Stack */
  .generator-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: 100% !important;
  }

  /* Panels */
  .card-panel {
    padding: 1rem 0.8rem;
    border-radius: var(--radius-md);
    width: 100%;
    overflow: hidden;
  }

  .panel-header {
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
  }

  .panel-header h3 {
    font-size: 1rem;
  }

  /* Form & Inputs */
  .input-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-group label {
    font-size: 0.82rem;
  }

  .form-group input[type="text"],
  .form-group select.form-select,
  .form-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Step Fieldsets */
  .form-step-fieldset {
    padding: 0.85rem 0.7rem;
    margin-bottom: 0.85rem;
  }

  .step-legend {
    font-size: 0.88rem;
  }

  /* Template Selection on Mobile: Crisp 2-Column Grid */
  .template-selection-container {
    padding: 0.75rem 0.65rem;
  }

  .template-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    max-height: 290px;
    padding-right: 0.2rem;
  }

  .template-card {
    padding: 0.35rem;
    gap: 0.3rem;
  }

  .template-thumb {
    height: 72px;
    border-radius: 4px;
  }

  .template-title {
    font-size: 0.72rem;
    text-align: center;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .template-category-sub {
    font-size: 0.62rem;
    display: block;
    text-align: center;
  }

  .category-tag {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
  }

  .selection-tools {
    display: flex;
    gap: 0.35rem;
    width: 100%;
  }

  .selection-tools .pill-tool-btn {
    flex: 1 1 auto;
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
    justify-content: center;
  }

  /* Big Action Button */
  .batch-generate-box .btn {
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* Live Card Preview Box */
  .canvas-wrapper {
    margin-bottom: 1rem;
    width: 100%;
  }

  .card-frame {
    max-width: 100% !important;
    width: 100% !important;
    border-width: 2px;
  }

  #cardCanvas {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .floating-diya {
    font-size: 1.3rem;
  }

  /* Share & Action Buttons on Mobile */
  .share-action-box {
    gap: 0.7rem;
    width: 100%;
  }

  .btn-share-greeting-main {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .primary-share-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  .primary-share-row .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.88rem;
  }

  .secondary-share-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .link-copy-container {
    width: 100%;
    min-width: 0;
  }

  .social-pills {
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  /* Generated Cards Grid */
  .section-title-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .title-with-badge h3 {
    font-size: 1.25rem;
  }

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

  .generated-card-item {
    padding: 0.85rem;
  }

  .card-item-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr 40px !important;
    gap: 0.4rem !important;
    width: 100%;
  }

  .btn-share-greeting-card {
    grid-column: 1 / -1 !important;
    min-height: 42px;
    font-size: 0.88rem;
  }

  .btn-download-card {
    grid-column: 1 !important;
    min-height: 38px;
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }

  .btn-share-wa {
    grid-column: 2 !important;
    min-height: 38px;
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }

  .btn-copy-card-link {
    grid-column: 3 !important;
    height: 38px;
    width: 40px;
    min-width: 40px;
  }

  /* Cracker Soundboard */
  .cracker-soundboard {
    padding: 1.1rem 0.75rem;
    margin-top: 1.5rem;
  }

  .soundboard-header h4 {
    font-size: 1rem;
  }

  .soundboard-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .cracker-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    width: 100%;
  }

  .cracker-btn {
    min-width: 0;
    padding: 0.55rem 0.45rem;
    font-size: 0.75rem;
    justify-content: flex-start;
  }

  .cracker-btn:last-child:nth-child(odd) {
    grid-column: span 2;
    justify-content: center;
  }

  /* Deals & Affiliate Grid */
  .affiliate-showcase {
    margin-top: 1.8rem;
  }

  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .deals-grid .deal-item {
    padding: 0.9rem 0.65rem;
  }

  .deal-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  .deals-grid .deal-item h5 {
    font-size: 0.84rem;
  }

  .deal-price {
    font-size: 0.75rem;
  }

  /* Lightbox Modal */
  .lightbox-content {
    padding: 0.85rem;
    max-height: 94vh;
    width: 95%;
  }

  .lightbox-actions {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .lightbox-actions .btn {
    min-height: 44px;
    font-size: 0.88rem;
  }
}

@media (max-width: 440px) {
  .brand-title {
    font-size: 1.05rem;
  }

  .pill-btn .btn-text {
    font-size: 0.7rem;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .template-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
  }

  .template-thumb {
    height: 65px;
  }
}

/* =========================================================
   SIMPLIFIED STEP JOURNEY & ACCESSIBILITY STYLES
   ========================================================= */

.form-step-fieldset {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.1rem;
  background: rgba(14, 8, 25, 0.55);
}

.step-legend {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fef08a;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #14051e;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Optional Advanced Styling Accordion */
.advanced-customization-accordion {
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  background: rgba(12, 6, 20, 0.5);
  overflow: hidden;
  transition: var(--transition);
}

.advanced-toggle {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: rgba(255, 255, 255, 0.03);
}

.advanced-toggle:hover {
  color: #fde047;
  background: rgba(251, 191, 36, 0.08);
}

.advanced-customization-accordion[open] .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon {
  transition: transform 0.25s ease;
}

.advanced-body {
  padding: 1.1rem;
  border-top: 1px solid rgba(251, 191, 36, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Soundboard Title Row */
.soundboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.sound-fx-btn {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde047;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.sound-fx-btn.muted {
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #94a3b8;
}

/* High Contrast Focus Visibility for Seniors and Keyboard Navigation */
:focus-visible {
  outline: 2px solid #fbbf24 !important;
  outline-offset: 3px !important;
}

button:focus-visible, 
a:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4) !important;
}

/* Narrow Android Screen Support (320px - 360px) */
@media (max-width: 360px) {
  .main-wrapper {
    padding: 0.75rem 0.5rem 2rem 0.5rem;
  }

  .card-panel {
    padding: 0.9rem 0.65rem;
  }

  .template-selection-container {
    padding: 0.65rem;
  }

  .template-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }

  .template-thumb {
    height: 70px;
  }

  .template-title {
    font-size: 0.68rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .countdown-timer {
    font-size: 0.78rem;
  }

  .hero-heading {
    font-size: 1.35rem;
  }

  .cracker-btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
  }

  .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
}

/* Floating Mobile Quick Action Bar */
.mobile-floating-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-floating-bar {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(14, 8, 28, 0.94);
    border: 1.5px solid #fbbf24;
    border-radius: var(--radius-full);
    padding: 0.35rem 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    gap: 0.45rem;
    align-items: center;
  }

  .floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
  }

  .preview-jump-btn {
    background: rgba(251, 191, 36, 0.2);
    color: #fef08a;
    border: 1px solid rgba(251, 191, 36, 0.35);
  }

  .preview-jump-btn:hover {
    background: #fbbf24;
    color: #1a0826;
  }

  .share-jump-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
  }
}



