/* ═══════════════════════════════════════════════
   M2M — MAATI SE MAHOTSAV · ROYAL INDIAN DESIGN
   Inspired by Rajasthani palaces, Mughal arches,
   temple art, peacock feathers & diya flames
═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --maharaja: #6B0F1A;
  --maharaja-d: #4A0A12;
  --royal-gold: #D4A843;
  --gold-light: #E8C97A;
  --gold-dim: rgba(212, 168, 67, .15);
  --mughal-green: #1A472A;
  --jaipur-pink: #C65D7B;
  --indigo: #0D1B2A;
  --indigo-light: #1B2D45;
  --ivory: #F8F1E3;
  --ivory-dim: rgba(248, 241, 227, .55);
  --sandstone: #C2956B;
  --vermillion: #E23636;
  --saffron: #F0A500;
  --peacock: #1E5B8B;
  --peacock-d: #0F3A5C;
  --dark: #080510;
  --dark2: #0E0A18;
  --surface: rgba(14, 11, 22, .85);
  --border: rgba(212, 168, 67, .14);
  --border-h: rgba(212, 168, 67, .35);
  --text-muted: rgba(248, 241, 227, .4);
  --text-light: rgba(248, 241, 227, .85);
  --radius: 14px;
  --arch-clip: polygon(0% 12%, 6% 4%, 14% 1%, 50% 0%, 86% 1%, 94% 4%, 100% 12%, 100% 100%, 0% 100%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  /* Let Lenis handle smooth scroll */
  font-size: 16px;
}

body {
  background: var(--dark);
  color: var(--ivory);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
  opacity: .5;
}

/* ── LOADING SCREEN ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
}

#loader.done {
  animation: loaderExit 1s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes loaderExit {
  to {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
  }
}

.loader-lotus {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 40px rgba(240, 165, 0, .3));
}

.loader-lotus svg {
  width: 100%;
  height: 100%;
  animation: lotusBreathe 2.5s ease-in-out infinite;
}

.loader-text {
  font-family: 'Yatra One', cursive;
  font-size: 1.4rem;
  letter-spacing: 8px;
  background: linear-gradient(90deg, var(--royal-gold), var(--saffron), var(--gold-light), var(--royal-gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerFlow 2s linear infinite;
}

.loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(212, 168, 67, .15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--maharaja), var(--saffron), var(--royal-gold));
  border-radius: 2px;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(240, 165, 0, .5);
}

@keyframes lotusBreathe {

  0%,
  100% {
    transform: scale(.92) rotate(0deg);
    opacity: .7;
  }

  50% {
    transform: scale(1.08) rotate(180deg);
    opacity: 1;
  }
}

@keyframes shimmerFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* ── 3D MAGNETIC CURSOR ── */
#cur {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--royal-gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
  transition: width .3s cubic-bezier(.25, .8, .25, 1), height .3s cubic-bezier(.25, .8, .25, 1), border-color .3s, background .3s, opacity .3s;
  mix-blend-mode: difference;
  will-change: transform;
}

#cur.big {
  width: 60px;
  height: 60px;
  border-color: var(--saffron);
  background: rgba(240, 165, 0, .06);
}

#cur-dot {
  width: 5px;
  height: 5px;
  background: var(--saffron);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9501;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(240, 165, 0, .6);
}

/* Cursor trail dots */
.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--royal-gold);
  pointer-events: none;
  z-index: 9499;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

/* Click ripple */
.click-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border: 2px solid var(--saffron);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9498;
  transform: translate(-50%, -50%);
  animation: rippleExpand .6s ease-out forwards;
}

@keyframes rippleExpand {
  to {
    width: 80px;
    height: 80px;
    opacity: 0;
    border-width: 1px;
  }
}

/* ── PARTICLE CANVAS ── */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: .45;
}

/* ═══════════════════
   NAV
═══════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .5s ease;
}

.nav.scrolled {
  background: rgba(8, 5, 16, .95);
  backdrop-filter: blur(20px);
  padding: 12px 48px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand .en {
  font-family: 'Yatra One', cursive;
  font-size: 1.6rem;
  letter-spacing: 4px;
  background: linear-gradient(120deg, var(--gold-light), var(--royal-gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand .hi {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  -webkit-text-fill-color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--royal-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.nav-links li a:hover {
  color: var(--ivory);
}

.nav-links li a:hover::after {
  transform: scaleX(1);
}

.nav-links li a.active {
  color: var(--gold-light);
}

.nav-links li a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--maharaja), var(--vermillion)) !important;
  color: var(--ivory) !important;
  padding: 10px 28px !important;
  border-radius: 50px !important;
  letter-spacing: 2px !important;
  -webkit-text-fill-color: var(--ivory) !important;
  box-shadow: 0 4px 20px rgba(107, 15, 26, .4);
  transition: all .3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(107, 15, 26, .6) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 802;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--royal-gold);
  transition: all .3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════
   HERO
═══════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(107, 15, 26, .25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(30, 91, 139, .1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(212, 168, 67, .06) 0%, transparent 60%),
    var(--dark);
}

/* Mandala */
.mandala-wrap {
  position: absolute;
  width: min(110vmin, 900px);
  height: min(110vmin, 900px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .07;
  animation: mandalaRotate 90s linear infinite;
}

.mandala-ring2 {
  opacity: .04;
  animation: mandalaRotateReverse 120s linear infinite;
}

.mandala-wrap svg {
  width: 100%;
  height: 100%;
}

@keyframes mandalaRotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes mandalaRotateReverse {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Temple Arch behind hero */
.arch-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 110vw);
  opacity: .06;
}

/* Diya glow spots */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 250px;
  height: 250px;
  background: rgba(240, 165, 0, .15);
  bottom: 5%;
  left: 8%;
  animation: glowPulse 5s ease-in-out infinite;
}

.glow-2 {
  width: 200px;
  height: 200px;
  background: rgba(107, 15, 26, .2);
  bottom: 10%;
  right: 10%;
  animation: glowPulse 5s ease-in-out 2s infinite;
}

.glow-3 {
  width: 350px;
  height: 350px;
  background: rgba(30, 91, 139, .08);
  top: 15%;
  right: 5%;
  animation: glowPulse 7s ease-in-out 1s infinite;
}

.glow-4 {
  width: 180px;
  height: 180px;
  background: rgba(212, 168, 67, .1);
  top: 30%;
  left: 15%;
  animation: glowPulse 6s ease-in-out 3s infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: .5;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.2)
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px 30px;
  max-width: 950px;
}

.hero-kicker {
  font-size: .68rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 28px;
  animation: fadeSlideUp 1s ease .2s both;
}

.hero-kicker span {
  color: var(--saffron);
  font-weight: 600;
}

.hero-title {
  font-family: 'Yatra One', cursive;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: .85;
  letter-spacing: 8px;
  animation: fadeSlideUp 1.1s ease .35s both;
  position: relative;
}

.hero-title .main {
  display: block;
  background: linear-gradient(160deg, var(--ivory) 0%, var(--gold-light) 30%, var(--royal-gold) 60%, var(--saffron) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
  filter: drop-shadow(0 0 60px rgba(212, 168, 67, .2));
}

.hero-title .sub {
  display: block;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: .2em;
  letter-spacing: 10px;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  margin-top: 14px;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

.hero-divider {
  width: 140px;
  height: 2px;
  margin: 32px auto;
  background: linear-gradient(90deg, transparent, var(--royal-gold), var(--saffron), var(--royal-gold), transparent);
  animation: fadeSlideUp 1s ease .5s both;
  position: relative;
}

.hero-divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: .5rem;
  color: var(--royal-gold);
  background: var(--dark);
  padding: 0 8px;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--ivory-dim);
  letter-spacing: 1.5px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeSlideUp 1s ease .65s both;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
  animation: fadeSlideUp 1s ease .8s both;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  backdrop-filter: blur(8px);
}

.cd-box:last-child {
  animation: cdPulse 1s ease-in-out infinite;
}

@keyframes cdPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 165, 0, 0);
  }

  50% {
    box-shadow: 0 0 20px 2px rgba(240, 165, 0, .15);
  }
}

.cd-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--maharaja), var(--saffron), var(--royal-gold));
}

.cd-num {
  font-family: 'Yatra One', cursive;
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--royal-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform .3s;
}

.cd-num.flip {
  animation: numFlip .4s ease;
}

@keyframes numFlip {
  0% {
    transform: rotateX(0);
  }

  50% {
    transform: rotateX(90deg);
    opacity: .5;
  }

  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

.cd-label {
  font-size: .56rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* CTA */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeSlideUp 1s ease 1s both;
}

.btn-royal {
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  color: var(--ivory);
  padding: 16px 52px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all .4s cubic-bezier(.25, .8, .25, 1);
  box-shadow: 0 6px 30px rgba(107, 15, 26, .4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
}

.btn-royal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease;
}

.btn-royal:hover::before {
  width: 300px;
  height: 300px;
}

.btn-royal:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 50px rgba(107, 15, 26, .7), 0 0 30px rgba(240, 165, 0, .1);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  padding: 15px 48px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1.5px solid var(--border-h);
  border-radius: 50px;
  cursor: pointer;
  transition: all .4s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--royal-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, .15);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: fadeSlideUp 1s ease 1.8s both;
}

.scroll-cue span {
  font-size: .58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--royal-gold), transparent);
  animation: scrollDrop 2.5s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% {
    height: 0;
    opacity: 0
  }

  40% {
    height: 50px;
    opacity: 1
  }

  100% {
    height: 50px;
    opacity: 0;
    transform: translateY(20px)
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ═══════════════════
   SECTION GLOBALS
═══════════════════ */
.section {
  position: relative;
}

.s-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.s-kicker {
  font-size: .64rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--saffron);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.s-kicker::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--royal-gold));
}

.s-heading {
  font-family: 'Yatra One', cursive;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  background: linear-gradient(130deg, var(--ivory), var(--gold-light) 50%, var(--royal-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.s-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  line-height: 1.9;
  color: var(--ivory-dim);
  max-width: 560px;
}

/* Ornament divider — enhanced glow */
.ornament {
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.ornament::before,
.ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  width: calc(50% - 60px);
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, .25));
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
  background: linear-gradient(270deg, transparent, rgba(212, 168, 67, .25));
}

.ornament svg {
  width: 60px;
  filter: drop-shadow(0 0 6px rgba(212, 168, 67, .3));
}

/* Glow line shimmer for ornaments */
.ornament-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 165, 0, .3), transparent);
  background-size: 200% 100%;
  animation: ornShimmer 3s linear infinite;
}

