/* Kaushik Shaadi - Premium Matrimonial Platform Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-royal: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --color-maroon-primary: #701a28;
  --color-maroon-dark: #4c0d18;
  --color-maroon-light: #9e2a3b;
  --color-gold-primary: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa820a;
  --color-ivory: #fdfaf6;
  --color-cream: #f7f1e7;
  --color-charcoal: #1a1a24;
}

/* STRICT TWO-COLOR TEXT SYSTEM
   Role 1: Primary Dark (#111827) for Headings, Titles, Numbers, Strong Text
   Role 2: Secondary Slate/Gray (#64748b) for Paragraphs, Subtitles, Meta & Descriptions
   (White #ffffff is reserved for dark backgrounds)
*/
:root {
  --text-primary: #111827;
  --text-secondary: #64748b;
}

/* Global Clean & Professional Sans-Serif (Zero Cursive or Italic) */
html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, label, li, td, th {
  font-family: var(--font-body);
  font-style: normal;
}

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #fdfaf6;
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ==========================================================================
   DYNAMIC AUTH STATE VISIBILITY (GUEST/LOGGED OUT VS LOGGED IN)
   ========================================================================== */
/* Hide external navbar/header Sign In button and divider (Sign In is accessed inside Register modal) */
.auth-login-link,
.header-auth-divider,
.mobile-login-link {
  display: none !important;
}

/* Ensure 'Register Free' button in navbar is ALWAYS displayed and never hidden */
.btn-register-nav {
  display: inline-flex !important;
}

/* ==========================================================================
   FOOTER & DARK CTA SECTION HIGH CONTRAST TYPOGRAPHY & VISIBILITY
   ========================================================================== */
footer,
.footer {
  background-color: #100206 !important;
  color: #9ca3af !important;
}

.footer-col-heading {
  color: #ffffff !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.875rem !important;
  display: block !important;
}

.footer-link {
  color: #9ca3af !important;
  font-size: 0.75rem !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.footer-link:hover {
  color: #f59e0b !important;
  transform: translateX(3px);
}

.footer-social-btn {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #d1d5db !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
}

.footer-social-btn:hover {
  background-color: #701a28 !important;
  color: #ffffff !important;
  border-color: #d4af37 !important;
}

.footer-social-wa:hover {
  background-color: #16a34a !important;
}

/* Hero Section & Dark Banners Typography Contrast */
#hero-section {
  color: #ffffff !important;
}

#hero-section h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

#hero-section p {
  color: #f3f4f6 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* CTA Banners & Dark Panels Text Visibility (Only for actual dark maroon gradient panels) */
div[class*="from-[#701a28]"],
section[class*="from-[#701a28]"],
div[class*="from-[#5c1320]"],
section[class*="from-[#5c1320]"],
div[class*="from-[#59141f]"],
div[class*="from-[#5a121e]"],
div[class*="from-[#4c0d18]"],
section[class*="from-[#4c0d18]"],
div[class*="bg-[#24060d]"],
section[class*="bg-[#24060d]"] {
  color: #ffffff !important;
}

div[class*="from-[#701a28]"] h2,
div[class*="from-[#701a28]"] h3,
section[class*="from-[#701a28]"] h2,
section[class*="from-[#701a28]"] h3,
div[class*="from-[#5c1320]"] h2,
div[class*="from-[#5c1320]"] h3,
div[class*="from-[#59141f]"] h2,
div[class*="from-[#59141f]"] h3,
div[class*="from-[#5a121e]"] h2,
div[class*="from-[#5a121e]"] h3,
div[class*="bg-[#24060d]"] h1,
div[class*="bg-[#24060d]"] h2,
section[class*="bg-[#24060d]"] h1,
section[class*="bg-[#24060d]"] h2 {
  color: #ffffff !important;
}

div[class*="from-[#701a28]"] p,
section[class*="from-[#701a28]"] p,
div[class*="from-[#5c1320]"] p,
div[class*="from-[#59141f]"] p,
div[class*="from-[#5a121e]"] p,
div[class*="bg-[#24060d]"] p,
section[class*="bg-[#24060d]"] p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Step & Feature Process Cards - High-Contrast Icon Visibility */
.step-icon-box {
  background-color: #fef7ea !important;
  background-image: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%) !important;
  border: 1px solid #fcd34d !important;
  color: #701a28 !important;
}

