/* ============================================================
   Hearts to Hands CLT — Volunteer Portal Stylesheet
   styles-portal.css
   ============================================================ */

/* ── Brand Tokens + Base Variables ───────────────────────── */
:root {
  /* Original palette */
  --bg-0: #070b14;
  --bg-1: #0b1220;
  --bs-body-bg: transparent;
  --bs-body-color: #c8d0df;
  --text:  #c8d0df;
  --muted: rgba(200,208,223,.88);
  --glass-border:   rgba(255,255,255,.18);
  --glass-border-2: rgba(255,255,255,.12);
  --accent:   rgba(13,110,253,.70);
  --accent-2: rgba(32,201,151,.55);

  /* H2H Brand Colors */
  --h2h-red:       #EF0037;
  --h2h-blue:      #01AEF0;
  --h2h-gold:      #E2BB80;
  --h2h-dark:      #444655;
  --h2h-red-glow:  rgba(239,0,55,.25);
  --h2h-blue-glow: rgba(1,174,240,.25);
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .012em;
  line-height: 1.65;
  background:
    radial-gradient(1200px circle at 12% 10%, rgba(13,110,253,.26), transparent 48%),
    radial-gradient(900px  circle at 92% 18%, rgba(32,201,151,.16), transparent 48%),
    radial-gradient(1000px circle at 60% 95%, rgba(255,193,7,.16),  transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
  min-height: 100vh;
}

/* Animated ambient overlay using brand colors */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(239,0,55,.10)  0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(1,174,240,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%,rgba(226,187,128,.05)0%, transparent 60%);
  animation: ambientPulse 9s ease-in-out infinite alternate;
}
@keyframes ambientPulse { from { opacity: .5; } to { opacity: 1; } }

.muted { color: var(--muted); }

/* ── Glass card ───────────────────────────────────────────── */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.16);
  border-radius: 20px;
}

/* Welcome glass glow */
.welcome-glass::before {
  content: "";
  background-size: 120% 120%;
  background-position: 0% 0%;
  will-change: transform, background-position;
  position: absolute;
  inset: -40px -60px -60px -60px;
  background:
    radial-gradient(520px circle at 18% 18%, rgba(13,110,253,.26),  transparent 55%),
    radial-gradient(460px circle at 55%  8%, rgba(220,53,69,.24),   transparent 58%),
    radial-gradient(520px circle at 70% 55%, rgba(255,193,7,.16),   transparent 62%);
  opacity: .55;
  filter: blur(14px);
  transform: translate3d(0,0,0);
  animation: welcomeGlow 5.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  mix-blend-mode: screen;
}
.welcome-glass > * { position: relative; z-index: 1; }
.welcome-glass h1  { margin-top: 0; }

@keyframes welcomeGlow {
  0%   { transform: translate(0,0)       scale(1.02); background-position:   0%   0%; }
  35%  { transform: translate(34px,-22px) scale(1.08); background-position:  18% -12%; }
  70%  { transform: translate(-24px,20px) scale(1.06); background-position: -14%  14%; }
  100% { transform: translate(0,0)       scale(1.02); background-position:   0%   0%; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-glass::before { animation: none !important; }
}

/* ── Portal header ────────────────────────────────────────── */
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .4rem 0;
  background: rgba(7,11,20,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.portal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.portal-logo {
  height: 44px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.portal-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .42rem .78rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(233,238,247,.92);
  font-weight: 750;
  letter-spacing: .2px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  cursor: default;
  user-select: none;
}
.portal-pill::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at 18% 22%, rgba(255,255,255,.12), transparent 58%);
}
.portal-nav {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

/* ── Hero section ─────────────────────────────────────────── */
.h2h-hero { padding: 2rem 0 0; animation: fadeInDown .7s ease both; }

.hero-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h2h-gold);
  background: rgba(226,187,128,.12);
  border: 1px solid rgba(226,187,128,.3);
  border-radius: 100px; padding: .25rem 1rem; margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: .05em; color: #fff;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.hero-title .accent-red  { color: var(--h2h-red); }
