/* ═══════════════════════════════════════════════════
   Bahama Match – Design System
   Colors from Figma: #04345D (navy) · #D5B22F (gold)
═══════════════════════════════════════════════════ */
:root {
  --bm-navy:       #04345D;
  --bm-navy-light: #054a82;
  --bm-gold:       #D5B22F;
  --bm-gold-dark:  #b8961e;
  --bm-white:      #ffffff;
  --bm-bg:         #F7F8F8;
  --bm-bg-alt:     #f0f2f4;
  --bm-border:     #E4E4E4;
  --bm-border-2:   #D1D5DB;
  --bm-text:       #1A1A1A;
  --bm-text-2:     #374151;
  --bm-text-3:     #667085;
  --bm-text-4:     #757D83;
  --bm-sidebar-w:  256px;
  --bm-topbar-h:   72px;
  --bm-radius:     8px;
  --bm-shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --bm-shadow-lg:  0 4px 6px rgba(0,0,0,.1), 0 10px 15px rgba(0,0,0,.1);
}

/* ── RESET & BASE ── */
.bm-page * { box-sizing: border-box; margin: 0; padding: 0; }
.bm-page {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--bm-text);
  background: var(--bm-bg);
  min-height: 100vh;
}
.bm-page a { text-decoration: none; color: inherit; }
.bm-page input, .bm-page select, .bm-page textarea, .bm-page button {
  font-family: 'Poppins', sans-serif;
}

/* ═══════════════════════════════════════════════════
   LAYOUT SHELL  (sidebar + topbar + content)
═══════════════════════════════════════════════════ */
.bm-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.bm-sidebar {
  width: var(--bm-sidebar-w);
  min-height: 100vh;
  background: var(--bm-navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.bm-sidebar__logo {
  padding: 19px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  min-height: 101px;
  display: flex;
  align-items: center;
}
.bm-sidebar__logo img {
  max-height: 64px;
  max-width: 135px;
  object-fit: contain;
}
.bm-sidebar__logo-text {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--bm-white);
  line-height: 1.2;
}
.bm-sidebar__logo-text span {
  display: block;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--bm-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.bm-sidebar__nav {
  padding: 24px 0;
  flex: 1;
}
.bm-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  font-weight: 400;
  transition: background .15s, color .15s;
  letter-spacing: -0.3px;
}
.bm-sidebar__nav a:hover,
.bm-sidebar__nav a.active {
  background: rgba(255,255,255,.1);
  color: var(--bm-white);
}
.bm-sidebar__nav a.active {
  border-left: 3px solid var(--bm-gold);
}
.bm-sidebar__nav svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: .8;
}
.bm-sidebar__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.bm-sidebar__logout {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  cursor: pointer;
  transition: color .15s;
}
.bm-sidebar__logout:hover { color: #fff; }

/* ── MAIN AREA ── */
.bm-main {
  margin-left: var(--bm-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.bm-topbar {
  height: var(--bm-topbar-h);
  background: var(--bm-white);
  border-bottom: 1px solid var(--bm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.bm-topbar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 10px 14px;
  width: 400px;
}
.bm-topbar__search input {
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--bm-text-3);
  flex: 1;
  background: transparent;
}
.bm-topbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bm-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bm-bg);
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  transition: background .15s;
}
.bm-icon-btn:hover { background: var(--bm-border); }
.bm-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.bm-user-pill__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bm-border);
}
.bm-user-pill__info { display: flex; flex-direction: column; }
.bm-user-pill__name { font-size: 12px; font-weight: 500; color: var(--bm-text); line-height: 1.5; }
.bm-user-pill__role { font-size: 10px; color: var(--bm-text-4); line-height: 1.4; }

/* ── CONTENT ── */
.bm-content {
  flex: 1;
  padding: 35px 40px;
  background: var(--bm-bg);
}

