/* ============================================================
   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(ellipse 60% 50% at 0% 0%,     rgba(239,0,55,.07),  transparent),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(1,174,240,.07), transparent),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
  min-height: 100vh;
}


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

/* ── Glass card ───────────────────────────────────────────── */
.glass {
  position: relative;
  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;
}
.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); }
/* Floating-label fields: hide the native placeholder while resting (the label
   sits there instead, so a visible placeholder would overlap it). Reveal it on
   focus, once the label has floated up — keeps format hints like "(XXX)...". */
.form-floating > .form-control::placeholder { color: transparent; }
.form-floating > .form-control:focus::placeholder { color: rgba(233,238,247,.45); }

/* ── Floating label inputs: compact + notched border label ── */
/* .75rem padding fits cleanly in 40px field with .82rem text */
.form-floating > .form-control,
.form-floating > .form-select {
  height: 40px;
  min-height: 40px;
  padding: .75rem .75rem;
  font-size: .82rem;
  line-height: 1;
}
/* Override Bootstrap's active-state padding — label floats outside the
   field so typed text never needs to make room for the label inside */
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-select {
  padding-top: .75rem !important;
  padding-bottom: .75rem !important;
}
.form-floating > textarea.form-control,
.form-floating > textarea.form-control:focus,
.form-floating > textarea.form-control:not(:placeholder-shown) {
  height: auto;
  min-height: 80px;
  padding: 1rem .75rem !important;
  font-size: .82rem;
  line-height: 1.5;
}
.form-floating > label {
  color: rgba(233,238,247,.55);
  font-weight: 500;
  font-size: .82rem;
  line-height: 1;
  padding: .75rem .75rem;
  top: 0;
  transition: opacity .15s ease-in-out, transform .15s ease-in-out;
}
/* ::after must stay transparent */
.form-floating > label::after {
  background: transparent !important;
}
/* Active/filled: label cuts into top border.
   height:auto + padding:0 → label is exactly text-height tall.
   translateY(-0.45em): with scale(0.78), centers text on the 1px border line.
   color-mix matches the glass card: rgba(255,255,255,.14) over var(--bg-0). */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  height: auto;
  line-height: 1;
  color: rgba(233,238,247,.55);
  font-weight: 600;
  width: max-content;
  transform: scale(0.78) translateY(-0.45em) translateX(0.1rem);
  opacity: 1;
  z-index: 5;
  padding: 0 5px;
  border-radius: 0;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent;
}
/* Focused: label matches blue border */
.form-floating:focus-within > label {
  color: var(--h2h-blue) !important;
}
/* Segmented top border — JS sets --ff-gap-s and --ff-gap-e, adds .ff-active */
.form-floating::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 4;
  pointer-events: none;
  background: transparent;
}
.form-floating.ff-active::before {
  background: linear-gradient(
    to right,
    rgba(255,255,255,.18) var(--ff-gap-s, 0%),
    transparent        var(--ff-gap-s, 0%),
    transparent        var(--ff-gap-e, 100%),
    rgba(255,255,255,.18) var(--ff-gap-e, 100%)
  );
}
.form-floating:focus-within.ff-active::before {
  background: linear-gradient(
    to right,
    var(--h2h-blue) var(--ff-gap-s, 0%),
    transparent     var(--ff-gap-s, 0%),
    transparent     var(--ff-gap-e, 100%),
    var(--h2h-blue) var(--ff-gap-e, 100%)
  );
}

/* 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,
.btn-gold,
.btn-outline-warning {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(226,187,128,.15);
  border: 1px solid rgba(226,187,128,.35);
  color: var(--h2h-gold) !important;
  border-radius: 0.375rem;
  text-decoration: none;
  padding: .25rem .6rem;
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.faq-collapse-btn:hover,
.btn-gold:hover,
.btn-outline-warning:hover {
  background: rgba(226,187,128,.28) !important;
  border-color: rgba(226,187,128,.55) !important;
  color: var(--h2h-gold) !important;
  box-shadow: 0 3px 12px rgba(226,187,128,.20);
  transform: translateY(-1px);
}
.faq-collapse-btn:active,
.btn-gold:active,
.btn-outline-warning:active {
  transform: translateY(0);
  box-shadow: none;
}
.faq-collapse-btn:disabled,
.faq-collapse-btn[disabled] {
  opacity: .40;
  cursor: not-allowed;
  pointer-events: none;
}

/* Brand white button — neutral secondary action */
.btn-white {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(233,238,247,.80) !important;
  border-radius: 0.375rem;
  text-decoration: none;
  padding: .25rem .6rem;
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-white:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.50);
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.btn-white:active {
  transform: translateY(0);
}

/* Brand red button — mirrors gold button style */
.btn-red {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(239,0,55,.12);
  border: 1px solid rgba(239,0,55,.35);
  color: #EF0037 !important;
  border-radius: 0.375rem;
  text-decoration: none;
  padding: .25rem .6rem;
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-red:hover {
  background: rgba(239,0,55,.22);
  border-color: rgba(239,0,55,.55);
  color: #EF0037 !important;
  box-shadow: 0 3px 12px rgba(239,0,55,.20);
  transform: translateY(-1px);
}
.btn-red: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; }
}


/* ── 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: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,187,128,.45), rgba(1,174,240,.32), transparent); 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;
}

/* "View all your signups" — sits between the open list and the timeline */
.events-viewall { border-top: 1px solid rgba(255,255,255,.10); }

/* Inline confirmation shown next to a clicked button (copy / calendar /
   reminder) — feedback appears right where the action happened. */
.inline-confirm {
  display: inline-flex; align-items: center;
  font-size: .76rem; font-weight: 600;
  padding: .12rem .55rem; border-radius: 999px;
  white-space: nowrap; vertical-align: middle;
  margin-left: .4rem;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.inline-confirm.show { opacity: 1; transform: translateX(0); }
.inline-confirm--success { color: rgba(110,231,183,.95); background: rgba(110,231,183,.12); border: 1px solid rgba(110,231,183,.30); }
.inline-confirm--danger  { color: rgba(248,113,113,.95); background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.32); }

/* Section labels in the events list (Open for sign-up / Coming up later) */
.events-group-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(233,238,247,.55);
  margin-bottom: .5rem;
}