.hero-title .accent-blue { color: var(--h2h-blue); }
.hero-title .accent-thin { color: rgba(255,255,255,.75); font-weight: 400; }
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.85);
  max-width: 520px; margin: 0 auto; line-height: 1.65;
}
/* ── Stat cards ───────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin-top: 1.5rem;
  width: 100%;
}

.stat-card {
  position: relative;
  border-radius: 18px;
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: statCardIn .6s cubic-bezier(.22,1,.36,1) both;
}
.stat-card:nth-child(1) { animation-delay: .08s; }
.stat-card:nth-child(2) { animation-delay: .18s; }
.stat-card:nth-child(3) { animation-delay: .28s; }
@keyframes statCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Brand-tinted backgrounds */
.stat-card-red  { background: linear-gradient(150deg, rgba(239,0,55,.12), rgba(255,255,255,.04)); border-color: rgba(239,0,55,.22); }
.stat-card-blue { background: linear-gradient(150deg, rgba(1,174,240,.12), rgba(255,255,255,.04)); border-color: rgba(1,174,240,.22); }
.stat-card-gold { background: linear-gradient(150deg, rgba(226,187,128,.12), rgba(255,255,255,.04)); border-color: rgba(226,187,128,.22); }

/* Glowing bottom accent line */
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 15%; right: 15%;
  height: 2px;
  border-radius: 99px;
}
.stat-card-red::after  { background: var(--h2h-red);  box-shadow: 0 0 14px 2px rgba(239,0,55,.6); }
.stat-card-blue::after { background: var(--h2h-blue); box-shadow: 0 0 14px 2px rgba(1,174,240,.6); }
.stat-card-gold::after { background: var(--h2h-gold); box-shadow: 0 0 14px 2px rgba(226,187,128,.6); }

/* Icon */
.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: .55rem;
  line-height: 1;
}
.stat-card-red  .stat-card-icon { color: var(--h2h-red); }
.stat-card-blue .stat-card-icon { color: var(--h2h-blue); }
.stat-card-gold .stat-card-icon { color: var(--h2h-gold); }