.step-icon-box i {
  color: #701a28 !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.group:hover .step-icon-box {
  background-color: #701a28 !important;
  background-image: none !important;
  border-color: #701a28 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

.group:hover .step-icon-box i {
  color: #ffffff !important;
}

.font-heading {
  font-family: var(--font-heading) !important;
  font-style: normal !important;
}

.font-royal {
  font-family: var(--font-royal) !important;
  font-style: normal !important;
}

.font-serif {
  font-family: var(--font-body) !important;
  font-style: normal !important;
}

.italic {
  font-style: normal !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1ebd9;
}
::-webkit-scrollbar-thumb {
  background: #bfa15f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #701a28;
}

/* Royal Background Patterns */
.bg-mandala {
  background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px), radial-gradient(rgba(112, 26, 40, 0.05) 1px, #fdfaf6 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.bg-maroon-pattern {
  background-color: #601422;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f6e27a 50%, #cb9b2c 100%);
}

.bg-maroon-gradient {
  background: linear-gradient(135deg, #701a28 0%, #4a0e19 100%);
}

.bg-royal-dark {
  background: linear-gradient(145deg, #2a0b12 0%, #150508 100%);
}

/* Gold Text Accent */
.text-gold-shimmer {
  color: #d4a338;
}

.text-maroon-accent {
  color: #701a28;
}

/* Transparent Card Wishlist Heart Icon (Zero Background Box) */
.card-wishlist-btn,
button[data-shortlist-btn],
.wishlist-heart-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.card-wishlist-btn i,
button[data-shortlist-btn] i,
.wishlist-heart-btn i {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-wishlist-btn:hover i,
button[data-shortlist-btn]:hover i,
.wishlist-heart-btn:hover i {
  transform: scale(1.15);
}

/* UNIVERSAL ZERO BORDER RADIUS FOR ALL BUTTONS, CARDS, INPUTS & CONTROLS (100% SHARP) */
button,
.btn,
.btn-gold,
.btn-register-nav,
.btn-maroon,
.btn-secondary,
[class*="btn"],
[class*="-btn"],
input,
select,
textarea,
.card,
[class*="-card"],
[class*="card-"],
.admin-card,
.admin-stat-card,
.glass-card,
.glass-card-dark,
.story-card,
.story-card-item,
.profile-card,
.match-card,
.membership-card,
.package-card,
.step-card,
.benefit-card,
.stat-card,
.feature-card,
.pricing-card,
.process-card,
.review-card,
.testimonial-card,
.faq-card,
.consultation-card,
.rounded-full,
.rounded-3xl,
.rounded-2xl,
.rounded-xl,
.rounded-lg,
.rounded-md,
.rounded-sm,
.rounded {
  border-radius: 0 !important;
}

/* Shimmer Button */
.btn-gold {
  border-radius: 0 !important;
  background: linear-gradient(135deg, #d4af37 0%, #f6e27a 50%, #cb9b2c 100%);
  color: #3b1604;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #dfbc45 0%, #fae98f 50%, #d8a735 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-register-nav {
  border-radius: 0 !important;
  background: linear-gradient(135deg, #d4af37 0%, #f8e88b 50%, #c5962b 100%);
  color: #381303;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-register-nav:hover {
  background: linear-gradient(135deg, #dfbe46 0%, #fff1a4 50%, #d5a332 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  color: #260c02;
}

.btn-maroon {
  border-radius: 0 !important;
  background: linear-gradient(135deg, #701a28 0%, #8b2334 100%);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(112, 26, 40, 0.3);
}
.btn-maroon:hover {
  border-radius: 0 !important;
  background: linear-gradient(135deg, #821f30 0%, #a12b3e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(112, 26, 40, 0.4);
}

/* =====================================================================
   NAVBAR CLEAN UNDERLINE SYSTEM (NO ICONS, CLEAN BOTTOM INDICATOR)
   ===================================================================== */
.nav-underline-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin: 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563; /* text-gray-600 */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

/* Clean Animated Underline - positioned right under the text */
.nav-underline-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #701a28; /* Royal Maroon */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.nav-underline-link:hover {
  color: #701a28 !important;
  background: transparent !important;
}

.nav-underline-link:hover::after {
  transform: scaleX(1);
}

/* Active / Clicked State */
.nav-underline-link.active,
.nav-underline-link[aria-current="page"] {
  color: #701a28 !important;
  font-weight: 700 !important;
  background: transparent !important;
}

.nav-underline-link.active::after,
.nav-underline-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: #701a28 !important;
}

/* Mobile Drawer Navigation Links */
.mobile-nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  border-left: 3px solid transparent;
  background: transparent !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #701a28 !important;
  font-weight: 700 !important;
  border-left-color: #701a28 !important;
  background: rgba(112, 26, 40, 0.04) !important;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  border-left: 4px solid #701a28;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

/* Kundali Match Gauge */
.guna-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #92400e;
}

/* =====================================================================
   LUXURY CANDIDATE BIODATA & PROFILE GALLERY STYLES
   ===================================================================== */
.profile-gallery-container {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: #1a0f12;
  box-shadow: 0 10px 30px -10px rgba(112, 26, 40, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.profile-gallery-container img#main-profile-img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.gallery-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.gallery-arrow-btn:hover {
  background: rgba(112, 26, 40, 0.9);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.gallery-arrow-btn.prev-btn {
  left: 12px;
}

.gallery-arrow-btn.next-btn {
  right: 12px;
}

.thumb-card {
  position: relative;
  width: 68px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.65;
  flex-shrink: 0;
}

.thumb-card:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.thumb-card.active {
  opacity: 1;
  border-color: #701a28;
  box-shadow: 0 0 0 2px #d4af37, 0 6px 14px rgba(112, 26, 40, 0.25);
  transform: translateY(-2px);
}

.biodata-tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  border-radius: 9999px;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.biodata-tab-btn:hover {
  color: #701a28;
  background: rgba(112, 26, 40, 0.05);
}

.biodata-tab-btn.active {
  color: #ffffff !important;
  background: #701a28 !important;
  box-shadow: 0 4px 12px rgba(112, 26, 40, 0.3);
}

/* Print Styles for Matrimonial Biodata */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  nav, footer, .no-print, #toast-container, button, .action-buttons, .top-bar {
    display: none !important;
  }
  .biodata-print-container {
    box-shadow: none !important;
    border: 2px solid #701a28 !important;
    margin: 0 !important;
    padding: 20px !important;
    width: 100% !important;
  }
}

/* =====================================================================
   PREMIUM FOOTER COMPONENT STYLES
   ===================================================================== */

/* Social Icon Buttons */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9ca3af;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.footer-social-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.2);
}
.footer-social-wa {
  background: rgba(22, 101, 52, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
  color: #4ade80 !important;
}
.footer-social-wa:hover {
  background: rgba(22, 101, 52, 0.35) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #86efac !important;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.2) !important;
}

/* App Download Badge Buttons */
.footer-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 170px;
  cursor: pointer;
}
.footer-app-badge:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.12);
}

/* Footer Column Heading */
.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 2px;
}
.footer-col-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, rgba(212,175,55,0));
  border-radius: 2px;
}