/* "Coming up later" — compact save-the-date timeline (fits the narrow column). */
.event-opens { font-size: .8rem; color: var(--h2h-gold, #E2BB80); font-weight: 600; }
.event-timeline-note { font-size: .8rem; color: rgba(233,238,247,.55); margin: -.2rem 0 .85rem; }
.event-timeline {
  position: relative;
  display: flex; flex-direction: column; gap: .7rem;
}
.event-timeline::before {
  content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--h2h-gold, #E2BB80), rgba(226,187,128,.15));
}
.evt-tl-item { position: relative; display: flex; gap: .7rem; align-items: flex-start; }
.evt-tl-marker {
  flex: 0 0 auto; width: 44px; height: 44px; z-index: 1;
  border-radius: 11px;
  background: rgba(226,187,128,.12);
  border: 1px solid rgba(226,187,128,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.evt-tl-item:hover .evt-tl-marker {
  background: rgba(226,187,128,.2);
  box-shadow: 0 0 16px rgba(226,187,128,.3);
}
.evt-tl-mon { font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--h2h-gold, #E2BB80); font-weight: 700; }
.evt-tl-day { font-size: 1.15rem; font-weight: 800; color: #fff; margin-top: .05rem; }
.evt-tl-body {
  flex: 1 1 auto; min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: .65rem .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.evt-tl-item:hover .evt-tl-body {
  border-color: rgba(226,187,128,.40);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.evt-tl-title { font-weight: 700; color: #fff; font-size: .92rem; }
.evt-tl-date { font-size: .78rem; color: var(--h2h-gold, #E2BB80); margin-top: .1rem; }
.evt-tl-loc { font-size: .76rem; color: rgba(233,238,247,.6); margin-top: .2rem; }
.evt-tl-loc i { color: var(--h2h-gold, #E2BB80); }
/* Reminder button: full-width inside the column, wraps instead of overflowing. */
.evt-tl-reminder {
  margin-top: .6rem;
  width: 100%;
  justify-content: center;
  white-space: normal;
  box-sizing: border-box;
  font-size: .76rem;
  padding: .3rem .5rem;
}
@media (max-width: 520px) {
  .event-timeline::before { left: 21px; }
}

/* 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: var(--h2h-blue);
  background: rgba(255,255,255,.08);
}
.event-item-link:focus-visible .event-item {
  box-shadow: 0 0 0 3px var(--h2h-blue-glow);
}

.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;
}

/* ── Read-only form controls ──────────────────────────────── */
/* Keep readonly inputs looking normal — no grey disabled look */
.form-control[readonly] {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: var(--text) !important;
  opacity: 1 !important;
}
.form-control[readonly]:focus {
  box-shadow: none !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* ── Icon button (full-size variant) ──────────────────────── */
.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0;
}

/* ── Guest Book ───────────────────────────────────────────── */
.guest-row-alert {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(233,238,247,.95);
}

/* ================================================================
   Events Page (events.php)
   ================================================================ */

/* Mobile tap highlight + safe-area height */
body {
  -webkit-tap-highlight-color: transparent;
  min-height: 100svh;
}
button, a, input, label, .event-item { touch-action: manipulation; }

/* Validation feedback colour */
.invalid-feedback { color: rgba(220,53,69,.95); }

/* ── Event list items (interactive states) ────────────────── */
.event-item { cursor: pointer; }
.event-item:hover {
  transform: translateY(-1px);
  border-color: var(--h2h-blue);
  background: rgba(255,255,255,.08);
}
.event-item:focus-visible {
  box-shadow: 0 0 0 3px var(--h2h-blue-glow);
}
.event-item.active {
  border-color: var(--h2h-blue);
  background: rgba(1,174,240,.10);
  box-shadow: inset 0 0 0 1px rgba(1,174,240,.20);
}

/* ── Shift cards ──────────────────────────────────────────── */
.shift-card {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 1rem;
}
.shift-card.shift-full {
  border-color: rgba(220,53,69,.70);
  box-shadow: inset 0 0 0 1px rgba(220,53,69,.18);
}

/* ── Misc panel atoms ─────────────────────────────────────── */
.badge-soft {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.92);
}
.section-box {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: .85rem;
}
.queue-box {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: .85rem;
}

/* ── Hero thumbnail (events list) ─────────────────────────── */
.hero-thumb {
  width: 110px; height: 110px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

/* ── Signed-up chip list ──────────────────────────────────── */
.signed-line {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .5rem;
  line-height: 1.25;
}
.signed-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.92);
  font-size: .85rem;
  max-width: 100%;
}
.signed-chip.me {
  border-color: rgba(25,135,84,.58);
  background: rgba(25,135,84,.22);
  color: rgba(255,255,255,.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.signed-chip .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ── Address link ─────────────────────────────────────────── */
.addr-link {
  color: rgba(233,238,247,.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.30);
}
.addr-link:hover {
  color: rgba(233,238,247,1);
  border-bottom-color: rgba(255,255,255,.55);
}

/* ── Queue flash animation ────────────────────────────────── */
@keyframes queueFlash {
  0%   { background: rgba(13,110,253,.00); box-shadow: inset 0 0 0 1px rgba(13,110,253,.00); }
  20%  { background: rgba(13,110,253,.14); box-shadow: inset 0 0 0 1px rgba(13,110,253,.22); }
  100% { background: rgba(13,110,253,.00); box-shadow: inset 0 0 0 1px rgba(13,110,253,.00); }
}
.queue-item { border-radius: 10px; padding: .2rem .25rem; }
.queue-item.flash {
  outline: 3px solid rgba(255,193,7,.95);
  box-shadow: 0 0 0 6px rgba(255,193,7,.25);
}

/* ── Signup done checkmark ────────────────────────────────── */
@keyframes donePop {
  0%   { transform: scale(.75); opacity: 0; }
  18%  { transform: scale(1.10); opacity: 1; }
  80%  { transform: scale(1.00); opacity: 1; }
  100% { transform: scale(1.00); opacity: 0; }
}
.shift-done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: .5rem;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(25,135,84,.26);
  border: 1px solid rgba(25,135,84,.40);
  color: rgba(233,238,247,.98);
  animation: donePop 3000ms ease-out 1;
  vertical-align: middle;
}

/* ── Toggle / collapse link ───────────────────────────────── */
.toggle-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,247,.92);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
}
.toggle-link:hover { background: rgba(255,255,255,.09); color: rgba(233,238,247,1); }
.toggle-link[aria-expanded="true"] i { transform: rotate(180deg); }

/* "Add guests to this shift" prominent variant */
.toggle-link.toggle-guests-btn {
  padding: .5rem .85rem;
  border-radius: 14px;
  font-weight: 750;
  letter-spacing: .15px;
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(1,174,240,.22), rgba(32,201,151,.14));
  box-shadow: 0 10px 26px rgba(1,174,240,.10), inset 0 1px 0 rgba(255,255,255,.12);
}
.toggle-link.toggle-guests-btn:hover {
  background: linear-gradient(135deg, rgba(1,174,240,.30), rgba(32,201,151,.18));
  border-color: rgba(255,255,255,.30);
  transform: translateY(-1px);
}
.toggle-link.toggle-guests-btn:active { transform: translateY(0); }
.toggle-link.toggle-guests-btn i { font-size: 1.05rem; }

/* ── Guest book scrollable list ───────────────────────────── */
.guestbook-list {
  max-height: 260px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: .25rem;
}

/* ── Waiver ───────────────────────────────────────────────── */
.waiver-box {
  border: 1px solid rgba(255,193,7,.28);
  background: rgba(255,193,7,.08);
  border-radius: 14px;
  padding: .85rem;
}
.waiver-text {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: .75rem;
  max-height: 210px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
}

/* ── Not signed up banner ─────────────────────────────────── */
.not-signed-banner {
  border: 1px solid rgba(255,193,7,.62);
  background: rgba(255,193,7,.24);
  border-radius: 12px;
  padding: .55rem .7rem;
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

/* ── Me attention pulse ───────────────────────────────────── */
@keyframes mePulse {
  0%   { box-shadow: 0 0 0 0   rgba(255,193,7,.0); }
  35%  { box-shadow: 0 0 0 6px rgba(255,193,7,.18); }
  100% { box-shadow: 0 0 0 0   rgba(255,193,7,.0); }
}
.me-attn { border-radius: 10px; animation: mePulse 900ms ease-out 1; }

/* ── Signed badge (inline label pill) ─────────────────────── */
.signed-badge {
  margin-left: .5rem;
  border-radius: 999px;
  padding: .15rem .45rem;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.92);
}

/* ── Queue status panel ───────────────────────────────────── */
.queue-status {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: .75rem;
}
.queue-status.success {
  border-color: rgba(25,135,84,.62);
  background: rgba(25,135,84,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.queue-status.danger  { border-color: rgba(220,53,69,.28);  background: rgba(220,53,69,.10); }
.queue-status.warning {
  border-color: rgba(255,193,7,.62);
  background: rgba(255,193,7,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  color: rgba(255,255,255,.96);
}
.queue-status.info    { border-color: rgba(13,110,253,.28);  background: rgba(13,110,253,.10); }
.queue-box .btn.btn-sm { padding: .35rem .55rem; }

/* ── Manage cancellations button ──────────────────────────── */
.manage-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(1,174,240,.15);
  border: 1px solid rgba(1,174,240,.35);
  color: #01AEF0 !important;
  border-radius: 0.375rem;
  text-decoration: none !important;
  padding: .25rem .6rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.manage-btn:hover {
  background: rgba(1,174,240,.28);
  border-color: rgba(1,174,240,.55);
  color: #01AEF0 !important;
  box-shadow: 0 3px 12px rgba(1,174,240,.20);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.manage-btn:active  { transform: translateY(0); box-shadow: none; }
.manage-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(1,174,240,.25);
}

/* ── Manual duplicate warning box ────────────────────────── */
.manual-dup-box {
  border: 1px solid rgba(255,193,7,.28);
  background: rgba(255,193,7,.10);
  border-radius: 12px;
  padding: .6rem .65rem;
}

/* ── Event description ────────────────────────────────────── */
#eventDesc { white-space: pre-wrap; }

/* ── Manual guest floating labels ─────────────────────────── */
/* Remove Bootstrap's white label patch for dark backgrounds */
.manual-floating > label,
.manual-floating > .form-control:focus ~ label,
.manual-floating > .form-control:not(:placeholder-shown) ~ label {
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  opacity: 1 !important;
}
.manual-floating > label::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.manual-floating > .form-control::placeholder { color: transparent !important; }

/* ── Mobile sticky queue bar ──────────────────────────────── */
.queue-sticky { display: none; }
@media (max-width: 575px) {
  .hero-thumb { width: 88px; height: 88px; }
  .queue-sticky {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1080;
    display: none;
  }
  .queue-sticky .queue-sticky-inner {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(7,11,20,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 50px rgba(0,0,0,.45);
    padding: .75rem;
  }
  .queue-sticky.show { display: block; }
  .queue-sticky .btn { border-radius: 12px; }
  body.has-sticky-queue {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Disable sticky positioning on tablet ─────────────────── */
@media (max-width: 991px) {
  .sticky-lg-top { position: static !important; }
}

/* ── Respect reduced motion preference ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================================================================
   Sign-up Offcanvas Drawer (events.php)
   ================================================================ */

.signup-drawer {
  width: 460px;
  background: var(--bg-0);
  border-left: 1px solid rgba(255,255,255,.16);
}
.signup-drawer .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 1rem 1.25rem;
  align-items: flex-start;
}
.signup-drawer .offcanvas-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}
.signup-drawer .btn-close-white {
  filter: invert(1) grayscale(1);
  opacity: .65;
  margin-top: .2rem;
}
.signup-drawer .btn-close-white:hover { opacity: 1; }
.signup-drawer .offcanvas-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 0;
  -webkit-overflow-scrolling: touch;
}

/* Sticky queue + submit pinned to drawer bottom */
.drawer-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-0);
  border-top: 1px solid rgba(255,255,255,.10);
  padding: .85rem 0 1.25rem;
  margin-top: auto;
}

/* Compact shift cards (no inline signup section) */
.shift-card .js-open-drawer {
  font-weight: 700;
  letter-spacing: .01em;
}

/* Mobile: rise as a bottom sheet */
@media (max-width: 575px) {
  .signup-drawer.offcanvas-end {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 88vh !important;
    max-height: 88vh !important;
    transform: translateY(100%) !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 20px 20px 0 0 !important;
  }
  .signup-drawer.offcanvas-end.show,
  .signup-drawer.offcanvas-end.showing {
    transform: translateY(0) !important;
  }
  .signup-drawer.offcanvas-end.hiding {
    transform: translateY(100%) !important;
  }
  .signup-drawer .offcanvas-header {
    padding-top: .65rem;
  }
  /* Drag handle visual hint on mobile */
  .signup-drawer .offcanvas-header::before {
    content: '';
    display: block;
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.25);
  }
}

/* ================================================================
   Events page — polish pass
   ================================================================ */

/* ── Skeleton loader ──────────────────────────────────────── */
.skel-line {
  background: linear-gradient(90deg,
    rgba(226,187,128,.06) 0%,
    rgba(226,187,128,.16) 35%,
    rgba(1,174,240,.12) 65%,
    rgba(226,187,128,.06) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skelShimmer 1.8s ease-in-out infinite;
}
@keyframes skelShimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel-line { animation: none !important; }
}

/* ── Shift card: signed-up accent ─────────────────────────── */
.shift-card.you-signed {
  border-left-width: 3px;
  border-left-color: rgba(25,135,84,.65);
  border-radius: 0 16px 16px 0;
  background: rgba(25,135,84,.05);
}

/* ── Shift card: signup pills ─────────────────────────────── */
.su-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .5rem;
}
.su-pill {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .18rem .65rem;
  border-radius: 99px;
  white-space: nowrap;
}
.su-pill--self {
  background: rgba(110,231,183,.15);
  border: 1px solid rgba(110,231,183,.40);
  color: rgba(110,231,183,.95);
}
.su-pill--guest {
  background: rgba(1,174,240,.12);
  border: 1px solid rgba(1,174,240,.35);
  color: rgba(1,174,240,.95);
}

/* History page — welcome badge for a brand-new volunteer (no hours yet). */
.hist-empty-badge {
  width: 64px; height: 64px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(239,0,55,.12);
  border: 1px solid rgba(239,0,55,.30);
  color: var(--h2h-red, #EF0037);
  font-size: 1.6rem;
}

/* Prominent CTA — the shift "Sign up" button and the "Browse more events" /
   "View all your signups" buttons all share this so they match: taller,
   wider, bolder than a standard pill. */
.cta-prominent {
  padding: .45rem 1.05rem !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  width: auto !important;
  line-height: 1.25;
}

/* Event description "Read more / Read less" toggle (sign-up panel) */
.evt-desc-toggle {
  background: none; border: 0; padding: 0;
  margin-top: .4rem;
  color: var(--h2h-gold, #E2BB80);
  font-weight: 600; font-size: .82rem;
  cursor: pointer;
}
.evt-desc-toggle:hover { text-decoration: underline; }

/* Per-shift signup status messages (events.php shift cards) */
.su-status {
  display: inline-flex; align-items: center;
  font-size: .78rem;
  margin-top: .5rem;
  padding: .25rem .6rem;
  border-radius: 8px;
  font-weight: 600;
}
/* "Not signed up" — a calm blue prompt: noticeable, but not alarming. */
.su-status--none {
  color: rgba(233,238,247,.9);
  background: rgba(1,174,240,.10);
  border: 1px solid rgba(1,174,240,.30);
}
.su-status--none i { color: var(--h2h-blue, #01AEF0); }
/* "Only your guest(s)" — warmer gold nudge to add yourself. */
.su-status--warn {
  color: var(--h2h-gold, #E2BB80);
  background: rgba(226,187,128,.10);
  border: 1px solid rgba(226,187,128,.30);
}

/* ── Shift card: "You're in" chip ─────────────────────────── */
.you-in-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 99px;
  border: 1px solid rgba(25,135,84,.45);
  background: rgba(25,135,84,.18);
  color: rgba(110,231,183,.95);
}

/* ── Mobile: events panel hide/show ──────────────────────── */
@media (max-width: 991px) {
  .events-panel-hidden { display: none !important; }
}

/* ================================================================
   My Signups page (my_signups.php)
   ================================================================ */

/* Add overflow:hidden to the shared event-card so shift blocks
   don't bleed outside the rounded corners on this page */
.event-card { overflow: hidden; }

/* ── Shift block (within an event card) ───────────────────── */
.shift-block {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  margin-top: 1rem;
  scroll-margin-top: 16px;
}

/* ── Signup group container ───────────────────────────────── */
.signup-group {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: .75rem;
}
@media (min-width: 768px) {
  .signup-group {
    border-left: 2px solid rgba(255,255,255,.10);
    border-top: 0; border-right: 0; border-bottom: 0;
    border-radius: 0;
    background: transparent;
    padding: .25rem 0 .25rem .85rem;
  }
}

/* ── Individual signup row ────────────────────────────────── */
.signup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  margin-bottom: 6px;
  transition: background .2s ease, border-color .2s ease;
  /* border-left colour set inline per row */
}
.signup-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.signup-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Inline note (error / confirmation below a row) ──────── */
.inline-note {
  margin-top: .35rem;
  font-size: .9rem;
  padding: .5rem .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

/* ── Plan / tools panel ───────────────────────────────────── */
.plan-btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  white-space: nowrap;
}
.plan-drawer {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: .85rem;
}
.mini-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .65rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.95);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.mini-action:hover { background: rgba(255,255,255,.10); color: rgba(233,238,247,1); }
.plan-copy-msg { display: none; }
.plan-copy-msg.show { display: block; }

/* ── Canceled row state ───────────────────────────────────── */
.signup-row.is-canceled {
  background: rgba(255,193,7,.12);
  border-color: rgba(255,193,7,.35);
}
.signup-row.is-canceled .signup-name i { color: rgba(255,193,7,.95); }

/* ── Restored (Undo) row state ───────────────────────────── */
.signup-row.is-restored {
  background: rgba(25,135,84,.14);
  border-color: rgba(25,135,84,.38);
}
.signup-row.is-restored .signup-name i { color: rgba(25,135,84,.95); }

.cancel-msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Cancel confirmation pulse ────────────────────────────── */
@keyframes cancelConfirm {
  0%   { transform: translateX(0);  box-shadow: 0 0 0 0   rgba(255,193,7,.0); }
  30%  { transform: translateX(4px); box-shadow: 0 0 0 6px rgba(255,193,7,.16); }
  100% { transform: translateX(0);  box-shadow: 0 0 0 0   rgba(255,193,7,.0); }
}
.signup-row.cancel-pop { animation: cancelConfirm 700ms ease-out 1; }

/* ── "Cancel now" prominent button ───────────────────────── */
.js-cancel-now {
  background: transparent !important;
  border-color: var(--bs-danger) !important;
  border-width: 2px !important;
  color: var(--bs-danger) !important;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
  box-shadow: 0 0 0 .12rem rgba(var(--bs-danger-rgb),.25), 0 8px 18px rgba(0,0,0,.12);
}
.js-cancel-now:hover {
  background: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
  color: rgba(255,255,255,.98) !important;
  filter: brightness(1.02);
}
.js-cancel-now:active {
  background: rgba(var(--bs-danger-rgb),.86) !important;
  border-color: rgba(var(--bs-danger-rgb),.86) !important;
  color: rgba(255,255,255,.98) !important;
}
.js-cancel-now:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb),.22), 0 8px 18px rgba(var(--bs-danger-rgb),.10);
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 575px) {
  .signup-row { flex-direction: column; align-items: stretch; }
}

/* ================================================================
   My Signups — polish pass
   ================================================================ */

/* ── Summary stats bar ────────────────────────────────────── */
.signups-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
  width: 100%;
}
.signups-stat {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: .75rem;
  text-align: center;
}
.signups-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--h2h-gold);
  line-height: 1;
  margin-bottom: .3rem;
  text-shadow: 0 0 18px rgba(226,187,128,.40);
}
.signups-stat-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(233,238,247,.55);
}

/* ── Time-bucket section headers ──────────────────────────── */
.bucket-header {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(233,238,247,.50);
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: .75rem;
  margin-top: 1.5rem;
}
.bucket-header:first-child { margin-top: 0; }

/* ── Urgency time pills ───────────────────────────────────── */
.time-pill {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .12rem .48rem;
  border-radius: 99px;
  white-space: nowrap;
  vertical-align: middle;
}
.time-pill-now {
  border: 1px solid rgba(239,0,55,.60);
  background: rgba(239,0,55,.18);
  color: rgba(255,80,100,.98);
  animation: pill-pulse 2s ease-in-out infinite;
}
@keyframes pill-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .70; }
}
.time-pill-today {
  border: 1px solid rgba(220,53,69,.55);
  background: rgba(220,53,69,.18);
  color: rgba(248,113,113,.98);
}
.time-pill-tomorrow {
  border: 1px solid rgba(255,193,7,.55);
  background: rgba(255,193,7,.15);
  color: rgba(255,221,87,.98);
}
.time-pill-soon {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.72);
}