/* Number */
.stat-card-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .4rem;
}
/* Number color matches tile — all three gradient-text props must live together */
.stat-card-red .stat-card-num {
  background: linear-gradient(135deg, #ff6680, var(--h2h-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card-gold .stat-card-num {
  background: linear-gradient(135deg, var(--h2h-gold), #f5dfa0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card-blue .stat-card-num {
  background: linear-gradient(135deg, var(--h2h-blue), #7dd9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Label */
.stat-card-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

/* ── Path chooser cards ───────────────────────────────────── */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.path-card {
  position: relative; text-align: left; overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 1.4rem 1.25rem;
  cursor: pointer; color: rgba(233,238,247,.96);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Lock background on all interactive states — no white flash */
button.path-card,
button.path-card:hover,
button.path-card:focus,
button.path-card:active,
button.path-card:focus-visible {
  background-color: rgba(255,255,255,.05);
  color: inherit;
  outline: none;
}

/* Brand-colored overlay fades in on hover */
.path-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity .22s ease;
}
.path-card-login::after { background: linear-gradient(135deg, rgba(239,0,55,.14), transparent 65%); }
.path-card-reg::after   { background: linear-gradient(135deg, rgba(1,174,240,.14), transparent 65%); }
.path-card:hover::after { opacity: 1; }

.path-card-login:hover { border-color: rgba(239,0,55,.55); box-shadow: 0 10px 36px rgba(239,0,55,.2); transform: translateY(-4px); }
.path-card-reg:hover   { border-color: rgba(1,174,240,.55); box-shadow: 0 10px 36px rgba(1,174,240,.2); transform: translateY(-4px); }

/* Active (selected) state */
.path-card-login.active { border-color: rgba(239,0,55,.72); background-color: rgba(239,0,55,.10); }
.path-card-reg.active   { border-color: rgba(1,174,240,.72); background-color: rgba(1,174,240,.10); }

/* Icon badge */
.path-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: .9rem;
}
.path-card-login .path-icon-wrap { background: rgba(239,0,55,.15); color: var(--h2h-red); }
.path-card-reg   .path-icon-wrap { background: rgba(1,174,240,.15); color: var(--h2h-blue); }

.path-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.path-desc  { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5; margin-bottom: .8rem; }

/* CTA arrow row */
.path-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  pointer-events: none;
  transition: gap .2s;
}
.path-card-login .path-cta { color: var(--h2h-red); }
.path-card-reg   .path-cta { color: var(--h2h-blue); }
.path-card:hover .path-cta { gap: .6rem; }

/* ── Mission card (right panel) ───────────────────────────── */
.mission-card { border-left: 3px solid var(--h2h-red) !important; animation: fadeInUp .6s .15s ease both; }
.mission-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(239,0,55,.12); color: var(--h2h-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn { font-weight: 600; letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease; }
.btn-spinner-fixed { min-width: 200px; }

.btn-primary,
.btn-success {
  background: rgba(226,187,128,.15) !important;
  border-color: rgba(226,187,128,.35) !important;
  color: var(--h2h-gold) !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
.btn-primary:hover,
.btn-success:hover {
  background: rgba(226,187,128,.35) !important;
  border-color: rgba(226,187,128,.6) !important;
  box-shadow: 0 4px 16px rgba(226,187,128,.2) !important;
  transform: translateY(-2px);
  color: var(--h2h-gold) !important;
}

/* ── Panel ────────────────────────────────────────────────── */
.panel {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border-2);
  border-radius: 18px;
  padding: 1.25rem;
}
.brand-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  font-weight: 650;
  letter-spacing: .2px;
}

/* ── Form controls ────────────────────────────────────────── */
.form-control, .form-select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.10);
  border-color: var(--h2h-blue);
  box-shadow: 0 0 0 3px var(--h2h-blue-glow);
  color: var(--text);
}
.form-control::placeholder { color: rgba(233,238,247,.60); }

.form-floating > label {
  color: rgba(233,238,247,.92) !important;
  font-weight: 650;
  letter-spacing: .1px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  opacity: .98;
}
.form-floating > label::after { background: transparent !important; }

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  padding-left: .25rem;
  padding-right: .25rem;
  margin-left: .55rem;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Hide Bootstrap valid/invalid icons */
.form-control.is-valid, .form-select.is-valid,
.was-validated .form-control:valid, .was-validated .form-select:valid,
.form-control.is-invalid, .form-select.is-invalid,
.was-validated .form-control:invalid, .was-validated .form-select:invalid {
  background-image: none !important;
  padding-right: .75rem !important;
}

/* Don't apply validation styling to remember-me checkbox */
.was-validated #rememberMe.form-check-input:valid,
.was-validated #rememberMe.form-check-input:invalid {
  border-color: rgba(255,255,255,.65) !important;
  box-shadow: none !important;
}
.was-validated #rememberMe.form-check-input:valid:checked,
.was-validated #rememberMe.form-check-input:invalid:checked {
  background-color: transparent !important;
  border-color: rgba(255,255,255,.65) !important;
  box-shadow: none !important;
}
.was-validated #rememberMe.form-check-input:valid + .form-check-label,
.was-validated #rememberMe.form-check-input:invalid + .form-check-label {
  color: inherit !important;
}

/* ── Password eye-toggle ──────────────────────────────────── */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.75rem !important; }

.pw-toggle {
  position: absolute;
  right: .7rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: .3rem;
  line-height: 1;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
  transition: color .15s ease;
  border-radius: 6px;
}
.pw-toggle:hover { color: rgba(255,255,255,.85); }
.pw-toggle:focus-visible {
  outline: 2px solid var(--h2h-blue);
  outline-offset: 2px;
  color: rgba(255,255,255,.85);
}

/* Forgot password link */
.forgot-link {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .18s ease;
}
.forgot-link:hover {
  color: var(--h2h-gold);
  text-decoration: none;
}