/* Footer Links */
.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  position: relative;
  padding-left: 0;
}
.footer-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d4af37;
  transition: width 0.25s ease;
}
.footer-link:hover {
  color: #d4af37;
  padding-left: 5px;
}
.footer-link:hover::before {
  width: calc(100% - 5px);
}
.footer-vip-link {
  color: #fbbf24;
  font-weight: 600;
}
.footer-vip-link:hover {
  color: #fde68a;
}

/* Trust Badge Items */
.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}
.footer-trust-badge:hover {
  transform: translateY(-2px);
}

/* Newsletter Email Input dark override */
#footer-newsletter-email:focus {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* =====================================================================
   HERO SECTION — Full Viewport Cover Fix
   ===================================================================== */

#hero-section {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px); /* iOS Safari support */
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
  position: relative;
}

/* Fallback dark color if image fails to load */
#hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a0508;
  z-index: -1;
}

/* =====================================================================
   MOBILE RESPONSIVENESS & TOUCH EXPERIENCE (APP-LIKE SUITE)
   ===================================================================== */

/* 1. Body Padding so content is never obscured by mobile bottom dock */
@media (max-width: 767px) {
  body {
    padding-bottom: 70px !important;
  }
}

/* 2. Horizontal Swipeable Containers without ugly scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.touch-pan-x {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

/* 3. Universal Slide-out Mobile Drawer Backdrop & Panel */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 2, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-drawer-container.active {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* 4. App-Like Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 6px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .mobile-bottom-dock {
    display: none !important;
  }
}
.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  transition: all 0.2s ease;
  position: relative;
  min-width: 54px;
}
.mobile-dock-btn i {
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mobile-dock-btn.active,
.mobile-dock-btn:hover {
  color: #701a28 !important;
  font-weight: 700;
}
.mobile-dock-btn.active i {
  transform: translateY(-2px);
  color: #701a28;
}
.mobile-dock-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  width: 16px;
  height: 3px;
  background: #d4af37;
  border-radius: 9999px;
}