@keyframes ornShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Jaali pattern overlay for sections */
.jaali-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4A843' stroke-width='.5'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Cline x1='30' y1='0' x2='30' y2='60'/%3E%3Cline x1='0' y1='30' x2='60' y2='30'/%3E%3Cline x1='0' y1='0' x2='60' y2='60'/%3E%3Cline x1='60' y1='0' x2='0' y2='60'/%3E%3C/g%3E%3C/svg%3E");
}

/* Scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s ease, transform .8s ease;
}

.rv.left {
  transform: translateX(-60px);
}

.rv.right {
  transform: translateX(60px);
}

.rv.scale {
  transform: scale(.9);
}

.rv.on {
  opacity: 1 !important;
  transform: none !important;
}

/* ═══════════════════
   ABOUT
═══════════════════ */
.about {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 50%, var(--dark) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.img-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 2px solid rgba(212, 168, 67, .2);
  border-radius: var(--radius);
  z-index: 2;
  pointer-events: none;
}

.img-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 1px solid rgba(212, 168, 67, .08);
  border-radius: var(--radius);
  z-index: 0;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: #120a1e;
  background-image:
    repeating-linear-gradient(45deg, rgba(212, 168, 67, .02) 0px, rgba(212, 168, 67, .02) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(212, 168, 67, .02) 0px, rgba(212, 168, 67, .02) 1px, transparent 1px, transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.img-label {
  font-size: .62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(212, 168, 67, .3);
  border: 1px dashed rgba(212, 168, 67, .12);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
  border-color: var(--royal-gold);
  border-style: solid;
}

.corner.tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: var(--radius) 0 0 0;
}

.corner.tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-radius: 0 var(--radius) 0 0;
}

.corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 var(--radius);
}

.corner.br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 var(--radius) 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 44px;
}

.astat {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--radius);
  transition: all .3s;
}

.astat:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.astat .n {
  font-family: 'Yatra One', cursive;
  font-size: 2.2rem;
  background: linear-gradient(180deg, var(--saffron), var(--royal-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.astat .d {
  font-size: .64rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════
   EVENTS
═══════════════════ */
.events-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 52px;
}

.ef-btn {
  font-family: 'Poppins', sans-serif;
  font-size: .66rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 10px 26px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--ivory-dim);
  cursor: pointer;
  transition: all .3s;
}

.ef-btn.on,
.ef-btn:hover {
  background: linear-gradient(135deg, rgba(107, 15, 26, .2), rgba(240, 165, 0, .1));
  border-color: var(--saffron);
  color: var(--ivory);
  box-shadow: 0 0 20px rgba(240, 165, 0, .1);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.ev-card {
  background: #0e0b16;
  border: 1px solid rgba(212, 168, 67, .12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .45s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.ev-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-h);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(212, 168, 67, .06) inset;
}

.ev-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.ev-img>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.ev-card:hover .ev-img>img {
  transform: scale(1.08);
}

.ev-img-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-card:hover .ev-img-inner {
  transform: scale(1.08);
}

.ev-img-label {
  font-size: .58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(212, 168, 67, .35);
  border: 1px dashed rgba(212, 168, 67, .18);
  padding: 6px 14px;
  border-radius: var(--radius);
}

.ev-category {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: .58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(107, 15, 26, .85);
  color: var(--ivory);
  padding: 5px 12px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.ev-time-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(10, 6, 20, .8);
  color: var(--royal-gold);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(212, 168, 67, .2);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.ev-body {
  padding: 24px;
}

.ev-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 10px;
  line-height: 1.25;
}

.ev-desc {
  font-size: .82rem;
  line-height: 1.8;
  color: var(--ivory-dim);
  margin-bottom: 20px;
}

.ev-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .7rem;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  align-items: center;
}

.ev-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ev-prize {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--saffron);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Event image gradients */
.ev-img.c1 {
  background: linear-gradient(135deg, #2a0050, #4a0080, #1a0033);
}

.ev-img.c2 {
  background: linear-gradient(135deg, #2a1800, #4d2e00, #1a0e00);
}

.ev-img.c3 {
  background: linear-gradient(135deg, #002828, #004d4d, #001818);
}

.ev-img.c4 {
  background: linear-gradient(135deg, #2a0018, #4d0030, #1a000e);
}

.ev-img.c5 {
  background: linear-gradient(135deg, #142800, #284d00, #0a1800);
}

.ev-img.c6 {
  background: linear-gradient(135deg, #001828, #002e4d, #00101a);
}

.ev-img.c7 {
  background: linear-gradient(135deg, #2a1400, #4d2200, #1a0d00);
}

/* ═══════════════════
   SCHEDULE
═══════════════════ */
.schedule {
  background: linear-gradient(180deg, var(--dark), var(--dark2), var(--dark));
}

.day-strip {
  display: flex;
  gap: 0;
  margin: 40px 0 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ds-btn {
  flex: 1;
  padding: 16px 24px;
  font-size: .68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: transparent;
  color: var(--ivory-dim);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: all .3s;
  position: relative;
}

.ds-btn:last-child {
  border-right: none;
}

.ds-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maharaja), var(--saffron));
  transform: scaleX(0);
  transition: transform .4s;
}

.ds-btn.on {
  background: rgba(107, 15, 26, .12);
  color: var(--ivory);
}

.ds-btn.on::before,
.ds-btn:hover::before {
  transform: scaleX(1);
}

.ds-btn:hover {
  background: rgba(212, 168, 67, .04);
  color: var(--gold-light);
}

.sch-line {
  display: none;
}

.sch-line.on {
  display: block;
}

.sch-timeline {
  position: relative;
  padding-left: 100px;
}

.sch-timeline::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--maharaja), var(--saffron), var(--mughal-green), transparent);
  opacity: .3;
}

.sch-item {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  align-items: flex-start;
  position: relative;
}

.sch-dot {
  position: absolute;
  left: -70px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--royal-gold);
  background: var(--dark);
}

.sch-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--saffron);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
}

.sch-item:hover .sch-dot::after {
  opacity: 1;
}

.sch-time {
  font-family: 'Yatra One', cursive;
  font-size: .9rem;
  color: var(--saffron);
  min-width: 100px;
  padding-top: 16px;
  text-align: right;
  flex-shrink: 0;
}

.sch-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.sch-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--maharaja), var(--saffron));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s ease;
}

.sch-card:hover {
  border-color: var(--border-h);
  transform: translateX(8px);
}

.sch-card:hover::before {
  transform: scaleY(1);
}

.sch-title {
  font-weight: 600;
  font-size: .96rem;
  color: var(--ivory);
  margin-bottom: 6px;
}

.sch-sub {
  font-size: .78rem;
  color: var(--ivory-dim);
  line-height: 1.7;
}

.sch-venue {
  font-size: .66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--royal-gold);
  opacity: .6;
  margin-top: 8px;
}

.sch-type {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: .56rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius);
}

.sch-type.ceremony {
  background: rgba(212, 168, 67, .15);
  color: var(--royal-gold);
}

.sch-type.music {
  background: rgba(198, 93, 123, .2);
  color: var(--jaipur-pink);
}

.sch-type.dance {
  background: rgba(26, 71, 42, .3);
  color: #80d4a0;
}

.sch-type.culture {
  background: rgba(26, 71, 42, .2);
  color: #a8d08a;
}

.sch-type.activity {
  background: rgba(30, 91, 139, .2);
  color: #8ac4e8;
}

.sch-type.headline {
  background: rgba(107, 15, 26, .25);
  color: #f4907a;
}

/* ═══════════════════
   GALLERY
═══════════════════ */
.gal-masonry {
  columns: 3;
  column-gap: 16px;
}

.gal-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.gal-photo {
  width: 100%;
  background-color: #120a1e;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s ease;
}

.gal-item:hover .gal-photo {
  transform: scale(1.06);
}

.gal-item:nth-child(1) .gal-photo {
  height: 250px;
}

.gal-item:nth-child(2) .gal-photo {
  height: 180px;
}

.gal-item:nth-child(3) .gal-photo {
  height: 220px;
}

.gal-item:nth-child(4) .gal-photo {
  height: 195px;
}

.gal-item:nth-child(5) .gal-photo {
  height: 270px;
}

.gal-item:nth-child(6) .gal-photo {
  height: 185px;
}

.gal-item:nth-child(7) .gal-photo {
  height: 230px;
}

.gal-item:nth-child(8) .gal-photo {
  height: 170px;
}

.gal-item:nth-child(9) .gal-photo {
  height: 240px;
}

.gal-photo-lbl {
  font-size: .56rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(212, 168, 67, .3);
  border: 1px dashed rgba(212, 168, 67, .12);
  padding: 5px 12px;
  border-radius: var(--radius);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 5, 16, .85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: var(--radius);
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-cap {
  font-size: .74rem;
  letter-spacing: 1px;
  color: var(--ivory);
}

/* ═══════════════════
   TEAM
═══════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.team-card {
  padding: 32px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all .4s;
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maharaja), var(--saffron), var(--royal-gold));
  transform: scaleX(0);
  transition: transform .4s;
}

.team-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
}

.team-card:hover::after {
  transform: scaleX(1);
}

.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 2px solid rgba(212, 168, 67, .2);
  background-color: #120a1e;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ivory);
  transition: border-color .3s, box-shadow .3s;
}

.team-card:hover .team-photo {
  border-color: var(--royal-gold);
  box-shadow: 0 0 20px rgba(212, 168, 67, .12);
}

.team-name {
  font-weight: 600;
  font-size: .94rem;
  color: var(--ivory);
  margin-bottom: 5px;
}

.team-role {
  font-size: .63rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--saffron);
}

/* ═══════════════════
   SPONSORS
═══════════════════ */
.sp-tier {
  margin-bottom: 56px;
}

.sp-tier-label {
  text-align: center;
  font-size: .63rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--royal-gold);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.sp-tier-label::before,
.sp-tier-label::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: rgba(212, 168, 67, .2);
}

.sp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.sp-logo {
  padding: 20px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  transition: all .4s;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: default;
}

.sp-logo:hover {
  border-color: var(--border-h);
  background: var(--gold-dim);
  color: var(--ivory-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.sp-logo.title {
  padding: 28px 64px;
  font-size: 1.05rem;
}

/* ═══════════════════
   REGISTRATION
═══════════════════ */
.register {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(107, 15, 26, .12) 0%, transparent 70%),
    var(--dark2);
  position: relative;
  overflow: hidden;
}

.reg-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 120px 48px;
}

.reg-inner .s-kicker {
  justify-content: center;
}

.reg-inner .s-kicker::before {
  display: none;
}