/* ═══════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════ */
.bm-login-page {
  min-height: 100vh;
  display: flex;
  font-family: 'Poppins', sans-serif;
  background: var(--bm-white);
}
.bm-login-page__sidebar {
  width: var(--bm-sidebar-w);
  background: var(--bm-navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 19px 24px;
  min-height: 100vh;
}
.bm-login-page__sidebar-logo {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}
.bm-login-page__sidebar-logo em {
  display: block;
  font-style: normal;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--bm-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.bm-login-page__body {
  flex: 1;
  display: flex;
}
.bm-login-page__hero {
  width: 528px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.bm-login-page__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-login-page__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,52,93,.3) 0%, rgba(4,52,93,.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-login-page__hero-tagline {
  font-family: 'Merriweather', serif;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  padding: 24px;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.bm-login-page__form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 60px 60px 72px;
}
.bm-login-form {
  width: 100%;
  max-width: 563px;
}
.bm-login-form__heading {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--bm-navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.bm-login-form__subtext {
  font-size: 16px;
  color: var(--bm-text);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}
.bm-form-group {
  margin-bottom: 28px;
}
.bm-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--bm-text-2);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.bm-form-group input,
.bm-form-group select,
.bm-form-group textarea {
  width: 100%;
  height: 50px;
  border: 1px solid var(--bm-border-2);
  border-radius: var(--bm-radius);
  padding: 0 16px;
  font-size: 14px;
  color: var(--bm-text);
  outline: 0;
  transition: border-color .2s;
  background: var(--bm-white);
}
.bm-form-group input:focus,
.bm-form-group select:focus { border-color: var(--bm-navy); }
.bm-form-group--row {
  display: flex;
  gap: 16px;
}
.bm-form-group--row .bm-form-group { flex: 1; margin-bottom: 0; }
.bm-form-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.bm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--bm-text-2);
  cursor: pointer;
  user-select: none;
}
.bm-checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--bm-navy);
  cursor: pointer;
}
.bm-link {
  font-size: 14px;
  color: var(--bm-navy);
  font-weight: 400;
  cursor: pointer;
  letter-spacing: -0.3px;
}
.bm-link:hover { text-decoration: underline; }
.bm-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: var(--bm-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: all .2s;
  letter-spacing: -0.3px;
  white-space: nowrap;
  text-transform: capitalize;
}
.bm-btn--gold {
  background: var(--bm-gold);
  color: var(--bm-white);
  box-shadow: var(--bm-shadow-lg);
}
.bm-btn--gold:hover { background: var(--bm-gold-dark); }
.bm-btn--outline {
  background: transparent;
  color: var(--bm-navy);
  border: 1px solid var(--bm-navy);
}
.bm-btn--outline:hover { background: var(--bm-navy); color: #fff; }
.bm-btn--navy {
  background: var(--bm-navy);
  color: var(--bm-white);
}
.bm-btn--navy:hover { background: var(--bm-navy-light); }
.bm-btn--sm {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.bm-error-msg {
  display: none;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--bm-radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.bm-error-msg.visible { display: block; }

/* Tab switcher on login */
.bm-login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--bm-border);
  margin-bottom: 32px;
}
.bm-login-tab {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bm-text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.bm-login-tab.active {
  color: var(--bm-navy);
  border-bottom-color: var(--bm-navy);
}
.bm-tab-panel { display: none; }
.bm-tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════════
   PAGE HEADER (inside dashboard pages)
═══════════════════════════════════════════════════ */
.bm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.bm-page-header__left { display: flex; align-items: center; gap: 12px; }
.bm-page-header__back {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  cursor: pointer;
  flex-shrink: 0;
}
.bm-page-header__title { font-size: 22px; font-weight: 700; color: var(--bm-text); }
.bm-page-header__subtitle { font-size: 13px; color: var(--bm-text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════════ */
.bm-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  padding: 35px 40px;
  margin-bottom: 24px;
}
.bm-card--compact { padding: 24px 28px; }
.bm-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 6px;
}
.bm-card__subtitle {
  font-size: 14px;
  color: var(--bm-text-3);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   STAT CARDS (admin / invitations)
═══════════════════════════════════════════════════ */
.bm-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.bm-stat-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bm-stat-card__icon {
  width: 40px; height: 40px;
  background: var(--bm-bg);
  border-radius: var(--bm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.bm-stat-card__num {
  font-size: 28px;
  font-weight: 700;
  color: var(--bm-navy);
  line-height: 1;
}
.bm-stat-card__label {
  font-size: 13px;
  color: var(--bm-text-3);
}
.bm-stat-card--trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   DATA TABLE
═══════════════════════════════════════════════════ */
.bm-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--bm-border);
  background: var(--bm-white);
}
.bm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bm-table thead th {
  background: var(--bm-bg-alt);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--bm-text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bm-border);
}
.bm-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--bm-border);
  color: var(--bm-text);
  vertical-align: middle;
}
.bm-table tbody tr:last-child td { border-bottom: 0; }
.bm-table tbody tr:hover { background: var(--bm-bg); }
.bm-table__participant {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bm-table__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bm-border);
  flex-shrink: 0;
}
.bm-table__name { font-size: 14px; font-weight: 500; }
.bm-table__email { font-size: 12px; color: var(--bm-text-3); }
.bm-table__actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.bm-table-icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bm-bg);
  border: 1px solid var(--bm-border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--bm-text-3);
  transition: all .15s;
  font-size: 12px;
}
.bm-table-icon-btn:hover { background: var(--bm-navy); color: #fff; border-color: var(--bm-navy); }

/* ═══════════════════════════════════════════════════
   BADGES / STATUS
═══════════════════════════════════════════════════ */
.bm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}
.bm-badge--green  { background: #d1fae5; color: #065f46; }
.bm-badge--blue   { background: #dbeafe; color: #1e40af; }
.bm-badge--yellow { background: #fef3c7; color: #92400e; }
.bm-badge--red    { background: #fee2e2; color: #991b1b; }
.bm-badge--gray   { background: #f3f4f6; color: #374151; }

/* Lifecycle progress dots */
.bm-progress-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.bm-progress-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bm-gold);
  display: block;
}
.bm-progress-dots span.inactive { background: var(--bm-border); }

/* ═══════════════════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════════════════ */
.bm-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bm-filter-bar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bm-white);
  border: 1px solid var(--bm-border-2);
  border-radius: var(--bm-radius);
  padding: 9px 14px;
  flex: 0 0 320px;
}
.bm-filter-bar__search input {
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--bm-text);
  background: transparent;
  width: 100%;
}
.bm-filter-bar select {
  height: 42px;
  border: 1px solid var(--bm-border-2);
  border-radius: var(--bm-radius);
  padding: 0 12px;
  font-size: 14px;
  color: var(--bm-text);
  background: var(--bm-white);
  outline: 0;
  cursor: pointer;
}
.bm-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--bm-text-2);
  cursor: pointer;
}
.bm-filter-tag .remove { font-size: 16px; color: var(--bm-text-3); }
.bm-btn-group { display: flex; gap: 10px; margin-left: auto; }