/* ── OTP delivery wrap ────────────────────────────────────── */
#otpDeliveryWrap { position: relative; margin-bottom: 1.1rem; padding-bottom: 1.35rem; }
#otpDeliveryWrap .otp-send-col { display: flex; align-items: center; }
#otpDeliveryWrap .otp-method-floating { position: relative; }
#otpDeliveryWrap .otp-method-floating .invalid-feedback {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: .25rem;
  padding-left: .75rem;
  padding-right: .75rem;
}

/* ── OTP boxes ────────────────────────────────────────────── */
.otp-box {
  width: 48px; height: 54px;
  text-align: center;
  font-size: 1.25rem;
  border-radius: 12px;
}
.otp-box:focus {
  border-color: var(--h2h-blue) !important;
  box-shadow: 0 0 0 3px var(--h2h-blue-glow) !important;
}

/* Keep OTP countdown row stable */
#otpArea .d-flex.flex-wrap.gap-2.align-items-center.mt-3,
#forgotOtpArea .d-flex.flex-wrap.gap-2.align-items-center.mt-3 {
  flex-wrap: nowrap !important;
  align-items: center;
}
#regExpireBadge, #regResendBadge,
#forgotExpireBadge, #forgotResendBadge { flex: 0 0 auto; }
#resendOtpBtn, #forgotResendBtn { flex: 0 0 auto; min-width: 110px; }

/* ── Progress bar ─────────────────────────────────────────── */
.progress-bar { background: linear-gradient(90deg, var(--h2h-red), var(--h2h-blue)) !important; }

/* ── Auth tabs reveal animation ───────────────────────────── */
.hidden-tabs { display: none !important; }
.auth-tabs-wrap { overflow: hidden; }
.auth-tabs-wrap.is-revealed {
  animation: authDrop 420ms ease-out 1;
  transform-origin: top;
}
@keyframes authDrop {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-tabs-wrap.is-revealed { animation: none !important; }
}

/* ── Stepper bubbles ──────────────────────────────────────── */
.stepper-bubbles {
  display: flex; align-items: center; gap: .6rem;
  flex-wrap: wrap; margin-top: .25rem;
}
.bubble-wrap { display: flex; align-items: center; gap: .5rem; }
.bubble {
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.95);
  transition: .18s ease;
}
.bubble-label { font-size: .85rem; color: rgba(233,238,247,.82); font-weight: 650; }
.bubble-line { height: 2px; width: 32px; border-radius: 99px; background: rgba(255,255,255,.14); }

.bubble.active {
  background: var(--h2h-gold) !important;
  border-color: var(--h2h-gold) !important;
  box-shadow: 0 0 14px rgba(226,187,128,.35) !important;
  color: #1a1a1a;
}
.bubble.done {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #fff;
}
.bubble-line.done { background: rgba(34,197,94,.55); }

/* ── Countdown badges ─────────────────────────────────────── */
.countdown-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.85);
  font-size: .85rem;
  white-space: nowrap;
}
.countdown-badge strong { color: rgba(233,238,247,.95); }
.countdown-danger { border-color: rgba(220,53,69,.35); background: rgba(220,53,69,.12); }

/* ── FAQ card ─────────────────────────────────────────────── */
.faq-card { overflow: hidden; }

.faq-card-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem;
  padding: .9rem 1.1rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 400px) {
  .faq-collapse-btn { width: 100%; justify-content: center; }
}
.faq-header-left { display: flex; align-items: center; }
.faq-heading {
  font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: .01em;
}

.faq-collapse-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(226,187,128,.15);
  border: 1px solid rgba(226,187,128,.35);
  color: var(--h2h-gold);
  border-radius: 0.375rem;
  padding: .375rem .75rem;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.faq-collapse-btn:hover {
  background: rgba(226,187,128,.35);
  border-color: rgba(226,187,128,.6);
  color: var(--h2h-gold);
  box-shadow: 0 4px 16px rgba(226,187,128,.2);
  transform: translateY(-1px);
}