/* ─── Registration Form Card ─── */
.reg-card {
  background: rgba(14, 11, 22, .65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 168, 67, .12);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 0 80px rgba(107, 15, 26, .06);
}

.reg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, .25), transparent);
}


/* ─── Event Selector (Multi-select Chips) ─── */
.event-selector {
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.event-selector::-webkit-scrollbar { width: 4px; }
.event-selector::-webkit-scrollbar-thumb { background: rgba(212,168,67,.3); border-radius: 4px; }

.event-day-label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--royal-gold);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212,168,67,.12);
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.event-chip {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  transition: all .25s ease;
  position: relative;
}

.event-chip:hover {
  background: rgba(212,168,67,.06);
  border-color: rgba(212,168,67,.2);
  transform: translateY(-1px);
}

.event-chip input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(212,168,67,.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 10px;
  position: relative;
  transition: all .2s ease;
}

.event-chip input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--royal-gold), #c4922e);
  border-color: var(--royal-gold);
}

.event-chip input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0a0a0c;
  font-size: .7rem;
  font-weight: 700;
}

.event-chip:has(input:checked) {
  background: rgba(212,168,67,.08);
  border-color: rgba(212,168,67,.35);
  box-shadow: 0 0 12px rgba(212,168,67,.1);
}

.chip-label {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.3;
  transition: color .2s;
}

.event-chip:has(input:checked) .chip-label {
  color: var(--text-light);
}

.reg-form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fg label {
  font-size: .6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fg input,
.fg select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--ivory);
  font-family: 'Poppins', sans-serif;
  font-size: .86rem;
  outline: none;
  transition: all .3s;
}

.fg input::placeholder {
  color: rgba(248, 241, 227, .2);
}

.fg input:focus,
.fg select:focus {
  border-color: var(--royal-gold);
  background: rgba(212, 168, 67, .04);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, .08);
}

.fg select option {
  background: var(--dark2);
}

.form-sub {
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  color: var(--ivory);
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: all .4s;
  box-shadow: 0 6px 30px rgba(107, 15, 26, .3);
}

.form-sub:hover {
  background: linear-gradient(135deg, #8B1525, var(--maharaja));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 15, 26, .5);
}

.user-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--gold-dim);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 26px;
}

.user-bar.show {
  display: flex;
}

.user-bar .uname {
  color: var(--gold-light);
  font-weight: 600;
}

.user-bar .uemail {
  color: var(--text-muted);
  font-size: .74rem;
  margin-top: 2px;
}

.btn-signout,
.btn-dashboard {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ivory-dim);
  padding: 7px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: .66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
}

.btn-signout:hover {
  border-color: var(--maharaja);
  color: var(--vermillion);
}

.btn-dashboard:hover {
  border-color: var(--royal-gold);
  color: var(--royal-gold);
  background: rgba(212, 168, 67, .1);
}

/* Auth Wall */
.auth-wall {
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h3 {
  color: var(--royal-gold);
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: .84rem;
}

/* Dashboard View */
.dashboard-view {
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 30px;
  position: relative;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dash-header h3 {
  color: var(--gold-light);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .3s, transform .2s;
}

.btn-close:hover {
  color: var(--vermillion);
  transform: scale(1.1);
}

.dash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.dash-item .event-name {
  color: var(--ivory);
  font-weight: 500;
}

.dash-item .event-date {
  color: var(--text-muted);
  font-size: .75rem;
}

/* ═══════════════════
   FOOTER
═══════════════════ */
.footer {
  background: linear-gradient(180deg, var(--dark), #050310);
  border-top: 1px solid var(--border);
  padding: 72px 48px 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--maharaja), var(--saffron), var(--royal-gold), var(--mughal-green), transparent);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.f-brand .logo {
  font-family: 'Yatra One', cursive;
  font-size: 1.8rem;
  letter-spacing: 3px;
  background: linear-gradient(120deg, var(--gold-light), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.f-brand p {
  font-size: .82rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 260px;
}

.f-col h4 {
  font-size: .6rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--royal-gold);
  margin-bottom: 20px;
  opacity: .7;
}

.f-col a {
  display: block;
  color: var(--text-muted);
  font-size: .82rem;
  margin-bottom: 12px;
  transition: color .25s, padding-left .25s;
}

.f-col a:hover {
  color: var(--ivory);
  padding-left: 8px;
}

.f-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(248, 241, 227, .2);
}

.f-socials {
  display: flex;
  gap: 12px;
}

.f-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--text-muted);
  transition: all .3s;
}

.f-socials a:hover {
  border-color: var(--royal-gold);
  color: var(--royal-gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ═══════════════════
   LIVE BADGE
═══════════════════ */
.live-pill {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  color: var(--ivory);
  padding: 12px 28px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  z-index: 700;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(107, 15, 26, .4);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .3s;
  animation: fadeSlideUp 1s ease 2.5s both;
}

.live-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(107, 15, 26, .6);
}

.lv-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .15
  }
}

/* ═══════════════════
   RESPONSIVE
═══════════════════ */
@media(max-width:900px) {
  .s-inner {
    padding: 80px 24px;
  }

  .nav {
    padding: 16px 24px;
  }

  .nav.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 5, 16, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 801;
    justify-content: center;
    align-items: center;
    gap: 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.mobile-open li a {
    font-size: 1rem;
    letter-spacing: 4px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .img-frame {
    aspect-ratio: 16/9;
  }

  .gal-masonry {
    columns: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .sch-timeline {
    padding-left: 0;
  }

  .sch-timeline::before {
    display: none;
  }

  .sch-dot {
    display: none;
  }

  .sch-time {
    min-width: auto;
    text-align: left;
  }

  /* Registration page mobile */
  .reg-inner {
    padding: 60px 16px;
  }

  .reg-card {
    padding: 28px 18px;
    border-radius: 12px;
  }

  .reg-form {
    margin-top: 32px;
    gap: 12px;
  }

  .user-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 14px 16px;
  }

  .user-bar > div:last-child {
    justify-content: center;
  }

  .dashboard-view {
    padding: 20px 14px;
  }

  .dash-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }



  /* Live pill compact on mobile */
  .live-pill {
    padding: 10px 18px;
    font-size: .6rem;
    letter-spacing: 1.5px;
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* Scroll cue hide (safety for cached pages) */
  .scroll-cue {
    display: none;
  }
}

@media(max-width:550px) {
  .gal-masonry {
    columns: 1;
  }

  .countdown {
    gap: 8px;
  }

  .cd-box {
    min-width: 60px;
    padding: 12px 14px;
  }

  .cd-num {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-royal,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Nav brand tagline — hide on small screens */
  .nav-brand .hi {
    display: none;
  }

  /* Footer full single column */
  .footer {
    padding: 48px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .f-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Registration card tighter */
  .reg-card {
    padding: 24px 14px;
  }

  .reg-inner {
    padding: 40px 10px;
  }

  .fg label {
    font-size: .55rem;
    letter-spacing: 2px;
  }

  .fg input,
  .fg select {
    padding: 12px 14px;
    font-size: .82rem;
  }

  .form-sub {
    padding: 14px;
    font-size: .75rem;
    letter-spacing: 2px;
  }

  .hero-tagline {
    font-size: .82rem;
    padding: 0 8px;
  }

  .hero-kicker {
    font-size: .58rem;
  }

  /* Login modal mobile */
  #loginModal > div {
    width: min(95%, 400px) !important;
    padding: 28px 20px !important;
  }

  /* Dashboard mobile */
  .dash-header h3 {
    font-size: .9rem;
  }

  .btn-dashboard,
  .btn-signout {
    padding: 6px 12px;
    font-size: .6rem;
    letter-spacing: 1.5px;
  }

  /* Live pill small devices */
  .live-pill {
    padding: 8px 14px;
    font-size: .55rem;
    letter-spacing: 1px;
    bottom: 12px;
    right: 12px;
  }

  .back-to-top {
    bottom: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    font-size: .9rem;
  }
}

/* Extra small devices (320px) */
@media(max-width:380px) {
  .reg-card {
    padding: 20px 10px;
  }

  .reg-inner {
    padding: 32px 6px;
  }

  .hero-title .main {
    font-size: 2.4rem;
  }

  .hero-title .sub {
    font-size: .7rem;
    letter-spacing: 2px;
  }

  .fg label {
    font-size: .5rem;
    letter-spacing: 1.5px;
  }

  .countdown {
    gap: 4px;
  }

  .cd-box {
    min-width: 50px;
    padding: 10px 10px;
  }

  .cd-num {
    font-size: 1.5rem;
  }

  .f-brand .logo {
    font-size: 1.4rem;
  }
}

/* ═══════════════════
   TEXT SPLIT CHARS
═══════════════════ */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ═══════════════════
   CARD HOVER
═══════════════════ */
.ev-card {
  will-change: transform;
}

.ev-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-h);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(212, 168, 67, .06) inset;
}

/* ═══════════════════
   BACK TO TOP
═══════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: rgba(20, 12, 30, .85);
  border: 1px solid var(--border-h);
  border-radius: 50%;
  color: var(--royal-gold);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all .4s cubic-bezier(.25, .8, .25, 1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(212, 168, 67, .15);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 168, 67, .15);
}

/* ═══════════════════
   SECTION GLOW TRANSITIONS
═══════════════════ */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, .12), transparent);
}

/* ═══════════════════════════════════════════
   ENHANCEMENT LAYER — Added on top of existing styles
   Performance, Mobile, Animations, UI Enhancements
═══════════════════════════════════════════ */

/* ── MORPHING BLOB BACKGROUNDS ── */
.blob-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: morphBlob 12s ease-in-out infinite;
}
.blob-bg.b1 { background: var(--maharaja); top: 10%; left: -5%; animation-delay: 0s; }
.blob-bg.b2 { background: var(--saffron); bottom: 10%; right: -5%; animation-delay: -4s; }
.blob-bg.b3 { background: var(--peacock); top: 50%; left: 50%; animation-delay: -8s; }

@keyframes morphBlob {
  0%, 100% { border-radius: 42% 56% 72% 28% / 42% 42% 56% 56%; transform: translate(0, 0) scale(1); }
  25% { border-radius: 72% 28% 42% 56% / 56% 72% 28% 42%; transform: translate(20px, -20px) scale(1.05); }
  50% { border-radius: 28% 72% 56% 42% / 28% 56% 72% 42%; transform: translate(-10px, 20px) scale(0.95); }
  75% { border-radius: 56% 42% 28% 72% / 72% 28% 42% 56%; transform: translate(15px, 10px) scale(1.02); }
}