/* ═══════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════ */
.bm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--bm-border);
  background: var(--bm-white);
}
.bm-pagination__info { font-size: 13px; color: var(--bm-text-3); }
.bm-pagination__nav { display: flex; gap: 4px; align-items: center; }
.bm-page-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bm-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--bm-text);
  cursor: pointer;
  background: var(--bm-white);
  transition: all .15s;
}
.bm-page-btn.active { background: var(--bm-navy); color: #fff; border-color: var(--bm-navy); }
.bm-page-btn:hover:not(.active) { background: var(--bm-bg); }

/* ═══════════════════════════════════════════════════
   CREATE PROFILE PAGE
═══════════════════════════════════════════════════ */
.bm-profile-photo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.bm-photo-circle {
  width: 125px; height: 125px;
  border-radius: 50%;
  background: var(--bm-bg-alt);
  border: 2px dashed var(--bm-border-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
}
.bm-photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.bm-photo-circle input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.bm-photo-upload-btn {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bm-text);
  cursor: pointer;
  transition: all .15s;
}
.bm-photo-upload-btn:hover { border-color: var(--bm-navy); color: var(--bm-navy); }
.bm-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 12px;
}
.bm-section-desc {
  font-size: 14px;
  color: var(--bm-text-3);
  line-height: 1.7;
  margin-bottom: 32px;
}
.bm-radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bm-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--bm-text-2);
  cursor: pointer;
}
.bm-radio-label input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--bm-navy);
  cursor: pointer;
}
.bm-checkbox-group { margin-top: 8px; }
.bm-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bm-border);
  font-size: 14px;
  color: var(--bm-text);
}
.bm-toggle-label:last-child { border-bottom: 0; }
/* Toggle switch */
.bm-toggle {
  position: relative;
  width: 44px; height: 24px;
}
.bm-toggle input { opacity: 0; width: 0; height: 0; }
.bm-toggle__track {
  position: absolute; inset: 0;
  background: var(--bm-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}
.bm-toggle input:checked + .bm-toggle__track { background: var(--bm-navy); }
.bm-toggle__track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bm-toggle input:checked + .bm-toggle__track::after { transform: translateX(20px); }

/* ── proof of ID upload box ── */
.bm-upload-area {
  margin-top: 24px;
}
.bm-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bm-text);
  cursor: pointer;
  transition: all .15s;
}
.bm-upload-btn:hover { border-color: var(--bm-navy); color: var(--bm-navy); }
.bm-upload-info {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--bm-text-3);
  margin-top: 12px;
  line-height: 1.5;
}
.bm-terms-area { margin-top: 32px; }
.bm-terms-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--bm-text-2);
  margin-bottom: 16px;
  line-height: 1.6;
}
.bm-terms-row input[type="checkbox"] {
  width: 14px; height: 14px;
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--bm-navy);
}

