/**
 * EcrioniX Happy Diwali — Design System & Festive Styles
 * Theme: "Light Up the World with Innovation"
 * (c) 2026 EcrioniX. Open educational & celebration microsite.
 */

:root {
  --diwali-bg: #030712;
  --diwali-bg-card: rgba(15, 23, 42, 0.78);
  --diwali-bg-card-hover: rgba(30, 41, 59, 0.9);
  --diwali-border: rgba(245, 158, 11, 0.22);
  --diwali-border-glow: rgba(251, 191, 36, 0.55);
  --diwali-gold: #fbbf24;
  --diwali-gold-light: #fef08a;
  --diwali-gold-dark: #b45309;
  --diwali-amber: #f59e0b;
  --diwali-amber-glow: rgba(245, 158, 11, 0.45);
  --diwali-cyan: #38bdf8;
  --diwali-teal: #2dd4bf;
  --diwali-ruby: #e11d48;
  --diwali-text: #f8fafc;
  --diwali-text-muted: #94a3b8;
  --diwali-text-dim: #64748b;
  --diwali-radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.diwali-page {
  background: var(--diwali-bg);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 15% 65%, rgba(225, 29, 72, 0.04) 0%, transparent 50%);
  color: var(--diwali-text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background interactive sparkler canvas */
#sparklerCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Top Navigation Bar */
.diwali-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--diwali-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.diwali-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.diwali-brand-icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
  animation: pulse-icon 2.4s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.9)); }
}

.diwali-brand span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.diwali-nav-link {
  color: var(--diwali-text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.diwali-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.diwali-audio-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--diwali-border);
  color: var(--diwali-gold);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.diwali-audio-btn:hover {
  background: var(--diwali-border);
  color: #fff;
  border-color: var(--diwali-gold);
}

.diwali-audio-btn.playing {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--diwali-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* Personalized Incoming Greeting Banner */
.diwali-personal-alert {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18) 0%, rgba(225, 29, 72, 0.15) 50%, rgba(56, 189, 248, 0.15) 100%);
  border-bottom: 1px solid var(--diwali-border);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  animation: banner-glow 3s infinite ease-in-out;
  position: relative;
  z-index: 10;
}

@keyframes banner-glow {
  0%, 100% { border-bottom-color: rgba(245, 158, 11, 0.3); }
  50% { border-bottom-color: rgba(251, 191, 36, 0.7); }
}

.diwali-personal-alert b {
  color: var(--diwali-gold);
}

/* Container */
.diwali-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

/* Hero Section */
.diwali-hero {
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
}

.diwali-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--diwali-border);
  border-radius: 999px;
  color: var(--diwali-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.diwali-main-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 35%, #fbbf24 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.25);
}

.diwali-main-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--diwali-text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.diwali-main-subtitle span {
  color: var(--diwali-cyan);
  font-weight: 600;
}

/* Central Interactive Diya Stage */
.diwali-diya-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.diwali-rangoli-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .diwali-rangoli-wrap {
    width: 310px;
    height: 310px;
  }
}

/* Background Rangoli SVG */
.diwali-rangoli-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.15));
}

.diwali-rangoli-svg.lit {
  filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.65));
}

.diwali-circuit-track {
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  fill: none;
  transition: all 1.2s ease;
}

.diwali-rangoli-svg.lit .diwali-circuit-track {
  stroke: var(--diwali-cyan);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
  animation: circuit-flow 3s infinite linear;
}

@keyframes circuit-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

.diwali-rangoli-petal {
  fill: none;
  stroke: rgba(245, 158, 11, 0.25);
  stroke-width: 1.8;
  transition: all 1.2s ease;
}

.diwali-rangoli-svg.lit .diwali-rangoli-petal {
  stroke: var(--diwali-gold);
  fill: rgba(245, 158, 11, 0.08);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.diwali-rangoli-node {
  fill: rgba(148, 163, 184, 0.3);
  transition: all 1s ease;
}

.diwali-rangoli-svg.lit .diwali-rangoli-node {
  fill: var(--diwali-gold);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9));
}