/* ── CURSOR GLOW EFFECT ── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s;
}

/* ── FLOATING ELEMENTS ── */
.float-element {
  animation: floatElement 6s ease-in-out infinite;
}
.float-element:nth-child(2) { animation-delay: -2s; }
.float-element:nth-child(3) { animation-delay: -4s; }

@keyframes floatElement {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── ARTIST MARQUEE TICKER ── */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8,5,16,0.5);
  backdrop-filter: blur(10px);
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(270deg, var(--dark), transparent); }

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--ivory-dim);
  letter-spacing: 2px;
}
.marquee-item .dot {
  width: 5px;
  height: 5px;
  background: var(--royal-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FAQ ACCORDION ── */
.faq-section { background: var(--dark2); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s;
}
.faq-item:hover, .faq-item.active { border-color: var(--border-h); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ivory);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s;
  min-height: 44px;
}
.faq-question:hover { color: var(--gold-light); }
.faq-icon {
  font-size: 1.2rem;
  color: var(--royal-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ivory-dim);
}

/* ── NEWSLETTER SIGNUP ── */
.newsletter-bar {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, transparent, rgba(107,15,26,0.08), transparent);
  position: relative;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 24px auto 0;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 14px 24px;
  color: var(--ivory);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  min-height: 44px;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--royal-gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.08);
}
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-form button {
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  color: var(--ivory);
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  min-height: 44px;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,15,26,0.5);
}

/* ── FLOATING BUY TICKETS MOBILE ── */
.floating-tickets {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 750;
  padding: 12px 16px;
  background: rgba(8,5,16,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.floating-tickets.visible { transform: translateY(0); }
.floating-tickets a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  color: var(--ivory);
  padding: 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(107,15,26,0.4);
  animation: pulseGlow 2s ease-in-out infinite;
  min-height: 44px;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 30px rgba(107,15,26,0.4); }
  50% { box-shadow: 0 6px 40px rgba(107,15,26,0.7), 0 0 20px rgba(240,165,0,0.15); }
}

/* ── CONFETTI CELEBRATION ── */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 10000;
  pointer-events: none;
  animation: confettiFall 3s ease-out forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.3); }
}

/* ── BUTTON RIPPLE EFFECT ── */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  pointer-events: none;
  transform: scale(0);
  animation: btnRipple 0.6s ease-out forwards;
}
@keyframes btnRipple {
  to { transform: scale(4); opacity: 0; }
}

/* ── CSS CONTAINMENT FOR PERFORMANCE ── */
.section { contain: layout style; }
.ev-card { contain: layout; }
.team-card { contain: layout; }
.sch-item { contain: layout style; }

/* ── TOUCH TARGETS (44px minimum) ── */
@media (pointer: coarse) {
  .ef-btn { min-height: 44px; min-width: 44px; }
  .ds-btn { min-height: 44px; }
  .nav-links li a { min-height: 44px; display: inline-flex; align-items: center; }
  .f-col a { min-height: 44px; display: inline-flex; align-items: center; }
  .f-socials a { min-width: 44px; min-height: 44px; }
  .back-to-top { min-width: 44px; min-height: 44px; }
  .faq-question { min-height: 48px; }
}

/* ── SMOOTH iOS SCROLLING ── */
.event-selector { -webkit-overflow-scrolling: touch; }
.nav-links.mobile-open { -webkit-overflow-scrolling: touch; }

/* ── MOBILE-FIRST FLUID ENHANCEMENTS ── */
@media (max-width: 414px) {
  .event-grid { grid-template-columns: 1fr; }
  .marquee-item { padding: 0 24px; font-size: 0.9rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"],
  .newsletter-form button { width: 100%; }
}

@media (max-width: 768px) {
  .floating-tickets { display: block; }
  .live-pill { bottom: 72px; }
  .back-to-top { bottom: 72px; }
}

@media (min-width: 769px) {
  .floating-tickets { display: none !important; }
}

/* ── LIGHTBOX SWIPE ENHANCEMENT ── */
.lightbox img {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  z-index: 10001;
}
.lightbox-nav:hover {
  background: rgba(212,168,67,0.2);
  border-color: var(--royal-gold);
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ── STAGGERED SECTION ENTRANCE ── */
.rv[data-delay="1"] { transition-delay: 0.1s; }
.rv[data-delay="2"] { transition-delay: 0.2s; }
.rv[data-delay="3"] { transition-delay: 0.3s; }
.rv[data-delay="4"] { transition-delay: 0.4s; }

/* ── GLASSMORPHISM ENHANCEMENT ── */
.glass-card {
  background: rgba(14,11,22,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,168,67,0.1);
  border-radius: var(--radius);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .mandala-wrap { animation: none; }
  .blob-bg { animation: none; }
}

/* ── PRINT STYLES ── */
@media print {
  .nav, .live-pill, .back-to-top, .floating-tickets, #particleCanvas, #cur, #cur-dot, .cursor-trail, .cursor-glow, .blob-bg { display: none !important; }
  body { background: #fff; color: #000; cursor: auto; }
  body::before { display: none; }
  .section { contain: none; }
}

/* ═══════════════════════════════════════════
   MOBILE OPTIMIZATION FIXES
   Added: 2026-03-08
═══════════════════════════════════════════ */

/* ── 1. iOS ZOOM FIX — 16px minimum on inputs ── */
@media (max-width: 900px) {
  .fg input,
  .fg select,
  .newsletter-form input[type="email"] {
    font-size: 16px !important;
  }
}

/* ── 2. TABLET LANDSCAPE (1024px) ── */
@media (max-width: 1024px) {
  .s-inner { padding: 100px 36px; }
  .about-grid { gap: 50px; }
  .footer-grid { gap: 40px; }
  .sp-logo { padding: 16px 32px; }
  .sp-logo.title { padding: 22px 48px; }
}

/* ── 3. VERY SMALL SCREENS (320px) ── */
@media (max-width: 320px) {
  .s-inner { padding: 40px 12px; }
  .nav { padding: 12px 12px; }
  .nav.scrolled { padding: 10px 12px; }
  .nav-brand .en { font-size: 1.3rem; letter-spacing: 2px; }
  .countdown { flex-wrap: wrap; justify-content: center; }
  .cd-box { min-width: 44px; padding: 8px 6px; }
  .cd-num { font-size: 1.3rem; }
  .cd-label { font-size: .48rem; letter-spacing: 1px; }
  .hero-kicker { font-size: .5rem; letter-spacing: 3px; }
  .hero-title .sub { letter-spacing: 3px; font-size: .65rem; }
  .hero-tagline { font-size: .78rem; }
  .btn-royal { padding: 14px 28px; font-size: .72rem; letter-spacing: 2px; }
  .btn-outline { padding: 13px 24px; font-size: .72rem; letter-spacing: 2px; }
  .ev-body { padding: 16px; }
  .ev-name { font-size: 1.1rem; }
  .ev-desc { font-size: .76rem; }
  .sp-logo { padding: 14px 20px; min-width: 100px; font-size: .68rem; }
  .sp-logo.title { padding: 18px 28px; font-size: .88rem; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-card { padding: 20px 12px 16px; }
  .team-photo { width: 64px; height: 64px; }
  .team-name { font-size: .82rem; }
  .faq-question { padding: 16px 14px; font-size: .84rem; }
  .faq-answer { padding: 0 14px; }
  .faq-answer p { font-size: .78rem; }
  .newsletter-form { padding: 0 8px; }
  .reg-card { padding: 16px 8px; }
  .footer { padding: 36px 12px 20px; }
  .f-brand .logo { font-size: 1.2rem; letter-spacing: 2px; }
  .f-col h4 { font-size: .55rem; letter-spacing: 2px; }
  .f-col a { font-size: .76rem; }
  .f-bottom { font-size: .6rem; }
  .sch-card { padding: 14px 16px; }
  .sch-title { font-size: .88rem; }
  .sch-sub { font-size: .72rem; }
  .sch-time { font-size: .78rem; }
}

/* ── 4. HAMBURGER TOUCH TARGET FIX ── */
.nav-hamburger {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
}

/* ── 5. BODY SCROLL LOCK ── */
body.nav-open { overflow: hidden; position: fixed; width: 100%; }

/* ── 6. LIVE PILL + FLOATING TICKETS OVERLAP FIX ── */
@media (max-width: 768px) {
  .live-pill { bottom: 76px !important; }
  .back-to-top { bottom: 76px !important; }
}

/* ── 7. FLUID TYPOGRAPHY (replaces stepped sizes) ── */
@media (max-width: 900px) {
  .nav-brand .en { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  .hero-kicker { letter-spacing: clamp(3px, 1.5vw, 7px); }
  .hero-title .sub { letter-spacing: clamp(3px, 2vw, 10px); }
  .cd-num { font-size: clamp(1.3rem, 5vw, 2.4rem); }
  .cd-label { letter-spacing: clamp(1px, 0.6vw, 2.5px); }
  .s-body { font-size: clamp(0.92rem, 2.5vw, 1.18rem); }
  .s-inner { padding: clamp(40px, 10vw, 80px) clamp(12px, 4vw, 24px); }
  .astat .n { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .ev-name { font-size: clamp(1.1rem, 3.5vw, 1.35rem); }
  .f-brand .logo { font-size: clamp(1.2rem, 4vw, 1.8rem); }
}

/* ── 8. TEAM CARDS MOBILE FIX ── */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 350px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ── 9. COUNTDOWN MOBILE FLEX-WRAP ── */
@media (max-width: 380px) {
  .countdown { flex-wrap: wrap; }
}

/* ── 10. PARTICLE CANVAS MOBILE REDUCTION ── */
@media (max-width: 768px) {
  #particleCanvas { opacity: 0.2; }
}
@media (max-width: 480px) {
  #particleCanvas { opacity: 0.12; }
}

/* ── 11. CURSOR HIDE ON TOUCH ── */
@media (pointer: coarse) {
  body { cursor: auto !important; }
  #cur, #cur-dot, .cursor-trail, .cursor-glow { display: none !important; }
}

/* ── 12. FAQ MOBILE ── */
@media (max-width: 550px) {
  .faq-question { padding: 16px 16px; font-size: 0.86rem; }
  .faq-answer { padding: 0 16px; }
  .faq-item.active .faq-answer { padding: 0 16px 16px; }
  .faq-answer p { font-size: 0.8rem; line-height: 1.7; }
}

/* ── 13. SCHEDULE MOBILE IMPROVEMENT ── */
@media (max-width: 550px) {
  .sch-item { flex-direction: column; gap: 8px; }
  .sch-time { text-align: left; min-width: auto; padding-top: 0; }
  .day-strip { flex-direction: column; }
  .ds-btn { border-right: none; border-bottom: 1px solid var(--border); }
  .ds-btn:last-child { border-bottom: none; }
}

/* ── 14. EVENT CHIPS MOBILE ── */
@media (max-width: 550px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-chip { padding: 12px 14px; }
  .chip-label { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════
   PRODUCTION AUDIT FIXES — 2026-03-08
   A11y, focus-visible, dvh, skip-nav, contrast
═══════════════════════════════════════════ */

/* ── SKIP NAVIGATION LINK (Accessibility) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--royal-gold);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-nav:focus {
  top: 0;
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

/* ── FOCUS-VISIBLE STYLES (keyboard-only) ── */
*:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 3px;
}
/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ── DVH FALLBACK FOR MOBILE SAFARI ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
}
.lightbox {
  height: 100vh;
  height: 100dvh;
}

/* ── DISABLED BUTTON STATE ── */
.form-sub:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── CLICK-RIPPLE CLEANUP ── */
.click-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.2);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  animation: clickRippleAnim 0.5s ease-out forwards;
}
@keyframes clickRippleAnim {
  to { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

/* ── CURSOR TRAIL ── */
.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(212, 168, 67, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
}

/* ── HOVER STATE FIX ON TOUCH (remove stuck hovers) ── */
@media (hover: none) {
  .ev-card:hover {
    transform: none;
    box-shadow: none;
    background: #0e0b16;
  }
  .ev-card:hover .ev-img > img,
  .ev-card:hover .ev-img-inner {
    transform: none;
  }
  .ev-card:hover::after {
    opacity: 0;
  }
  .team-card:hover {
    transform: none;
    border-color: var(--border);
  }
  .team-card:hover::after {
    transform: scaleX(0);
  }
  .sp-logo:hover {
    transform: none;
    box-shadow: none;
  }
  .astat:hover {
    transform: none;
  }
  .sch-card:hover {
    transform: none;
  }
  .btn-royal:hover {
    transform: none;
  }
  .btn-outline:hover {
    transform: none;
  }
}

/* ── LIGHTBOX A11Y ── */
.lightbox[role="dialog"] {
  isolation: isolate;
}
.lightbox:focus {
  outline: none;
}

/* ── LOADING SKELETON FOR IMAGES ── */
img[loading="lazy"] {
  background: linear-gradient(90deg, #120a1e 25%, #1a1228 50%, #120a1e 75%);
  background-size: 200% 100%;
  animation: imgSkeleton 1.5s ease-in-out infinite;
}
img[loading="lazy"][src]:not([src=""]) {
  animation: none;
  background: none;
}
@keyframes imgSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SELECTION COLOR ── */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: var(--ivory);
}
::-moz-selection {
  background: rgba(212, 168, 67, 0.3);
  color: var(--ivory);
}

/* ── HONEYPOT FIELD (hidden from users, catches bots) ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   MY PARTICIPATION — DASHBOARD PAGE
   Interactive user activity / participation view
═══════════════════════════════════════════════════════ */

/* ── AUTH GATE ── */
.mp-auth-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px 40px;
}

.mp-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mp-auth-card {
  position: relative;
  z-index: 2;
  background: rgba(14, 11, 22, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-h);
  border-radius: 24px;
  padding: 48px 40px;
  width: min(92%, 420px);
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 168, 67, 0.06) inset,
    0 0 120px rgba(212, 168, 67, 0.04);
  animation: authCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mp-auth-lotus {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  animation: lotusFloat 4s ease-in-out infinite;
}
.mp-auth-lotus svg { width: 100%; height: 100%; }

@keyframes lotusFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.mp-auth-title {
  font-family: 'Yatra One', cursive;
  font-size: clamp(1.6rem, 4vw, 2rem);
  background: linear-gradient(130deg, var(--ivory), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.mp-auth-sub {
  color: var(--text-muted);
  font-size: .84rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.mp-auth-form {
  text-align: left;
}

.mp-auth-field {
  margin-bottom: 16px;
}

.mp-auth-field label {
  display: block;
  font-size: .6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .7;
  margin-bottom: 8px;
  font-weight: 500;
}

.mp-auth-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ivory);
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: all .3s ease;
}

.mp-auth-field input:focus {
  border-color: var(--royal-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1), 0 0 30px rgba(212, 168, 67, 0.05);
}

.mp-auth-field input::placeholder {
  color: var(--text-muted);
}

.mp-auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--maharaja), #8B1525, var(--maharaja-d));
  background-size: 200% 200%;
  color: var(--ivory);
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.mp-auth-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 15, 26, 0.5), 0 0 20px rgba(212, 168, 67, 0.1);
}

.mp-auth-btn-arrow {
  transition: transform .3s;
}

.mp-auth-btn:hover .mp-auth-btn-arrow {
  transform: translateX(4px);
}

.mp-auth-link {
  margin-top: 20px;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.mp-auth-link a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s;
}

.mp-auth-link a:hover {
  color: var(--saffron);
}

/* ── DASHBOARD LAYOUT ── */
.mp-dashboard {
  padding-top: 0;
}

/* ── HERO BANNER ── */
.mp-hero {
  position: relative;
  padding: 120px 24px 50px;
  background: linear-gradient(180deg, rgba(107, 15, 26, 0.12), var(--dark) 80%);
  overflow: hidden;
}

.mp-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.mp-hero-greeting .hero-kicker {
  margin-bottom: 10px;
}

.mp-hero-name {
  font-family: 'Yatra One', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(130deg, var(--ivory), var(--gold-light), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px;
}

.mp-hero-name span {
  background: linear-gradient(130deg, var(--gold-light), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mp-hero-email {
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: 1px;
}

.mp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── STATS STRIP ── */
.mp-stats-strip {
  max-width: 1100px;
  margin: -30px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.mp-stat-card {
  background: rgba(14, 11, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  transition: all .4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.mp-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maharaja), var(--saffron), var(--royal-gold));
  opacity: 0;
  transition: opacity .4s;
}

.mp-stat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.06);
}

.mp-stat-card:hover::before {
  opacity: 1;
}

.mp-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-gold);
}

.mp-stat-icon svg {
  width: 22px;
  height: 22px;
}

.mp-stat-icon--confirmed {
  background: rgba(52, 168, 83, 0.12);
  color: #81c995;
}

.mp-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 6px;
}

.mp-stat-label {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── CONTENT AREA ── */
.mp-content {
  position: relative;
  padding: 60px 0 40px;
}

.mp-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── PROFILE CARD ── */
.mp-profile-card {
  background: rgba(14, 11, 22, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  position: sticky;
  top: 100px;
  transition: border-color .3s;
}

.mp-profile-card:hover {
  border-color: var(--border-h);
}

.mp-profile-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--maharaja), var(--saffron));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Yatra One', cursive;
  font-size: 2rem;
  color: var(--ivory);
  position: relative;
  box-shadow: 0 8px 30px rgba(107, 15, 26, 0.3);
}