/* ═══════════════════════════════════════════════════
   PREFERENCES PAGE
═══════════════════════════════════════════════════ */
.bm-pref-section {
  margin-bottom: 40px;
}
.bm-pref-section__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 6px;
}
.bm-pref-section__desc {
  font-size: 14px;
  color: var(--bm-text-3);
  margin-bottom: 24px;
  line-height: 1.6;
}
.bm-pref-grid {
  display: grid;
  gap: 24px;
}
.bm-importance-group { margin-top: 8px; }
.bm-importance-label { font-size: 14px; font-weight: 500; color: var(--bm-text-2); margin-bottom: 10px; }
.bm-importance-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.bm-importance-btns input[type="radio"] { display: none; }
.bm-importance-btns label {
  display: flex; align-items: center; justify-content: center;
  height: 68px;
  border: 1px solid var(--bm-border);
  font-size: 15px;
  font-weight: 500;
  color: var(--bm-text-3);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.bm-importance-btns label:first-of-type { border-radius: 8px 0 0 8px; }
.bm-importance-btns label:last-of-type  { border-radius: 0 8px 8px 0; }
.bm-importance-btns input:checked + label {
  background: var(--bm-navy);
  color: var(--bm-white);
  border-color: var(--bm-navy);
  z-index: 1;
}
.bm-dealbreaker-list {
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  overflow: hidden;
}
.bm-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.bm-review-box {
  background: var(--bm-bg);
  border-radius: 10px;
  padding: 20px 22px;
}
.bm-review-box__title {
  font-size: 15px; font-weight: 600;
  color: var(--bm-text);
  margin-bottom: 14px;
}
.bm-review-row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: var(--bm-text-2);
}
.bm-review-row strong { color: var(--bm-text); }
.bm-dealbreaker-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bm-dealbreaker-tag {
  padding: 4px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}