/* ── Me / guest row tints ─────────────────────────────────── */
.signup-row-me   { /* "Me" entry — left border colour set inline */ }
/* Make guest-view fill full width inside signup-row so buttons align right */
.signup-row .guest-view,
.signup-row .guest-edit-mode { flex: 1; width: 100%; }
.signup-row-guest { /* Guest entry — left border colour set inline */ }
.signup-row-guest .signup-name i { color: rgba(13,110,253,.80); }

/* ── Rich empty state ─────────────────────────────────────── */
.signups-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.signups-empty-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(233,238,247,.22);
  margin-bottom: 1rem;
}
.signups-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.signups-empty-sub {
  font-size: .9rem;
  color: rgba(233,238,247,.55);
  margin-bottom: 1.25rem;
}

/* ================================================================
   Dashboard — polish pass
   ================================================================ */

/* ── Hours display ────────────────────────────────────────── */
.dash-hours-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--h2h-gold);
  line-height: 1;
  text-shadow: 0 0 22px rgba(226,187,128,.45);
}

/* ── Milestone progress bar ───────────────────────────────── */
.dash-milestone-bar {
  height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .4rem;
}
.dash-milestone-fill {
  height: 100%;
  border-radius: 99px;
  background: rgba(1,174,240,.85);
  transition: width .8s ease;
}