/* Gold hex brand button — small, used for View All / action CTAs */
.btn-gold {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(226,187,128,.15);
  border: 1px solid rgba(226,187,128,.40);
  color: var(--h2h-gold);
  border-radius: 0.375rem;
  padding: .3rem .65rem;
  font-size: .85rem; font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-gold:hover {
  background: rgba(226,187,128,.30);
  border-color: rgba(226,187,128,.65);
  color: var(--h2h-gold);
  box-shadow: 0 3px 12px rgba(226,187,128,.22);
  transform: translateY(-1px);
}
.btn-gold:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Scrollable FAQ list */
.faq-wrap {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.faq-wrap::-webkit-scrollbar { width: 4px; }
.faq-wrap::-webkit-scrollbar-track { background: transparent; }
.faq-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 99px; }

/* Accordion reset */
.faq-accordion { --bs-accordion-border-color: transparent; }
.faq-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; border-radius: 0 !important; }
.faq-item:last-child { border-bottom: 0 !important; }

.faq-btn {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 1rem;
  background: transparent !important;
  color: var(--text) !important;
  font-size: .9rem; font-weight: 600;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background .15s ease;
}
.faq-btn:hover { background: rgba(226,187,128,.12) !important; color: var(--h2h-gold) !important; }
.faq-btn:not(.collapsed) { background: rgba(226,187,128,.12) !important; color: var(--h2h-gold) !important; }
/* Hide Bootstrap's built-in accordion arrow */
.faq-btn::after { display: none !important; }

/* BI chevron icon injected via JS */
.faq-chevron {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  transition: transform .25s ease, color .15s ease;
}
.faq-btn:not(.collapsed) .faq-chevron {
  transform: rotate(180deg);
  color: rgba(255,255,255,.8);
}



.faq-body {
  padding: .5rem 1rem .75rem 2.75rem;
  font-size: .9rem; line-height: 1.65;
}

.rotate-180 { transform: rotate(180deg); }

/* ── Misc ─────────────────────────────────────────────────── */
a { color: #9ec5fe; }

/* ── How It Works ─────────────────────────────────────────── */
.hiw-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.4rem 1.75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}
.hiw-step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}
.hiw-icon {
  font-size: 1.5rem;
  color: var(--h2h-gold);
  margin-bottom: .5rem;
  line-height: 1;
}
.hiw-label {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}
.hiw-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
}
.hiw-arrow {
  font-size: 1rem;
  color: rgba(255,255,255,.18);
  flex-shrink: 0;
  padding: 0 .25rem;
}
@media (max-width: 575px) {
  .hiw-strip { flex-direction: column; gap: 1.25rem; padding: 1.25rem 1rem; }
  .hiw-arrow { transform: rotate(90deg); }
}

/* ── Upcoming Events ──────────────────────────────────────── */
.events-section-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.events-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.event-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.event-card:hover {
  border-color: rgba(226,187,128,.3);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h2h-gold);
  background: rgba(226,187,128,.1);
  border: 1px solid rgba(226,187,128,.22);
  border-radius: 6px;
  padding: .2rem .55rem;
  width: fit-content;
}
.event-name {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.event-meta {
  font-size: .73rem;
  color: rgba(255,255,255,.38);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.event-footer { margin-top: auto; }
.event-spots-label {
  font-size: .62rem;
  color: rgba(255,255,255,.3);
  margin-bottom: .35rem;
  letter-spacing: .03em;
}
.event-spots-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.event-spots-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--h2h-red), var(--h2h-blue));
}
.events-login-note {
  font-size: .73rem;
  color: rgba(255,255,255,.28);
  text-align: center;
  margin-top: .85rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ── Cursor spotlight ─────────────────────────────────────── */
#cursor-spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(239,0,55,.05)   0%,
    rgba(1,174,240,.03) 38%,
    transparent          65%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: left, top;
}