.bm-privacy-note {
  display: flex; align-items: center; gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--bm-radius);
  padding: 14px 20px;
  font-size: 14px;
  color: #1e40af;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════
   MATCHED PAGE
═══════════════════════════════════════════════════ */
.bm-matched-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}
.bm-matched-header__title {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--bm-navy);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.bm-matched-header__desc {
  font-size: 14px;
  color: var(--bm-text-3);
  max-width: 700px;
  line-height: 1.7;
}
.bm-pool-status {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 280px;
  flex-shrink: 0;
}
.bm-pool-status__row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin-bottom: 4px;
}
.bm-pool-status__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981;
  display: inline-block; margin-right: 6px;
}
.bm-pool-status__sub {
  font-size: 11px; color: var(--bm-text-3); margin-top: 4px;
}
.bm-how-it-works {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  padding: 32px 40px;
  margin-bottom: 24px;
}
.bm-how-it-works__title {
  font-size: 20px; font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 20px;
}
.bm-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bm-rule-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--bm-text-2);
  line-height: 1.5;
}
.bm-rule-item__icon { flex-shrink: 0; color: var(--bm-gold); margin-top: 2px; }
.bm-pool-section { margin-bottom: 24px; }
.bm-pool-section__title {
  font-family: 'Merriweather', serif;
  font-size: 22px; font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 20px;
}
.bm-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.bm-photo-card {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bm-bg-alt), var(--bm-border));
  overflow: hidden;
  position: relative;
}
.bm-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.bm-photo-card__blur {
  position: absolute;
  inset: 0;
  background: rgba(4,52,93,.15);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.bm-privacy-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px;
}
.bm-privacy-box__icon { font-size: 24px; flex-shrink: 0; color: var(--bm-gold); margin-top: 2px; }
.bm-privacy-box__title { font-size: 15px; font-weight: 600; color: var(--bm-text); margin-bottom: 4px; }
.bm-privacy-box__desc { font-size: 13px; color: var(--bm-text-3); line-height: 1.6; }
.bm-what-next {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  padding: 32px 40px;
  margin-bottom: 24px;
}
.bm-what-next__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 24px;
}
.bm-step-list {
  display: flex; flex-direction: column; gap: 16px;
}
.bm-step-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14px; color: var(--bm-text-2);
  line-height: 1.6;
}
.bm-step-num {
  width: 36px; height: 36px;
  background: var(--bm-navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.bm-matched-footer-btns {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 32px;
}

/* ═══════════════════════════════════════════════════
   ADMIN DASHBOARD
═══════════════════════════════════════════════════ */
.bm-capacity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.bm-capacity-bar-label {
  display: flex; justify-content: space-between;
  font-size: 14px; font-weight: 600;
  color: var(--bm-text);
  margin-bottom: 10px;
}
.bm-bar-track {
  height: 32px;
  background: var(--bm-bg-alt);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}
.bm-bar-fill {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
  border-radius: 6px;
  transition: width .4s ease;
}
.bm-bar-fill--men     { background: var(--bm-navy); }
.bm-bar-fill--pending { background: #60a5fa; }
.bm-bar-fill--slot    { background: var(--bm-border); }
.bm-bar-fill--women   { background: var(--bm-gold); }
.bm-capacity-legend {
  display: flex; gap: 16px; font-size: 12px; color: var(--bm-text-3); flex-wrap: wrap;
}
.bm-capacity-legend span { display: flex; align-items: center; gap: 6px; }
.bm-capacity-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%; display: inline-block;
}
.bm-alert-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bm-border);
}
.bm-alert-item:last-child { border-bottom: 0; }
.bm-alert-item__left { display: flex; align-items: flex-start; gap: 14px; }
.bm-alert-item__icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.bm-alert-item__title { font-size: 14px; font-weight: 500; color: var(--bm-text); margin-bottom: 2px; }
.bm-alert-item__desc  { font-size: 13px; color: var(--bm-text-3); }
.bm-alert-action {
  font-size: 13px; font-weight: 500;
  color: var(--bm-navy);
  cursor: pointer;
  white-space: nowrap;
}
.bm-alert-action:hover { text-decoration: underline; }
.bm-capacity-warning {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--bm-radius);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--bm-text-2);
  line-height: 1.6;
}
/* Admin eligibility table – smaller font */
.bm-table--sm { font-size: 13px; }
.bm-table--sm thead th { font-size: 11px; padding: 10px 14px; }
.bm-table--sm tbody td { padding: 12px 14px; }