/* ── Stats row ────────────────────────────────────────────── */
.dash-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.dash-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: .65rem .75rem;
  text-align: center;
}
.dash-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .2rem;
}
.dash-stat-lbl {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(233,238,247,.52);
}

/* ── Quick action buttons ─────────────────────────────────── */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
@media (min-width: 768px) {
  .dash-actions { grid-template-columns: repeat(5, 1fr); }
}
.dash-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .4rem;
  padding: .75rem .5rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,247,.90);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.dash-action-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
}
.dash-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.dash-action-events  { background: rgba(1,174,240,.15);   color: #01AEF0; }
.dash-action-signups { background: rgba(226,187,128,.15); color: #E2BB80; }
.dash-action-history { background: rgba(1,174,240,.15);   color: #01AEF0; }
.dash-action-profile { background: rgba(226,187,128,.15); color: #E2BB80; }
.dash-action-security{ background: rgba(239,0,55,.12);    color: #EF0037; }

/* ── Next shift card ──────────────────────────────────────── */
.dash-next-shift {
  background: rgba(25,135,84,.12);
  border: 1px solid rgba(255,255,255,.11);
  border-left: 3px solid rgba(25,135,84,.75);
  border-radius: 10px;
  padding: .75rem;
}
.dash-next-shift-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(110,231,183,.90);
  margin-bottom: .3rem;
}
.dash-next-shift-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .15rem;
}
.dash-next-shift-meta { font-size: .8rem; color: rgba(233,238,247,.65); }

/* ── Milestone progress bar + info panel ─────────────────── */
.dash-milestone-label {
  font-size: .65rem;
  color: rgba(233,238,247,.42);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .15rem;
}
.dash-milestone-target {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--h2h-gold);
  line-height: 1.1;
  margin-bottom: .1rem;
}
.dash-milestone-remaining {
  font-size: .75rem;
  color: rgba(233,238,247,.50);
  margin-bottom: 0;
}
.dash-milestone-remaining--reached {
  color: rgba(110,231,183,.90);
  font-weight: 600;
}
.milestone-progress {
  width: 100%;
  max-width: 260px;
}
.milestone-track {
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
}
.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #0D9488, #E2BB80);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(13,148,136,.45);
  transition: width .8s cubic-bezier(.22,1,.36,1);
  min-width: 4px;
}
.milestone-ends {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .65rem;
}
.milestone-current { color: rgba(233,238,247,.35); }
.milestone-target  { color: rgba(233,238,247,.35); }
.milestone-reached { color: rgba(110,231,183,.90); font-weight: 600; }

/* ── Clickable event cards ────────────────────────────────── */
.dash-event-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: transform .15s ease;
}
.dash-event-link:hover { transform: translateY(-1px); text-decoration: none; }
.dash-event-link:hover .event-item-card {
  border-color: var(--h2h-blue);
  background: rgba(255,255,255,.09);
}