/* Central Diya SVG */
.diwali-diya-svg {
  position: relative;
  z-index: 5;
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s ease;
}

.diwali-diya-stage:hover .diwali-diya-svg {
  transform: translateY(-2px);
}

/* Flame Animation */
.diwali-flame-group {
  opacity: 0;
  transform-origin: 100px 92px;
  transform: scale(0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.diwali-flame-group.lit {
  opacity: 1;
  transform: scale(1);
}

.diwali-flame-outer {
  fill: url(#flameGradientOuter);
  animation: flame-flicker-outer 1.6s infinite ease-in-out alternate;
  transform-origin: 100px 92px;
}

.diwali-flame-inner {
  fill: url(#flameGradientInner);
  animation: flame-flicker-inner 1.2s infinite ease-in-out alternate;
  transform-origin: 100px 92px;
}

.diwali-flame-core {
  fill: #ffffff;
  animation: flame-flicker-core 0.9s infinite ease-in-out alternate;
  transform-origin: 100px 92px;
}

@keyframes flame-flicker-outer {
  0% { transform: scale(0.96) rotate(-1.5deg); opacity: 0.92; }
  50% { transform: scale(1.04) rotate(1.2deg); opacity: 1; }
  100% { transform: scale(0.98) rotate(-0.8deg); opacity: 0.95; }
}

@keyframes flame-flicker-inner {
  0% { transform: scale(0.95) rotate(1deg); }
  100% { transform: scale(1.05) rotate(-1.2deg); }
}

@keyframes flame-flicker-core {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Light Your Diya Main Button */
.diwali-light-btn {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #030712;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.9rem 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4), 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.diwali-light-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.diwali-light-btn:hover::before {
  left: 100%;
}

.diwali-light-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 36px rgba(251, 191, 36, 0.7), 0 12px 24px rgba(0, 0, 0, 0.5);
}

.diwali-light-btn:active {
  transform: translateY(1px) scale(0.99);
}

.diwali-light-btn.is-lit {
  background: rgba(15, 23, 42, 0.85);
  color: var(--diwali-gold);
  border: 1px solid var(--diwali-border);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

/* Revealed Celebratory Card */
.diwali-reveal-card {
  max-width: 820px;
  margin: 1.5rem auto 3rem;
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.12);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.diwali-reveal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24, #e11d48, #fbbf24, #38bdf8);
}

.diwali-reveal-headline {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.diwali-reveal-headline span {
  background: linear-gradient(135deg, #fbbf24 0%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diwali-reveal-body {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

.diwali-reveal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.diwali-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.diwali-btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #030712;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.diwali-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
  color: #030712;
}

.diwali-btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--diwali-border);
  color: #fff;
}

.diwali-btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--diwali-gold);
  color: var(--diwali-gold);
}

.diwali-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.diwali-btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* SECTION 2: PERSONALIZED GREETING GENERATOR (VIRAL CORE) */
.diwali-section {
  padding: 4.5rem 0 2rem;
  position: relative;
}

.diwali-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.diwali-section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--diwali-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.diwali-section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

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

/* Generator Workbench Layout */
.diwali-generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

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

/* Generator Control Form */
.diwali-gen-card {
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: var(--diwali-radius);
  padding: 1.85rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.diwali-form-group {
  margin-bottom: 1.35rem;
}

.diwali-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diwali-label small {
  color: var(--diwali-text-dim);
  font-weight: 400;
}

.diwali-input,
.diwali-select,
.diwali-textarea {
  width: 100%;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--diwali-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.diwali-input:focus,
.diwali-select:focus,
.diwali-textarea:focus {
  border-color: var(--diwali-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.diwali-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Theme Thumbnail Grid */
.diwali-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.35rem;
}

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

.diwali-theme-item {
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid var(--diwali-border);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.diwali-theme-item:hover {
  border-color: var(--diwali-gold);
  background: rgba(245, 158, 11, 0.08);
}

.diwali-theme-item.active {
  border-color: var(--diwali-gold);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.diwali-theme-icon {
  font-size: 1.35rem;
}

.diwali-theme-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* Aspect Ratio Toggle Pills */
.diwali-ratio-group {
  display: flex;
  gap: 0.5rem;
}

.diwali-ratio-btn {
  flex: 1;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--diwali-border);
  color: var(--diwali-text-muted);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.diwali-ratio-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--diwali-gold);
  color: var(--diwali-gold);
}

/* Live Card Preview Box */
.diwali-preview-card {
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: var(--diwali-radius);
  padding: 1.85rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diwali-preview-wrapper {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.15);
  background: #000;
  margin-bottom: 1.5rem;
}

/* The Native Canvas */
#greetingCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Card Actions Grid */
.diwali-card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

/* SECTION 3: RANDOM WISH GENERATOR ("ORACLE OF LIGHT") */
.diwali-oracle-card {
  max-width: 740px;
  margin: 0 auto;
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.diwali-oracle-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: pulse-icon 2s infinite ease-in-out;
}

.diwali-oracle-quote {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diwali-oracle-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--diwali-cyan);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* SECTION 4 & 5: WISHES GRIDS */
.diwali-wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.diwali-wish-card {
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: 12px;
  padding: 1.4rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.diwali-wish-card:hover {
  transform: translateY(-3px);
  border-color: var(--diwali-gold);
  background: var(--diwali-bg-card-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.15);
}

.diwali-wish-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--diwali-gold);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.diwali-wish-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.diwali-wish-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 0.85rem;
}

.diwali-icon-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--diwali-border);
  color: var(--diwali-text-muted);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s;
}

.diwali-icon-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--diwali-gold);
  color: #fff;
}