/* 5. Floating WhatsApp Matchmaker Button */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 78px;
  right: 16px;
  z-index: 890;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #25D366;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}
@media (min-width: 768px) {
  .floating-whatsapp-widget {
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
}
.floating-whatsapp-widget:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}
.floating-whatsapp-widget:active {
  transform: scale(0.95);
}

/* 6. Sticky Profile Action Bar on Mobile */
.profile-mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 910;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 640px) {
  .profile-mobile-action-bar {
    display: none !important;
  }
}

/* 7. Modal Mobile Viewport Constraints */
@media (max-width: 640px) {
  [id$="-modal"] > div {
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* ==========================================================================
   8. Browse Matrimonial Profiles Directory Section
   ========================================================================== */
.browse-tag-link {
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  display: inline-block;
  padding: 2px 2px;
  line-height: 1.85;
}

.browse-tag-link:hover {
  color: #701a28;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.browse-sep {
  color: #9ca3af;
  margin: 0 0.45rem;
  user-select: none;
  font-size: 0.75rem;
  font-weight: 300;
}

.browse-tab-btn {
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

/* ==========================================================================
   Brand Logo Enhanced Responsive Sizing (Header & Footer)
   ========================================================================== */
header a[href*="index.html"] img,
.header-brand-logo,
.site-navbar-logo,
nav a[href*="index.html"] img {
  height: 56px !important;
  max-height: 72px !important;
  width: auto !important;
  object-fit: contain !important;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

@media (min-width: 640px) {
  header a[href*="index.html"] img,
  .header-brand-logo,
  .site-navbar-logo,
  nav a[href*="index.html"] img {
    height: 64px !important;
  }
}

@media (min-width: 1024px) {
  header a[href*="index.html"] img,
  .header-brand-logo,
  .site-navbar-logo,
  nav a[href*="index.html"] img {
    height: 70px !important;
  }
}

header a[href*="index.html"]:hover img {
  transform: scale(1.03);
}

footer a[href*="index.html"] img,
.site-footer-logo {
  height: 68px !important;
  max-height: 84px !important;
  width: auto !important;
  object-fit: contain !important;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

@media (min-width: 640px) {
  footer a[href*="index.html"] img,
  .site-footer-logo {
    height: 78px !important;
  }
}

/* ==========================================================================
   Hero Search Validation & Micro-Interactions
   ========================================================================== */
@keyframes heroShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.animate-shake {
  animation: heroShake 0.4s ease-in-out;
}

select.hero-input-error {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.45) !important;
  background-color: #fff1f2 !important;
}

/* ==========================================================================
   LUXURY CHAT BOARD & COPILOT UI STYLES
   ========================================================================== */
.chat-board-bg {
  background-color: #fcf9f5;
  background-image: 
    radial-gradient(#e5dfd5 0.75px, transparent 0.75px), 
    radial-gradient(#f3ece1 0.75px, #fcf9f5 0.75px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.chat-bubble-in {
  background: #ffffff;
  border: 1px solid #e7e2d9;
  border-radius: 16px 16px 16px 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  color: #1f2937;
  transition: transform 0.15s ease;
}

.chat-bubble-out {
  background: linear-gradient(135deg, #701a28 0%, #87182c 50%, #9e1f36 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px 16px 3px 16px;
  box-shadow: 0 2px 6px rgba(112, 26, 40, 0.28);
  color: #ffffff;
  transition: transform 0.15s ease;
}

.chat-bubble-in p,
.chat-bubble-out p {
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-copilot-chip {
  background: #ffffff;
  border: 1px solid #f0e6d6;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-copilot-chip:hover {
  border-color: #b45309;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.12);
  transform: translateY(-1px);
}

.chat-copilot-chip:active {
  transform: scale(0.98);
}

.chat-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.chat-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.chat-scrollbar::-webkit-scrollbar-thumb {
  background: #d8cebf;
  border-radius: 9999px;
}
.chat-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #b5a895;
}

/* Typing indicator wave */
@keyframes chatTypingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #701a28;
  animation: chatTypingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