.mp-profile-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 67, 0.25);
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.06); opacity: 1; }
}

.mp-profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 4px;
}

.mp-profile-email {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mp-profile-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
  margin: 0 -28px 20px;
}

.mp-profile-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mp-profile-detail:last-of-type {
  border-bottom: none;
}

.mp-detail-label {
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mp-detail-value {
  font-size: .85rem;
  color: var(--ivory-dim);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.mp-profile-badge {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), rgba(240, 165, 0, 0.04));
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50px;
  font-size: .72rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.mp-badge-icon {
  font-size: 1rem;
  color: var(--saffron);
  animation: badgeSpin 8s linear infinite;
}

@keyframes badgeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── EVENTS SECTION ── */
.mp-events-section {
  min-height: 300px;
}

.mp-events-header {
  margin-bottom: 32px;
}

.mp-events-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 6px;
}

.mp-events-header p {
  font-size: .85rem;
  color: var(--text-muted);
}

.mp-events-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--royal-gold);
}

.mp-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--royal-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mp-events-empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.mp-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--text-muted);
  opacity: .4;
}

.mp-empty-icon svg {
  width: 100%;
  height: 100%;
}

.mp-events-empty h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--ivory-dim);
  margin-bottom: 8px;
}

.mp-events-empty p {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ── DAY SECTIONS ── */
.mp-day-section {
  margin-bottom: 32px;
}

.mp-day-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mp-day-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 12px rgba(240, 165, 0, 0.4);
  animation: dotPulseGlow 2s ease-in-out infinite;
}

.mp-day-dot--2 {
  background: var(--peacock);
  box-shadow: 0 0 12px rgba(30, 91, 139, 0.4);
}

@keyframes dotPulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(240, 165, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(240, 165, 0, 0.6); }
}

.mp-event-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── EVENT CARD ── */
.mp-event-card {
  display: flex;
  background: rgba(14, 11, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateX(20px);
}

.mp-event-card--visible {
  opacity: 1;
  transform: translateX(0);
}

.mp-event-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px) translateX(0);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 168, 67, 0.04);
}

.mp-event-card-accent {
  width: 5px;
  flex-shrink: 0;
  border-radius: 16px 0 0 16px;
}

.mp-event-card-body {
  flex: 1;
  padding: 20px;
}

.mp-event-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.mp-event-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.mp-event-info {
  flex: 1;
  min-width: 0;
}

.mp-event-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.3;
  margin-bottom: 4px;
}

.mp-event-type {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.mp-event-status {
  font-size: .6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #81c995;
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.2);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.mp-event-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mp-event-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
}

.mp-event-detail svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .6;
}

/* ── COUNTDOWN SECTION ── */
.mp-countdown-section {
  padding: 60px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(107, 15, 26, 0.06));
}

.mp-countdown-inner {
  max-width: 640px;
  margin: 0 auto;
}

.mp-countdown-inner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.mp-countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.mp-cd-box {
  background: rgba(14, 11, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 80px;
  transition: border-color .3s;
}

.mp-cd-box:hover {
  border-color: var(--border-h);
}

.mp-cd-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
}