/* ═══════════════════════════════════════════════════
   NOTICE BANNER (login redirect message)
═══════════════════════════════════════════════════ */
.bm-notice {
  padding: 14px 20px;
  border-radius: var(--bm-radius);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.bm-notice--info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.bm-notice--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.bm-notice--warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ═══════════════════════════════════════════════════
   SPINNER
═══════════════════════════════════════════════════ */
.bm-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bm-spin .7s linear infinite;
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

/* ─ Loading overlay ─ */
.bm-loading {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  display: none;
  place-items: center;
  z-index: 999;
}
.bm-loading.active { display: grid; }
.bm-loading__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  color: var(--bm-navy);
  font-size: 14px; font-weight: 500;
}
.bm-loading .bm-spinner {
  border-color: rgba(4,52,93,.2);
  border-top-color: var(--bm-navy);
  width: 40px; height: 40px;
}

/* ═══════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════ */
.bm-divider { height: 1px; background: var(--bm-border); margin: 28px 0; }
.bm-text-muted { color: var(--bm-text-3); }
.bm-text-navy  { color: var(--bm-navy); }
.bm-text-gold  { color: var(--bm-gold); }
.bm-fw-700 { font-weight: 700; }
.bm-mt-auto { margin-top: auto; }
.bm-flex-between { display: flex; align-items: center; justify-content: space-between; }
.bm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE (simple – keep sidebar on tablet)
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bm-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .bm-photo-grid { grid-template-columns: repeat(4, 1fr); }
  .bm-capacity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --bm-sidebar-w: 0px; }
  .bm-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .bm-sidebar.open { transform: translateX(0); }
  .bm-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .bm-rules-grid { grid-template-columns: 1fr; }
  .bm-review-grid { grid-template-columns: 1fr; }
  .bm-login-page__hero { display: none; }
  .bm-topbar__search { width: 200px; }
}

/* ═══════════════════════════════════════════════════
   EXTRA UTILITIES & FIXES
═══════════════════════════════════════════════════ */

/* Hide WP admin bar on BM pages */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* Tooltip */
.bm-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 200;
}
.bm-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
}

/* Checkbox input resets */
.bm-page input[type="checkbox"],
.bm-page input[type="radio"] {
  width: auto !important;
  height: auto !important;
  margin: 0;
}

/* Focus rings */
.bm-page :focus-visible {
  outline: 2px solid var(--bm-navy);
  outline-offset: 2px;
}

/* Form select consistency */
.bm-page select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23667085' d='M8 10L3 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px !important;
}

/* Smooth page transitions */
.bm-content {
  animation: bm-fadein .25s ease;
}
@keyframes bm-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─ Invitations & Payments standalone page header ─ */
.bm-inv-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--bm-text);
  margin-bottom: 2px;
}
.bm-inv-page-sub {
  font-size: 13px;
  color: var(--bm-text-3);
}

/* ─ Tag chips on filter bar ─ */
.bm-filter-tag {
  cursor: pointer;
  transition: background .15s;
}
.bm-filter-tag:hover { background: var(--bm-border); }

