/* =====================================================
   BMWCA BANGALORE — Shared Stylesheet
   Theme: Light Blue × Warm Gold × Modern
   Fonts: Poppins (headings) + Inter (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --primary:      #1A3C8F;
  --primary-600:  #2254C5;
  --primary-400:  #5B8FE8;
  --primary-100:  #DBEAFE;
  --primary-50:   #EFF6FF;

  --gold:         #B45309;
  --gold-500:     #D97706;
  --gold-300:     #FCD34D;
  --gold-100:     #FEF3C7;
  --gold-50:      #FFFBEB;

  --rose:         #DB2777;
  --rose-200:     #FBCFE8;
  --rose-50:      #FDF2F8;

  --teal:         #0D9488;
  --teal-50:      #F0FDFA;

  --text:         #0F172A;
  --text-mid:     #334155;
  --text-muted:   #64748B;
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  --bg:           #F7F9FF;
  --bg-card:      #FFFFFF;
  --white:        #FFFFFF;

  --hero-grad:    linear-gradient(135deg, #EFF6FF 0%, #FFFBEB 55%, #FDF2F8 100%);
  --banner-blue:  linear-gradient(130deg, #EFF6FF 0%, #DBEAFE 100%);
  --banner-gold:  linear-gradient(130deg, #FFFBEB 0%, #FEF3C7 100%);
  --banner-rose:  linear-gradient(130deg, #FDF2F8 0%, #FCE7F3 100%);
  --banner-purple:linear-gradient(130deg, #F5F3FF 0%, #EDE9FE 100%);
  --banner-teal:  linear-gradient(130deg, #F0FDFA 0%, #CCFBF1 100%);

  --font-head:    'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg:    0 12px 40px rgba(15,23,42,0.12);
  --shadow-card:  0 2px 12px rgba(26,60,143,0.07);

  --radius:       12px;
  --radius-lg:    20px;
  --section-pad:  clamp(64px, 8vw, 100px);
  --container:    1200px;

  /* ── HEADER HEIGHT SYSTEM ── */
  --strip-h:      40px;
  --nav-h:        68px;
  --header-h:     calc(var(--strip-h) + var(--nav-h));
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── FOCUS STYLES (Accessibility) ── */
:focus-visible {
  outline: 3px solid var(--primary-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

/* ── PATTERN STRIP ── */
.pattern-strip {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent        0%,
    var(--primary-100) 15%,
    var(--primary-400) 50%,
    var(--primary-100) 85%,
    transparent        100%
  );
  opacity: 0.7;
}

/* ── ANNOUNCEMENT STRIP ── */
.announcement-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: var(--strip-h);
  overflow: hidden;
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  /* Fade edges for polished look */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.strip-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  will-change: transform;
  gap: 0;
}
.strip-track:hover { animation-play-state: paused; }
.strip-sep {
  display: inline-block;
  margin: 0 28px;
  opacity: 0.45;
  font-size: 14px;
}
.announcement-strip a {
  color: var(--gold-300);
  font-weight: 600;
  text-decoration: none;
}
.announcement-strip a:hover { text-decoration: underline; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: var(--strip-h); left: 0; right: 0;
  z-index: 200;
  overflow: visible; /* ensure dropdown panel is never clipped */
  background: rgba(247, 249, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(15,23,42,0.10); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-logo img {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(26,60,143,0.18));
}
.nav-logo-fallback {
  display: none;
  width: 72px; height: 72px;
  border-radius: 12px;
  background: var(--primary);
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(26,60,143,0.18);
}
.nav-logo-fallback span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-300);
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand strong {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-brand span {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.nav-links a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary-600);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-mobile-login { display: none; }
.btn-login {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-login:hover { background: var(--primary-600); transform: translateY(-1px); }

/* ── Nav user pill (logged-in, desktop) ── */
/* Avatar-only pill: clean, compact — no name text in pill */
.nav-user-pill {
  display: none;
  align-items: center; gap: 5px;
  position: relative; cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: 40px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  user-select: none;
}
.nav-user-pill:hover { box-shadow: 0 2px 16px rgba(15,23,42,0.13); border-color: #c7d2fe; background: var(--primary-50); }
.nav-user-pill.open { border-color: var(--primary-400); box-shadow: 0 2px 16px rgba(26,60,143,0.15); }
.nav-user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 11px; font-weight: 700; font-family: var(--font-head);
  letter-spacing: 0.5px; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(26,60,143,0.2);
}
/* Name span removed from pill — kept in dropdown header */
.nav-user-name { display: none; }
.nav-user-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s ease, color 0.2s; }
.nav-user-pill:hover .nav-user-chevron,
.nav-user-pill.open .nav-user-chevron { color: var(--primary); }
.nav-user-pill.open .nav-user-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; left: auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.16);
  min-width: 260px; max-width: min(300px, calc(100vw - 1.5rem));
  padding: 6px; z-index: 9999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-user-pill.open .nav-user-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
/* Dropdown — user info header */
.nav-user-dropdown-header {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px 10px;
}
.nav-user-dropdown-avatar {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 14px; font-weight: 700; font-family: var(--font-head);
  letter-spacing: 0.5px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,60,143,0.22);
}
.nav-user-dropdown-info { flex: 1; min-width: 0; }
.nav-user-dropdown-name {
  font-size: 14px; font-weight: 700;
  color: var(--text); font-family: var(--font-head);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}