.mp-cd-label {
  display: block;
  font-size: .55rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.mp-countdown-tagline {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── RESPONSIVE — MY PARTICIPATION ── */
@media (max-width: 900px) {
  .mp-content-inner {
    grid-template-columns: 1fr;
  }

  .mp-profile-card {
    position: static;
  }

  .mp-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }

  .mp-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-auth-field input {
    font-size: 16px !important;
  }
}

@media (max-width: 550px) {
  .mp-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
  }

  .mp-stat-card {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .mp-stat-num {
    font-size: 1.8rem;
  }

  .mp-hero {
    padding: 100px 16px 40px;
  }

  .mp-content-inner {
    padding: 0 16px;
  }

  .mp-event-card-top {
    flex-wrap: wrap;
  }

  .mp-event-status {
    margin-top: 4px;
  }

  .mp-event-card-details {
    flex-direction: column;
    gap: 8px;
  }

  .mp-cd-box {
    padding: 14px 16px;
    min-width: 64px;
    border-radius: 12px;
  }

  .mp-auth-card {
    padding: 36px 24px;
    border-radius: 18px;
  }

  .mp-countdown {
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .mp-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mp-countdown {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ██████  MOBILE STRUCTURE OVERHAUL  ██████
   Fully redesigned mobile experience — app-native feel
   Bottom tab nav, compact layouts, swipeable cards,
   optimized performance, safe areas, thumb-zone UX
═══════════════════════════════════════════════════════════════ */

/* ── MOBILE BOTTOM TAB NAVIGATION ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(8, 5, 16, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(212, 168, 67, 0.12);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .56rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .25s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  min-width: 52px;
}

.mob-nav-item svg {
  transition: transform .25s, color .25s;
}

.mob-nav-item.active {
  color: var(--saffron);
}

.mob-nav-item.active svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(240, 165, 0, 0.4));
}

.mob-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--royal-gold));
  border-radius: 2px;
}

/* Center CTA button (raised) */
.mob-nav-cta {
  position: relative;
  top: -12px;
}

.mob-nav-cta-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  box-shadow: 0 6px 24px rgba(107, 15, 26, 0.5), 0 0 12px rgba(240, 165, 0, 0.15);
  transition: transform .3s, box-shadow .3s;
}

.mob-nav-cta-btn svg {
  color: var(--ivory);
}

.mob-nav-cta span {
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 2px;
}

.mob-nav-cta:active .mob-nav-cta-btn {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  /* ── Hide desktop elements on mobile ── */
  .floating-tickets { display: none !important; }

  /* Move live-pill & back-to-top above bottom nav */
  .live-pill {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    padding: 8px 16px !important;
    font-size: .58rem !important;
  }

  .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
  }

  /* ── TOP NAV: Simplified for mobile ── */
  .nav {
    padding: 12px 16px;
    background: rgba(8, 5, 16, 0.85);
    backdrop-filter: blur(16px);
  }

  .nav.scrolled {
    padding: 10px 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  }

  .nav-brand .en {
    font-size: 1.3rem;
    letter-spacing: 3px;
  }

  /* ── HERO: Compact, vertical, full-bleed ── */
  .hero {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .hero-content {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-kicker {
    font-size: .54rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.6;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5.5rem);
    letter-spacing: 4px;
    margin-bottom: 4px;
  }

  .hero-title .sub {
    font-size: clamp(.6rem, 2.5vw, .8rem);
    letter-spacing: clamp(3px, 1.5vw, 8px);
    margin-top: 8px;
  }

  .hero-divider {
    width: 80px;
    margin: 18px auto;
  }

  .hero-tagline {
    font-size: clamp(.82rem, 3.5vw, 1rem);
    margin-bottom: 28px;
    padding: 0;
    line-height: 1.6;
  }

  .hero-tagline br { display: none; }

  /* ── COUNTDOWN: Compact horizontal strip ── */
  .countdown {
    gap: 8px;
    margin-bottom: 28px;
    width: 100%;
    justify-content: center;
  }

  .cd-box {
    flex: 1;
    min-width: 0;
    max-width: 72px;
    padding: 12px 6px 10px;
    border-radius: 12px;
  }

  .cd-box::before {
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--royal-gold));
  }

  .cd-num {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .cd-label {
    font-size: .48rem;
    letter-spacing: 1px;
  }

  /* ── HERO BUTTONS: Stacked full-width ── */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 0 4px;
  }

  .btn-royal,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: .76rem;
    letter-spacing: 2px;
    border-radius: 14px;
  }

  .btn-royal {
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(107, 15, 26, 0.4);
  }

  .btn-outline {
    border-radius: 14px;
    padding: 13px 24px;
  }

  /* ── MANDALA: Smaller, optimized ── */
  .mandala-wrap {
    width: 85vmin;
    height: 85vmin;
    opacity: .04;
  }

  .mandala-ring2 {
    display: none;
  }

  .arch-bg {
    opacity: .03;
    width: 120vw;
  }

  .glow { filter: blur(60px); }
  .glow-1 { width: 150px; height: 150px; }
  .glow-2 { width: 120px; height: 120px; }
  .glow-3 { display: none; }
  .glow-4 { display: none; }

  /* ── SECTIONS: Tighter padding ── */
  .s-inner {
    padding: clamp(40px, 10vw, 64px) 16px;
  }

  .s-kicker {
    font-size: .58rem;
    letter-spacing: 3px;
    gap: 10px;
    margin-bottom: 10px;
  }

  .s-kicker::before {
    width: 20px;
  }

  .s-heading {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 14px;
  }

  .s-body {
    font-size: clamp(.88rem, 3vw, 1rem);
    line-height: 1.75;
    max-width: 100%;
  }

  .ornament {
    padding: 16px;
  }

  .ornament::before, .ornament::after {
    width: calc(50% - 40px);
  }

  .ornament svg { width: 40px; }

  /* ── ABOUT: Vertical stack, clean ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .img-frame {
    aspect-ratio: 16/10;
    border-radius: 16px;
  }

  .img-frame::after {
    display: none;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 28px;
  }

  .astat {
    padding: 16px 8px;
    border-radius: 12px;
  }

  .astat .n {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .astat .d {
    font-size: .54rem;
    letter-spacing: 1.5px;
  }

  /* ── EVENT CARDS: Full-width stacked, compact ── */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ev-card {
    border-radius: 16px;
  }

  .ev-img {
    height: 170px;
  }

  .ev-body {
    padding: 18px 16px;
  }

  .ev-name {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .ev-desc {
    font-size: .78rem;
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ev-meta {
    gap: 10px;
    font-size: .65rem;
    padding-top: 12px;
  }

  .ev-category {
    font-size: .54rem;
    padding: 4px 10px;
    border-radius: 8px;
  }

  .ev-time-badge {
    font-size: .58rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    bottom: 10px;
    right: 12px;
  }

  /* ── TEAM: Horizontal scroll strip ── */
  .team-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 16px;
    margin-top: 32px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .team-grid::-webkit-scrollbar {
    display: none;
  }

  .team-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    padding: 24px 16px 18px;
    border-radius: 16px;
  }

  .team-photo {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
  }

  .team-name {
    font-size: .84rem;
  }

  .team-role {
    font-size: .56rem;
    letter-spacing: 2px;
  }

  /* ── SPONSORS: Compact grid ── */
  .sp-tier {
    margin-bottom: 36px;
  }

  .sp-tier-label {
    font-size: .56rem;
    letter-spacing: 3px;
    margin-bottom: 18px;
    gap: 14px;
  }

  .sp-tier-label::before,
  .sp-tier-label::after {
    max-width: 60px;
  }

  .sp-row {
    gap: 10px;
    justify-content: center;
  }

  .sp-logo {
    padding: 14px 24px;
    min-width: 120px;
    font-size: .7rem;
    letter-spacing: 1px;
    border-radius: 12px;
  }

  .sp-logo.title {
    padding: 18px 36px;
    font-size: .9rem;
  }

  /* ── MARQUEE: Compact ── */
  .marquee-wrapper {
    padding: 14px 0;
  }

  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 40px;
  }

  .marquee-item {
    padding: 0 20px;
    gap: 8px;
  }

  /* ── FAQ: Full-width cards ── */
  .faq-question {
    padding: 16px;
    font-size: .86rem;
  }

  .faq-icon {
    margin-left: 12px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 16px;
  }

  .faq-answer p {
    font-size: .82rem;
    line-height: 1.7;
  }

  /* ── NEWSLETTER: Stacked ── */
  .newsletter-bar {
    padding: 40px 16px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 0;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    border-radius: 14px;
  }

  .newsletter-form input[type="email"] {
    padding: 14px 20px;
  }

  .newsletter-form button {
    padding: 14px 20px;
  }

  /* ── FOOTER: Compact accordion-style ── */
  .footer {
    padding: 48px 16px calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }

  .f-brand .logo {
    font-size: 1.4rem;
    text-align: center;
  }

  .f-brand p {
    max-width: 100%;
    text-align: center;
    font-size: .8rem;
  }

  .f-socials {
    justify-content: center;
    gap: 10px;
  }

  .f-col {
    border-top: 1px solid rgba(212, 168, 67, 0.08);
    padding-top: 18px;
  }

  .f-col h4 {
    margin-bottom: 12px;
    font-size: .58rem;
  }

  .f-col a {
    font-size: .8rem;
    margin-bottom: 10px;
    padding: 4px 0;
  }

  .f-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: .64rem;
    margin-top: 20px;
  }

  /* ── BODY BOTTOM PADDING for bottom nav ── */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  /* ── PARTICLE CANVAS: Reduced on mobile ── */
  #particleCanvas {
    opacity: .15;
  }

  /* ── HIDE NOISE OVERLAY on mobile (perf) ── */
  body::before {
    opacity: .2;
  }

  /* ── REGISTRATION: Mobile optimized ── */
  .reg-inner {
    padding: 40px 12px;
  }

  .reg-card {
    padding: 24px 14px;
    border-radius: 16px;
  }

  .reg-form {
    gap: 12px;
    margin-top: 24px;
  }

  .fg input,
  .fg select {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px !important;
  }

  .form-sub {
    border-radius: 14px;
    padding: 16px;
    font-size: .78rem;
    letter-spacing: 2px;
  }

  /* ── ROLE SELECTION: Mobile layout ── */
  .role-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
  }

  .role-card {
    padding: 22px 18px !important;
    border-radius: 14px !important;
  }

  .role-card h3 {
    font-size: 1.15rem !important;
  }

  .role-card p {
    font-size: .76rem !important;
  }

  .role-card ul li {
    font-size: .72rem !important;
    padding: 4px 0 !important;
  }

  .role-card .role-check {
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    font-size: .75rem !important;
    top: 10px !important;
    right: 10px !important;
  }

  #roleGate h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
  }

  #roleNextBtn {
    padding: 14px !important;
    font-size: .76rem !important;
    letter-spacing: 2px !important;
    border-radius: 14px !important;
  }

  #selectedRoleBadge {
    padding: 10px 14px !important;
    font-size: .72rem !important;
    border-radius: 10px !important;
    margin-bottom: 18px !important;
  }

  /* Viewer info card mobile */
  #viewerInfoCard {
    padding: 16px !important;
    border-radius: 12px !important;
    font-size: .78rem !important;
  }

  /* Participant fee summary mobile */
  #feeDisplay {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  /* Event checkboxes mobile - larger touch targets */
  .ev-check-wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .ev-check-wrap label {
    font-size: .8rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .ev-check-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  /* Step 2 back button mobile */
  #regStep2 > button:first-child {
    min-height: 44px;
    padding: 10px 0 !important;
    font-size: .76rem !important;
  }

  /* Login modal mobile */
  #loginModal > div {
    padding: 28px 20px !important;
    width: min(94%, 400px) !important;
    border-radius: 14px !important;
  }

  /* Dashboard mobile */
  .dashboard-view {
    border-radius: 14px;
  }

  .dash-header {
    padding: 16px;
  }

  .dash-list {
    padding: 12px;
  }

  /* ── SCHEDULE: Clean vertical ── */
  .sch-timeline {
    padding-left: 0;
  }

  .sch-item {
    flex-direction: column;
    gap: 8px;
  }

  .sch-time {
    text-align: left;
    min-width: auto;
    padding-top: 0;
    font-size: .82rem;
  }

  .sch-card {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .sch-title {
    font-size: .88rem;
  }

  .sch-sub {
    font-size: .74rem;
  }

  .day-strip {
    flex-direction: column;
    border-radius: 14px;
  }

  .ds-btn {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
    font-size: .64rem;
  }

  .ds-btn:last-child { border-bottom: none; }

  /* ── GALLERY: Single column on mobile ── */
  .gal-masonry {
    columns: 1;
    column-gap: 0;
  }

  .gal-item {
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .gal-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(8, 5, 16, .7) 0%, transparent 40%);
  }

  /* ── MOBILE NAV OVERLAY — Full screen ── */
  .nav-links.mobile-open {
    padding-top: 80px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    gap: 20px;
  }

  .nav-links.mobile-open li a {
    font-size: .92rem;
    letter-spacing: 3px;
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── EXTRA SMALL: phones < 390px ── */
@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
    letter-spacing: 2px;
  }

  .hero-title .sub {
    font-size: .58rem;
    letter-spacing: 2px;
  }

  .hero-kicker {
    font-size: .5rem;
    letter-spacing: 2px;
  }

  .cd-box {
    max-width: 60px;
    padding: 10px 4px 8px;
  }

  .cd-num {
    font-size: 1.2rem;
  }

  .cd-label {
    font-size: .44rem;
  }

  .btn-royal,
  .btn-outline {
    padding: 12px 20px;
    font-size: .7rem;
  }

  .s-heading {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }

  .s-inner {
    padding: 36px 12px;
  }

  .mob-nav-item {
    font-size: .5rem;
    min-width: 44px;
    padding: 6px 4px;
  }

  .mob-nav-cta-btn {
    width: 42px;
    height: 42px;
  }

  .team-card {
    flex: 0 0 140px;
    padding: 20px 12px 14px;
  }

  .team-photo {
    width: 56px;
    height: 56px;
  }

  .ev-img {
    height: 140px;
  }

  .ev-body {
    padding: 14px 12px;
  }

  /* Role cards extra small */
  .role-card {
    padding: 18px 14px !important;
  }

  .role-card h3 {
    font-size: 1.05rem !important;
  }

  .role-card ul li {
    font-size: .68rem !important;
  }

  #roleNextBtn {
    padding: 12px !important;
    font-size: .7rem !important;
  }

  .astat {
    padding: 12px 6px;
  }

  .astat .n {
    font-size: 1.3rem;
  }
}