/* ─ Inline stat delta ─ */
.bm-delta-up   { color: #10b981; font-size: 12px; font-weight: 600; }
.bm-delta-down { color: #dc2626; font-size: 12px; font-weight: 600; }

/* ─ Full-bleed table inside card ─ */
.bm-card--table { padding: 0; overflow: hidden; }
.bm-card--table .bm-card__title,
.bm-card--table .bm-card__subtitle { padding: 24px 28px 0; }
.bm-card--table .bm-filter-bar { padding: 0 28px 16px; }

/* ─ Print: hide sidebar/topbar ─ */
@media print {
  .bm-sidebar, .bm-topbar { display: none !important; }
  .bm-main { margin-left: 0 !important; }
  .bm-content { padding: 0 !important; }
}

/* ─ Responsive table scroll ─ */
@media (max-width: 900px) {
  .bm-table-wrap { overflow-x: auto; }
  .bm-stat-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   AUTH / LOGIN PAGE  (bm-auth-* classes)
═══════════════════════════════════════════════════ */

.bm-auth-wrap {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

/* Left hero panel */
.bm-auth-hero {
  flex: 0 0 45%;
  position: relative;
  background: linear-gradient(160deg, #04345D 0%, #0a5fa0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bm-auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.bm-auth-hero__overlay {
  position: relative;
  z-index: 1;
  padding: 48px;
  text-align: center;
  color: #fff;
}
.bm-auth-hero__logo {
  margin-bottom: 48px;
}
.bm-auth-hero__logo img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
}
.bm-auth-hero__heading {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.bm-auth-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}

/* Right form panel */
.bm-auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
  overflow-y: auto;
}
.bm-auth-form-wrap {
  width: 100%;
  max-width: 460px;
}

/* Tab switcher */
.bm-auth-tabs {
  display: flex;
  background: var(--bm-bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.bm-auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bm-text-3);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
}
.bm-auth-tab.active {
  background: #fff;
  color: var(--bm-navy);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.bm-auth-tab:hover:not(.active) {
  color: var(--bm-text);
}

/* Tab panels */
.bm-tab-panel          { display: none; }
.bm-tab-panel.active   { display: block; animation: bm-fadein .2s ease; }

.bm-auth-sub {
  font-size: 14px;
  color: var(--bm-text-3);
  margin-bottom: 20px;
}

/* Required asterisk */
.bm-req { color: #dc2626; }

/* Importance option buttons */
.bm-imp-opt {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--bm-border-2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bm-text-2);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.bm-imp-opt:hover {
  border-color: var(--bm-navy);
  color: var(--bm-navy);
}
.bm-imp-opt.active {
  background: var(--bm-navy);
  border-color: var(--bm-navy);
  color: #fff;
}

/* Error message */
.bm-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.bm-error-msg.visible,
.bm-error-msg[style*="display: block"] {
  display: block !important;
}

/* Success notice */
.bm-notice--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .bm-auth-wrap      { flex-direction: column; }
  .bm-auth-hero      { flex: none; min-height: 220px; }
  .bm-auth-hero__overlay { padding: 32px 24px; }
  .bm-auth-hero__heading { font-size: 26px; }
  .bm-auth-hero__logo    { margin-bottom: 20px; }
  .bm-auth-hero__logo img { max-width: 120px; }
}

/* Progress steps on client dashboard */
.bm-progress-track {
  height: 8px;
  background: var(--bm-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.bm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bm-navy), var(--bm-gold));
  border-radius: 4px;
  transition: width .5s ease;
}
.bm-steps-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.bm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
}
.bm-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bm-border);
  border: 2px solid var(--bm-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  margin-bottom: 6px;
  transition: all .3s;
}
.bm-step--done .bm-step__dot {
  background: #10b981;
  border-color: #10b981;
}
.bm-step__label {
  font-size: 11px;
  color: var(--bm-text-3);
  text-align: center;
  line-height: 1.3;
}
.bm-step--done .bm-step__label {
  color: var(--bm-text);
  font-weight: 500;
}

/* Photo grid for matched page */
.bm-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

/* Capacity grid */
.bm-capacity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bm-capacity-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.bm-capacity-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--bm-text-3);
}
.bm-capacity-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* bm-grid-3 */
.bm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .bm-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bm-grid-2, .bm-grid-3 { grid-template-columns: 1fr; } }