/* ── Guest Book empty state ───────────────────────────────── */
.dash-guests-empty {
  text-align: center;
  padding: 1.5rem 1rem;
}
.dash-guests-empty i {
  font-size: 2rem;
  color: rgba(233,238,247,.22);
  display: block;
  margin-bottom: .5rem;
}
.dash-guests-empty .empty-title {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(233,238,247,.65);
  margin-bottom: .25rem;
}
.dash-guests-empty .empty-sub {
  font-size: .82rem;
  color: rgba(233,238,247,.42);
}

/* ================================================================
   Profile page (profile.php)
   ================================================================ */

.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(226,187,128,.68);
  margin-bottom: .75rem;
}


/* ── Avatar upload widget ─────────────────────────────────── */
.avatar-wrap {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
}
.avatar-wrap:hover,
.avatar-wrap:focus-visible {
  border-color: var(--h2h-blue);
  box-shadow: 0 0 0 4px var(--h2h-blue-glow);
}
.avatar-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.avatar-placeholder-icon {
  font-size: 3.4rem;
  color: rgba(233,238,247,.20);
  line-height: 1;
}
.avatar-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .2rem;
  opacity: 0;
  transition: opacity .18s ease;
  color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.avatar-wrap:hover .avatar-overlay,
.avatar-wrap:focus-visible .avatar-overlay { opacity: 1; }
.avatar-overlay i { font-size: 1.3rem; margin-bottom: .1rem; }
.avatar-spinner {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.avatar-hint {
  font-size: .75rem;
  color: rgba(233,238,247,.40);
  margin-top: .5rem;
}

/* ================================================================
   Profile page — polish pass
   ================================================================ */

/* ── Sidebar (sticky on desktop) ──────────────────────────── */
.prof-sidebar { position: sticky; top: 1.5rem; }

/* ── Avatar: bigger + initials fallback ───────────────────── */
.avatar-wrap { width: 140px; height: 140px; }
.avatar-initials {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(233,238,247,.70);
  line-height: 1;
  user-select: none;
  letter-spacing: -.02em;
}

/* ── Remove photo button (replaces inline handlers) ──────── */
.prof-remove-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: .75rem;
  color: rgba(233,238,247,.38);
  text-decoration: none;
  transition: color .15s;
}
.prof-remove-photo-btn:hover { color: #EF0037; }

/* ── Sidebar name + hours ─────────────────────────────────── */
.prof-hours-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: .65rem;
}
.prof-hours-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--h2h-gold);
  line-height: 1;
  margin-bottom: .2rem;
}
.prof-hours-lbl {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(233,238,247,.48);
}

/* ── Completeness indicator ───────────────────────────────── */
.prof-comp-wrap { text-align: left; }
.prof-comp-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(233,238,247,.50);
}
.prof-comp-pct {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(233,238,247,.55);
}
.prof-comp-pct.complete { color: rgba(25,135,84,.90); }
.prof-comp-bar {
  height: 5px;
  background: rgba(255,255,255,.10);
  border-radius: 99px;
  overflow: hidden;
}
.prof-comp-fill {
  height: 100%;
  border-radius: 99px;
  background: rgba(25,135,84,.80);
  transition: width .6s ease;
}
.prof-comp-items { display: flex; flex-wrap: wrap; gap: .3rem; }
.prof-comp-item {
  font-size: .68rem;
  font-weight: 600;
  padding: .12rem .45rem;
  border-radius: 99px;
}
.prof-comp-done {
  background: rgba(25,135,84,.18);
  color: rgba(110,231,183,.90);
}
.prof-comp-miss {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,238,247,.38);
}

/* ── Security sidebar link ────────────────────────────────── */
.prof-sidebar-link {
  font-size: .82rem;
  color: rgba(233,238,247,.50);
  text-decoration: none;
  transition: color .15s;
}
.prof-sidebar-link:hover { color: rgba(233,238,247,.90); }

/* ── Unsaved changes indicator ────────────────────────────── */
.prof-dirty-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,193,7,.90);
  flex-shrink: 0;
}

/* ── Form-select dark theme ───────────────────────────────── */
.form-select option { background: #0b1220; color: #e9eef7; }

/* ================================================================
   Index page — polish pass
   ================================================================ */

/* ── Registration step progress bar ──────────────────────── */
.reg-step-bar {
  padding: .85rem 0 1rem;
  margin-bottom: .25rem;
}
.reg-step-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.reg-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s;
}
.reg-step.todo .reg-step-dot {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(233,238,247,.40);
}
.reg-step.active .reg-step-dot {
  background: rgba(1,174,240,.22);
  border: 2px solid var(--h2h-blue);
  color: rgba(1,174,240,.95);
}
.reg-step.done .reg-step-dot {
  background: rgba(25,135,84,.25);
  border: 1px solid rgba(25,135,84,.55);
  color: rgba(110,231,183,.95);
}
.reg-step-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.reg-step.todo .reg-step-label   { color: rgba(233,238,247,.30); }
.reg-step.active .reg-step-label { color: rgba(1,174,240,.80); }
.reg-step.done .reg-step-label   { color: rgba(110,231,183,.70); }

.reg-step-line {
  flex: 1;
  height: 1px;
  min-width: 20px;
  max-width: 60px;
  background: rgba(255,255,255,.14);
  margin: 14px 4px 0; /* vertically aligns with dot centres */
  transition: background .2s;
}
.reg-step-line.done { background: rgba(25,135,84,.45); }

/* ── Why volunteer section ────────────────────────────────── */
.why-vol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
.why-vol-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: .9rem .85rem;
}
.why-vol-icon {
  font-size: 1.35rem;
  color: rgba(1,174,240,.80);
  margin-bottom: .4rem;
  line-height: 1;
}
.why-vol-title {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.why-vol-text {
  font-size: .76rem;
  color: rgba(233,238,247,.55);
  line-height: 1.5;
}
@media (max-width: 575px) {
  .why-vol-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Security page (security.php)
   ================================================================ */

.section-card {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 1rem;
}

.device-card {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: .75rem;
}

.meta-line {
  font-size: .85rem;
  color: rgba(233,238,247,.78);
}
.meta-line code {
  padding: .08rem .35rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.92);
}

/* OTP boxes (security page uses same .otp-box class — already shared,
   but the row wrapper is specific to security) */
.otp-boxes {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
}

@media (max-width: 575px) {
  .device-actions .btn { width: 100%; }
  .device-actions { flex-direction: column; align-items: stretch; }
}

/* ================================================================
   Security page — polish pass
   ================================================================ */

/* ── Password strength label ──────────────────────────────── */
#pwStrengthLabel {
  font-size: .75rem;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
  transition: color .2s;
}
.str-weak   { color: rgba(220,53,69,.90); }
.str-fair   { color: rgba(255,193,7,.90); }
.str-strong { color: rgba(25,135,84,.90); }

/* ── Password requirements checklist ─────────────────────── */
.pw-req-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem .75rem;
}
.pw-req-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  transition: color .15s;
}
.pw-req-icon {
  flex-shrink: 0;
  font-size: .75rem;
  width: 14px;
  text-align: center;
}
.pw-req-miss { color: rgba(233,238,247,.40); }
.pw-req-done { color: rgba(25,135,84,.88); }

/* ── MFA explainer ────────────────────────────────────────── */
.mfa-explainer {
  font-size: .85rem;
  color: rgba(233,238,247,.75);
  background: rgba(1,174,240,.08);
  border: 1px solid rgba(1,174,240,.22);
  border-radius: 12px;
  padding: .65rem .85rem;
  line-height: 1.55;
}
.mfa-explainer i { color: rgba(1,174,240,.80); }