.nav-user-dropdown-role {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted); font-family: var(--font-head);
  letter-spacing: 0.5px; text-transform: uppercase; margin-top: 3px;
  white-space: nowrap; line-height: 1;
}
.nav-user-dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 6px 6px; }
/* Sign out button */
.nav-user-dropdown button {
  width: 100%; padding: 10px 12px;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-align: left; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.nav-user-dropdown button svg { flex-shrink: 0; transition: stroke 0.15s; }
.nav-user-dropdown button:hover { background: #FEF2F2; color: #DC2626; }
.nav-user-dropdown button:hover svg { stroke: #DC2626; }

/* ── Avatar gradient system — 8 distinct gradients, set via data-grad="0"…"7" ── */
.nav-user-avatar[data-grad="0"],.nav-user-dropdown-avatar[data-grad="0"],.nav-mobile-user-avatar[data-grad="0"] { background: linear-gradient(135deg,#1a3a9f 0%,#6c63ff 100%); }
.nav-user-avatar[data-grad="1"],.nav-user-dropdown-avatar[data-grad="1"],.nav-mobile-user-avatar[data-grad="1"] { background: linear-gradient(135deg,#0f4c81 0%,#0891b2 100%); }
.nav-user-avatar[data-grad="2"],.nav-user-dropdown-avatar[data-grad="2"],.nav-mobile-user-avatar[data-grad="2"] { background: linear-gradient(135deg,#14532d 0%,#059669 100%); }
.nav-user-avatar[data-grad="3"],.nav-user-dropdown-avatar[data-grad="3"],.nav-mobile-user-avatar[data-grad="3"] { background: linear-gradient(135deg,#7c2d12 0%,#ea580c 100%); }
.nav-user-avatar[data-grad="4"],.nav-user-dropdown-avatar[data-grad="4"],.nav-mobile-user-avatar[data-grad="4"] { background: linear-gradient(135deg,#581c87 0%,#9333ea 100%); }
.nav-user-avatar[data-grad="5"],.nav-user-dropdown-avatar[data-grad="5"],.nav-mobile-user-avatar[data-grad="5"] { background: linear-gradient(135deg,#831843 0%,#e11d48 100%); }
.nav-user-avatar[data-grad="6"],.nav-user-dropdown-avatar[data-grad="6"],.nav-mobile-user-avatar[data-grad="6"] { background: linear-gradient(135deg,#713f12 0%,#d97706 100%); }
.nav-user-avatar[data-grad="7"],.nav-user-dropdown-avatar[data-grad="7"],.nav-mobile-user-avatar[data-grad="7"] { background: linear-gradient(135deg,#164e63 0%,#0284c7 100%); }

/* ── First name in nav pill — hidden by default, shows ≥1200px ── */
.nav-user-firstname {
  display: none;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-head);
  color: var(--text);
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1200px) {
  body.bmwca-logged-in .nav-user-firstname { display: inline; }
}

/* ── Dropdown: name row with verified badge ── */
.nav-user-name-row {
  display: flex; align-items: center; gap: 5px;
  overflow: hidden; margin-bottom: 2px;
}
.nav-user-name-row .nav-user-dropdown-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.nav-user-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: #16a34a; color: white;
  font-size: 8px; font-weight: 800; flex-shrink: 0; line-height: 1;
  box-shadow: 0 1px 4px rgba(22,163,74,0.35);
}
.nav-user-dropdown-since {
  font-size: 10.5px; color: var(--text-muted);
  margin-top: 3px; font-family: var(--font-head); letter-spacing: 0.1px;
}
.nav-user-dropdown-since strong { color: var(--primary); font-weight: 700; }

/* ── Quick links zone ── */
.nav-user-dropdown-quicklinks {
  padding: 3px 0;
  display: flex; flex-direction: column; gap: 1px;
}
.nav-user-ql-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-user-ql-item svg { flex-shrink: 0; stroke: var(--text-muted); transition: stroke 0.15s; }
.nav-user-ql-item:hover { background: var(--primary-50); color: var(--primary); }
.nav-user-ql-item:hover svg { stroke: var(--primary); }

/* ── Sign-out zone ── */
.nav-user-dropdown-signout { padding: 3px 0 2px; }
.nav-signout-btn {
  width: 100%; padding: 9px 12px;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-align: left; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.nav-signout-btn svg { flex-shrink: 0; stroke: var(--text-muted); transition: stroke 0.15s; }
.nav-signout-btn:hover { background: #FEF2F2; color: #DC2626; }
.nav-signout-btn:hover svg { stroke: #DC2626; }
/* Inline sign-out confirmation */
.nav-signout-confirm {
  display: none;
  padding: 10px 12px 8px; margin: 0 0 2px;
  background: #FEF2F2; border-radius: 9px; border: 1px solid #FECACA;
}
.nav-signout-confirm.show { display: block; }
.nav-signout-confirm > span {
  display: block; font-size: 12px; font-weight: 600;
  color: #b91c1c; margin-bottom: 8px; font-family: var(--font-head);
}
.nav-signout-confirm-btns { display: flex; gap: 6px; }
.nav-signout-confirm-btns button {
  flex: 1; padding: 7px 8px; border-radius: 7px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: var(--font-head); border: none; transition: background 0.15s;
}
.nav-signout-confirm-btns button:first-child { background: #DC2626; color: white; }
.nav-signout-confirm-btns button:first-child:hover { background: #b91c1c; }
.nav-signout-confirm-btns button:last-child { background: white; color: var(--text-mid); border: 1.5px solid var(--border-light) !important; }
.nav-signout-confirm-btns button:last-child:hover { background: #f1f5f9; }

/* ── Modal header trust stats ── */
.modal-header-trust {
  display: flex; align-items: center; gap: 0;
  margin-top: 9px;
}
.modal-header-trust .mht-item {
  display: flex; flex-direction: column; align-items: flex-start;
}
.modal-header-trust .mht-item span {
  font-size: 13px; font-weight: 800; color: #ffd666;
  font-family: var(--font-head); line-height: 1;
}
.modal-header-trust .mht-item label {
  font-size: 9px; color: rgba(255,255,255,0.52);
  letter-spacing: 0.5px; text-transform: uppercase;
  font-family: var(--font-head); margin-top: 2px; cursor: default;
}
.modal-header-trust .mht-sep {
  width: 1px; height: 22px; background: rgba(255,255,255,0.15);
  margin: 0 11px; flex-shrink: 0;
}

/* Auth state: show pill (desktop), hide login btn */
body.bmwca-logged-in .nav-user-pill { display: flex; }
body.bmwca-logged-in #navLoginBtn { display: none !important; }

/* Mobile user li: hidden everywhere by default; shown on mobile when logged in */
/* order: -1 moves it to the top of the flex-column nav menu when visible */
#navMobileUserLi { display: none !important; order: -1; }

/* ── Nav mobile user display (logged-in, inside hamburger menu) ── */
.nav-mobile-user {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  background: var(--primary-50); border-radius: 12px;
  border: 1.5px solid var(--primary-100);
}
.nav-mobile-user-avatar {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.5px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,60,143,0.22);
}
.nav-mobile-user-info { flex: 1; min-width: 0; }
.nav-mobile-user-greeting {
  font-size: 10px; color: var(--primary); font-family: var(--font-head);
  letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600;
}
.nav-mobile-user-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; margin-top: 2px;
}
.nav-mobile-logout {
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-mid);
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font-head); flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.nav-mobile-logout svg { flex-shrink: 0; transition: stroke 0.15s; }
.nav-mobile-logout:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.nav-mobile-logout:hover svg { stroke: #DC2626; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO — HOME PAGE ── */
/* ═══════════════════════════════════════════════
   HERO — HOME PAGE  (Two-column split)
═══════════════════════════════════════════════ */

.hero-home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 50fr 50fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: calc(var(--header-h) + 20px) 6vw 48px;
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
}

/* Subtle ambient blobs */
.hero-home::before {
  content: '';
  position: absolute;
  top: -15%; right: -8%;
  width: 55%; height: 130%;
  background: radial-gradient(ellipse, rgba(37,84,197,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-home::after {
  content: '';
  position: absolute;
  bottom: -8%; left: -4%;
  width: 38%; height: 55%;
  background: radial-gradient(ellipse, rgba(217,119,6,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ── LEFT COLUMN ── */
.hero-left {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

/* Inline logo inside tag pill */
.hero-logo-badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26,60,143,0.18);
}
.hero-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-logo-badge-fallback {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-logo-badge-fallback span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  color: var(--gold-300);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  background: rgba(26,60,143,0.06);
  border: 1px solid rgba(26,60,143,0.12);
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  margin-bottom: 28px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.08s ease forwards;
}
.hero-tag-pip { display: none; }

.hero-home h1 {
  font-family: var(--font-head);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s 0.12s ease forwards;
}
.hero-home h1 span { color: var(--primary-600); }
.hero-home h1 em   { font-style: normal; color: var(--gold-500); }

.hero-desc {
  font-size: clamp(14.5px, 1.3vw, 17px);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.24s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.8s 0.36s ease forwards;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(226,232,240,0.9);
  opacity: 0;
  animation: fadeUp 0.8s 0.48s ease forwards;
}
.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.in-view { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(1) { transition-delay: 0.05s; }
.stat-item:nth-child(2) { transition-delay: 0.18s; }
.stat-item:nth-child(3) { transition-delay: 0.31s; }
.stat-item:nth-child(4) { transition-delay: 0.44s; }
.stat-item:hover { transform: translateY(-3px); }
.stat-val {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: inline-block;
  padding-bottom: 7px;
  position: relative;
}
.stat-val::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 2px;
  transition: width 0.55s ease;
}
.stat-item.in-view .stat-val::after { width: 100%; }
.stat-label {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 9px;
  font-weight: 500;
}

/* ── RIGHT COLUMN ── */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s ease forwards;
}

/* Ambient glow bubble */
.hbv-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,60,143,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Brand visual: position:relative container so absolute children position correctly */
.hero-brand-visual {
  position: relative;
  width: clamp(300px, 38vw, 500px);
  height: clamp(300px, 38vw, 500px);
  z-index: 1;
  flex-shrink: 0;
}

/* Chakra layers: fill the container, spin in place */
.hbv-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hbv-outer {
  opacity: 0.22;
  animation: rotateSlow 70s linear infinite;
  will-change: transform;
}
.hbv-mid {
  top: 16%; left: 16%;
  width: 68%; height: 68%;
  opacity: 0.14;
  animation: rotateSlow 45s linear infinite reverse;
  will-change: transform;
}
.hbv-outer svg,
.hbv-mid svg { width: 100%; height: 100%; display: block; }

/* Logo: absolutely centred — BULLETPROOF */
.hbv-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 36px rgba(26,60,143,0.22))
          drop-shadow(0 3px 10px rgba(26,60,143,0.14));
}
.hbv-logo img {
  width: clamp(160px, 19vw, 250px);
  height: clamp(160px, 19vw, 250px);
  object-fit: contain;
  display: block;
}
.hbv-logo-fallback {
  display: none;
  width: clamp(160px, 19vw, 250px);
  height: clamp(160px, 19vw, 250px);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 36px rgba(26,60,143,0.22);
}
.hbv-logo-fallback span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: var(--gold-300);
}

/* Credential badge */
.hbv-credential {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hbv-cred-line {
  display: block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
  flex-shrink: 0;
}
.hbv-cred-line:last-child {
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.hbv-cred-text {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  white-space: nowrap;
  opacity: 0.75;
}

/* ══════════════════════════════════════════
   HERO ANIMATION — Right Column
══════════════════════════════════════════ */
.hero-anim {
  position: relative;
  width: clamp(420px, 44vw, 570px);
  height: clamp(420px, 44vw, 570px);
  flex-shrink: 0;
}

/* Blurred gradient orb — breathes slowly */
.ha-blob {
  position: absolute;
  top: 50%; left: 50%;
  width: 62%; height: 62%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%,
    rgba(26,60,143,0.22) 0%,
    rgba(180,83,9,0.12) 48%,
    transparent 72%);
  filter: blur(40px);
  animation: haBlobPulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haBlobPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.85; }
  50%      { transform: translate(-50%,-50%) scale(1.28); opacity: 1; }
}

/* Sonar pulse rings — emit outward, staggered */
.ha-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 58%; height: 58%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
  animation: haRingEmit 4.5s ease-out infinite;
  pointer-events: none;
}
.ha-ring-1 {
  border: 1.5px solid rgba(26,60,143,0.50);
  animation-delay: 0s;
}
.ha-ring-2 {
  border: 1.5px solid rgba(180,83,9,0.38);
  animation-delay: 1.5s;
}
.ha-ring-3 {
  border: 1.5px solid rgba(26,60,143,0.30);
  animation-delay: 3s;
}
@keyframes haRingEmit {
  0%   { transform: translate(-50%,-50%) scale(0.35); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(2.0);  opacity: 0; }
}

/* Small steady inner ring — always visible, gentle pulse */
.ha-steady-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 30%; height: 30%;
  border-radius: 50%;
  border: 1px solid rgba(26,60,143,0.20);
  transform: translate(-50%, -50%);
  animation: haSteadyPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haSteadyPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
}

/* Decorative corner arc SVG */
.ha-arcs {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  animation: haArcsFade 6s ease-in-out infinite;
}
@keyframes haArcsFade {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Floating particles */
.ha-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ha-dot-1 { width:8px;  height:8px;  background:rgba(26,60,143,0.55);  top:12%; left:22%;  animation: haFloat1 6.0s ease-in-out infinite; }
.ha-dot-2 { width:5px;  height:5px;  background:rgba(180,83,9,0.60);   top:20%; right:16%; animation: haFloat2 8.0s ease-in-out infinite; }
.ha-dot-3 { width:6px;  height:6px;  background:rgba(26,60,143,0.40);  top:62%; left:10%;  animation: haFloat3 7.0s ease-in-out infinite; }
.ha-dot-4 { width:4px;  height:4px;  background:rgba(180,83,9,0.50);   top:72%; right:20%; animation: haFloat1 9.0s ease-in-out infinite 1s; }
.ha-dot-5 { width:7px;  height:7px;  background:rgba(26,60,143,0.32);  top:38%; left:4%;   animation: haFloat2 5.5s ease-in-out infinite 2s; }
.ha-dot-6 { width:5px;  height:5px;  background:rgba(180,83,9,0.40);   top:84%; left:40%;  animation: haFloat3 7.5s ease-in-out infinite 0.5s; }
.ha-dot-7 { width:6px;  height:6px;  background:rgba(26,60,143,0.28);  top:8%;  right:30%; animation: haFloat1 6.8s ease-in-out infinite 3s; }

@keyframes haFloat1 {
  0%,100% { transform: translateY(0)    translateX(0); }
  33%      { transform: translateY(-14px) translateX(6px); }
  66%      { transform: translateY(-8px)  translateX(-4px); }
}
@keyframes haFloat2 {
  0%,100% { transform: translateY(0)    translateX(0); }
  40%      { transform: translateY(-18px) translateX(-5px); }
  70%      { transform: translateY(-10px) translateX(8px); }
}
@keyframes haFloat3 {
  0%,100% { transform: translateY(0)    translateX(0); }
  50%      { transform: translateY(-12px) translateX(4px); }
}

/* ── LORD KRISHNA — divine centre ── */
/* Wrapper: handles position + float animation */
.ha-krishna-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(240px, 26vw, 360px);
  z-index: 4;
  pointer-events: none;
  animation: krishnaFloat 5s ease-in-out infinite;
}
/* CSS-only divine aura — layered radial glow behind the figure */
.ha-krishna-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(251, 191, 36, 0.50)  0%,
    rgba(217, 119,  6, 0.32) 25%,
    rgba(217, 119,  6, 0.14) 50%,
    rgba( 26,  60, 143, 0.06) 68%,
    transparent 82%);
  filter: blur(18px);
  pointer-events: none;
}
/* The figure — PNG already has transparent bg, no blend mode needed */
.ha-krishna {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  /* Subtle drop-shadow traces only the transparent figure edges */
  filter:
    drop-shadow(0 0  8px rgba(217,119,6,0.55))
    drop-shadow(0 0 20px rgba(217,119,6,0.28))
    drop-shadow(0 2px 32px rgba(26,60,143,0.18));
}
@keyframes krishnaFloat {
  0%,  100% { transform: translate(-50%, -50%); }
  50%        { transform: translate(-50%, -55%); }
}

/* legacy — hide old hero elements */
.hero-content      { display: none; }
.hero-visual       { display: none; }
.hero-logo-wrap    { display: none; }
.hero-decoration   { display: none; }

/* ── PAGE HERO BANNER ── */
.page-hero {
  padding: 56px 5vw 52px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 16px;
}
.page-hero-tag::before, .page-hero-tag::after {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--gold-500);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--primary-600); }
.page-hero h1 em { color: var(--gold-500); font-style: normal; }
.page-hero p {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-hero-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}
.page-hero-deco.left { left: -5%; }
.page-hero-deco.right { right: -5%; }
.page-hero-deco svg { width: min(30vw, 300px); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}
.breadcrumb a { color: var(--primary-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── SECTION DEFAULTS ── */
section {
  padding: var(--section-pad) 5vw;
  scroll-margin-top: var(--header-h);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-head {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.2;
}
.section-head span { color: var(--primary-600); }
.section-head em { color: var(--gold-500); font-style: normal; }
.section-sub {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 14px;
  line-height: 1.85;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,60,143,0.25); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-500);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(180,83,9,0.25); }
.btn-gold-outline {
  background: transparent;
  color: var(--gold-500);
  border: 2px solid var(--gold-300);
}
.btn-gold-outline:hover { background: var(--gold-50); border-color: var(--gold-500); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 12.5px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-accent-top {
  position: relative;
}
.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-600), var(--gold-500));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── PILL / TAG ── */
.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.pill-blue { background: var(--primary-50); color: var(--primary-600); }
.pill-gold { background: var(--gold-100); color: var(--gold); }
.pill-rose { background: var(--rose-200); color: var(--rose); }
.pill-teal { background: var(--teal-50); color: var(--teal); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 5vw;
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(150deg, #1e293b 0%, #0f172a 55%, #1a2542 100%);
  padding: 64px 5vw 32px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #f59e0b 40%, #f59e0b 60%, #3b82f6 100%);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .logo-row img {
  width: 68px; height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.footer-brand .logo-row strong {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.footer-social-btn:hover { background: var(--gold-500); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  max-width: var(--container);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-reg { font-size: 11px; color: rgba(255,255,255,0.55); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(26,60,143,0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--primary-600); transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════
   PREMIUM MODAL — BMWCA
══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8,14,30,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.22s ease;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  margin: auto;
  box-shadow:
    0 48px 100px rgba(8,14,30,0.44),
    0 16px 36px rgba(8,14,30,0.24),
    0 0 0 1px rgba(255,255,255,0.06);
  animation: modalSlide 0.34s cubic-bezier(0.34,1.15,0.64,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── PREMIUM HEADER — compact horizontal ── */
.modal-header {
  background:
    radial-gradient(ellipse 80% 100% at 20% 50%, rgba(212,175,55,0.16) 0%, transparent 55%),
    linear-gradient(150deg, #0c1d6b 0%, #1a3a9f 50%, #0a1550 100%);
  padding: 16px 48px 16px 20px;  /* right padding reserves space for close btn */
  position: relative;
  display: flex; align-items: center; gap: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2L30 16L16 30L2 16Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.modal-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(212,175,55,0.35) 40%, rgba(212,175,55,0.35) 60%, transparent 95%);
}

/* Gold ring */
.modal-header-logo-wrap {
  position: relative; flex-shrink: 0;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37 0%, #ffe566 35%, #b8860b 65%, #d4af37 100%);
  padding: 3px;
  box-shadow:
    0 0 20px rgba(212,175,55,0.45),
    0 0 40px rgba(212,175,55,0.12),
    0 4px 14px rgba(0,0,0,0.40);
}
.modal-header-logo-wrap::before {
  content: '';
  position: absolute; inset: 3px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #1e3fa8 0%, #0a1550 100%);
  z-index: 0;
}
.modal-header-logo {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  object-fit: contain; display: block;
  filter: drop-shadow(0 0 7px rgba(212,175,55,0.5)) drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.modal-logo-fallback {
  display: none; position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  align-items: center; justify-content: center;
}
.modal-logo-fallback span {
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  color: var(--gold-300); letter-spacing: -0.5px;
}

/* Title + subtitle — right of logo */
.modal-header-text { flex: 1; min-width: 0; text-align: left; }
.modal-header h3 {
  font-family: var(--font-head);
  font-size: clamp(16px, 4.5vw, 21px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  line-height: 1.18;
  /* Allow wrapping — never truncate "Welcome Home" */
  white-space: normal;
  overflow: visible;
}
.modal-header h3 em { font-style: normal; color: #ffd666; }
.modal-header p {
  font-size: clamp(11px, 2.5vw, 12.5px);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.01em;
  line-height: 1.45;
}

/* Premium close button — vertically centred in header */
.modal-close {
  position: absolute;
  top: 50%; right: 13px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0; flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
.modal-close svg { width: 13px; height: 13px; display: block; }

/* ── BODY ── */
.modal-body {
  padding: 22px 28px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  /* Smooth scroll inertia on iOS */
  -webkit-overflow-scrolling: touch;
}

/* ── TAB SWITCHER — pill toggle ── */
.modal-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 18px;
  border: none;
  gap: 0;
}
.modal-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-head);
  color: #64748b;
  background: transparent;
  border: none; border-radius: 8px;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.01em;
}
.modal-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15,23,42,0.12), 0 1px 3px rgba(15,23,42,0.08);
}

.tab-content { display: none; flex-direction: column; gap: 13px; }
.tab-content.active { display: flex; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #64748b;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-body); font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: #ffffff;
  color: var(--text); width: 100%;
}
.form-group input::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,84,197,0.10);
  background: #ffffff;
}
/* Password wrapper with show/hide toggle */
.pwd-input-wrap {
  position: relative; display: flex; align-items: center;
}
.pwd-input-wrap input { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #94a3b8; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s; border-radius: 4px;
}
.pwd-toggle:hover { color: var(--primary); }
.pwd-toggle svg { width: 16px; height: 16px; display: block; }

/* Remember me — standalone row */
.login-remember-row {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; margin-top: -2px;
}
.login-remember-row input[type="checkbox"] {
  width: 15px; height: 15px; border-radius: 4px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0; margin: 0; padding: 0;
}
.login-remember-row span { font-size: 12.5px; color: #64748b; font-weight: 500; }

/* Forgot password — below submit button */
.modal-forgot-row {
  text-align: center; margin-top: 2px;
}
.modal-forgot-link {
  font-size: 12.5px; color: #64748b; font-weight: 600;
  text-decoration: none; transition: color 0.2s;
}
.modal-forgot-link:hover { color: var(--primary); }

/* Divider between forgot and register note */
.modal-divider {
  height: 1px; background: #f1f5f9;
  margin: 10px 0 6px;
}

/* Free membership hint strip */
.reg-free-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #10b981;
  background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.18);
  border-radius: 8px; padding: 7px 12px;
  letter-spacing: 0.01em;
}
.reg-free-hint svg { flex-shrink: 0; stroke: #10b981; }

/* ── PRIMARY CTA BUTTON ── */
.btn-modal-submit {
  background: linear-gradient(135deg, #1a3a9f 0%, #2563eb 60%, #1d4ed8 100%);
  color: #ffffff; border: none;
  padding: 14px; border-radius: 11px;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 4px; width: 100%;
  box-shadow: 0 4px 16px rgba(37,84,197,0.30);
}
.btn-modal-submit:hover {
  opacity: 0.92; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,84,197,0.38);
}

.modal-note { font-size: 12.5px; color: #64748b; text-align: center; margin-top: 8px; }
.modal-note a { color: var(--primary); font-weight: 600; }
.modal-note a:hover { text-decoration: underline; }

/* ── REGISTRATION — Smart Location Picker ── */
.reg-loc-tabs {
  display: flex; gap: 6px; flex-wrap: nowrap; margin-top: 6px;
}
.reg-loc-tab {
  flex: 1; min-width: 0;
  padding: 9px 8px; border-radius: 10px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg); cursor: pointer;
  color: var(--text-muted); transition: all 0.18s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  white-space: nowrap; line-height: 1.2;
}
.reg-loc-tab.active {
  background: rgba(37,84,197,0.07); border-color: var(--primary-600);
  color: var(--primary); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(37,84,197,0.08);
}
.reg-loc-tab:hover:not(.active) {
  border-color: var(--primary-400); color: var(--text); background: var(--white);
}
/* two-col row for location dropdown + family status */
.reg-loc-value-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start;
}
@media (max-width: 420px) {
  .reg-loc-tabs { gap: 4px; }
  .reg-loc-tab { font-size: 10.5px; padding: 8px 5px; gap: 3px; }
  .reg-loc-tab svg { display: none; }
  .reg-loc-value-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ── MULTI-STEP REGISTRATION ── */
.reg-steps {
  display: flex; align-items: flex-start;
  margin-bottom: 18px; padding: 0;
}
.reg-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex-shrink: 0; cursor: default; min-width: 70px;
}
.reg-step span {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e8edf5; color: #94a3b8;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  border: 2px solid #dde3ef;
}
.reg-step em {
  font-style: normal; font-size: 10px;
  color: #94a3b8; font-weight: 600; letter-spacing: 0.2px;
  white-space: nowrap; transition: color 0.3s; text-align: center;
}
.reg-step.active span {
  background: linear-gradient(135deg, #1a3a9f, #2563eb);
  color: #ffffff; border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37,84,197,0.35);
}
.reg-step.active em { color: var(--primary); font-weight: 700; }
.reg-step.done span {
  background: linear-gradient(135deg, #0d9488, #10b981);
  color: #ffffff; border-color: #10b981;
  box-shadow: 0 3px 10px rgba(16,185,129,0.30);
}
.reg-step.done em { color: #0d9488; font-weight: 700; }

/* Connecting line — vertically centred with the circles */
.reg-step-line {
  flex: 1; height: 2px; margin-top: 15px;
  background: #e2e8f0; border-radius: 2px;
  transition: background 0.4s;
}
.reg-step-line.done { background: linear-gradient(90deg, #10b981, #0d9488); }

.reg-panel { display: none; flex-direction: column; gap: 14px; }
.reg-panel.active { display: flex; }

/* ── Community Title Pill Picker ── */
.comm-title-opts {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.comm-title-opt {
  flex: 1; min-width: 76px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.comm-title-opt:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,84,197,0.05);
}
.comm-title-opt.active {
  background: linear-gradient(135deg, rgba(37,84,197,0.10) 0%, rgba(37,99,235,0.05) 100%);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,84,197,0.12), 0 2px 8px rgba(37,84,197,0.14);
}
.ct-icon {
  font-size: 9px; opacity: 0.55;
  transition: opacity 0.2s, color 0.2s;
}
.comm-title-opt.active .ct-icon {
  opacity: 1; color: #d4af37;
}
.field-opt {
  font-size: 11px; font-weight: 500;
  color: #94a3b8; letter-spacing: 0;
  font-style: normal;
}

/* Back button */
.btn-modal-back {
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  color: #64748b; padding: 11px; border-radius: 11px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%; letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: -2px;
}
.btn-modal-back:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,84,197,0.04); }

/* Validation */
.form-error {
  font-size: 11px; color: #ef4444;
  margin-top: 2px; display: none; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.form-error::before {
  content: '!';
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: #ef4444; color: white; font-size: 9px; font-weight: 800;
  flex-shrink: 0;
}
.form-error { display: none; }
.form-error.show { display: flex; }
.form-group.has-error input,
.form-group.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.reg-success {
  display: none;
  flex-direction: column; align-items: center;
  text-align: center; padding: 8px 0 4px; gap: 12px;
  animation: fadeUp 0.5s cubic-bezier(0.34,1.1,0.64,1);
}
.reg-success.show { display: flex; }

/* SVG checkmark circle */
.reg-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2.5px solid #4ade80;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(74,222,128,0.12), 0 4px 16px rgba(16,185,129,0.22);
}
.reg-success-icon svg {
  width: 34px; height: 34px;
  stroke: #16a34a; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.reg-success h4 {
  font-family: var(--font-head); font-size: 20px;
  font-weight: 800; color: #0f172a; margin-top: 2px;
}
.reg-success > p {
  font-size: 13px; color: #64748b; line-height: 1.75; max-width: 290px;
  margin-top: -2px;
}
/* ── YOUR PROFILE HORIZONTAL CARD (members.html) ── */
.mpc-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.my-profile-header-bar { width: 3px; height: 22px; background: var(--gold-500); border-radius: 2px; flex-shrink: 0; }
.my-profile-header-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-500); }
#my-incomplete-notice {
  display: none; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--gold);
  background: var(--gold-50); border: 1px solid var(--gold-100);
  padding: 5px 14px; border-radius: 20px; cursor: pointer;
  transition: background 0.2s;
}
#my-incomplete-notice:hover { background: var(--gold-100); }
/* Card wrapper */
.mpc-card {
  border: 1.5px solid var(--gold-100);
  background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 20px rgba(180,83,9,0.07);
  transition: box-shadow 0.25s;
}
.mpc-card:hover { box-shadow: 0 8px 32px rgba(180,83,9,0.12); }
.mpc-card.mpc-tier-patron { border-color: #DDD6FE; background: linear-gradient(135deg, #F9F5FF 0%, #FFFFFF 100%); }
.mpc-card.mpc-tier-active { border-color: var(--primary-100); background: linear-gradient(135deg, #F0F5FF 0%, #FFFFFF 100%); }
/* Top colour banner */
.mpc-banner { height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold)); }
.mpc-banner.patron { background: linear-gradient(90deg, #7C3AED, #A855F7); }
/* Inner body — three-column flex */
.mpc-body { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
/* Avatar */
.mpc-avatar-col { flex-shrink: 0; }
.mpc-avatar { width: 64px !important; height: 64px !important; font-size: 1.5rem !important; box-shadow: 0 3px 12px rgba(180,83,9,0.18); }
/* Info column */
.mpc-info-col { flex: 1; min-width: 0; }
.mpc-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpc-profession { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.mpc-badge { margin-bottom: 10px; display: inline-flex; }
.mpc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-muted); min-height: 18px; }
.mpc-meta-item { display: none; align-items: center; gap: 5px; }
.mpc-meta-item svg { width: 12px; height: 12px; stroke: var(--text-muted); flex-shrink: 0; }
.mpc-meta-sep { font-size: 14px; color: var(--border); line-height: 1; }
/* Right column */
.mpc-right-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mpc-since { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.mpc-since strong { color: var(--primary); font-weight: 700; }
.mpc-edit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-50); color: var(--gold);
  border: 1.5px solid var(--gold-100); border-radius: 8px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 600;
  font-family: var(--font-head); cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.mpc-edit-btn:hover { background: var(--gold-500); color: white; border-color: var(--gold-500); }
/* Responsive */
@media (max-width: 768px) {
  .mpc-body { gap: 14px; padding: 16px 18px; }
  .mpc-avatar { width: 52px !important; height: 52px !important; font-size: 1.2rem !important; }
  .mpc-name { font-size: 15px; }
  .mpc-right-col { flex-direction: row; align-items: center; gap: 14px; }
}
@media (max-width: 560px) {
  .mpc-body { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .mpc-info-col { min-width: calc(100% - 72px); }
  .mpc-right-col { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border-light); }
  .mpc-name { white-space: normal; }
  .mpc-profession { white-space: normal; }
}
@media (max-width: 380px) {
  .mpc-avatar { width: 44px !important; height: 44px !important; font-size: 1rem !important; }
  .mpc-edit-btn { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .reg-step em { display: none; }
  .reg-step span { width: 26px; height: 26px; font-size: 12px; }
  .reg-step-line { margin-bottom: 0; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modalSlide {
  from { transform: translateY(-24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}
@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-logo img, .nav-logo-fallback { width: 54px; height: 54px; }
  .nav-brand strong { font-size: 15px; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
  .btn-login { padding: 7px 14px; font-size: 12.5px; }
  /* Dropdown: ensure it can't escape the right viewport edge on smaller desktops */
  .nav-user-dropdown { max-width: min(280px, calc(100vw - 2rem)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  /* Tablet: tighten the hero grid gap so both columns breathe without crowding */
  .hero-home { gap: clamp(20px, 3vw, 40px); padding: calc(var(--header-h) + 12px) 4vw 36px; }
  /* Tablet: inline logo stays small, scale animation */
  .hero-logo-badge,
  .hero-logo-badge-fallback { width: 32px; height: 32px; }
  .hero-anim {
    width: clamp(300px, 40vw, 460px);
    height: clamp(300px, 40vw, 460px);
  }
  /* Krishna scales proportionally with animation at tablet — +20% */
  .ha-krishna-wrap { width: clamp(195px, 21vw, 285px); }
  /* Page hero: tighten on tablet too */
  .page-hero { padding: 36px 5vw 30px; }
}

/* ── MID-TABLET: 769–900px — 8 nav links + pill gets very cramped ── */
@media (max-width: 900px) and (min-width: 769px) {
  :root { --nav-h: 62px; }
  .nav-logo img, .nav-logo-fallback { width: 46px; height: 46px; }
  .nav-brand strong { font-size: 14px; }
  .nav-brand span { display: none; } /* hide "Bangalore" sub-label */
  .nav-links { gap: 0; }
  .nav-links a { padding: 5px 7px; font-size: 12px; }
  .nav-actions { gap: 6px; }
  .nav-user-pill { padding: 3px 8px 3px 3px; }
  .nav-user-avatar { width: 28px; height: 28px; font-size: 10px; }
  .nav-user-chevron { width: 10px; height: 10px; }
  .nav-user-dropdown { right: 0; max-width: min(270px, calc(100vw - 1rem)); }
}

@media (max-width: 768px) {
  :root {
    --strip-h: 36px;
    --nav-h: 58px;
    /* Tighter section padding on mobile — prevents excessive white space */
    --section-pad: clamp(36px, 7vw, 52px);
  }
  .nav-logo img, .nav-logo-fallback { width: 44px; height: 44px; }
  .nav-brand strong { font-size: 14px; }
  .nav-brand span { font-size: 9px; letter-spacing: 1.2px; }
  .btn-login { display: none !important; }
  /* On mobile: never show desktop pill */
  .nav-user-pill { display: none !important; }
  /* On mobile when logged in: show user card, hide login button li */
  body.bmwca-logged-in #navMobileUserLi { display: block !important; }
  body.bmwca-logged-in #navMobileLoginLi { display: none !important; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 5vw 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-links a.active::after { bottom: 6px; }
  .hamburger { display: flex; }
  .nav-mobile-login {
    display: flex !important;
    align-items: center; justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    width: 100%;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.15s;
  }
  .nav-mobile-login:hover { background: var(--primary-600); transform: translateY(-1px); }
  .nav-mobile-login:active { transform: translateY(0); }
  /* ── Hero mobile ── */
  .hero-home {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: calc(var(--header-h) + 20px) 5vw 44px;
    gap: 0;
    align-items: start;
  }
  .hero-left  { order: 2; }
  .hero-right { order: 1; margin-bottom: 28px; }
  /* Mobile: scale animation to fit nicely — +10% over previous */
  .hero-anim {
    width: clamp(286px, 84vw, 418px);
    height: clamp(286px, 84vw, 418px);
  }
  /* Krishna +10% — now at sweet spot ~53% of ring container */
  .ha-krishna-wrap { width: clamp(167px, 45vw, 251px); }
  /* Inline logo in pill — stays small on mobile */
  .hero-logo-badge,
  .hero-logo-badge-fallback { width: 28px; height: 28px; }
  .hero-tag { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 18px; gap: 8px; padding: 4px 12px 4px 4px; }
  .hero-home h1 { font-size: clamp(30px, 8vw, 48px); letter-spacing: -1px; }
  .hero-desc { font-size: 14.5px; margin-bottom: 24px; }
  .hero-actions { margin-bottom: 32px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* ── Page hero: dramatically reduce wasted vertical space on mobile ── */
  .page-hero { padding: 20px 5vw 16px; }
  .page-hero h1 { font-size: clamp(22px, 6.5vw, 34px); letter-spacing: -0.5px; margin-bottom: 10px; }
  .page-hero p { font-size: 13.5px; line-height: 1.65; margin-bottom: 0; }
  .page-hero .breadcrumb { margin-top: 14px !important; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .scroll-top { bottom: 20px; right: 16px; }
}
@media (max-width: 480px) {
  :root {
    /* Even tighter section padding on very small phones */
    --section-pad: clamp(28px, 7vw, 40px);
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Hide "· Govt. Registered" on very small phones — pill stays single-line */
  .hero-tag-extra { display: none; }
  /* Further tighten the pill at 480px */
  .hero-logo-badge,
  .hero-logo-badge-fallback { width: 24px; height: 24px; }
  .hero-tag { font-size: 8.5px; letter-spacing: 1.2px; gap: 6px; padding: 4px 10px 4px 4px; }
  /* Smallest phones — +10% from previous */
  .ha-krishna-wrap { width: clamp(132px, 35vw, 182px); }
  /* Page hero: hide description on smallest screens — show content sooner */
  .page-hero { padding: 16px 5vw 12px; }
  .page-hero h1 { font-size: clamp(20px, 6vw, 28px); }
  .page-hero p { display: none; }
  .page-hero .breadcrumb { margin-top: 10px !important; font-size: 12px; }
}

/* ── UTILITY ── */
.text-center  { text-align: center; }
.text-primary { color: var(--primary-600); }
.text-gold    { color: var(--gold-500); }
.text-muted   { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-3 { gap: 12px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   MEMBER ID — Nav Dropdown, Mobile Nav, Success Screen
   ═══════════════════════════════════════════════════ */

/* ── Nav Dropdown Member ID ── */
.nav-user-dropdown-id {
  font-size: 9.5px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.8px; margin-top: 3px;
  font-family: 'Courier New', Courier, monospace;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 4px; padding: 2px 6px; display: inline-block;
}

/* ── Mobile Nav Member ID ── */
.nav-mobile-member-id {
  font-size: 10px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.6px; margin-top: 2px;
  font-family: 'Courier New', Courier, monospace;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 4px; padding: 1px 5px; display: inline-block;
}

/* ── Registration Success — Member ID Box ── */
.reg-success-id-box {
  background: linear-gradient(145deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 1.5px solid rgba(37,84,197,0.18);
  border-radius: 14px; padding: 18px 16px; margin-top: 4px; text-align: center;
  width: 100%; box-shadow: 0 4px 16px rgba(37,84,197,0.08);
}
.reg-success-id-label {
  font-size: 9.5px; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
  opacity: 0.7;
}
.reg-success-id-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px; font-weight: 700; color: #0f172a;
  letter-spacing: 2px; margin-bottom: 12px;
  background: #ffffff; border: 1.5px solid rgba(37,84,197,0.18);
  border-radius: 10px; padding: 10px 14px; display: block;
  box-shadow: inset 0 2px 4px rgba(15,23,42,0.04);
}
.reg-success-id-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #1a3a9f, #2563eb);
  color: #ffffff;
  border: none; border-radius: 9px;
  font-size: 12.5px; font-weight: 700; font-family: var(--font-head);
  cursor: pointer; transition: all 0.2s; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(37,84,197,0.28);
}
.reg-success-id-copy:hover { opacity: 0.88; transform: translateY(-1px); }
.reg-success-id-copy svg { width: 13px; height: 13px; }
.reg-success-id-note {
  font-size: 11px; color: #64748b; line-height: 1.65;
  margin: 0; padding: 0 4px;
}
.reg-success-id-note strong { color: #334155; }

/* ── Success → Complete Profile CTA link ── */
.reg-success-profile-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #1a3a9f 0%, #2563eb 100%);
  color: #ffffff; font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  border-radius: 11px; text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 14px rgba(37,84,197,0.30);
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}
.reg-success-profile-btn:hover { opacity: 0.90; transform: translateY(-1px); }
.reg-success-profile-btn svg { flex-shrink: 0; }

/* ── Modal breakpoints ── */
@media (max-width: 520px) {
  .modal { border-radius: 18px; max-width: 100%; }
  .modal-header { padding: 15px 44px 15px 16px; gap: 13px; }
  .modal-header-logo-wrap { width: 62px; height: 62px; }
  .modal-header-logo { width: 50px; height: 50px; }
  .modal-body { padding: 18px 20px 24px; }
}
@media (max-width: 420px) {
  .modal-overlay { padding: 8px; }
  .modal { border-radius: 16px; max-height: calc(100vh - 16px); }
  .modal-header { padding: 13px 42px 13px 14px; gap: 11px; }
  .modal-header-logo-wrap { width: 56px; height: 56px; }
  .modal-header-logo { width: 44px; height: 44px; }
  .comm-title-opts { gap: 6px; }
  .comm-title-opt { font-size: 12px; padding: 9px 10px; gap: 5px; }
  .modal-body { padding: 14px 16px 20px; }
  .modal-tabs { margin-bottom: 12px; }
  .reg-success-id-value { font-size: 13px; letter-spacing: 1px; padding: 8px 10px; }
  .reg-success-id-box { padding: 14px 12px; }
}
@media (max-width: 360px) {
  .modal-overlay { padding: 6px; }
  .modal-header { padding: 12px 40px 12px 12px; gap: 10px; }
  .modal-header-logo-wrap { width: 50px; height: 50px; }
  .modal-header-logo { width: 40px; height: 40px; }
  .modal-body { padding: 12px 14px 18px; }
  .reg-success-id-value { font-size: 12px; letter-spacing: 0.5px; }
  .comm-title-opt { font-size: 11.5px; padding: 8px 8px; min-width: 64px; }
}