/* ── 3-D tilt — give cards a perspective context ─────────── */
.path-grid { perspective: 1000px; }
.path-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s ease, box-shadow .22s ease, border-color .22s ease;
}

/* ── Typewriter cursor ────────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  color: var(--h2h-blue);
  font-weight: 300;
  margin-left: 1px;
  animation: cursorBlink .75s ease-in-out infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein   { animation: fadeInUp .55s ease both; }
.animate-fadein-1 { animation: fadeInUp .55s .1s ease both; }
.animate-fadein-2 { animation: fadeInUp .55s .2s ease both; }

/* ── Chooser / Auth view transitions ─────────────────────── */
#chooserView {
  transition: opacity .24s ease, transform .24s ease;
}
#chooserView.chooser-exit {
  opacity: 0;
  transform: scale(.96) translateY(-6px);
  pointer-events: none;
}
#chooserView.chooser-enter {
  animation: chooserIn .28s cubic-bezier(.22,1,.36,1) both;
}
@keyframes chooserIn {
  from { opacity: 0; transform: scale(.96) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-view {
  transition: opacity .24s ease;
}
.auth-view.auth-enter {
  animation: authIn .3s cubic-bezier(.22,1,.36,1) both;
}
.auth-view.auth-exit {
  animation: authOut .24s ease both;
  pointer-events: none;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes authOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ── Segmented control ────────────────────────────────────── */
.seg-ctrl {
  position: relative;
  display: flex;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0.5rem;
  padding: 4px;
  margin-bottom: 1.25rem;
}
.seg-indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 0.35rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.seg-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border: none; border-radius: 0.3rem;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer;
  position: relative; z-index: 1;
  transition: background .18s ease, color .18s ease;
}
.seg-btn.active { color: #fff; }
#segLogin:hover    { background: rgba(239,0,55,.22);  color: #fff; box-shadow: 0 4px 16px rgba(239,0,55,.12); }
#segRegister:hover { background: rgba(1,174,240,.35); color: #fff; box-shadow: 0 4px 16px rgba(1,174,240,.2); }

/* Indicator + active button color by selected tab */
#authSegCtrl[data-active="login"] .seg-indicator {
  background: rgba(239,0,55,.25);
  border-color: rgba(239,0,55,.5);
  box-shadow: 0 2px 12px rgba(239,0,55,.3);
}
#authSegCtrl[data-active="login"] #segLogin { color: #fff; }

#authSegCtrl[data-active="register"] .seg-indicator {
  background: rgba(1,174,240,.25);
  border-color: rgba(1,174,240,.5);
  box-shadow: 0 2px 12px rgba(1,174,240,.3);
}
#authSegCtrl[data-active="register"] #segRegister { color: #fff; }
.seg-btn:focus-visible {
  outline: 2px solid var(--h2h-blue);
  outline-offset: 2px;
}

/* ── Back-to-chooser link ─────────────────────────────────── */
.auth-back-link {
  color: rgba(255,255,255,.45) !important;
  font-size: .78rem;
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: .3rem;
  margin-bottom: .75rem;
  cursor: pointer;
  background: none; border: none;
  transition: color .15s ease;
  padding: 0;
}
.auth-back-link:hover { color: rgba(255,255,255,.85) !important; }

/* ── Responsive: Tablet (≤768px) ─────────────────────────── */
@media (max-width: 768px) {
  .hero-title { letter-spacing: -.015em; }
  .path-card { padding: 1.2rem 1rem; }
  .mission-card { margin-bottom: 1.25rem !important; }
  .stat-card-num { font-size: 1.55rem; }
}

/* ── Responsive: Mobile (≤575px) ─────────────────────────── */
@media (max-width: 575px) {
  .container.py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .h2h-hero { padding: 1rem .25rem 0; }
  .hero-eyebrow { font-size: .65rem; }
  .hero-sub { font-size: 1rem; color: rgba(255,255,255,.85); }
  .stat-cards { gap: .5rem; }
  .stat-card { padding: .9rem .6rem .85rem; border-radius: 14px; }
  .stat-card-icon { font-size: 1.1rem; margin-bottom: .35rem; }
  .stat-card-num { font-size: 1.25rem; }
  .stat-card-label { font-size: .7rem; letter-spacing: .09em; color: rgba(255,255,255,.8); }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 100px; padding: 1.1rem 1rem; }
  .path-cta  { gap: .55rem; }
  .glass.p-4, .glass.p-md-5 { padding: 1.25rem !important; }
  .mission-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .stepper-bubbles { flex-wrap: wrap; gap: .4rem; }
  .otp-box { width: 42px !important; height: 42px !important; font-size: 1.1rem !important; padding: .3rem !important; }
  .btn-primary, .btn-success { width: 100%; }
  .d-flex.gap-2.justify-content-between { flex-direction: column-reverse; gap: .5rem !important; }
  .d-flex.gap-2.justify-content-between .btn-outline-light { width: 100%; }
  #backToChooser { font-size: .8rem; }

  #otpArea .d-flex.flex-wrap.gap-2.align-items-center.mt-3,
  #forgotOtpArea .d-flex.flex-wrap.gap-2.align-items-center.mt-3 { flex-wrap: wrap !important; }
  #resendOtpBtn, #forgotResendBtn { width: 100%; }
}