/* ── TINY SCREENS < 320px ── */
@media (max-width: 320px) {
  .mobile-bottom-nav {
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .mob-nav-item {
    font-size: .46rem;
    padding: 4px 2px;
    gap: 2px;
    min-width: 38px;
  }

  .mob-nav-item svg {
    width: 16px;
    height: 16px;
  }

  .mob-nav-cta-btn {
    width: 38px;
    height: 38px;
  }

  .mob-nav-cta-btn svg {
    width: 18px;
    height: 18px;
  }

  .countdown {
    flex-wrap: wrap;
  }

  .cd-box {
    flex: 0 0 calc(50% - 6px);
    max-width: none;
  }

  .hero-divider { width: 60px; }

  .ev-desc {
    font-size: .74rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ── LANDSCAPE PHONE ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 24px 40px;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero-tagline br { display: none; }

  .countdown {
    gap: 12px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 12px;
  }

  .btn-royal,
  .btn-outline {
    width: auto;
    flex: 1;
  }

  .mobile-bottom-nav {
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .mob-nav-cta {
    top: -8px;
  }
}

/* ── MOBILE PERF: Disable complex effects ── */
@media (max-width: 768px) {
  /* Remove will-change on many elements to save GPU memory */
  .ev-card, .team-card, .sp-logo, .sch-item {
    will-change: auto;
    contain: layout;
  }

  /* Simplify gradients & shadows */
  .hero {
    background:
      radial-gradient(ellipse 90% 60% at 50% 70%, rgba(107, 15, 26, .2) 0%, transparent 60%),
      var(--dark);
  }

  /* Reduce box-shadow complexity */
  .ev-card:hover,
  .team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  }

  /* Disable conic border gradient on mobile */
  .ev-card::after {
    display: none;
  }

  /* Simpler section separator */
  .section::before {
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.08), transparent);
  }

  /* Reduce loader visual complexity */
  .loader-lotus { width: 90px; height: 90px; }
  .loader-text { font-size: 1.1rem; letter-spacing: 5px; }
  .loader-bar { width: 140px; }

  /* Disable blob backgrounds on mobile */
  .blob-bg { display: none; }

  /* Reduce jaali pattern opacity further */
  .jaali-bg { opacity: .015; }
}

/* ── ACTIVE STATES for touch ── */
@media (pointer: coarse) {
  .btn-royal:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(107, 15, 26, .3);
  }

  .btn-outline:active {
    transform: scale(0.97);
    background: var(--gold-dim);
  }

  .ev-card:active {
    transform: scale(0.98);
    transition-duration: .1s;
  }

  .faq-question:active {
    background: rgba(212, 168, 67, 0.04);
  }

  .mob-nav-item:active svg {
    transform: scale(0.9);
  }

  .mob-nav-cta:active .mob-nav-cta-btn {
    transform: scale(0.88);
  }

  .team-card:active {
    transform: scale(0.97);
    border-color: var(--border-h);
  }

  .sp-logo:active {
    transform: scale(0.97);
  }

  .role-card:active {
    transform: scale(0.97);
    transition-duration: .1s;
  }

  #roleNextBtn:active:not(:disabled) {
    transform: scale(0.97);
    transition-duration: .1s;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE LAYOUT CLEANUP & OVERLAP FIXES
   Consolidated fix layer — resolves overlap, text clipping,
   hamburger menu, bottom nav conflicts, and performance
   Added: 2026-03-11
═══════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL OVERFLOW PREVENTION ── */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  /* Prevent any child from triggering horizontal scroll */
  .hero-content,
  .s-inner,
  .footer-grid,
  .newsletter-bar,
  .about-grid,
  .events-grid,
  .team-grid,
  .faq-list,
  .countdown,
  .hero-actions,
  .marquee-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ── 2. HERO KICKER TEXT FIX — prevent letter-spacing overflow ── */
@media (max-width: 768px) {
  .hero-kicker {
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 8px;
    max-width: 100%;
  }

  .hero-tagline {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .hero-title .sub {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* Prevent hero title letter-spacing from pushing content off-screen */
  .hero-title {
    max-width: 100%;
    overflow: hidden;
  }
}

/* ── 3. LIVE PILL — hide on mobile, bottom nav already has Register ── */
@media (max-width: 768px) {
  .live-pill {
    display: none !important;
  }
}

/* ── 4. BACK-TO-TOP — position clear of bottom nav ── */
@media (max-width: 768px) {
  .back-to-top {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    z-index: 750;
  }
}

/* ── 5. MOBILE NAV OVERLAY — improved structure ── */
@media (max-width: 768px) {
  .nav-links.mobile-open {
    z-index: 801 !important;
    padding: 100px 24px calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 12px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.mobile-open li {
    width: 100%;
    text-align: center;
  }

  .nav-links.mobile-open li a {
    font-size: .88rem !important;
    letter-spacing: 3px !important;
    padding: 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    width: 100%;
    border-bottom: 1px solid rgba(212, 168, 67, 0.06);
    transition: color .3s, background .3s;
    border-radius: 12px;
  }

  .nav-links.mobile-open li a:hover,
  .nav-links.mobile-open li a:active {
    background: rgba(212, 168, 67, 0.06);
    color: var(--gold-light);
  }

  .nav-links.mobile-open li:last-child a {
    border-bottom: none;
  }

  /* Nav CTA in mobile overlay */
  .nav-links.mobile-open li a.nav-cta {
    margin-top: 12px;
    border-radius: 14px !important;
    padding: 16px 28px !important;
    box-shadow: 0 6px 24px rgba(107, 15, 26, 0.4);
  }

  /* Hamburger stays visible above overlay */
  .nav-hamburger {
    z-index: 802 !important;
  }
}

/* ── 6. BOTTOM NAV — clean, no overlap ── */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
    transition: transform .3s ease;
  }

  /* Ensure bottom nav items don't overflow text */
  .mob-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56px;
  }
}

/* ── 7. COUNTDOWN — guaranteed no overlap on small screens ── */
@media (max-width: 360px) {
  .countdown {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .cd-box {
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0 !important;
    padding: 10px 4px 8px !important;
  }

  .cd-num {
    font-size: 1.2rem !important;
  }

  .cd-label {
    font-size: .44rem !important;
    letter-spacing: 1px !important;
  }
}

/* ── 8. EVENT CARDS — text never overflows ── */
@media (max-width: 768px) {
  .ev-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ev-meta {
    flex-wrap: wrap;
  }

  .ev-meta span {
    white-space: nowrap;
  }

  .ev-prize {
    margin-left: 0;
  }
}

/* ── 9. FAQ — prevent question text overlap with icon ── */
@media (max-width: 768px) {
  .faq-question {
    gap: 12px;
    padding-right: 16px;
  }

  .faq-question .faq-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
  }
}