/* ── Security summary rows ────────────────────────────────── */
.sec-summary {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sec-summary-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .65rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
}
.sec-summary-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.sec-summary-icon.ok        { background: rgba(25,135,84,.22);   color: rgba(110,231,183,.90); }
.sec-summary-icon.info      { background: rgba(1,174,240,.18);   color: rgba(1,174,240,.90);  }
.sec-summary-icon.info-gold { background: rgba(226,187,128,.15); color: #E2BB80;              }
.sec-summary-icon.info-blue { background: rgba(1,174,240,.15);   color: #01AEF0;              }
.sec-summary-label  { font-size: .82rem; font-weight: 600; color: rgba(233,238,247,.90); }
.sec-summary-detail { font-size: .74rem; color: rgba(233,238,247,.50); }

/* ── Current device accent ────────────────────────────────── */
.device-card.is-current {
  border-left-width: 3px;
  border-left-color: rgba(25,135,84,.60);
  border-radius: 0 16px 16px 0;
  background: rgba(25,135,84,.07);
}

/* ── Revoke-all confirm ───────────────────────────────────── */
.revoke-confirm-inline {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  background: rgba(220,53,69,.10);
  border: 1px solid rgba(220,53,69,.30);
  border-radius: 12px;
  padding: .55rem .75rem;
  margin-top: .5rem;
}
.revoke-confirm-inline .small { color: rgba(248,113,113,.90); }

/* ── Device empty state ───────────────────────────────────── */
.devices-empty {
  text-align: center;
  padding: 2rem 1rem;
}
.devices-empty-icon {
  font-size: 2.2rem;
  color: rgba(233,238,247,.18);
  display: block;
  margin-bottom: .6rem;
}
.devices-empty-title {
  font-size: .95rem;
  font-weight: 700;
  color: rgba(233,238,247,.60);
  margin-bottom: .3rem;
}
.devices-empty-sub {
  font-size: .82rem;
  color: rgba(233,238,247,.38);
}
/* ================================================================
   Offcanvas nav drawer (nav_portal.php)
   ================================================================ */
  /* ── Hamburger button ──────────────────────────────────────────── */
  .ham-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(233,238,247,.92);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .ham-btn:hover,
  .ham-btn:focus-visible {
    background: rgba(255,255,255,.14);
    border-color: rgba(226,187,128,.50);
    box-shadow: 0 0 0 3px rgba(226,187,128,.15);
    outline: none;
  }

  /* Animated 3-bar hamburger → X */
  .ham-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
  }
  .ham-line {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .28s cubic-bezier(.4,0,.2,1),
                opacity   .18s ease,
                width     .22s ease;
    transform-origin: center;
  }
  .ham-btn.is-open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ham-btn.is-open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .ham-btn.is-open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Offcanvas drawer ─────────────────────────────────────────── */
  .portal-nav-drawer {
    width: 300px;
    background: linear-gradient(165deg, rgba(13,18,34,.97) 0%, rgba(7,11,20,.98) 100%);
    border-left: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: -12px 0 48px rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  /* ── Drawer header ────────────────────────────────────────────── */
  .pnav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
  }
  .pnav-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
  }
  .pnav-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--h2h-red, #EF0037), rgba(239,0,55,.55));
    box-shadow: 0 2px 10px rgba(239,0,55,.35);
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    flex-shrink: 0;
  }
  .pnav-brand-text {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(233,238,247,.88);
    line-height: 1.2;
    letter-spacing: .01em;
  }
  .pnav-brand-sub {
    font-size: .68rem;
    font-weight: 400;
    color: rgba(233,238,247,.38);
    letter-spacing: .04em;
    text-transform: uppercase;
    display: block;
  }
  .pnav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(233,238,247,.60);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
  }
  .pnav-close:hover { background: rgba(255,255,255,.14); color: rgba(233,238,247,.92); }

  /* ── User identity block ──────────────────────────────────────── */
  .pnav-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
  }
  .pnav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(1,174,240,.55), rgba(1,174,240,.25));
    border: 1.5px solid rgba(1,174,240,.40);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    color: rgba(233,238,247,.92);
    flex-shrink: 0;
    text-transform: uppercase;
  }
  .pnav-user-name {
    font-size: .875rem;
    font-weight: 600;
    color: rgba(233,238,247,.90);
    line-height: 1.3;
  }
  .pnav-user-status {
    font-size: .72rem;
    color: rgba(233,238,247,.40);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .1rem;
  }
  .pnav-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #20c997;
    box-shadow: 0 0 6px rgba(32,201,151,.55);
    flex-shrink: 0;
  }

  /* ── Scrollable nav body ──────────────────────────────────────── */
  .pnav-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .75rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
  }
  .pnav-body::-webkit-scrollbar { width: 4px; }
  .pnav-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

  /* Section label */
  .pnav-section-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(233,238,247,.28);
    padding: .6rem 1.25rem .3rem;
  }

  /* Nav item row */
  .pnav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem 1.25rem;
    text-decoration: none;
    color: rgba(233,238,247,.70);
    border-left: 3px solid transparent;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
    position: relative;
    font-size: .9rem;
    font-weight: 500;
  }
  .pnav-item:hover {
    background: rgba(255,255,255,.06);
    color: rgba(233,238,247,.95);
  }
  .pnav-item--active {
    background: rgba(226,187,128,.08);
    border-left-color: var(--h2h-gold, #E2BB80);
    color: var(--h2h-gold, #E2BB80);
    font-weight: 600;
  }
  .pnav-item--active:hover {
    background: rgba(226,187,128,.12);
    color: var(--h2h-gold, #E2BB80);
  }
  .pnav-item-icon {
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    opacity: .80;
  }
  .pnav-item--active .pnav-item-icon { opacity: 1; }
  .pnav-item-label { flex: 1; }

  /* Active pip (small dot indicator on right) */
  .pnav-item-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--h2h-gold, #E2BB80);
    box-shadow: 0 0 8px rgba(226,187,128,.55);
    flex-shrink: 0;
  }

  /* Divider inside body */
  .pnav-hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.07);
    margin: .5rem 0;
  }

  /* ── Drawer footer ────────────────────────────────────────────── */
  .pnav-footer {
    padding: .75rem 1rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
  }
  .pnav-signout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    padding: .55rem 1rem;
    border-radius: 10px;
    background: rgba(239,0,55,.10);
    border: 1px solid rgba(239,0,55,.30);
    color: rgba(239,0,55,.85);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  }
  .pnav-signout:hover {
    background: rgba(239,0,55,.18);
    border-color: rgba(239,0,55,.55);
    color: #ff2b55;
    box-shadow: 0 0 14px rgba(239,0,55,.20);
  }
  .pnav-signout .js-btn-spinner { margin-left: .35rem; }

/* ================================================================
   Toast notification system
   ================================================================ */
#portalToastWrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9990;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  pointer-events: none;
  max-width: 340px;
  width: calc(100% - 2.5rem);
}
.portal-toast {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,28,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  pointer-events: all;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
.portal-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.portal-toast.hide { opacity: 0; transform: translateY(4px) scale(.97); }
.portal-toast-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.portal-toast-success { border-color: rgba(25,135,84,.45); }
.portal-toast-danger  { border-color: rgba(220,53,69,.45);  }
.portal-toast-warning { border-color: rgba(255,193,7,.42);  }
.portal-toast-info    { border-color: rgba(1,174,240,.38);  }
.portal-toast-success .portal-toast-icon { color: rgba(110,231,183,.90); }
.portal-toast-danger  .portal-toast-icon { color: rgba(248,113,113,.90); }
.portal-toast-warning .portal-toast-icon { color: rgba(255,193,7,.90);   }
.portal-toast-info    .portal-toast-icon { color: rgba(1,174,240,.90);   }
.portal-toast-body { flex: 1; }
.portal-toast-msg { font-size: .85rem; color: rgba(233,238,247,.92); line-height: 1.45; }
.portal-toast-close {
  background: none; border: none; padding: 0;
  color: rgba(233,238,247,.30); font-size: 1.1rem; cursor: pointer;
  line-height: 1; flex-shrink: 0; margin-top: -.05rem;
  transition: color .14s;
}
.portal-toast-close:hover { color: rgba(233,238,247,.70); }

/* ================================================================
   Mobile bottom navigation bar
   ================================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1040;
  background: rgba(7,11,20,.96);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  #portalToastWrap { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  padding: .55rem .25rem .45rem;
  text-decoration: none;
  color: rgba(233,238,247,.42);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mbn-item i { font-size: 1.3rem; transition: transform .15s; }
.mbn-item:hover { color: rgba(233,238,247,.75); }
.mbn-item.mbn-active { color: var(--h2h-gold); }
.mbn-item.mbn-active i { transform: translateY(-1px); }
.mbn-pip {
  position: absolute;
  top: .3rem; right: calc(50% - 18px);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--h2h-gold);
  box-shadow: 0 0 7px rgba(226,187,128,.65);
}

/* ================================================================
   Skip to content (accessibility)
   ================================================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--h2h-gold);
  color: #000;
  padding: .4rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-to-content:focus { top: 0; outline: 3px solid #000; outline-offset: 2px; }

/* ================================================================
   History page (history.php)
   ================================================================ */
.hist-hero { text-align: center; padding: 1.5rem 0 1rem; }
.hist-hours-num {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E2BB80 0%, #f5dfa0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(226,187,128,.50));
  line-height: 1;
  letter-spacing: -.03em;
  display: inline-block;
}
.hist-hours-lbl {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(233,238,247,.45);
  margin-top: .35rem;
}
.hist-stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin: 1.25rem 0; }
.hist-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: .75rem; text-align: center; }
.hist-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--h2h-gold); text-shadow: 0 0 16px rgba(226,187,128,.40); }
.hist-stat-lbl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,238,247,.42); margin-top: .2rem; }

