/* ==========================================================================
   Kriya for Living - Master Stylesheet
   Theme: Light & Dark Modes with Glassmorphism Yogic Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables / Theme Tokens */
:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFE9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.65);
  
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  --accent-gold-light: rgba(217, 119, 6, 0.12);
  
  --accent-green: #15803D;
  --accent-green-hover: #166534;
  --accent-green-light: rgba(21, 128, 61, 0.1);
  
  --border-color: rgba(217, 119, 6, 0.22);
  --border-subtle: rgba(0, 0, 0, 0.08);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);
  
  --nav-bg: rgba(250, 248, 245, 0.92);
  --hero-overlay: linear-gradient(135deg, rgb(250 248 245) 0%, rgb(243 239 233 / 17%) 100%);
  --badge-bg: #FEF3C7;
  --badge-text: #92400E;
}

[data-theme="dark"] {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-hover: rgba(51, 65, 85, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.8);
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-gold-light: rgba(245, 158, 11, 0.18);
  
  --accent-green: #22C55E;
  --accent-green-hover: #16A34A;
  --accent-green-light: rgba(34, 197, 94, 0.15);
  
  --border-color: rgba(245, 158, 11, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.12);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.35);
  
  --nav-bg: rgba(15, 23, 42, 0.94);
  --hero-overlay: linear-gradient(135deg, rgb(15 23 42) 0%, rgb(30 41 59 / 60%) 100%);
  --badge-bg: rgba(245, 158, 11, 0.2);
  --badge-text: #FDE68A;
}

/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

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

body {
  font-family: 'Outfit', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
}

a:hover {
  color: var(--accent-gold-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Badges & Buttons */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B45309 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F59E0B 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #28E16D 0%, #15A090 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

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

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.icon-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.05);
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-title {
  font-size: 2.75rem;
  margin: 1.2rem 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Countdown Card */
.countdown-card {
  text-align: center;
  border-color: var(--accent-gold);
}

.countdown-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.timer-box {
  background: var(--bg-secondary);
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.timer-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

/* Key Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Curriculum Section (UI Fixed for Image 3) */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.curriculum-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  height: 100%;
}

.curriculum-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--accent-green-light);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Timings Widget Section (UI Fixed for Image 4) */
.timings-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.timing-card {
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.timing-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.timing-card.active {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

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

.timing-badge {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timing-time {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.days-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.day-pill {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.select-hint-tag {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Progressive Pathway */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 991px) {
  .pathway-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

.path-step {
  text-align: center;
  padding: 1.5rem;
}

.path-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.path-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* WhatsApp Banner / Contact Box */
.whatsapp-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(18, 140, 126, 0.12) 100%);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .whatsapp-banner {
    grid-template-columns: 1fr;
    padding: 1.8rem;
  }
}

.contact-card-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-card-btn:hover {
  border-color: #25D366;
  transform: translateX(4px);
}

.country-flag {
  font-size: 1.5rem;
}

/* Retreat Photo Gallery Carousel Section */
.gallery-carousel-section {
  padding: 3.5rem 0 2rem 0;
  background-color: var(--bg-secondary, #ebeae6);
}

.gallery-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #111;
  aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
  .gallery-slider-wrapper {
    aspect-ratio: 16 / 9;
  }
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Counter Badge (Matches reference screenshot 2/7 top-right style) */
.gallery-counter {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: system-ui, -apple-system, sans-serif;
  user-select: none;
}

/* Nav Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
  opacity: 0.75;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  opacity: 1;
}

.gallery-nav-btn.prev {
  left: 0;
}

.gallery-nav-btn.next {
  right: 0;
}

/* Testimonial Section */
.testimonials-section {
  padding: 4rem 0;
  background-color: var(--bg-primary, #fbf9f5);
}

.testimonial-heading {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.testimonial-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 868px) {
  .testimonial-video-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 1.5rem;
  }
}

.testimonial-video-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.testimonial-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.testimonial-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.testimonial-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.testimonial-video-card:hover .testimonial-img-wrapper img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 3px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(217, 119, 6, 0.9);
  border-color: #ffffff;
}

/* Video Modal Card & Responsive Container */
.video-modal-card {
  max-width: 850px !important;
  width: 90% !important;
  padding: 0 !important;
  background: #000 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.video-container-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.section-header .section-tag {
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #25D366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  animation: pulse-wa 2s infinite;
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal Popup Dialog (Fixed for Image 2) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-light);
}

select.form-control {
  cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Compact Registration Modal (Fit completely without scrolling) */
.compact-reg-card {
  padding: 1.25rem 1.75rem !important;
  border-radius: 18px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

@media (max-width: 580px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.form-group.compact {
  margin-bottom: 0.4rem;
}

.form-group.compact .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.form-control.compact {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  border-radius: 8px;
  height: 38px;
}