/* ── 10. SPONSOR LOGOS — proper wrapping ── */
@media (max-width: 768px) {
  .sp-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sp-logo {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
    max-width: 100%;
    text-align: center;
    padding: 14px 12px;
    font-size: .68rem;
    word-break: break-word;
  }

  .sp-logo.title {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* ── 11. FOOTER — clear bottom nav on all pages ── */
@media (max-width: 768px) {
  .footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Footer email link doesn't overflow */
  .f-col a {
    word-break: break-all;
    overflow-wrap: break-word;
  }
}

/* ── 12. NEWSLETTER — stacked properly ── */
@media (max-width: 500px) {
  .newsletter-form {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100% !important;
    border-radius: 14px !important;
  }
}

/* ── 13. ABOUT STATS — prevent number truncation ── */
@media (max-width: 360px) {
  .about-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }

  .astat {
    padding: 12px 4px !important;
  }

  .astat .n {
    font-size: 1.2rem !important;
  }

  .astat .d {
    font-size: .48rem !important;
    letter-spacing: 1px !important;
  }
}

/* ── 14. SECTION HEADINGS — prevent clipping ── */
@media (max-width: 768px) {
  .s-heading {
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .s-body {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .s-kicker {
    flex-wrap: wrap;
    word-break: break-word;
  }
}

/* ── 15. TEAM CARDS HORIZONTAL SCROLL — smooth indicator ── */
@media (max-width: 768px) {
  .team-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  /* Ensure text inside team cards doesn't overflow */
  .team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .team-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* ── 16. MARQUEE — prevent text clipping ── */
@media (max-width: 768px) {
  .marquee-item {
    font-size: clamp(0.82rem, 2.5vw, 1rem) !important;
    white-space: nowrap;
  }
}

/* ── 17. REGISTRATION PAGE — input labels don't overlap ── */
@media (max-width: 768px) {
  .fg label {
    font-size: .56rem !important;
    letter-spacing: 2px !important;
    word-break: break-word;
    line-height: 1.4;
  }

  .fg input,
  .fg select {
    font-size: 16px !important;
    min-height: 48px;
  }
}

/* ── 18. MOBILE BODY SCROLL LOCK — handled by item 5 above and JS ── */

/* ── 19. HAMBURGER ANIMATION — smoother 3-line to X ── */
.nav-hamburger span {
  transition: all .3s cubic-bezier(.25, .8, .25, 1);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 20. PERFORMANCE — disable heavy effects on low-end mobile ── */
@media (max-width: 768px) {
  /* Disable mandala rotation to save CPU/battery */
  .mandala-wrap {
    animation: none !important;
  }

  /* Reduce glow animations */
  .glow {
    animation: none !important;
    opacity: .5;
  }

  /* Simplify loader animation */
  .loader-lotus svg {
    animation-duration: 3s;
  }

  /* Remove backdrop-filter from non-essential elements (GPU intensive) */
  .cd-box {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Reduce confetti visual impact */
  .confetti-piece {
    animation-duration: 2s;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REGISTRATION PAGE — ROLE CARDS & FORM STYLES
   Eye-catching role selection, clean transitions, hover effects
═══════════════════════════════════════════════════════════════ */

/* ── Role Cards Grid ── */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.role-card {
  padding: 32px 24px;
  border: 2px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}

.role-card:hover::before {
  opacity: 1;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.role-card.selected {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.role-card.selected--viewer {
  border-color: var(--peacock);
  background: rgba(30, 91, 139, 0.06);
}

.role-card.selected--participant {
  border-color: var(--saffron);
  background: rgba(240, 165, 0, 0.04);
}

/* Role card icon container */
.role-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, box-shadow .3s;
}

.role-icon--viewer {
  background: rgba(30, 91, 139, 0.12);
}

.role-icon--participant {
  background: rgba(107, 15, 26, 0.12);
}

.role-card:hover .role-icon {
  transform: scale(1.08);
}

.role-card.selected .role-icon {
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.15);
}

/* Role card title */
.role-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 8px;
}

/* Role card description */
.role-card p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Role card feature list */
.role-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.role-features li {
  font-size: .76rem;
  color: var(--ivory-dim);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-features li:last-child {
  border-bottom: none;
}

.role-features .check {
  color: #81c995;
  flex-shrink: 0;
}

.role-features .cross {
  color: #f28b82;
  flex-shrink: 0;
}

/* Role card price */
.role-price {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.role-price--viewer {
  color: var(--peacock);
}

.role-price--participant {
  color: var(--saffron);
}

.role-price span {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Popular badge */
.role-popular {
  display: inline-block;
  font-size: .52rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(240, 165, 0, 0.12);
  color: var(--saffron);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Role checkmark */
.role-check {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: .9rem;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  animation: roleCheckPop .3s cubic-bezier(.68, -.55, .27, 1.55);
}

.role-check--viewer {
  background: var(--peacock);
}

.role-check--participant {
  background: var(--saffron);
  color: var(--dark);
}

@keyframes roleCheckPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Role accent bar */
.role-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maharaja), var(--saffron), var(--royal-gold));
  opacity: 0;
  transition: opacity .3s;
}

.role-card.selected .role-accent {
  opacity: 1;
}

/* Continue button */
.role-continue-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, rgba(107, 15, 26, 0.3), rgba(107, 15, 26, 0.15));
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.5;
}

.role-continue-btn.active {
  opacity: 1;
  cursor: pointer;
  background: linear-gradient(135deg, var(--maharaja), #8B1525);
  color: var(--ivory);
  border: none;
  box-shadow: 0 8px 32px rgba(107, 15, 26, 0.4);
}

.role-continue-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 15, 26, 0.5);
}

/* Step header */
.reg-step-header {
  text-align: center;
  margin-bottom: 32px;
}

.reg-step-badge {
  font-size: .6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}

.reg-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--ivory);
  margin-bottom: 8px;
}

.reg-step-desc {
  font-size: .84rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* Viewer info card */
.viewer-info-card {
  padding: 20px 22px;
  background: rgba(30, 91, 139, 0.08);
  border: 1px solid rgba(30, 91, 139, 0.2);
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.viewer-info-card svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.viewer-info-title {
  font-size: .88rem;
  color: var(--ivory);
  font-weight: 500;
  margin-bottom: 6px;
}

.viewer-info-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Fee estimate card */
.fee-estimate {
  padding: 18px 20px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.fee-estimate-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fee-estimate-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--royal-gold);
  font-family: 'Cormorant Garamond', serif;
}

.fee-estimate-breakdown {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Selected role badge (step 2) */
.selected-role-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.selected-role-badge--viewer {
  background: rgba(30, 91, 139, 0.1);
  border: 1px solid rgba(30, 91, 139, 0.25);
  color: #8ac4e8;
}

.selected-role-badge--participant {
  background: rgba(240, 165, 0, 0.08);
  border: 1px solid rgba(240, 165, 0, 0.2);
  color: var(--saffron);
}

/* Success result card */
.reg-success {
  text-align: center;
  margin-top: 32px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(26, 71, 42, .08), rgba(14, 11, 22, .8));
  border: 1px solid rgba(52, 168, 83, .2);
  border-radius: 20px;
}

.reg-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 168, 83, .2), rgba(52, 168, 83, .08));
  border: 2px solid rgba(52, 168, 83, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #81c995;
  margin-bottom: 18px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(52, 168, 83, 0); }
}

.reg-success h3 {
  color: var(--royal-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.reg-success p {
  color: var(--text-muted);
  font-size: .84rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ── Registration mobile responsive ── */
@media (max-width: 768px) {
  .role-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .role-card {
    padding: 24px 20px !important;
  }

  .role-card h3 {
    font-size: 1.2rem !important;
  }

  .role-continue-btn {
    font-size: .78rem;
    padding: 16px;
  }

  .reg-step-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .selected-role-badge {
    font-size: .72rem;
    padding: 10px 14px;
  }

  .viewer-info-card {
    padding: 16px;
  }

  .fee-estimate {
    padding: 14px;
  }

  .reg-success {
    padding: 36px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTINUED FIXES — Event grid, nav brand, login modal, events
   Added: 2026-03-11 (session 2)
═══════════════════════════════════════════════════════════════ */

/* ── NAV BRAND LINK — consistent styling when wrapped in <a> ── */
.nav-brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand a .en {
  -webkit-text-fill-color: transparent;
}

.nav-brand a .hi {
  -webkit-text-fill-color: var(--text-muted);
}

/* ── EVENT CHIP GRID — single column below 480px, better spacing ── */
@media (max-width: 480px) {
  .event-grid {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }

  .event-chip {
    padding: 12px 14px;
  }

  .chip-label {
    font-size: .8rem;
    line-height: 1.4;
  }

  .event-selector {
    padding: 14px;
    max-height: 340px;
  }

  .event-day-label {
    font-size: .78rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }
}

/* ── LOGIN MODAL — mobile-friendly, scroll-safe, proper z-index ── */
#loginModal {
  z-index: 9000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 480px) {
  #loginModal {
    align-items: flex-end !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #loginModal > div {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  #loginModal h3 {
    font-size: 1.1rem !important;
  }

  #loginModal .fg input {
    font-size: 16px !important;
    min-height: 48px;
  }

  #loginModal .form-sub {
    min-height: 48px;
    font-size: .82rem !important;
  }
}

/* ── EVENTS PAGE — broken image fallback styling ── */
.ev-img {
  position: relative;
  overflow: hidden;
}

.ev-img > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* If img fails to load, the gradient background from .ev-img.c1-c7 shows through */
.ev-img > img[src^="YOUR_"],
.ev-img > img[src=""] {
  opacity: 0;
}

/* Show a subtle pattern overlay when image is missing */
.ev-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(107, 15, 26, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ── EVENT CARD CATEGORY & TIME BADGES — ensure visibility over gradient ── */
.ev-category,
.ev-time-badge {
  z-index: 3;
}

/* ── EVENTS PAGE — filter buttons wrap cleanly on mobile ── */
@media (max-width: 480px) {
  .events-filter {
    gap: 8px;
    justify-content: center;
    margin: 24px 0 36px;
  }

  .ef-btn {
    font-size: .6rem;
    padding: 8px 18px;
    letter-spacing: 2px;
  }
}

/* ── EVENTS PAGE — card improvements for small screens ── */
@media (max-width: 380px) {
  .ev-body {
    padding: 14px 12px;
  }

  .ev-name {
    font-size: 1rem;
  }

  .ev-desc {
    font-size: .74rem;
    -webkit-line-clamp: 2;
  }

  .ev-meta {
    font-size: .58rem;
    gap: 6px;
  }

  .ev-meta span {
    white-space: nowrap;
  }
}

/* ── USER BAR — prevent overflow on mobile ── */
@media (max-width: 480px) {
  .user-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .user-bar > div:last-child {
    justify-content: center;
    width: 100%;
  }

  .btn-dashboard,
  .btn-signout {
    flex: 1;
    text-align: center;
  }
}