/* ── History page — monthly vertical bar chart ──────────── */
.hist-chart-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.hist-yr-label {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(233,238,247,.80);
}
.hist-yr-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.65);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.hist-yr-btn:hover:not(.hist-yr-btn-dis) {
  background: rgba(226,187,128,.15);
  border-color: rgba(226,187,128,.40);
  color: var(--h2h-gold);
}
.hist-yr-btn-dis { opacity: .25; cursor: default; pointer-events: none; }
.hist-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  overflow-x: auto;
  padding-bottom: 0;
  position: relative;
}
.hist-chart-bars::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.hist-chart-labels {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  overflow-x: auto;
}
.hist-bar-col {
  flex: 0 0 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.hist-bar-lbl {
  flex: 0 0 42px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(226,187,128,.60);
  text-align: center;
}
.hist-bar-best .hist-bar-lbl { color: var(--h2h-gold); }
.hist-bar-hrs {
  font-size: .68rem;
  font-weight: 700;
  color: var(--h2h-gold);
  margin-bottom: 4px;
  white-space: nowrap;
  opacity: 0;
  animation: histHrsFade .35s ease both;
}
@keyframes histHrsFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hist-bar-body {
  width: 100%;
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  background: linear-gradient(180deg, #E2BB80 0%, rgba(226,187,128,.40) 100%);
  box-shadow: 0 0 14px rgba(226,187,128,.25);
  transform-origin: bottom;
  animation: histBarGrow .65s cubic-bezier(.22,1,.36,1) both;
}
.hist-bar-best .hist-bar-body {
  background: linear-gradient(180deg, #E2BB80 0%, rgba(226,187,128,.65) 100%);
  box-shadow: 0 0 20px rgba(226,187,128,.45);
}
@keyframes histBarGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hist-bar-body { animation: none; }
  .hist-bar-hrs  { animation: none; opacity: 1; }
}

.hist-shift-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hist-shift-row:last-child { border-bottom: 0; }
.hist-shift-date { font-size: .75rem; color: rgba(233,238,247,.45); flex: 0 0 90px; padding-top: .1rem; }
.hist-shift-info { flex: 1; min-width: 0; }
.hist-shift-event { font-size: .85rem; font-weight: 600; color: rgba(233,238,247,.90); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-shift-name  { font-size: .78rem; color: rgba(233,238,247,.50); margin-top: .1rem; }
.hist-shift-hrs   { font-size: .82rem; font-weight: 600; color: rgba(110,231,183,.75); flex-shrink: 0; }

/* ================================================================
   Wow-factor visual polish
   ================================================================ */

/* ── Gradient top border on every glass card ─────────────── */
.glass:not(.welcome-glass)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(226,187,128,.42) 28%,
    rgba(255,255,255,.22) 50%,
    rgba(1,174,240,.35) 72%,
    transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Gradient text for page headings ─────────────────────── */
.portal-page-title {
  color: var(--h2h-gold);
}

/* ================================================================
   Wow-factor features — round 2
   ================================================================ */

/* ── Global branded scrollbar ────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(226,187,128,.35) transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E2BB80 0%, #01AEF0 100%);
  border-radius: 99px;
}

/* ── Staggered glass card entrances ──────────────────────── */
.glass-e1 { animation: fadeInUp .50s .05s ease both; }
.glass-e2 { animation: fadeInUp .50s .12s ease both; }
.glass-e3 { animation: fadeInUp .50s .20s ease both; }
.glass-e4 { animation: fadeInUp .50s .28s ease both; }
@media (prefers-reduced-motion: reduce) {
  .glass-e1,.glass-e2,.glass-e3,.glass-e4 { animation: none !important; }
}

/* ── Volunteer streak widget ─────────────────────────────── */
.dash-streak {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: rgba(226,187,128,.08);
  border: 1px solid rgba(226,187,128,.22);
  border-radius: 14px;
  padding: .7rem .85rem;
}
.dash-streak-flame { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: .05rem; }
.dash-streak-text {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(233,238,247,.88);
  margin-bottom: .35rem;
}
.dash-streak-dots { display: flex; gap: .3rem; }
.dash-streak-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  transition: background .2s;
}
.dash-streak-dot.active {
  background: var(--h2h-gold);
  border-color: var(--h2h-gold);
  box-shadow: 0 0 6px rgba(226,187,128,.55);
}

/* ── Dashboard progress ring ─────────────────────────────── */
.dash-ring-wrap { position: relative; display: inline-block; vertical-align: top; }
.dash-ring-svg { display: block; }
.dash-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .1rem;
}
.dash-ring-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--h2h-gold);
  line-height: 1;
  text-shadow: 0 0 18px rgba(226,187,128,.45);
}
.dash-ring-lbl {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(233,238,247,.38);
}
.dash-ring-milestone {
  font-size: .68rem;
  color: rgba(233,238,247,.45);
  margin-top: .3rem;
  text-align: center;
}

/* ── Impact equivalency (history page) ───────────────────── */
.impact-eq {
  background: rgba(1,174,240,.08);
  border: 1px solid rgba(1,174,240,.22);
  border-radius: 14px;
  padding: .65rem 1rem;
  font-size: .9rem;
  color: rgba(233,238,247,.80);
  text-align: center;
  margin-top: .75rem;
}
.impact-eq strong { color: var(--h2h-gold); }

/* ── My Signups: inline tool icon buttons ────────────────── */
.signup-tool-btns {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
}
.signup-tool-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: rgba(233,238,247,.60);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.signup-tool-btn:hover {
  background: rgba(226,187,128,.15);
  border-color: rgba(226,187,128,.40);
  color: var(--h2h-gold);
}

/* ── Events: post-signup calendar/directions section ─────── */
.post-signup-actions {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .75rem;
}
.post-signup-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(233,238,247,.45);
  margin-bottom: .5rem;
}
.post-signup-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.post-signup-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .32rem .7rem;
  border-radius: 8px;
  background: rgba(1,174,240,.12);
  border: 1px solid rgba(1,174,240,.32);
  color: rgba(1,174,240,.90);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.post-signup-btn:hover {
  background: rgba(1,174,240,.22);
  border-color: rgba(1,174,240,.55);
  color: rgba(1,174,240,1);
}
.post-signup-btn.psa-dir {
  background: rgba(226,187,128,.12);
  border-color: rgba(226,187,128,.30);
  color: rgba(226,187,128,.90);
}
.post-signup-btn.psa-dir:hover {
  background: rgba(226,187,128,.22);
  border-color: rgba(226,187,128,.55);
}

/* ================================================================
   History page — animated impact lines
   ================================================================ */