/* ── Responsive: Small phones (≤360px) ───────────────────── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.75rem; }
  .otp-box { width: 36px !important; height: 36px !important; font-size: 1rem !important; }
}

/* ── Event panel (shared by events.php and index.php) ────── */
.btn-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex-shrink: 0;
  flex: 0 0 36px;
  border-radius: 12px;
  padding: 0;
}
.btn-icon-sm i {
  font-size: 1.1rem;
  line-height: 1;
  display: block;
}

.divider { border-top: 1px solid rgba(255,255,255,.16); opacity: 1; }

.event-item {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: .85rem;
  transition: .15s ease;
  outline: none;
}

/* Non-clickable variant used on index.php guest panel */
.event-item-card {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: .85rem;
}
.event-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.event-item-link:hover .event-item,
.event-item-link:focus-visible .event-item {
  transform: translateY(-1px);
  border-color: rgba(13,110,253,.45);
  background: rgba(255,255,255,.08);
}
.event-item-link:focus-visible .event-item {
  box-shadow: 0 0 0 3px rgba(13,110,253,.28);
}

.event-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.event-date {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .95rem;
  line-height: 1.2;
  color: rgba(233,238,247,.92);
}

.event-hero-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.event-hero-thumb-lg {
  width: 100px; height: 100px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  background-size: cover;
  background-position: center;
  flex: 0 0 100px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

.event-title-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(233,238,247,.97);
  line-height: 1.3;
}

.index-events-note {
  font-size: .8rem;
  color: rgba(233,238,247,.50);
  margin-top: .75rem;
  text-align: center;
}

.event-shifts {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.event-shift-block {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-left: 3px solid rgba(226,187,128,.75);
  border-radius: 10px;
  padding: .5rem .7rem;
  transition: background .15s ease, border-color .15s ease;
}
.event-shift-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--h2h-gold);
  letter-spacing: .01em;
}
.event-shift-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .80rem;
  color: rgba(233,238,247,.80);
}
.event-shift-item i {
  font-size: .78rem;
  color: rgba(226,187,128,.70);
  flex-shrink: 0;
}

/* ── Shift fill bar ─────────────────────────────────────────── */
.shift-fill-wrap {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,.10);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .5rem;
}
.shift-fill-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4ade80, #22c55e); /* green */
  transition: width .4s ease;
}
.shift-fill-bar.warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b); /* amber */
}
.shift-fill-bar.full {
  background: linear-gradient(90deg, #f87171, #ef4444); /* red */
}
.shift-fill-label {
  font-size: .72rem;
  color: rgba(233,238,247,.55);
  margin-top: .25rem;
}
.shift-fill-label.full {
  color: rgba(248,113,113,.85);
  font-weight: 600;
}