/* SECTION 6: COMMUNITY MESSAGE WALL */
.diwali-wall-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .diwali-wall-wrap {
    grid-template-columns: 1fr;
  }
}

.diwali-wall-form-card {
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: var(--diwali-radius);
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.diwali-wall-messages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.diwali-wall-msg-card {
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: 10px;
  padding: 1.15rem;
  position: relative;
}

.diwali-wall-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.diwali-wall-msg-author {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--diwali-gold);
}

.diwali-wall-msg-role {
  font-size: 0.72rem;
  color: var(--diwali-text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.diwali-wall-msg-body {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Modal Toast Popup */
.diwali-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--diwali-gold);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

/* Instagram Instructions Modal */
.diwali-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.diwali-modal-backdrop.open {
  display: flex;
}

.diwali-modal {
  background: #0c1526;
  border: 1px solid var(--diwali-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  position: relative;
}

.diwali-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--diwali-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Footer */
.diwali-footer {
  border-top: 1px solid var(--diwali-border);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--diwali-text-muted);
  background: rgba(2, 6, 23, 0.95);
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.diwali-footer a {
  color: var(--diwali-gold);
  text-decoration: none;
}

.diwali-footer a:hover {
  text-decoration: underline;
}

/* Simplified Creator & Tabs */
.diwali-simple-creator {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.25rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .diwali-simple-creator {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.diwali-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
}

.diwali-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
  width: 100%;
}

.diwali-controls-box {
  background: var(--diwali-bg-card);
  border: 1px solid var(--diwali-border);
  border-radius: var(--diwali-radius);
  padding: 1.5rem;
  width: 100%;
}

.diwali-theme-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.diwali-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.diwali-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fff;
}

.diwali-chip.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.2));
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.diwali-preset-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.diwali-preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.diwali-preset-pill:hover {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.diwali-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.diwali-tab {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--diwali-border);
  color: #94a3b8;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s ease;
}

.diwali-tab:hover {
  color: #fff;
  border-color: rgba(251, 191, 36, 0.4);
}

.diwali-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(56, 189, 248, 0.2));
  border-color: var(--diwali-gold);
  color: #fff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}