.impact-lines {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.impact-line {
  display: flex;
  align-items: center;
  gap: .85rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.impact-line.revealed {
  opacity: 1;
  transform: translateY(0);
}
.impact-line-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.impact-line-text {
  font-size: .95rem;
  color: rgba(233,238,247,.80);
  line-height: 1.45;
}
.impact-num {
  color: var(--h2h-gold);
  font-weight: 700;
  font-size: 1.05em;
}
@media (prefers-reduced-motion: reduce) {
  .impact-line { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================================================================
   History page — impact ticker
   ================================================================ */
.impact-ticker-wrap {
  margin-top: 1.25rem;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .55rem 0;
  background: rgba(255,255,255,.03);
  animation: tickerFadeIn .8s ease both;
}
@keyframes tickerFadeIn { from { opacity: 0; } to { opacity: 1; } }

.impact-ticker { white-space: nowrap; }

.ticker-track {
  display: inline-block;
  animation: tickerScroll 28s linear infinite;
}
.impact-ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .impact-ticker-wrap { overflow: auto; }
  .ticker-track { white-space: normal; display: flex; flex-wrap: wrap; gap: .5rem; padding: .25rem 0; }
}

.ticker-item {
  display: inline-block;
  font-size: .88rem;
  color: rgba(233,238,247,.78);
  padding: 0 .5rem;
}
.ticker-sep {
  display: inline-block;
  color: rgba(226,187,128,.50);
  padding: 0 1.25rem;
  font-size: .75rem;
}
.impact-num {
  color: var(--h2h-gold);
  font-weight: 700;
}

/* ================================================================
   History page — rotating impact stat hero
   ================================================================ */
.impact-rotator {
  text-align: center;
}
.impact-rotator-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(233,238,247,.38);
  margin-bottom: .65rem;
}
.impact-rotator-stage {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.impact-rotator-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.impact-rotator-item.active {
  opacity: 1;
  pointer-events: auto;
}
.impact-rotator-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  /* color and text-shadow applied inline per stat */
}
.impact-rotator-text {
  font-size: .82rem;
  color: rgba(233,238,247,.62);
  white-space: nowrap;
}
.impact-progress-track {
  height: 2px;
  background: rgba(255,255,255,.10);
  border-radius: 99px;
  margin-top: .9rem;
  overflow: hidden;
}
.impact-progress-fill {
  height: 100%;
  background: var(--h2h-gold);
  border-radius: 99px;
  width: 0%;
}
@media (prefers-reduced-motion: reduce) {
  .impact-rotator-item { transition: none; }
  .impact-rotator-item:not(.active) { display: none; }
  .impact-progress-fill { transition: none !important; }
}

/* ── Dashboard: volunteer since ─────────────────────────── */
.dash-since {
  font-size: .875em;
  color: rgba(233,238,247,.42);
  margin-top: .4rem;
  margin-bottom: .25rem;
}
.dash-since strong { color: rgba(233,238,247,.70); font-weight: 600; }

/* ── Guest Book — compact avatar rows ───────────────────── */
.guest-add-hint {
  font-size: .65rem;
  color: rgba(233,238,247,.32);
  margin-top: .25rem;
  margin-bottom: .1rem;
}
.guest-row-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
  /* border-top colour set inline per card */
}
.guest-row-item:last-child { margin-bottom: 0; }
.guest-view {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guest-name-text {
  flex: 1;
  font-size: .82rem;
  color: rgba(233,238,247,.85);
}
.guest-action-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.45);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.guest-action-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: rgba(233,238,247,.90);
}
.guest-edit-btn {
  background: rgba(226,187,128,.15);
  border-color: rgba(226,187,128,.40);
  color: #E2BB80;
}
.guest-edit-btn:hover {
  background: rgba(226,187,128,.28);
  border-color: rgba(226,187,128,.65);
  color: #E2BB80;
}
.guest-del {
  background: rgba(239,0,55,.12);
  border-color: rgba(239,0,55,.35);
  color: #EF0037;
}
.guest-del:hover {
  background: rgba(239,0,55,.25);
  border-color: rgba(239,0,55,.60);
  color: #EF0037;
}
.guest-edit-mode {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}
.guest-edit-mode .form-control-sm {
  flex: 1;
  min-width: 0;
  height: 30px;
  font-size: .78rem;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
  color: var(--text);
}
.guest-save {
  background: rgba(226,187,128,.15);
  border-color: rgba(226,187,128,.40);
  color: #E2BB80;
}
.guest-save:hover {
  background: rgba(226,187,128,.28);
  border-color: rgba(226,187,128,.65);
  color: #E2BB80;
}
.guest-cancel-btn {
  background: rgba(239,0,55,.12);
  border-color: rgba(239,0,55,.35);
  color: #EF0037;
}
.guest-cancel-btn:hover {
  background: rgba(239,0,55,.25);
  border-color: rgba(239,0,55,.60);
  color: #EF0037;
}
/* ── Guest book: new entry animation ────────────────────────── */
@keyframes guestAdded {
  0%   { opacity: 0; transform: translateX(-12px); box-shadow: -4px 0 0   rgba(226,187,128,0); }
  25%  { opacity: 1; transform: translateX(2px);   box-shadow: -4px 0 18px rgba(226,187,128,.80); }
  60%  {             transform: translateX(0);     box-shadow: -4px 0 22px rgba(226,187,128,.65); }
  100% {                                            box-shadow: -4px 0 0   rgba(226,187,128,0); }
}
.guest-just-added {
  animation: guestAdded 1.6s cubic-bezier(.22,1,.36,1) forwards;
}

/* Row removal (guest book + signups): fade + slide out, then collapse the gap
   so the list reflows smoothly instead of flashing on a full reload. */
@keyframes h2hRowRemoving {
  0%   { opacity: 1; transform: translateX(0);    max-height: 160px; }
  45%  { opacity: 0; transform: translateX(16px); max-height: 160px; }
  100% { opacity: 0; transform: translateX(16px); max-height: 0;
         margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
}
.h2h-row-removing {
  overflow: hidden;
  pointer-events: none;
  animation: h2hRowRemoving .42s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .h2h-row-removing { animation-duration: .01s; }
}

/* ── Security page sidebar nav ──────────────────────────────── */
.sec-nav-link {
  display: flex;
  align-items: center;
  font-size: .82rem;
  color: rgba(233,238,247,.55);
  text-decoration: none;
  padding: .3rem .5rem;
  border-radius: .375rem;
  transition: color .15s ease, background .15s ease;
}
.sec-nav-link:hover {
  color: var(--h2h-gold);
  background: rgba(226,187,128,.08);
}

/* ── Security: device card rename save/cancel buttons ───────── */
.device-action-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.device-save-btn {
  background: rgba(226,187,128,.15);
  border-color: rgba(226,187,128,.40);
  color: #E2BB80;
}
.device-save-btn:hover {
  background: rgba(226,187,128,.28);
  border-color: rgba(226,187,128,.65);
  color: #E2BB80;
}
.device-cancel-btn {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  color: rgba(233,238,247,.80);
}
.device-cancel-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

/* ── Merged from server version ─── */
.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;
}
.ev-avail-pill {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .15rem .55rem;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(233,238,247,.80);
  white-space: nowrap;
}
.ev-avail-pill.full {
  border-color: rgba(220,53,69,.35);
  background: rgba(220,53,69,.10);
  color: rgba(248,113,113,.90);
}
.ev-avail-pill.open {
  border-color: rgba(25,135,84,.45);
  background: rgba(25,135,84,.14);
  color: rgba(110,231,183,.95);
}
.ev-avail-pill.warn {
  border-color: rgba(255,193,7,.45);
  background: rgba(255,193,7,.12);
  color: rgba(255,193,7,.95);
}
.ev-cat-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .15rem .55rem;
  border-radius: 99px;
  border: 1px solid rgba(1,174,240,.35);
  background: rgba(1,174,240,.10);
  color: rgba(1,174,240,.95);
  white-space: nowrap;
}
.signup-row-me {
  border-color: rgba(25,135,84,.42) !important;
  background: rgba(25,135,84,.09) !important;
}
.signup-row-me .signup-name i { color: rgba(25,135,84,.90); }
