/* ═══════════════════════════════════════════════════════════
   BMS CLIENT CSS — Theme-proof Edition
   ALL rules scoped to #bms-booking-wrap or #bms-portal-wrap
   Critical layout uses !important to beat theme overrides.
   Fonts loaded via wp_enqueue_style (no @import needed)
═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES (global, no scope needed) ─── */
:root {
  --bms-n0: #0f1929;
  --bms-n1: #182234;
  --bms-n2: #1e2d43;
  --bms-n3: #253352;
  --bms-g0: #c9a84c;
  --bms-g1: #dfc06a;
  --bms-g2: #a07c30;
  --bms-w:  #ffffff;
  --bms-s1: #f7f8fc;
  --bms-s2: #eef0f8;
  --bms-bd: #e0e4f0;
  --bms-mu: #6b7898;
  --bms-ok: #16a34a;
  --bms-er: #dc2626;
  --bms-wa: #d97706;
  --bms-bl: #2563eb;
  --bms-r0: 6px;
  --bms-r1: 10px;
  --bms-r2: 16px;
  --bms-r3: 22px;
  --bms-r4: 28px;
  --bms-sh1: 0 2px 12px rgba(15,25,41,.07);
  --bms-sh2: 0 6px 28px rgba(15,25,41,.12);
  --bms-sh3: 0 16px 56px rgba(15,25,41,.18);
  --bms-shg: 0 4px 20px rgba(201,168,76,.30);
  --bms-T:   all .22s cubic-bezier(.4,0,.2,1);
  --bms-ff:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bms-fd:  'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ═══════════════════════════════════════════
   HARD RESET — beats any theme
═══════════════════════════════════════════ */
#bms-booking-wrap,
#bms-portal-wrap {
  all: initial !important; /* nuclear reset */
  display: block !important;
  font-family: var(--bms-ff) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: var(--bms-n0) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  box-sizing: border-box !important;
}

/* Restore box-sizing for all children */
#bms-booking-wrap *,
#bms-portal-wrap * {
  box-sizing: border-box !important;
  font-family: inherit;
  line-height: inherit;
}

/* Reset headings */
#bms-booking-wrap h1, #bms-booking-wrap h2, #bms-booking-wrap h3,
#bms-booking-wrap h4, #bms-booking-wrap h5, #bms-booking-wrap h6,
#bms-portal-wrap h1, #bms-portal-wrap h2, #bms-portal-wrap h3,
#bms-portal-wrap h4, #bms-portal-wrap h5, #bms-portal-wrap h6 {
  font-family: var(--bms-fd) !important;
  color: var(--bms-n0) !important;
  font-weight: 900 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  border: none !important;
  background: none !important;
}

/* Reset paragraphs */
#bms-booking-wrap p,
#bms-portal-wrap p {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--bms-ff) !important;
}

/* Reset anchors */
#bms-booking-wrap a,
#bms-portal-wrap a {
  text-decoration: none !important;
  color: inherit !important;
  font-family: inherit !important;
}

/* Reset lists */
#bms-booking-wrap ul, #bms-booking-wrap ol,
#bms-portal-wrap ul, #bms-portal-wrap ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset images */
#bms-booking-wrap img,
#bms-portal-wrap img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border: none !important;
  vertical-align: top !important;
}

/* Reset inputs/textareas/selects/buttons */
#bms-booking-wrap input,
#bms-booking-wrap textarea,
#bms-booking-wrap select,
#bms-booking-wrap button,
#bms-portal-wrap input,
#bms-portal-wrap textarea,
#bms-portal-wrap select,
#bms-portal-wrap button {
  font-family: var(--bms-ff) !important;
  font-size: 15px !important;
  color: var(--bms-n0) !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════
   SCOPED BUTTONS — all use both wrappers
═══════════════════════════════════════════ */
#bms-booking-wrap .bms-btn,
#bms-portal-wrap  .bms-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 26px !important;
  border-radius: var(--bms-r0) !important;
  font-family: var(--bms-ff) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .25px !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  text-decoration: none !important;
  transition: var(--bms-T) !important;
  white-space: nowrap !important;
  position: relative !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-transform: none !important;
}
#bms-booking-wrap .bms-btn:active,
#bms-portal-wrap  .bms-btn:active { transform: scale(.97) !important; }

#bms-booking-wrap .bms-btn:disabled,
#bms-booking-wrap .bms-btn[disabled],
#bms-portal-wrap  .bms-btn:disabled,
#bms-portal-wrap  .bms-btn[disabled] {
  opacity: .5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

#bms-booking-wrap .bms-btn-primary,
#bms-portal-wrap  .bms-btn-primary {
  background: var(--bms-g0) !important;
  color: var(--bms-n0) !important;
  border-color: var(--bms-g0) !important;
  box-shadow: var(--bms-shg) !important;
}
#bms-booking-wrap .bms-btn-primary:hover,
#bms-portal-wrap  .bms-btn-primary:hover {
  background: var(--bms-g1) !important;
  border-color: var(--bms-g1) !important;
  transform: translateY(-1px) !important;
}

#bms-booking-wrap .bms-btn-secondary,
#bms-portal-wrap  .bms-btn-secondary {
  background: var(--bms-n0) !important;
  color: #fff !important;
  border-color: var(--bms-n0) !important;
}
#bms-booking-wrap .bms-btn-secondary:hover,
#bms-portal-wrap  .bms-btn-secondary:hover {
  background: var(--bms-n2) !important;
  border-color: var(--bms-n2) !important;
  transform: translateY(-1px) !important;
}

#bms-booking-wrap .bms-btn-ghost,
#bms-portal-wrap  .bms-btn-ghost {
  background: transparent !important;
  color: var(--bms-mu) !important;
  border-color: var(--bms-bd) !important;
}
#bms-booking-wrap .bms-btn-ghost:hover,
#bms-portal-wrap  .bms-btn-ghost:hover {
  background: var(--bms-s1) !important;
  color: var(--bms-n0) !important;
}

#bms-booking-wrap .bms-btn-danger,
#bms-portal-wrap  .bms-btn-danger {
  background: var(--bms-er) !important;
  color: #fff !important;
  border-color: var(--bms-er) !important;
}

#bms-booking-wrap .bms-btn-full,
#bms-portal-wrap  .bms-btn-full { width: 100% !important; }

#bms-booking-wrap .bms-btn-sm,
#bms-portal-wrap  .bms-btn-sm { padding: 8px 16px !important; font-size: 13px !important; }

/* ═══════════════════════════════════════════
   INPUTS
═══════════════════════════════════════════ */
#bms-booking-wrap .bms-form-group,
#bms-portal-wrap  .bms-form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin-bottom: 20px !important;
}
#bms-booking-wrap .bms-form-group label,
#bms-portal-wrap  .bms-form-group label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--bms-n0) !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  font-family: var(--bms-ff) !important;
  margin-bottom: 0 !important;
}

#bms-booking-wrap .bms-input,
#bms-portal-wrap  .bms-input {
  display: block !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid var(--bms-bd) !important;
  border-radius: var(--bms-r0) !important;
  font-family: var(--bms-ff) !important;
  font-size: 15px !important;
  color: var(--bms-n0) !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
  resize: vertical !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
}
#bms-booking-wrap .bms-input:focus,
#bms-portal-wrap  .bms-input:focus {
  border-color: var(--bms-g0) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.14) !important;
  outline: none !important;
}
#bms-booking-wrap .bms-input::placeholder,
#bms-portal-wrap  .bms-input::placeholder { color: #b2bbcc !important; }

#bms-booking-wrap .bms-form-row,
#bms-portal-wrap  .bms-form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
@media (max-width: 560px) {
  #bms-booking-wrap .bms-form-row,
  #bms-portal-wrap  .bms-form-row { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   NOTICES & MESSAGES
═══════════════════════════════════════════ */
#bms-booking-wrap .bms-form-msg,
#bms-portal-wrap  .bms-form-msg {
  padding: 12px 16px !important;
  border-radius: var(--bms-r0) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: none !important;
  margin-bottom: 16px !important;
  border: 1.5px solid transparent !important;
}
#bms-booking-wrap .bms-form-msg.success,
#bms-portal-wrap  .bms-form-msg.success {
  display: block !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}
#bms-booking-wrap .bms-form-msg.error,
#bms-portal-wrap  .bms-form-msg.error {
  display: block !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

#bms-booking-wrap .bms-global-notice {
  display: block !important;
  padding: 14px 18px !important;
  border-radius: var(--bms-r0) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 20px !important;
}
.bms-notice-success { background: #f0fdf4 !important; color: #15803d !important; border: 1.5px solid #86efac !important; }
.bms-notice-error   { background: #fef2f2 !important; color: #b91c1c !important; border: 1.5px solid #fca5a5 !important; }
.bms-notice-info    { background: #eff6ff !important; color: #1d4ed8 !important; border: 1.5px solid #93c5fd !important; }

/* ═══════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════ */
#bms-booking-wrap .bms-status-badge,
#bms-portal-wrap  .bms-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 11px !important;
  border-radius: 99px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
}
#bms-portal-wrap .bms-badge-pending     { background: #fef9c3 !important; color: #854d0e !important; }
#bms-portal-wrap .bms-badge-confirmed   { background: #dbeafe !important; color: #1e40af !important; }
#bms-portal-wrap .bms-badge-in_progress { background: #dcfce7 !important; color: #166534 !important; }
#bms-portal-wrap .bms-badge-completed   { background: #d1fae5 !important; color: #065f46 !important; }
#bms-portal-wrap .bms-badge-cancelled   { background: #fee2e2 !important; color: #991b1b !important; }

/* ═══════════════════════════════════════════
   PASSWORD
═══════════════════════════════════════════ */
#bms-booking-wrap .bms-pass-wrap,
#bms-portal-wrap  .bms-pass-wrap { position: relative !important; display: block !important; }

#bms-booking-wrap .bms-pass-wrap .bms-input,
#bms-portal-wrap  .bms-pass-wrap .bms-input { padding-right: 48px !important; }

#bms-booking-wrap .bms-toggle-pass,
#bms-portal-wrap  .bms-toggle-pass {
  position: absolute !important;
  right: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 17px !important;
  line-height: 1 !important;
  opacity: .45 !important;
  transition: opacity .15s !important;
  padding: 0 !important;
  color: var(--bms-n0) !important;
}
#bms-booking-wrap .bms-toggle-pass:hover,
#bms-portal-wrap  .bms-toggle-pass:hover { opacity: 1 !important; }

#bms-booking-wrap .bms-pass-strength,
#bms-portal-wrap  .bms-pass-strength {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
}
#bms-booking-wrap .bms-pass-bar,
#bms-portal-wrap  .bms-pass-bar {
  flex: 1 !important;
  height: 4px !important;
  background: var(--bms-bd) !important;
  border-radius: 99px !important;
  overflow: hidden !important;
}
#bms-booking-wrap .bms-pass-bar-fill,
#bms-portal-wrap  .bms-pass-bar-fill {
  height: 100% !important;
  width: 0 !important;
  border-radius: 99px !important;
  transition: var(--bms-T) !important;
}
#bms-booking-wrap .bms-pass-strength-label,
#bms-portal-wrap  .bms-pass-strength-label {
  font-size: 11px !important;
  color: var(--bms-mu) !important;
  min-width: 46px !important;
  font-weight: 600 !important;
}

#bms-booking-wrap .bms-check-row,
#bms-portal-wrap  .bms-check-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  font-size: 13px !important;
  color: var(--bms-mu) !important;
  line-height: 1.5 !important;
}
#bms-booking-wrap .bms-check-row input[type="checkbox"],
#bms-portal-wrap  .bms-check-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  accent-color: var(--bms-g0) !important;
  cursor: pointer !important;
}
#bms-booking-wrap .bms-check-row label,
#bms-portal-wrap  .bms-check-row label { cursor: pointer !important; color: var(--bms-mu) !important; }

#bms-portal-wrap .bms-text-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--bms-g2) !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-family: var(--bms-ff) !important;
  padding: 0 !important;
}
#bms-portal-wrap .bms-text-link:hover { text-decoration: underline !important; }
#bms-portal-wrap .bms-hint { font-size: 12px !important; color: var(--bms-mu) !important; }

/* ═══════════════════════════════════════════
   BOOKING WIZARD WRAPPER
═══════════════════════════════════════════ */
#bms-booking-wrap {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px 60px !important;
}

/* ─── PROGRESS BAR ─── */
#bms-booking-wrap .bms-progress-bar { margin-bottom: 44px !important; }

#bms-booking-wrap .bms-progress-track {
  height: 3px !important;
  background: var(--bms-bd) !important;
  border-radius: 99px !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  position: relative !important;
}
#bms-booking-wrap .bms-progress-fill,
#bms-booking-wrap #bms-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--bms-n2) 0%, var(--bms-g0) 100%) !important;
  border-radius: 99px !important;
  transition: width .55s cubic-bezier(.4,0,.2,1) !important;
  display: block !important;
}

#bms-booking-wrap .bms-steps-indicators {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  position: relative !important;
}
#bms-booking-wrap .bms-steps-indicators::before {
  content: '' !important;
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  right: 18px !important;
  height: 1px !important;
  background: var(--bms-bd) !important;
  z-index: 0 !important;
}

#bms-booking-wrap .bms-step-indicator {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
  z-index: 1 !important;
  flex: 1 !important;
}
#bms-booking-wrap .bms-step-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid var(--bms-bd) !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  transition: var(--bms-T) !important;
  box-shadow: var(--bms-sh1) !important;
}
#bms-booking-wrap .bms-step-indicator.active .bms-step-icon {
  background: var(--bms-g0) !important;
  border-color: var(--bms-g0) !important;
  box-shadow: 0 0 0 5px rgba(201,168,76,.18) !important;
}
#bms-booking-wrap .bms-step-indicator.done .bms-step-icon {
  background: var(--bms-n0) !important;
  border-color: var(--bms-n0) !important;
}
#bms-booking-wrap .bms-step-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--bms-mu) !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  text-align: center !important;
  font-family: var(--bms-ff) !important;
}
#bms-booking-wrap .bms-step-indicator.active .bms-step-label { color: var(--bms-g2) !important; }
#bms-booking-wrap .bms-step-indicator.done  .bms-step-label  { color: var(--bms-n0) !important; }
@media (max-width: 500px) { #bms-booking-wrap .bms-step-label { display: none !important; } }

/* ─── STEP ─── */
#bms-booking-wrap .bms-step { animation: bmsUp .3s cubic-bezier(.4,0,.2,1) both !important; }
#bms-booking-wrap .bms-steps-container { min-height: 380px !important; }

#bms-booking-wrap .bms-step-header { text-align: center !important; margin-bottom: 32px !important; }
#bms-booking-wrap .bms-step-header h2 { font-size: 28px !important; margin-bottom: 10px !important; }
#bms-booking-wrap .bms-step-header p { font-size: 15px !important; color: var(--bms-mu) !important; max-width: 500px !important; margin: 0 auto !important; }

#bms-booking-wrap .bms-step-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--bms-bd) !important;
}
#bms-booking-wrap .bms-step-actions .bms-btn:only-child { margin-left: auto !important; }

/* ─── STEP 1: SERVICES ─── */
#bms-booking-wrap .bms-services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 4px !important;
}
#bms-booking-wrap .bms-service-card {
  position: relative !important;
  border: 2px solid var(--bms-bd) !important;
  border-radius: var(--bms-r2) !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: var(--bms-T) !important;
  overflow: hidden !important;
  outline: none !important;
  box-shadow: var(--bms-sh1) !important;
  display: block !important;
}
#bms-booking-wrap .bms-service-card:hover {
  border-color: var(--bms-g1) !important;
  transform: translateY(-4px) !important;
  box-shadow: var(--bms-sh2) !important;
}
#bms-booking-wrap .bms-service-card.selected {
  border-color: var(--bms-g0) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.2), var(--bms-sh2) !important;
}
#bms-booking-wrap .bms-service-accent { height: 5px !important; width: 100% !important; display: block !important; }
#bms-booking-wrap .bms-service-body { padding: 22px 20px 20px !important; }
#bms-booking-wrap .bms-service-name { font-size: 19px !important; margin-bottom: 8px !important; display: block !important; }
#bms-booking-wrap .bms-service-desc { font-size: 13px !important; color: var(--bms-mu) !important; line-height: 1.6 !important; margin-bottom: 18px !important; display: block !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap .bms-service-meta { display: flex !important; align-items: center !important; justify-content: space-between !important; }
#bms-booking-wrap .bms-service-price { font-size: 26px !important; font-weight: 900 !important; color: var(--bms-n0) !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap .bms-service-duration {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  color: var(--bms-mu) !important;
  font-weight: 600 !important;
  background: var(--bms-s1) !important;
  padding: 5px 11px !important;
  border-radius: 99px !important;
}
#bms-booking-wrap .bms-service-check {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: var(--bms-g0) !important;
  color: var(--bms-n0) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--bms-shg) !important;
}
#bms-booking-wrap .bms-service-card.selected .bms-service-check { display: flex !important; }

/* ─── STEP 2: DATE & TIME ─── */
#bms-booking-wrap .bms-datetime-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
}
@media (max-width: 640px) {
  #bms-booking-wrap .bms-datetime-layout { grid-template-columns: 1fr !important; }
}
#bms-booking-wrap .bms-calendar-panel,
#bms-booking-wrap .bms-slots-panel {
  background: #fff !important;
  border: 1.5px solid var(--bms-bd) !important;
  border-radius: var(--bms-r1) !important;
  padding: 20px !important;
  box-shadow: var(--bms-sh1) !important;
}

/* Calendar (JS-built) */
#bms-booking-wrap .bms-mini-calendar { user-select: none !important; width: 100% !important; }
#bms-booking-wrap .bms-cal-nav-row { display: flex !important; align-items: center !important; justify-content: space-between !important; margin-bottom: 16px !important; }
#bms-booking-wrap .bms-cal-month-label { font-family: var(--bms-fd) !important; font-size: 15px !important; font-weight: 700 !important; color: var(--bms-n0) !important; }
#bms-booking-wrap .bms-cal-btn {
  width: 30px !important; height: 30px !important;
  border-radius: var(--bms-r0) !important;
  border: 1.5px solid var(--bms-bd) !important;
  background: var(--bms-s1) !important;
  cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 16px !important; color: var(--bms-n0) !important;
  transition: var(--bms-T) !important;
}
#bms-booking-wrap .bms-cal-btn:hover { background: var(--bms-g0) !important; border-color: var(--bms-g0) !important; }
#bms-booking-wrap .bms-cal-days-header { display: grid !important; grid-template-columns: repeat(7,1fr) !important; margin-bottom: 6px !important; }
#bms-booking-wrap .bms-cal-day-name { text-align: center !important; font-size: 10px !important; font-weight: 800 !important; color: var(--bms-mu) !important; text-transform: uppercase !important; letter-spacing: .4px !important; padding: 3px 0 !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap .bms-cal-days-grid { display: grid !important; grid-template-columns: repeat(7,1fr) !important; gap: 2px !important; }
#bms-booking-wrap .bms-cal-day {
  aspect-ratio: 1 !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  font-size: 12px !important;
  border-radius: var(--bms-r0) !important;
  cursor: pointer !important;
  transition: var(--bms-T) !important;
  gap: 2px !important;
  user-select: none !important;
  color: var(--bms-n0) !important;
  font-family: var(--bms-ff) !important;
}
#bms-booking-wrap .bms-cal-day:hover:not(.past):not(.off-day):not(.empty) { background: var(--bms-s1) !important; }
#bms-booking-wrap .bms-cal-day.today { font-weight: 800 !important; color: var(--bms-g2) !important; }
#bms-booking-wrap .bms-cal-day.selected { background: var(--bms-n0) !important; color: #fff !important; font-weight: 700 !important; }
#bms-booking-wrap .bms-cal-day.past,
#bms-booking-wrap .bms-cal-day.off-day { color: #c8ccd8 !important; cursor: not-allowed !important; }
#bms-booking-wrap .bms-cal-day.empty { cursor: default !important; }
#bms-booking-wrap .bms-cal-dot { width: 4px !important; height: 4px !important; border-radius: 50% !important; background: var(--bms-g0) !important; }
#bms-booking-wrap .bms-cal-day.selected .bms-cal-dot { background: rgba(255,255,255,.5) !important; }
#bms-booking-wrap .bms-cal-day.past .bms-cal-dot,
#bms-booking-wrap .bms-cal-day.off-day .bms-cal-dot { display: none !important; }

/* Slots */
#bms-booking-wrap .bms-slots-panel h4 { font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .6px !important; color: var(--bms-mu) !important; margin-bottom: 14px !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap #bms-slots-header h4 { font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--bms-n0) !important; font-family: var(--bms-fd) !important; }
#bms-booking-wrap .bms-slots-loading { 
  /* display controlled by JS - use none as default */
  flex-direction: column !important; align-items: center !important;
  gap: 12px !important; padding: 36px 0 !important; color: var(--bms-mu) !important; font-size: 13px !important; 
}
#bms-booking-wrap .bms-slots-loading[style*="display: block"],
#bms-booking-wrap .bms-slots-loading[style*="display:block"],
#bms-booking-wrap .bms-slots-loading[style*="display: flex"],
#bms-booking-wrap .bms-slots-loading[style*="display:flex"] { display: flex !important; }
#bms-booking-wrap .bms-spinner { width: 28px !important; height: 28px !important; border: 3px solid var(--bms-bd) !important; border-top-color: var(--bms-g0) !important; border-radius: 50% !important; animation: bmsSpin .65s linear infinite !important; }
#bms-booking-wrap .bms-slots-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; max-height: 290px !important; overflow-y: auto !important; padding-right: 2px !important; }
#bms-booking-wrap .bms-slot-btn { padding: 11px 8px !important; border: 1.5px solid var(--bms-bd) !important; border-radius: var(--bms-r0) !important; font-size: 12px !important; font-weight: 700 !important; cursor: pointer !important; background: #fff !important; text-align: center !important; transition: var(--bms-T) !important; font-family: var(--bms-ff) !important; color: var(--bms-n0) !important; }
#bms-booking-wrap .bms-slot-btn:hover:not(.taken) { border-color: var(--bms-g0) !important; background: #fffdf0 !important; }
#bms-booking-wrap .bms-slot-btn.selected { background: var(--bms-n0) !important; border-color: var(--bms-n0) !important; color: #fff !important; }
#bms-booking-wrap .bms-slot-btn.taken { opacity: .35 !important; cursor: not-allowed !important; text-decoration: line-through !important; }
#bms-booking-wrap .bms-slots-empty,
#bms-booking-wrap .bms-slots-placeholder { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 10px !important; padding: 28px 16px !important; color: var(--bms-mu) !important; text-align: center !important; font-size: 13px !important; min-height: 140px !important; }

/* ─── STEP 3: UPLOAD ─── */
#bms-booking-wrap .bms-upload-zone { border: 2px dashed var(--bms-bd) !important; border-radius: var(--bms-r2) !important; background: var(--bms-s1) !important; text-align: center !important; padding: 42px 24px !important; cursor: pointer !important; transition: var(--bms-T) !important; margin-bottom: 20px !important; }
#bms-booking-wrap .bms-upload-zone:hover,
#bms-booking-wrap .bms-upload-zone.drag-over { border-color: var(--bms-g0) !important; background: #fffdf0 !important; }
#bms-booking-wrap .bms-upload-prompt { display: flex !important; flex-direction: column !important; align-items: center !important; }
#bms-booking-wrap .bms-upload-prompt svg { opacity: .25; margin-bottom: 14px !important; }
#bms-booking-wrap .bms-upload-prompt p { font-size: 16px !important; font-weight: 700 !important; color: var(--bms-n0) !important; margin-bottom: 6px !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap .bms-upload-hint { font-size: 12px !important; color: var(--bms-mu) !important; margin-bottom: 20px !important; }
#bms-booking-wrap .bms-photo-previews { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(88px,1fr)) !important; gap: 10px !important; margin-bottom: 4px !important; }
#bms-booking-wrap .bms-photo-thumb-wrap { position: relative !important; aspect-ratio: 1 !important; border-radius: var(--bms-r0) !important; overflow: hidden !important; border: 1.5px solid var(--bms-bd) !important; }
#bms-booking-wrap .bms-photo-thumb-wrap img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#bms-booking-wrap .bms-photo-remove { position: absolute !important; top: 4px !important; right: 4px !important; width: 22px !important; height: 22px !important; border-radius: 50% !important; background: rgba(15,25,41,.78) !important; color: #fff !important; font-size: 11px !important; border: none !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; }

/* ─── STEP 4: ADDRESS ─── */
#bms-booking-wrap .bms-logged-in-note { display: flex !important; align-items: center !important; gap: 10px !important; padding: 13px 16px !important; background: #eff6ff !important; border: 1.5px solid #bfdbfe !important; border-radius: var(--bms-r0) !important; font-size: 13px !important; color: var(--bms-bl) !important; margin-bottom: 20px !important; }

/* ─── STEP 5: PAYMENT ─── */
#bms-booking-wrap .bms-booking-summary { background: var(--bms-n0) !important; background-image: radial-gradient(ellipse at 90% -10%, rgba(201,168,76,.2) 0%, transparent 55%) !important; border-radius: var(--bms-r1) !important; padding: 22px !important; margin-bottom: 24px !important; }
#bms-booking-wrap .bms-summary-row { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; gap: 16px !important; padding: 8px 0 !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
#bms-booking-wrap .bms-summary-row:last-child { border-bottom: none !important; }
#bms-booking-wrap .bms-summary-row span { font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .6px !important; color: rgba(255,255,255,.45) !important; flex-shrink: 0 !important; margin-top: 2px !important; }
#bms-booking-wrap .bms-summary-row strong { color: #fff !important; text-align: right !important; font-size: 14px !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap .bms-summary-total { margin-top: 6px !important; padding-top: 14px !important; border-top: 1px solid rgba(255,255,255,.15) !important; border-bottom: none !important; }
#bms-booking-wrap .bms-summary-total span { font-size: 13px !important; color: rgba(255,255,255,.6) !important; }
#bms-booking-wrap .bms-summary-total strong { color: var(--bms-g0) !important; font-size: 26px !important; font-weight: 900 !important; }

#bms-booking-wrap .bms-payment-methods { display: flex !important; border-bottom: 1.5px solid var(--bms-bd) !important; margin-bottom: 24px !important; overflow-x: auto !important; }
#bms-booking-wrap .bms-payment-tab { display: flex !important; align-items: center !important; gap: 8px !important; padding: 11px 22px !important; font-size: 13px !important; font-weight: 700 !important; background: none !important; border: none !important; cursor: pointer !important; color: var(--bms-mu) !important; border-bottom: 3px solid transparent !important; margin-bottom: -1.5px !important; transition: var(--bms-T) !important; font-family: var(--bms-ff) !important; white-space: nowrap !important; flex-shrink: 0 !important; }
#bms-booking-wrap .bms-payment-tab:hover { color: var(--bms-n0) !important; }
#bms-booking-wrap .bms-payment-tab.active { color: var(--bms-n0) !important; border-bottom-color: var(--bms-g0) !important; }
#bms-booking-wrap .bms-payment-panel { animation: bmsUp .2s cubic-bezier(.4,0,.2,1) !important; }
#bms-booking-wrap .bms-stripe-element { padding: 14px 16px !important; border: 1.5px solid var(--bms-bd) !important; border-radius: var(--bms-r0) !important; background: #fff !important; margin-bottom: 16px !important; min-height: 44px !important; }
#bms-booking-wrap .bms-payment-error { color: var(--bms-er) !important; font-size: 13px !important; margin-bottom: 14px !important; padding: 11px 14px !important; background: #fef2f2 !important; border-radius: var(--bms-r0) !important; border: 1.5px solid #fca5a5 !important; }
#bms-booking-wrap .bms-etransfer-info { background: var(--bms-s1) !important; border-radius: var(--bms-r1) !important; padding: 24px !important; margin-bottom: 18px !important; text-align: center !important; border: 1.5px solid var(--bms-bd) !important; }
#bms-booking-wrap .bms-etransfer-icon { font-size: 38px !important; margin-bottom: 12px !important; display: block !important; }
#bms-booking-wrap .bms-etransfer-info h4 { font-family: var(--bms-fd) !important; font-size: 18px !important; color: var(--bms-n0) !important; margin-bottom: 16px !important; }
#bms-booking-wrap .bms-etransfer-detail { display: flex !important; flex-direction: column !important; gap: 4px !important; background: #fff !important; border-radius: var(--bms-r0) !important; padding: 12px 16px !important; margin-bottom: 10px !important; text-align: left !important; border: 1px solid var(--bms-bd) !important; }
#bms-booking-wrap .bms-etransfer-detail span { font-size: 11px !important; color: var(--bms-mu) !important; text-transform: uppercase !important; letter-spacing: .5px !important; }
#bms-booking-wrap .bms-etransfer-detail strong { font-size: 16px !important; color: var(--bms-n0) !important; font-family: monospace !important; }
#bms-booking-wrap .bms-security-note { display: flex !important; align-items: center !important; gap: 7px !important; justify-content: center !important; font-size: 11px !important; color: var(--bms-mu) !important; margin-top: 18px !important; }

/* ─── STEP 6: CONFIRMATION ─── */
#bms-booking-wrap .bms-confirmation-screen { text-align: center !important; padding: 20px 0 8px !important; }
#bms-booking-wrap .bms-confirm-icon { width: 80px !important; height: 80px !important; border-radius: 50% !important; background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important; display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 auto 22px !important; color: var(--bms-ok) !important; }
#bms-booking-wrap .bms-confirmation-screen h2 { font-size: 32px !important; margin-bottom: 10px !important; }
#bms-booking-wrap .bms-confirmation-screen > p { font-size: 15px !important; color: var(--bms-mu) !important; margin-bottom: 28px !important; }
#bms-booking-wrap .bms-confirm-details { background: var(--bms-n0) !important; background-image: radial-gradient(ellipse at 90% -20%, rgba(201,168,76,.2) 0%, transparent 60%) !important; border-radius: var(--bms-r1) !important; padding: 24px !important; max-width: 440px !important; margin: 0 auto 28px !important; text-align: left !important; }
#bms-booking-wrap .bms-confirm-row { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; gap: 16px !important; padding: 9px 0 !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
#bms-booking-wrap .bms-confirm-row:first-child { padding-top: 0 !important; }
#bms-booking-wrap .bms-confirm-row:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
#bms-booking-wrap .bms-confirm-row span { font-size: 10px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .6px !important; color: rgba(255,255,255,.4) !important; flex-shrink: 0 !important; margin-top: 3px !important; }
#bms-booking-wrap .bms-confirm-row strong { color: var(--bms-g1) !important; text-align: right !important; font-size: 14px !important; font-family: var(--bms-ff) !important; }
#bms-booking-wrap .bms-confirm-note { font-size: 13px !important; color: var(--bms-mu) !important; max-width: 420px !important; margin: 0 auto 28px !important; line-height: 1.75 !important; font-family: var(--bms-ff) !important; }

/* ═══════════════════════════════════════════
   AUTH CARD
═══════════════════════════════════════════ */
#bms-portal-wrap .bms-auth-container {
  min-height: 70vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 16px !important;
}
#bms-portal-wrap .bms-auth-card {
  background: #fff !important;
  border-radius: var(--bms-r4) !important;
  box-shadow: var(--bms-sh3) !important;
  padding: 44px 40px !important;
  width: 100% !important;
  max-width: 460px !important;
  border: 1px solid var(--bms-bd) !important;
}
@media (max-width: 520px) {
  #bms-portal-wrap .bms-auth-card { padding: 30px 22px !important; border-radius: var(--bms-r3) !important; }
}

#bms-portal-wrap .bms-auth-tabs {
  display: flex !important;
  border-bottom: 2px solid var(--bms-bd) !important;
  margin-bottom: 34px !important;
}
#bms-portal-wrap .bms-auth-tab {
  flex: 1 !important;
  padding: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: none !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  cursor: pointer !important;
  color: var(--bms-mu) !important;
  transition: var(--bms-T) !important;
  font-family: var(--bms-ff) !important;
  text-align: center !important;
}
#bms-portal-wrap .bms-auth-tab:hover  { color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-auth-tab.active { color: var(--bms-n0) !important; border-bottom-color: var(--bms-g0) !important; }

#bms-portal-wrap .bms-auth-panel { display: none !important; }
#bms-portal-wrap .bms-auth-panel.active { display: block !important; animation: bmsUp .22s cubic-bezier(.4,0,.2,1) !important; }

#bms-portal-wrap .bms-auth-header { text-align: center !important; margin-bottom: 30px !important; }
#bms-portal-wrap .bms-auth-icon { font-size: 40px !important; display: block !important; margin-bottom: 12px !important; }
#bms-portal-wrap .bms-auth-header h2 { font-size: 26px !important; margin-bottom: 6px !important; }
#bms-portal-wrap .bms-auth-header p { font-size: 14px !important; color: var(--bms-mu) !important; font-family: var(--bms-ff) !important; }

#bms-portal-wrap .bms-auth-switch { text-align: center !important; font-size: 13px !important; color: var(--bms-mu) !important; margin-top: 20px !important; display: block !important; }
#bms-portal-wrap .bms-auth-switch a { color: var(--bms-g2) !important; font-weight: 700 !important; text-decoration: none !important; }
#bms-portal-wrap .bms-auth-switch a:hover { text-decoration: underline !important; }

/* ═══════════════════════════════════════════
   PORTAL LAYOUT
═══════════════════════════════════════════ */
#bms-portal-wrap .bms-portal {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  min-height: 82vh !important;
  border-radius: var(--bms-r4) !important;
  overflow: hidden !important;
  box-shadow: var(--bms-sh3) !important;
  border: 1px solid var(--bms-bd) !important;
  background: var(--bms-s1) !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-portal { grid-template-columns: 1fr !important; }
}

/* SIDEBAR */
#bms-portal-wrap .bms-portal-sidebar {
  background: var(--bms-n0) !important;
  background-image: radial-gradient(ellipse at 50% 0, rgba(201,168,76,.12) 0%, transparent 65%) !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
}
#bms-portal-wrap .bms-portal-user {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 26px 20px 22px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
#bms-portal-wrap .bms-portal-avatar {
  width: 44px !important; height: 44px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, var(--bms-g0), var(--bms-g1)) !important;
  color: var(--bms-n0) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.25) !important;
  font-family: var(--bms-ff) !important;
}
#bms-portal-wrap .bms-portal-userinfo { min-width: 0 !important; }
#bms-portal-wrap .bms-portal-userinfo strong { display: block !important; font-size: 14px !important; font-weight: 700 !important; color: #fff !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-portal-userinfo span  { display: block !important; font-size: 12px !important; color: rgba(255,255,255,.4) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-family: var(--bms-ff) !important; }

#bms-portal-wrap .bms-portal-nav { flex: 1 !important; padding: 16px 12px !important; display: flex !important; flex-direction: column !important; gap: 4px !important; }
#bms-portal-wrap .bms-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: var(--bms-r0) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.55) !important;
  text-decoration: none !important;
  transition: var(--bms-T) !important;
  cursor: pointer !important;
  border: 1.5px solid transparent !important;
  background: none !important;
  font-family: var(--bms-ff) !important;
  width: 100% !important;
  text-align: left !important;
  line-height: 1.3 !important;
}
#bms-portal-wrap .bms-nav-link:hover { background: rgba(255,255,255,.07) !important; color: rgba(255,255,255,.9) !important; }
#bms-portal-wrap .bms-nav-link.active { background: linear-gradient(135deg,rgba(201,168,76,.2),rgba(201,168,76,.06)) !important; border-color: rgba(201,168,76,.22) !important; color: var(--bms-g1) !important; }
#bms-portal-wrap .bms-nav-badge { margin-left: auto !important; background: var(--bms-g0) !important; color: var(--bms-n0) !important; font-size: 10px !important; font-weight: 800 !important; padding: 2px 7px !important; border-radius: 99px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-portal-sidebar-footer { padding: 14px 12px !important; border-top: 1px solid rgba(255,255,255,.07) !important; }
#bms-portal-wrap .bms-logout-link { display: flex !important; align-items: center !important; gap: 10px !important; padding: 10px 14px !important; font-size: 13px !important; color: rgba(255,255,255,.35) !important; text-decoration: none !important; border-radius: var(--bms-r0) !important; transition: var(--bms-T) !important; background: none !important; border: none !important; cursor: pointer !important; font-family: var(--bms-ff) !important; width: 100% !important; text-align: left !important; }
#bms-portal-wrap .bms-logout-link:hover { color: var(--bms-er) !important; background: rgba(220,38,38,.1) !important; }

/* Mobile header */
#bms-portal-wrap .bms-portal-mobile-header { display: none !important; align-items: center !important; gap: 14px !important; padding: 14px 18px !important; background: var(--bms-n0) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
#bms-portal-wrap .bms-sidebar-toggle { background: none !important; border: none !important; font-size: 22px !important; color: #fff !important; cursor: pointer !important; padding: 0 !important; line-height: 1 !important; }
#bms-portal-wrap .bms-portal-logo { font-family: var(--bms-fd) !important; font-size: 18px !important; color: var(--bms-g0) !important; }
@media (max-width: 900px) {
  #bms-portal-wrap .bms-portal-mobile-header { display: flex !important; }
  #bms-portal-wrap .bms-portal-sidebar { position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important; width: 280px !important; z-index: 9999 !important; transform: translateX(-100%) !important; transition: transform .3s cubic-bezier(.4,0,.2,1) !important; box-shadow: var(--bms-sh3) !important; }
  #bms-portal-wrap .bms-portal-sidebar.open { transform: translateX(0) !important; }
}

/* PORTAL MAIN */
#bms-portal-wrap .bms-portal-main { padding: 30px !important; overflow-y: auto !important; background: var(--bms-s1) !important; }
@media (max-width: 768px) { #bms-portal-wrap .bms-portal-main { padding: 18px 16px !important; } }

#bms-portal-wrap .bms-portal-section { display: none !important; }
#bms-portal-wrap .bms-portal-section.active { display: block !important; animation: bmsUp .26s cubic-bezier(.4,0,.2,1) !important; }

#bms-portal-wrap .bms-section-header { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; margin-bottom: 24px !important; flex-wrap: wrap !important; gap: 12px !important; }
#bms-portal-wrap .bms-section-header h2 { font-size: 26px !important; }
#bms-portal-wrap .bms-section-header p  { font-size: 14px !important; color: var(--bms-mu) !important; margin-top: 3px !important; font-family: var(--bms-ff) !important; }

/* STAT GRID */
#bms-portal-wrap .bms-stat-grid { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 14px !important; margin-bottom: 22px !important; }
@media (max-width: 560px) { #bms-portal-wrap .bms-stat-grid { grid-template-columns: 1fr 1fr !important; } }

#bms-portal-wrap .bms-stat-card { background: #fff !important; border-radius: var(--bms-r1) !important; padding: 18px 16px !important; display: flex !important; align-items: center !important; gap: 14px !important; box-shadow: var(--bms-sh1) !important; border: 1px solid var(--bms-bd) !important; transition: var(--bms-T) !important; }
#bms-portal-wrap .bms-stat-card:hover { transform: translateY(-2px) !important; box-shadow: var(--bms-sh2) !important; }
#bms-portal-wrap .bms-stat-card.accent { background: var(--bms-n0) !important; background-image: radial-gradient(ellipse at 90% 0, rgba(201,168,76,.2) 0%, transparent 60%) !important; border-color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-stat-card.accent .bms-stat-num   { color: var(--bms-g0) !important; }
#bms-portal-wrap .bms-stat-card.accent .bms-stat-label { color: rgba(255,255,255,.45) !important; }
#bms-portal-wrap .bms-stat-icon  { font-size: 26px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-stat-num   { display: block !important; font-size: 28px !important; font-weight: 900 !important; color: var(--bms-n0) !important; line-height: 1 !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-stat-label { display: block !important; font-size: 10px !important; font-weight: 700 !important; color: var(--bms-mu) !important; text-transform: uppercase !important; letter-spacing: .6px !important; margin-top: 4px !important; font-family: var(--bms-ff) !important; }

/* PORTAL CARDS */
#bms-portal-wrap .bms-portal-card { background: #fff !important; border-radius: var(--bms-r1) !important; padding: 22px !important; box-shadow: var(--bms-sh1) !important; border: 1px solid var(--bms-bd) !important; margin-bottom: 18px !important; }
#bms-portal-wrap .bms-portal-card h3 { font-size: 17px !important; margin-bottom: 18px !important; }
#bms-portal-wrap .bms-card-header { display: flex !important; align-items: center !important; justify-content: space-between !important; margin-bottom: 16px !important; }
#bms-portal-wrap .bms-card-header h3 { margin-bottom: 0 !important; }

/* BOOKING LIST */
#bms-portal-wrap .bms-booking-list { display: flex !important; flex-direction: column !important; gap: 10px !important; }
#bms-portal-wrap .bms-booking-item { display: flex !important; align-items: center !important; gap: 14px !important; padding: 14px !important; border-radius: var(--bms-r0) !important; border: 1.5px solid var(--bms-bd) !important; background: #fff !important; transition: var(--bms-T) !important; }
#bms-portal-wrap .bms-booking-item:hover { border-color: var(--bms-g1) !important; background: #fffdf5 !important; }
#bms-portal-wrap .bms-booking-item-icon { font-size: 22px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-booking-item-details { flex: 1 !important; min-width: 0 !important; }
#bms-portal-wrap .bms-booking-item-details strong { display: block !important; font-size: 14px !important; font-weight: 700 !important; color: var(--bms-n0) !important; margin-bottom: 3px !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-booking-item-details span   { display: block !important; font-size: 12px !important; color: var(--bms-mu) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-booking-item-meta { display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 5px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-booking-ref-tag { font-size: 11px !important; color: var(--bms-mu) !important; font-family: monospace !important; }

/* FILTER TABS */
#bms-portal-wrap .bms-filter-tabs { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; margin-bottom: 18px !important; }
#bms-portal-wrap .bms-filter-tab { padding: 7px 15px !important; font-size: 12px !important; font-weight: 700 !important; border-radius: 99px !important; border: 1.5px solid var(--bms-bd) !important; background: #fff !important; cursor: pointer !important; color: var(--bms-mu) !important; transition: var(--bms-T) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-filter-tab:hover  { border-color: var(--bms-n0) !important; color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-filter-tab.active { background: var(--bms-n0) !important; color: var(--bms-g0) !important; border-color: var(--bms-n0) !important; }

/* FULL BOOKING CARDS */
#bms-portal-wrap .bms-booking-cards { display: flex !important; flex-direction: column !important; gap: 16px !important; }
#bms-portal-wrap .bms-booking-card { background: #fff !important; border-radius: var(--bms-r1) !important; border: 1.5px solid var(--bms-bd) !important; box-shadow: var(--bms-sh1) !important; overflow: hidden !important; }
#bms-portal-wrap .bms-booking-card.hidden { display: none !important; }
#bms-portal-wrap .bms-booking-card-top { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 15px 20px !important; background: var(--bms-s2) !important; border-bottom: 1.5px solid var(--bms-bd) !important; }
#bms-portal-wrap .bms-booking-card-top h4 { font-size: 16px !important; margin-bottom: 3px !important; }
#bms-portal-wrap .bms-booking-card-body { padding: 18px 20px !important; }
#bms-portal-wrap .bms-booking-info-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px !important; margin-bottom: 14px !important; }
@media (max-width: 520px) { #bms-portal-wrap .bms-booking-info-grid { grid-template-columns: 1fr !important; } }
#bms-portal-wrap .bms-info-item { display: flex !important; flex-direction: column !important; gap: 4px !important; }
#bms-portal-wrap .bms-info-label { font-size: 10px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .6px !important; color: var(--bms-mu) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-info-value { font-size: 14px !important; color: var(--bms-n0) !important; font-weight: 500 !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-amount-value { font-size: 19px !important; font-weight: 900 !important; color: var(--bms-n0) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-booking-card-footer { padding: 12px 20px !important; border-top: 1.5px solid var(--bms-bd) !important; background: var(--bms-s1) !important; }
#bms-portal-wrap .bms-photos-strip { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; margin-top: 8px !important; }
#bms-portal-wrap .bms-photo-sm { width: 60px !important; height: 60px !important; border-radius: var(--bms-r0) !important; object-fit: cover !important; border: 1.5px solid var(--bms-bd) !important; display: block !important; }
#bms-portal-wrap .bms-photos-more { width: 60px !important; height: 60px !important; border-radius: var(--bms-r0) !important; background: var(--bms-s2) !important; border: 1.5px solid var(--bms-bd) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 12px !important; font-weight: 700 !important; color: var(--bms-mu) !important; }

/* EMPTY STATE */
#bms-portal-wrap .bms-empty-state { text-align: center !important; padding: 56px 24px !important; background: #fff !important; border-radius: var(--bms-r1) !important; border: 2px dashed var(--bms-bd) !important; }
#bms-portal-wrap .bms-empty-icon { font-size: 48px !important; margin-bottom: 14px !important; display: block !important; }
#bms-portal-wrap .bms-empty-state h3 { font-size: 22px !important; margin-bottom: 8px !important; }
#bms-portal-wrap .bms-empty-state p  { color: var(--bms-mu) !important; font-size: 15px !important; margin-bottom: 24px !important; font-family: var(--bms-ff) !important; }

/* PORTAL BOOKING EMBED */
#bms-portal-wrap .bms-portal-booking-wrap { background: #fff !important; border-radius: var(--bms-r1) !important; padding: 24px !important; box-shadow: var(--bms-sh1) !important; border: 1px solid var(--bms-bd) !important; }
#bms-portal-wrap .bms-portal-booking-wrap #bms-booking-wrap { padding: 0 !important; max-width: 100% !important; }

/* CANCEL MODAL */
/* Modal overlay — default HIDDEN. JS calls .show()/.fadeIn() to display.
   IMPORTANT: do NOT put display:flex !important here — it would override
   the inline style="display:none" set in PHP, causing it to always show. */
#bms-portal-wrap .bms-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,25,41,.6) !important;
  /* no blur on modal */
  /* display is controlled by jQuery .show()/.hide() — no !important override */
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
}
/* When jQuery .show() sets inline display:block, upgrade to flex via JS class */
#bms-portal-wrap .bms-modal-overlay[style*="display: flex"],
#bms-portal-wrap .bms-modal-overlay[style*="display:flex"],
#bms-portal-wrap .bms-modal-overlay[style*="display: block"],
#bms-portal-wrap .bms-modal-overlay[style*="display:block"] {
  display: flex !important;
  animation: bmsFade .2s ease !important;
}
#bms-portal-wrap .bms-modal { background: #fff !important; border-radius: var(--bms-r4) !important; padding: 42px 36px !important; max-width: 420px !important; width: 92% !important; text-align: center !important; box-shadow: var(--bms-sh3) !important; animation: bmsUp .26s cubic-bezier(.4,0,.2,1) !important; }
#bms-portal-wrap .bms-modal-icon { font-size: 48px !important; margin-bottom: 16px !important; display: block !important; }
#bms-portal-wrap .bms-modal h3 { font-size: 22px !important; margin-bottom: 10px !important; }
#bms-portal-wrap .bms-modal p { color: var(--bms-mu) !important; font-size: 15px !important; margin-bottom: 28px !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-modal-btns { display: flex !important; gap: 12px !important; justify-content: center !important; }

/* BEHAVIOURAL HELPERS */
#bms-portal-wrap  .bms-switch-section,
#bms-portal-wrap  .bms-switch-tab,
#bms-booking-wrap .bms-btn-next,
#bms-booking-wrap .bms-btn-prev,
#bms-portal-wrap  .bms-cancel-booking { cursor: pointer !important; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes bmsUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bmsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmsSpin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   PORTAL v2 — Full-screen App Shell
   New classes used in the redesigned template
════════════════════════════════════════════════════════════ */

/* ── AUTH SCREEN (split layout) ── */
#bms-portal-wrap .bms-auth-screen {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
}
@media (max-width: 860px) {
  #bms-portal-wrap .bms-auth-screen {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
  }
}

/* Left brand */
#bms-portal-wrap .bms-auth-brand {
  background: var(--bms-n0) !important;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,.18) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,.08) 0%, transparent 50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 60px 50px !important;
  position: relative !important;
  overflow: hidden !important;
}
@media (max-width: 860px) { #bms-portal-wrap .bms-auth-brand { padding: 48px 28px 32px !important; } }

#bms-portal-wrap .bms-auth-brand-inner { max-width: 380px !important; }

#bms-portal-wrap .bms-auth-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 56px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--bms-g0) !important;
  font-family: var(--bms-ff) !important;
}
#bms-portal-wrap .bms-logo-icon {
  width: 38px !important; height: 38px !important;
  background: var(--bms-g0) !important;
  border-radius: 10px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--bms-n0) !important;
  font-size: 18px !important;
  box-shadow: 0 4px 16px rgba(201,168,76,.4) !important;
}

#bms-portal-wrap .bms-auth-tagline h1 {
  font-family: var(--bms-fd) !important;
  font-size: 42px !important;
  line-height: 1.15 !important;
  color: #fff !important;
  margin-bottom: 18px !important;
}
@media (max-width: 860px) { #bms-portal-wrap .bms-auth-tagline h1 { font-size: 30px !important; } }
#bms-portal-wrap .bms-auth-tagline p {
  font-size: 15px !important;
  color: rgba(255,255,255,.55) !important;
  line-height: 1.7 !important;
  margin-bottom: 40px !important;
  font-family: var(--bms-ff) !important;
}

#bms-portal-wrap .bms-auth-features { display: flex !important; flex-direction: column !important; gap: 14px !important; }
#bms-portal-wrap .bms-auth-feat {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,.7) !important;
  font-family: var(--bms-ff) !important;
}
#bms-portal-wrap .bms-auth-feat span:first-child {
  font-size: 18px !important;
  width: 28px !important;
  flex-shrink: 0 !important;
}

/* Right form panel */
#bms-portal-wrap .bms-auth-form-panel {
  background: var(--bms-s1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 40px !important;
  overflow-y: auto !important;
}
@media (max-width: 860px) { #bms-portal-wrap .bms-auth-form-panel { padding: 32px 24px 60px !important; } }
#bms-portal-wrap .bms-auth-form-inner {
  width: 100% !important;
  max-width: 420px !important;
  background: #fff !important;
  border-radius: var(--bms-r4) !important;
  padding: 40px 36px !important;
  box-shadow: var(--bms-sh3) !important;
  border: 1px solid var(--bms-bd) !important;
}
@media (max-width: 480px) { #bms-portal-wrap .bms-auth-form-inner { padding: 28px 20px !important; border-radius: var(--bms-r3) !important; } }

/* ── APP SHELL ── */
#bms-portal-wrap .bms-app {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
  background: var(--bms-s1) !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-app { grid-template-columns: 1fr !important; }
}

/* SIDEBAR */
#bms-portal-wrap .bms-sidebar {
  background: var(--bms-n0) !important;
  background-image: linear-gradient(180deg, rgba(201,168,76,.06) 0%, transparent 40%) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  position: relative !important;
  z-index: 100 !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-sidebar {
    position: fixed !important;
    left: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 260px !important;
    transform: translateX(-100%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    z-index: 9998 !important;
    height: 100vh !important;
    box-shadow: var(--bms-sh3) !important;
  }
  #bms-portal-wrap .bms-sidebar.open { transform: none !important; }
}

#bms-portal-wrap .bms-sidebar-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,25,41,.45) !important;
  z-index: 9997 !important;
}
#bms-portal-wrap .bms-sidebar-overlay.visible { display: block !important; }

#bms-portal-wrap .bms-sidebar-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow-y: auto !important;
}

#bms-portal-wrap .bms-sidebar-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 24px 20px 20px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--bms-g0) !important;
  font-family: var(--bms-ff) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
#bms-portal-wrap .bms-sidebar-logo-icon {
  width: 32px !important; height: 32px !important;
  background: var(--bms-g0) !important;
  border-radius: 8px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--bms-n0) !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

#bms-portal-wrap .bms-sidebar-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
#bms-portal-wrap .bms-user-avatar {
  width: 38px !important; height: 38px !important;
  border-radius: 50% !important; flex-shrink: 0 !important;
  background: linear-gradient(135deg, var(--bms-g0), var(--bms-g1)) !important;
  color: var(--bms-n0) !important;
  font-size: 16px !important; font-weight: 900 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,.25) !important;
  font-family: var(--bms-ff) !important;
}
#bms-portal-wrap .bms-user-info { min-width: 0 !important; }
#bms-portal-wrap .bms-user-info strong { display: block !important; font-size: 13px !important; font-weight: 700 !important; color: #fff !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-user-info span   { display: block !important; font-size: 11px !important; color: rgba(255,255,255,.38) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-family: var(--bms-ff) !important; }

#bms-portal-wrap .bms-sidebar-nav { flex: 1 !important; padding: 14px 12px !important; display: flex !important; flex-direction: column !important; gap: 3px !important; }
#bms-portal-wrap .bms-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 11px 14px !important;
  border-radius: var(--bms-r0) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.5) !important;
  transition: var(--bms-T) !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  background: none !important;
  font-family: var(--bms-ff) !important;
  width: 100% !important;
  text-align: left !important;
  position: relative !important;
}
#bms-portal-wrap .bms-nav-item:hover { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.85) !important; }
#bms-portal-wrap .bms-nav-item.active { background: rgba(201,168,76,.14) !important; border-color: rgba(201,168,76,.2) !important; color: var(--bms-g1) !important; }
#bms-portal-wrap .bms-nav-item.bms-nav-book { color: var(--bms-g0) !important; }
#bms-portal-wrap .bms-nav-item.bms-nav-book:hover { background: rgba(201,168,76,.1) !important; }
#bms-portal-wrap .bms-nav-icon { display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-nav-badge { margin-left: auto !important; background: var(--bms-g0) !important; color: var(--bms-n0) !important; font-size: 10px !important; font-weight: 800 !important; padding: 2px 7px !important; border-radius: 99px !important; }
#bms-portal-wrap .bms-nav-item.active .bms-nav-badge { background: rgba(201,168,76,.3) !important; color: var(--bms-g1) !important; }

#bms-portal-wrap .bms-sidebar-footer { padding: 12px 12px 20px !important; border-top: 1px solid rgba(255,255,255,.06) !important; }
#bms-portal-wrap .bms-signout-btn {
  display: flex !important; align-items: center !important; gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: var(--bms-r0) !important; border: none !important;
  background: none !important; cursor: pointer !important;
  color: rgba(255,255,255,.3) !important; font-size: 13px !important; font-weight: 600 !important;
  font-family: var(--bms-ff) !important; width: 100% !important; text-align: left !important;
  transition: var(--bms-T) !important;
}
#bms-portal-wrap .bms-signout-btn:hover { color: var(--bms-er) !important; background: rgba(220,38,38,.08) !important; }

/* TOPBAR */
#bms-portal-wrap .bms-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 24px !important;
  height: 60px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--bms-bd) !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}
#bms-portal-wrap .bms-menu-btn {
  display: none !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: var(--bms-r0) !important;
  transition: var(--bms-T) !important;
}
#bms-portal-wrap .bms-menu-btn span { display: block !important; width: 20px !important; height: 2px !important; background: var(--bms-n0) !important; border-radius: 99px !important; transition: var(--bms-T) !important; }
#bms-portal-wrap .bms-menu-btn:hover { background: var(--bms-s2) !important; }
@media (max-width: 900px) { #bms-portal-wrap .bms-menu-btn { display: flex !important; } }

#bms-portal-wrap .bms-topbar-title { font-family: var(--bms-fd) !important; font-size: 18px !important; color: var(--bms-n0) !important; flex: 1 !important; }
#bms-portal-wrap .bms-topbar-actions { display: flex !important; gap: 10px !important; align-items: center !important; }

/* MAIN + CONTENT */
#bms-portal-wrap .bms-main {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: hidden !important;
}
@media (max-width: 900px) { #bms-portal-wrap .bms-main { height: 100vh !important; } }

#bms-portal-wrap .bms-content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 24px !important;
  padding-bottom: 24px !important;
  background: var(--bms-s1) !important;
}
@media (max-width: 768px) { #bms-portal-wrap .bms-content { padding: 16px !important; padding-bottom: 90px !important; } }

/* Sections */
#bms-portal-wrap .bms-section { display: none !important; animation: bmsUp .26s var(--ease) !important; }
#bms-portal-wrap .bms-section.active { display: block !important; }

/* NEXT BOOKING HERO CARD */
#bms-portal-wrap .bms-next-booking-card {
  background: var(--bms-n0) !important;
  background-image: radial-gradient(ellipse at 95% 0, rgba(201,168,76,.22) 0%, transparent 55%) !important;
  border-radius: var(--bms-r2) !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  border: 1px solid rgba(201,168,76,.15) !important;
}
#bms-portal-wrap .bms-next-booking-label {
  display: flex !important; align-items: center !important; gap: 7px !important;
  font-size: 11px !important; font-weight: 800 !important;
  text-transform: uppercase !important; letter-spacing: .7px !important;
  color: var(--bms-g0) !important; margin-bottom: 14px !important;
  font-family: var(--bms-ff) !important;
}
#bms-portal-wrap .bms-next-booking-service { font-family: var(--bms-fd) !important; font-size: 22px !important; color: #fff !important; margin-bottom: 8px !important; }
#bms-portal-wrap .bms-next-booking-datetime { font-size: 15px !important; color: rgba(255,255,255,.8) !important; font-weight: 600 !important; margin-bottom: 8px !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-next-booking-datetime span { color: rgba(255,255,255,.35) !important; margin: 0 6px !important; }
#bms-portal-wrap .bms-next-booking-address { display: flex !important; align-items: center !important; gap: 6px !important; font-size: 13px !important; color: rgba(255,255,255,.45) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-next-booking-meta { display: flex !important; align-items: center !important; gap: 12px !important; margin-top: 16px !important; padding-top: 14px !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
#bms-portal-wrap .bms-next-booking-ref { font-size: 12px !important; color: rgba(255,255,255,.3) !important; font-family: monospace !important; }

/* STATUS PILLS */
#bms-portal-wrap .bms-status-pill {
  display: inline-flex !important; align-items: center !important;
  padding: 4px 10px !important; border-radius: 99px !important;
  font-size: 10px !important; font-weight: 800 !important;
  text-transform: uppercase !important; letter-spacing: .6px !important;
  font-family: var(--bms-ff) !important;
}
#bms-portal-wrap .bms-status-pending    { background: rgba(251,191,36,.2) !important; color: #fbbf24 !important; }
#bms-portal-wrap .bms-status-confirmed  { background: rgba(96,165,250,.2) !important; color: #60a5fa !important; }
#bms-portal-wrap .bms-status-in_progress{ background: rgba(52,211,153,.2) !important; color: #34d399 !important; }
#bms-portal-wrap .bms-status-completed  { background: rgba(34,197,94,.2) !important; color: #22c55e !important; }
#bms-portal-wrap .bms-status-cancelled  { background: rgba(248,113,113,.2) !important; color: #f87171 !important; }
/* Light background versions (for white cards) */
#bms-portal-wrap .bms-bcard .bms-status-pending    { background: #fef9c3 !important; color: #854d0e !important; }
#bms-portal-wrap .bms-bcard .bms-status-confirmed  { background: #dbeafe !important; color: #1e40af !important; }
#bms-portal-wrap .bms-bcard .bms-status-in_progress{ background: #d1fae5 !important; color: #065f46 !important; }
#bms-portal-wrap .bms-bcard .bms-status-completed  { background: #dcfce7 !important; color: #166534 !important; }
#bms-portal-wrap .bms-bcard .bms-status-cancelled  { background: #fee2e2 !important; color: #991b1b !important; }

/* STATS ROW */
#bms-portal-wrap .bms-stats-row {
  display: grid !important; grid-template-columns: repeat(3,1fr) !important;
  gap: 14px !important; margin-bottom: 20px !important;
}
@media (max-width: 480px) { #bms-portal-wrap .bms-stats-row { grid-template-columns: 1fr 1fr !important; } }
#bms-portal-wrap .bms-stat-tile {
  background: #fff !important; border-radius: var(--bms-r1) !important;
  padding: 16px !important; display: flex !important; align-items: center !important; gap: 12px !important;
  box-shadow: var(--bms-sh1) !important; border: 1px solid var(--bms-bd) !important;
  transition: var(--bms-T) !important;
}
#bms-portal-wrap .bms-stat-tile:hover { transform: translateY(-2px) !important; box-shadow: var(--bms-sh2) !important; }
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent {
  background: var(--bms-n0) !important;
  background-image: radial-gradient(ellipse at 90% 0, rgba(201,168,76,.2) 0%, transparent 60%) !important;
  border-color: transparent !important;
}
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-num   { color: var(--bms-g0) !important; }
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-label { color: rgba(255,255,255,.4) !important; }
#bms-portal-wrap .bms-stat-tile-icon { width: 40px !important; height: 40px !important; border-radius: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; background: var(--bms-s2) !important; }
#bms-portal-wrap .bms-icon-gold  { background: rgba(201,168,76,.12) !important; color: var(--bms-g2) !important; }
#bms-portal-wrap .bms-icon-green { background: rgba(34,197,94,.12) !important; color: var(--bms-ok) !important; }
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-icon { background: rgba(201,168,76,.12) !important; color: var(--bms-g0) !important; }
#bms-portal-wrap .bms-stat-tile-body { min-width: 0 !important; }
#bms-portal-wrap .bms-stat-tile-num   { display: block !important; font-size: 26px !important; font-weight: 900 !important; color: var(--bms-n0) !important; line-height: 1 !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-stat-tile-label { display: block !important; font-size: 10px !important; font-weight: 700 !important; color: var(--bms-mu) !important; text-transform: uppercase !important; letter-spacing: .6px !important; margin-top: 4px !important; font-family: var(--bms-ff) !important; }

/* WIDGET */
#bms-portal-wrap .bms-widget { background: #fff !important; border-radius: var(--bms-r1) !important; border: 1px solid var(--bms-bd) !important; box-shadow: var(--bms-sh1) !important; overflow: hidden !important; margin-bottom: 18px !important; }
#bms-portal-wrap .bms-widget-header { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 16px 20px !important; border-bottom: 1px solid var(--bms-bd) !important; background: var(--bms-s2) !important; }
#bms-portal-wrap .bms-widget-header h3 { font-family: var(--bms-fd) !important; font-size: 15px !important; color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-widget-link { font-size: 12px !important; font-weight: 700 !important; color: var(--bms-g2) !important; background: none !important; border: none !important; cursor: pointer !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-widget-link:hover { text-decoration: underline !important; }
#bms-portal-wrap .bms-widget-body { padding: 20px !important; }

/* BOOKING FEED (dashboard list) */
#bms-portal-wrap .bms-booking-feed { display: flex !important; flex-direction: column !important; }
#bms-portal-wrap .bms-feed-item { display: flex !important; align-items: center !important; gap: 14px !important; padding: 13px 20px !important; border-bottom: 1px solid var(--bms-bd) !important; transition: var(--bms-T) !important; }
#bms-portal-wrap .bms-feed-item:last-child { border-bottom: none !important; }
#bms-portal-wrap .bms-feed-item:hover { background: var(--bms-s1) !important; }
#bms-portal-wrap .bms-feed-icon { font-size: 22px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-feed-body { flex: 1 !important; min-width: 0 !important; }
#bms-portal-wrap .bms-feed-body strong { display: block !important; font-size: 14px !important; font-weight: 700 !important; color: var(--bms-n0) !important; margin-bottom: 3px !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-feed-body span   { display: block !important; font-size: 12px !important; color: var(--bms-mu) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-feed-right { flex-shrink: 0 !important; }

/* BOOKING CARDS (bookings list) */
#bms-portal-wrap .bms-section-topbar { padding: 0 0 16px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 10px !important; }
#bms-portal-wrap .bms-filter-pills { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }
#bms-portal-wrap .bms-pill { display: flex !important; align-items: center !important; gap: 6px !important; padding: 7px 14px !important; border-radius: 99px !important; border: 1.5px solid var(--bms-bd) !important; background: #fff !important; font-size: 12px !important; font-weight: 700 !important; color: var(--bms-mu) !important; cursor: pointer !important; transition: var(--bms-T) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-pill:hover  { border-color: var(--bms-n0) !important; color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-pill.active { background: var(--bms-n0) !important; color: var(--bms-g0) !important; border-color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-pill span   { background: rgba(255,255,255,.15) !important; color: inherit !important; border-radius: 99px !important; padding: 1px 6px !important; font-size: 11px !important; }
#bms-portal-wrap .bms-pill.active span { background: rgba(201,168,76,.2) !important; }

#bms-portal-wrap .bms-booking-cards-list { display: flex !important; flex-direction: column !important; gap: 14px !important; }
#bms-portal-wrap .bms-bcard { background: #fff !important; border-radius: var(--bms-r1) !important; border: 1px solid var(--bms-bd) !important; box-shadow: var(--bms-sh1) !important; overflow: hidden !important; display: flex !important; transition: var(--bms-T) !important; }
#bms-portal-wrap .bms-bcard:hover { box-shadow: var(--bms-sh2) !important; transform: translateY(-1px) !important; }
#bms-portal-wrap .bms-bcard.hidden { display: none !important; }
#bms-portal-wrap .bms-bcard-stripe { width: 4px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-stripe-pending    { background: #fbbf24 !important; }
#bms-portal-wrap .bms-stripe-confirmed  { background: var(--bms-bl) !important; }
#bms-portal-wrap .bms-stripe-in_progress{ background: var(--bms-ok) !important; }
#bms-portal-wrap .bms-stripe-completed  { background: var(--bms-ok) !important; }
#bms-portal-wrap .bms-stripe-cancelled  { background: var(--bms-er) !important; }
#bms-portal-wrap .bms-bcard-body { flex: 1 !important; padding: 16px 18px !important; min-width: 0 !important; }
#bms-portal-wrap .bms-bcard-header { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; gap: 12px !important; margin-bottom: 12px !important; }
#bms-portal-wrap .bms-bcard-service { font-family: var(--bms-fd) !important; font-size: 16px !important; color: var(--bms-n0) !important; margin-bottom: 3px !important; }
#bms-portal-wrap .bms-bcard-ref { font-size: 11px !important; color: var(--bms-mu) !important; font-family: monospace !important; }
#bms-portal-wrap .bms-bcard-details { display: flex !important; flex-direction: column !important; gap: 7px !important; margin-bottom: 14px !important; }
#bms-portal-wrap .bms-bcard-detail { display: flex !important; align-items: flex-start !important; gap: 8px !important; font-size: 13px !important; color: var(--bms-mu) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-bcard-detail svg { flex-shrink: 0 !important; margin-top: 1px !important; color: var(--bms-mu) !important; }
#bms-portal-wrap .bms-bcard-photos { display: flex !important; gap: 7px !important; flex-wrap: wrap !important; margin-bottom: 14px !important; }
#bms-portal-wrap .bms-bcard-photo { width: 56px !important; height: 56px !important; border-radius: var(--bms-r0) !important; object-fit: cover !important; border: 1.5px solid var(--bms-bd) !important; }
#bms-portal-wrap .bms-bcard-photos-more { width: 56px !important; height: 56px !important; border-radius: var(--bms-r0) !important; background: var(--bms-s2) !important; border: 1.5px solid var(--bms-bd) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 12px !important; font-weight: 700 !important; color: var(--bms-mu) !important; }
#bms-portal-wrap .bms-bcard-footer { display: flex !important; align-items: center !important; justify-content: space-between !important; padding-top: 12px !important; border-top: 1px solid var(--bms-bd) !important; }
#bms-portal-wrap .bms-bcard-amount { font-size: 18px !important; font-weight: 900 !important; color: var(--bms-n0) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-cancel-btn { padding: 6px 14px !important; border-radius: 99px !important; border: 1.5px solid var(--bms-er) !important; background: none !important; color: var(--bms-er) !important; font-size: 12px !important; font-weight: 700 !important; cursor: pointer !important; font-family: var(--bms-ff) !important; transition: var(--bms-T) !important; }
#bms-portal-wrap .bms-cancel-btn:hover { background: var(--bms-er) !important; color: #fff !important; }
#bms-portal-wrap .bms-pay-paid    { color: var(--bms-ok) !important; font-weight: 700 !important; }
#bms-portal-wrap .bms-pay-pending { color: var(--bms-wa) !important; font-weight: 700 !important; }
#bms-portal-wrap .bms-pay-failed  { color: var(--bms-er) !important; font-weight: 700 !important; }

/* EMPTY HERO */
#bms-portal-wrap .bms-empty-hero { text-align: center !important; padding: 64px 24px !important; background: #fff !important; border-radius: var(--bms-r2) !important; border: 2px dashed var(--bms-bd) !important; }
#bms-portal-wrap .bms-empty-hero-icon { font-size: 52px !important; margin-bottom: 16px !important; display: block !important; }
#bms-portal-wrap .bms-empty-hero h3 { font-family: var(--bms-fd) !important; font-size: 22px !important; color: var(--bms-n0) !important; margin-bottom: 8px !important; }
#bms-portal-wrap .bms-empty-hero p  { font-size: 15px !important; color: var(--bms-mu) !important; margin-bottom: 24px !important; font-family: var(--bms-ff) !important; max-width: 380px !important; margin-left: auto !important; margin-right: auto !important; }

/* BOOKING EMBED */
#bms-portal-wrap .bms-booking-embed { background: #fff !important; border-radius: var(--bms-r2) !important; padding: 24px !important; box-shadow: var(--bms-sh1) !important; border: 1px solid var(--bms-bd) !important; }
#bms-portal-wrap .bms-booking-embed #bms-booking-wrap { padding: 0 !important; max-width: 100% !important; }

/* PROFILE GRID */
#bms-portal-wrap .bms-profile-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
@media (max-width: 768px) { #bms-portal-wrap .bms-profile-grid { grid-template-columns: 1fr !important; } }

/* TOGGLE SWITCH */
#bms-portal-wrap .bms-prefs { display: flex !important; flex-direction: column !important; gap: 0 !important; margin-bottom: 20px !important; border: 1px solid var(--bms-bd) !important; border-radius: var(--bms-r0) !important; overflow: hidden !important; }
#bms-portal-wrap .bms-pref-item { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 14px 16px !important; border-bottom: 1px solid var(--bms-bd) !important; gap: 14px !important; }
#bms-portal-wrap .bms-pref-item:last-child { border-bottom: none !important; }
#bms-portal-wrap .bms-pref-label { display: flex !important; align-items: center !important; gap: 12px !important; }
#bms-portal-wrap .bms-pref-label > span:first-child { font-size: 20px !important; }
#bms-portal-wrap .bms-pref-label > div strong { display: block !important; font-size: 13px !important; font-weight: 700 !important; color: var(--bms-n0) !important; font-family: var(--bms-ff) !important; }
#bms-portal-wrap .bms-pref-label > div span   { display: block !important; font-size: 12px !important; color: var(--bms-mu) !important; font-family: var(--bms-ff) !important; }

#bms-portal-wrap .bms-toggle-switch { position: relative !important; display: inline-block !important; width: 42px !important; height: 24px !important; flex-shrink: 0 !important; }
#bms-portal-wrap .bms-toggle-switch input { opacity: 0 !important; width: 0 !important; height: 0 !important; }
#bms-portal-wrap .bms-toggle-knob {
  position: absolute !important; cursor: pointer !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: var(--bms-bd) !important;
  border-radius: 24px !important;
  transition: .25s !important;
}
#bms-portal-wrap .bms-toggle-knob::before {
  content: '' !important; position: absolute !important;
  height: 18px !important; width: 18px !important;
  left: 3px !important; bottom: 3px !important;
  background: #fff !important; border-radius: 50% !important;
  transition: .25s !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
}
#bms-portal-wrap .bms-toggle-switch input:checked + .bms-toggle-knob { background: var(--bms-g0) !important; }
#bms-portal-wrap .bms-toggle-switch input:checked + .bms-toggle-knob::before { transform: translateX(18px) !important; }

/* BOTTOM NAV (mobile) */
#bms-portal-wrap .bms-bottom-nav {
  display: none !important;
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 68px !important;
  background: #fff !important;
  border-top: 1px solid var(--bms-bd) !important;
  z-index: 200 !important;
  padding: 0 4px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -4px 20px rgba(15,25,41,.08) !important;
}
@media (max-width: 900px) { #bms-portal-wrap .bms-bottom-nav { display: flex !important; } }
#bms-portal-wrap .bms-bottom-tab {
  flex: 1 !important;
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  gap: 4px !important;
  background: none !important; border: none !important; cursor: pointer !important;
  color: var(--bms-mu) !important;
  font-size: 10px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .4px !important;
  font-family: var(--bms-ff) !important;
  transition: var(--bms-T) !important;
  position: relative !important;
  padding: 8px 4px !important;
}
#bms-portal-wrap .bms-bottom-tab.active { color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-bottom-tab.active svg { stroke: var(--bms-g0) !important; }
#bms-portal-wrap .bms-bottom-tab.bms-bottom-book {
  color: var(--bms-n0) !important;
}
#bms-portal-wrap .bms-bottom-tab.bms-bottom-book svg {
  width: 40px !important; height: 40px !important;
  background: var(--bms-g0) !important;
  border-radius: 50% !important;
  padding: 8px !important;
  color: var(--bms-n0) !important;
  stroke: var(--bms-n0) !important;
  box-shadow: var(--bms-shg) !important;
  margin-bottom: -4px !important;
  margin-top: -6px !important;
}
#bms-portal-wrap .bms-bottom-badge {
  position: absolute !important;
  top: 6px !important; right: calc(50% - 18px) !important;
  background: var(--bms-er) !important; color: #fff !important;
  font-size: 9px !important; font-weight: 800 !important;
  padding: 2px 5px !important; border-radius: 99px !important;
  line-height: 1 !important;
}

/* ════════════════════════════════════════════════════════════
   COMPREHENSIVE FIXES v5
   — No blur on sidebar overlay
   — No page/layout shift on mobile or desktop
   — Clean hamburger → X animation
   — Stable viewport lock
════════════════════════════════════════════════════════════ */

/* ── 1. Fullscreen portal: prevent ANY scroll/shift outside the app ── */
body.bms-portal-page {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
  position: fixed !important; /* prevents iOS rubber-band scroll shifting layout */
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
}
html.bms-fullscreen-html {
  overflow: hidden !important;
  height: 100% !important;
}

/* ── 2. Portal wrap — completely fills viewport, nothing bleeds ── */
#bms-portal-wrap {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99990 !important;
  overflow: hidden !important;
  background: var(--bms-n0) !important;
}

/* ── 3. App grid — stable, no shift ── */
#bms-portal-wrap .bms-app {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  height: 100dvh !important; /* dynamic viewport height - handles mobile browser bars */
  width: 100vw !important;
  overflow: hidden !important;
  background: var(--bms-s1) !important;
  position: relative !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-app {
    grid-template-columns: 1fr !important; /* sidebar is fixed overlay, not grid column */
    height: 100dvh !important;
  }
}

/* ── 4. Sidebar — desktop fixed in grid, mobile true overlay (no shift) ── */
#bms-portal-wrap .bms-sidebar {
  background: var(--bms-n0) !important;
  background-image: linear-gradient(180deg, rgba(201,168,76,.06) 0%, transparent 40%) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important; /* in-grid on desktop */
  z-index: 100 !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-sidebar {
    position: fixed !important; /* overlay - does NOT push content */
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 260px !important;
    height: 100dvh !important;
    z-index: 9998 !important;
    transform: translateX(-100%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    box-shadow: 4px 0 32px rgba(15,25,41,.25) !important;
  }
  #bms-portal-wrap .bms-sidebar.open {
    transform: translateX(0) !important;
  }
}

/* ── 5. Overlay — no blur, just darkness ── */
#bms-portal-wrap .bms-sidebar-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,25,41,.45) !important;
  z-index: 9997 !important;
  /* NO backdrop-filter */
}
#bms-portal-wrap .bms-sidebar-overlay.visible { display: block !important; }

/* ── 6. Main — fills remaining space, never overflows ── */
#bms-portal-wrap .bms-main {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  overflow: hidden !important;
  min-width: 0 !important; /* prevents grid blowout */
}

/* ── 7. Topbar — fixed height, no layout shift ── */
#bms-portal-wrap .bms-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 20px !important;
  height: 58px !important;
  min-height: 58px !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--bms-bd) !important;
  position: relative !important; /* NOT sticky - prevents shift */
  z-index: 50 !important;
  width: 100% !important;
}

/* ── 8. Content scroll area ── */
#bms-portal-wrap .bms-content {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 22px !important;
  background: var(--bms-s1) !important;
  height: 0 !important; /* flex child needs explicit height=0 to scroll properly */
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-content {
    padding: 16px 14px !important;
    padding-bottom: 80px !important; /* space for bottom nav */
  }
}

/* ── 9. Bottom nav — fixed, no layout impact ── */
#bms-portal-wrap .bms-bottom-nav {
  display: none !important;
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 62px !important;
  background: #fff !important;
  border-top: 1px solid var(--bms-bd) !important;
  z-index: 200 !important;
  align-items: stretch !important;
  box-shadow: 0 -2px 16px rgba(15,25,41,.06) !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
}
@media (max-width: 900px) { #bms-portal-wrap .bms-bottom-nav { display: flex !important; } }

/* ── 10. Hamburger button — clean, NO background blur ── */
#bms-portal-wrap .bms-menu-btn {
  display: none !important;
  width: 36px !important; height: 36px !important;
  border-radius: var(--bms-r0) !important;
  background: transparent !important;
  border: 1px solid var(--bms-bd) !important;
  cursor: pointer !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  transition: background .15s !important;
}
#bms-portal-wrap .bms-menu-btn:hover { background: var(--bms-s2) !important; }
#bms-portal-wrap .bms-menu-btn span {
  display: block !important;
  width: 16px !important; height: 2px !important;
  background: var(--bms-n0) !important;
  border-radius: 99px !important;
  transition: var(--bms-T) !important;
  transform-origin: center !important;
}
/* Hamburger → X animation when sidebar open */
#bms-portal-wrap .bms-menu-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
#bms-portal-wrap .bms-menu-btn.is-open span:nth-child(2) {
  opacity: 0 !important; transform: scaleX(0) !important;
}
#bms-portal-wrap .bms-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}
@media (max-width: 900px) { #bms-portal-wrap .bms-menu-btn { display: flex !important; } }

/* ── 11. Auth screen — viewport stable ── */
#bms-portal-wrap .bms-auth-screen {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  height: 100dvh !important;
  width: 100% !important;
  overflow: hidden !important;
}
@media (max-width: 860px) {
  #bms-portal-wrap .bms-auth-screen {
    grid-template-columns: 1fr !important;
    height: 100dvh !important;
    overflow-y: auto !important;
  }
  #bms-portal-wrap .bms-auth-brand { min-height: 220px !important; }
}
@media (max-width: 480px) {
  #bms-portal-wrap .bms-auth-brand { display: none !important; } /* hide brand on very small screens */
  #bms-portal-wrap .bms-auth-form-panel { height: 100dvh !important; overflow-y: auto !important; }
}

/* ── 12. Next booking card — responsive ── */
#bms-portal-wrap .bms-next-booking-body {
  flex: 1 !important; min-width: 0 !important;
}
#bms-portal-wrap .bms-next-booking-meta {
  display: flex !important; align-items: center !important; gap: 12px !important;
  margin-top: 16px !important; padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important; flex-wrap: wrap !important;
}

/* ── 13. Stats row — 3 cols desktop, 2 cols tablet, wrap on tiny ── */
#bms-portal-wrap .bms-stats-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}
@media (max-width: 520px) {
  #bms-portal-wrap .bms-stats-row { grid-template-columns: 1fr 1fr !important; }
  #bms-portal-wrap .bms-stats-row .bms-stat-tile:nth-child(3) { grid-column: span 2 !important; }
}

/* ── 14. Booking cards list — proper gap, no overflow ── */
#bms-portal-wrap .bms-booking-cards-list { display: flex !important; flex-direction: column !important; gap: 12px !important; }
#bms-portal-wrap .bms-bcard {
  background: #fff !important;
  border-radius: var(--bms-r1) !important;
  border: 1px solid var(--bms-bd) !important;
  box-shadow: var(--bms-sh1) !important;
  display: flex !important;
  overflow: hidden !important;
  transition: box-shadow .18s, transform .18s !important;
}
#bms-portal-wrap .bms-bcard:hover { box-shadow: var(--bms-sh2) !important; }
/* Disable hover lift on mobile (touch) */
@media (hover: none) { #bms-portal-wrap .bms-bcard:hover { transform: none !important; } }

/* ── 15. Profile grid — 2col → 1col ── */
#bms-portal-wrap .bms-profile-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: start !important;
}
@media (max-width: 768px) { #bms-portal-wrap .bms-profile-grid { grid-template-columns: 1fr !important; } }

/* ── 16. Bottom tab icons/labels — clean ── */
#bms-portal-wrap .bms-bottom-tab {
  flex: 1 !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  gap: 3px !important;
  background: none !important; border: none !important;
  cursor: pointer !important;
  color: #b0bac8 !important;
  font-size: 10px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .5px !important;
  font-family: var(--bms-ff) !important;
  transition: color .15s !important;
  padding: 6px 2px !important;
  position: relative !important;
}
#bms-portal-wrap .bms-bottom-tab svg { transition: stroke .15s !important; }
#bms-portal-wrap .bms-bottom-tab.active { color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-bottom-tab.active svg { stroke: var(--bms-g0) !important; }
/* Book button — raised gold circle */
#bms-portal-wrap .bms-bottom-tab.bms-bottom-book { color: var(--bms-n0) !important; }
#bms-portal-wrap .bms-bottom-tab.bms-bottom-book svg {
  width: 38px !important; height: 38px !important;
  background: var(--bms-g0) !important;
  border-radius: 50% !important;
  padding: 9px !important;
  stroke: var(--bms-n0) !important;
  box-shadow: 0 3px 12px rgba(201,168,76,.4) !important;
  margin-top: -10px !important;
}

/* ── 17. Section transitions — smooth, no shift ── */
#bms-portal-wrap .bms-section {
  display: none !important;
}
#bms-portal-wrap .bms-section.active {
  display: block !important;
  animation: bmsUp .24s cubic-bezier(.4,0,.2,1) both !important;
}

/* ── 18. Widget + card responsive padding ── */
@media (max-width: 480px) {
  #bms-portal-wrap .bms-widget-header,
  #bms-portal-wrap .bms-widget-body { padding: 14px !important; }
  #bms-portal-wrap .bms-bcard-body { padding: 13px !important; }
  #bms-portal-wrap .bms-next-booking-card { padding: 16px !important; }
}

/* ── 19. Booking embed inside portal — full width, no padding ── */
#bms-portal-wrap .bms-booking-embed {
  background: #fff !important;
  border-radius: var(--bms-r1) !important;
  padding: 20px !important;
  box-shadow: var(--bms-sh1) !important;
  border: 1px solid var(--bms-bd) !important;
}
#bms-portal-wrap .bms-booking-embed #bms-booking-wrap { padding: 0 !important; max-width: 100% !important; }

/* ── 20. Topbar title — truncate on small screens ── */
#bms-portal-wrap .bms-topbar-title {
  font-family: var(--bms-fd) !important;
  font-size: 17px !important;
  color: var(--bms-n0) !important;
  flex: 1 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#bms-portal-wrap .bms-topbar-actions { flex-shrink: 0 !important; }

/* ── 21. Sidebar inner scroll ── */
#bms-portal-wrap .bms-sidebar-inner {
  display: flex !important; flex-direction: column !important;
  height: 100% !important; overflow-y: auto !important; overflow-x: hidden !important;
}

/* ── 22. Nav item — no text wrap ── */
#bms-portal-wrap .bms-nav-item {
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}

/* ── 23. Fix form inputs on mobile ── */
@media (max-width: 480px) {
  #bms-booking-wrap { padding: 0 14px 50px !important; }
  #bms-booking-wrap .bms-services-grid { grid-template-columns: 1fr !important; }
  #bms-booking-wrap .bms-datetime-layout { grid-template-columns: 1fr !important; }
  #bms-booking-wrap .bms-step-header h2 { font-size: 22px !important; }
  #bms-booking-wrap .bms-booking-summary { padding: 16px !important; }
  #bms-booking-wrap .bms-summary-total strong { font-size: 20px !important; }
}

/* ── 24. Prevent iOS zoom on inputs ── */
#bms-booking-wrap input,
#bms-booking-wrap select,
#bms-booking-wrap textarea,
#bms-portal-wrap  input,
#bms-portal-wrap  select,
#bms-portal-wrap  textarea {
  font-size: max(16px, 1em) !important; /* iOS doesn't zoom if font-size >= 16px */
}

/* ── 25. Filter pills — scroll horizontally on mobile ── */
#bms-portal-wrap .bms-filter-pills {
  display: flex !important; gap: 8px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
}
#bms-portal-wrap .bms-filter-pills::-webkit-scrollbar { display: none !important; }
#bms-portal-wrap .bms-pill { flex-shrink: 0 !important; }

/* ── 26. Feed items — don't wrap on small screens ── */
#bms-portal-wrap .bms-feed-right { flex-shrink: 0 !important; }

/* ── 27. Empty hero — contained ── */
#bms-portal-wrap .bms-empty-hero { margin: 0 !important; }

/* ── 28. Ensure modal overlay doesn't blur anything ── */
#bms-portal-wrap .bms-modal-overlay {
  position: fixed !important; inset: 0 !important;
  background: rgba(15,25,41,.55) !important;
  display: none;
  align-items: center !important; justify-content: center !important;
  z-index: 99999 !important;
  /* NO backdrop-filter */
}
#bms-portal-wrap .bms-modal-overlay[style*="display: flex"],
#bms-portal-wrap .bms-modal-overlay[style*="display:flex"],
#bms-portal-wrap .bms-modal-overlay[style*="display: block"],
#bms-portal-wrap .bms-modal-overlay[style*="display:block"] {
  display: flex !important;
  animation: bmsFade .2s ease !important;
}

/* ════════════════════════════════════════════════════════════
   FONT OVERRIDE — Use website's own theme font
   Remove DM Sans / Playfair Display, inherit from theme.
   Only bold/weight adjustments kept.
════════════════════════════════════════════════════════════ */

/* Reset font variables to inherit from theme */
:root {
  --bms-ff: inherit;  /* use whatever font the WordPress theme uses */
  --bms-fd: inherit;  /* headings also inherit */
}

/* Override all our font-family declarations to inherit */
#bms-booking-wrap,
#bms-portal-wrap {
  font-family: inherit !important;
}
#bms-booking-wrap *,
#bms-portal-wrap * {
  font-family: inherit !important; /* let everything fall through to theme font */
}

/* Headings — keep bold weight, inherit family */
#bms-booking-wrap h1, #bms-booking-wrap h2, #bms-booking-wrap h3,
#bms-booking-wrap h4, #bms-booking-wrap h5,
#bms-portal-wrap h1, #bms-portal-wrap h2, #bms-portal-wrap h3,
#bms-portal-wrap h4, #bms-portal-wrap h5 {
  font-family: inherit !important;
  font-weight: 800 !important;
}

/* Buttons + inputs — inherit too */
#bms-booking-wrap button, #bms-booking-wrap input,
#bms-booking-wrap textarea, #bms-booking-wrap select,
#bms-portal-wrap button, #bms-portal-wrap input,
#bms-portal-wrap textarea, #bms-portal-wrap select {
  font-family: inherit !important;
}

/* Sidebar logo / branding — slightly bolder */
#bms-portal-wrap .bms-sidebar-logo,
#bms-portal-wrap .bms-auth-brand h1 { font-weight: 900 !important; }

/* ════════════════════════════════════════════════════════════
   STAT CARDS REDESIGN — Taller, bolder, more stylish
   Vertical layout with large number, icon top-right
════════════════════════════════════════════════════════════ */

#bms-portal-wrap .bms-stats-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
}
@media (max-width: 520px) {
  #bms-portal-wrap .bms-stats-row { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  #bms-portal-wrap .bms-stats-row .bms-stat-tile:last-child { grid-column: span 2 !important; }
}

/* Tall stylish card */
#bms-portal-wrap .bms-stat-tile {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 24px 22px !important;
  min-height: 130px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid var(--bms-bd) !important;
  box-shadow: 0 2px 16px rgba(15,25,41,.06) !important;
  transition: transform .18s, box-shadow .18s !important;
  cursor: default !important;
}
#bms-portal-wrap .bms-stat-tile:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(15,25,41,.12) !important;
}

/* Decorative background shape */
#bms-portal-wrap .bms-stat-tile::before {
  content: '' !important;
  position: absolute !important;
  top: -20px !important; right: -20px !important;
  width: 80px !important; height: 80px !important;
  border-radius: 50% !important;
  background: rgba(201,168,76,.07) !important;
  pointer-events: none !important;
}

/* Icon — top right corner */
#bms-portal-wrap .bms-stat-tile-icon {
  position: absolute !important;
  top: 18px !important; right: 18px !important;
  width: 38px !important; height: 38px !important;
  border-radius: 10px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: rgba(201,168,76,.12) !important;
  color: var(--bms-g2) !important;
}
#bms-portal-wrap .bms-icon-green { background: rgba(22,163,74,.1) !important; color: var(--bms-ok) !important; }

/* Label — top */
#bms-portal-wrap .bms-stat-tile-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  color: var(--bms-mu) !important;
  margin-bottom: 10px !important;
}

/* Big number — bottom */
#bms-portal-wrap .bms-stat-tile-num {
  display: block !important;
  font-size: 44px !important;
  font-weight: 900 !important;
  color: var(--bms-n0) !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
}

/* Accent (Upcoming) card — dark navy */
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent {
  background: var(--bms-n0) !important;
  border-color: rgba(201,168,76,.2) !important;
  background-image: radial-gradient(ellipse at 100% 0, rgba(201,168,76,.2) 0%, transparent 60%) !important;
}
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent::before {
  background: rgba(201,168,76,.08) !important;
}
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-icon {
  background: rgba(201,168,76,.15) !important;
  color: var(--bms-g0) !important;
}
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-label {
  color: rgba(255,255,255,.45) !important;
}
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-num {
  color: var(--bms-g0) !important;
}

/* On mobile — taller still */
@media (max-width: 520px) {
  #bms-portal-wrap .bms-stat-tile { min-height: 110px !important; padding: 18px 16px !important; }
  #bms-portal-wrap .bms-stat-tile-num { font-size: 36px !important; }
}

/* ════════════════════════════════════════════════════════════
   FINAL FIX PATCH — All remaining issues
════════════════════════════════════════════════════════════ */

/* ── 1. Overlay is now OUTSIDE sidebar — fixed position sibling ── */
#bms-portal-wrap .bms-sidebar-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,25,41,.5) !important;
  z-index: 9997 !important;
  display: none !important;
  /* NO backdrop-filter, NO blur */
}
#bms-portal-wrap .bms-sidebar-overlay.bms-visible {
  display: block !important;
}

/* ── 2. Sidebar uses .bms-open class (not .open) ── */
#bms-portal-wrap .bms-sidebar {
  background: #0f1929 !important;
  background-image: linear-gradient(180deg, rgba(201,168,76,.06) 0%, transparent 40%) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 100 !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-sidebar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 260px !important;
    height: 100dvh !important;
    z-index: 9998 !important;
    transform: translateX(-110%) !important; /* -110% ensures fully off-screen */
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    box-shadow: 4px 0 32px rgba(15,25,41,.35) !important;
  }
  #bms-portal-wrap .bms-sidebar.bms-open {
    transform: translateX(0) !important;
  }
}

/* ── 3. Hamburger button — clean X animation using .bms-is-open ── */
#bms-portal-wrap .bms-menu-btn {
  display: none !important;
  width: 36px !important; height: 36px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1.5px solid #e0e4f0 !important;
  cursor: pointer !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  transition: background .15s !important;
}
#bms-portal-wrap .bms-menu-btn span {
  display: block !important;
  width: 16px !important; height: 2px !important;
  background: #0f1929 !important;
  border-radius: 99px !important;
  transition: transform .22s, opacity .18s !important;
  transform-origin: center !important;
}
#bms-portal-wrap .bms-menu-btn.bms-is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
#bms-portal-wrap .bms-menu-btn.bms-is-open span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
#bms-portal-wrap .bms-menu-btn.bms-is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
@media (max-width: 900px) { #bms-portal-wrap .bms-menu-btn { display: flex !important; } }

/* ── 4. Topbar logo (mobile) — shows logo image or site name ── */
#bms-portal-wrap .bms-topbar-logo {
  display: none !important; /* hidden on desktop — sidebar shows logo */
  align-items: center !important;
  height: 36px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-topbar-logo { display: flex !important; }
  #bms-portal-wrap .bms-topbar-title { display: none !important; } /* hide title, show logo instead */
}
#bms-portal-wrap .bms-topbar-logo-img {
  max-height: 34px !important;
  max-width: 140px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}
#bms-portal-wrap .bms-topbar-site-name {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f1929 !important;
}

/* Desktop: show title, hide logo in topbar */
@media (min-width: 901px) {
  #bms-portal-wrap .bms-topbar-logo { display: none !important; }
  #bms-portal-wrap .bms-topbar-title { display: block !important; }
}

/* Sidebar logo image */
#bms-portal-wrap .bms-site-logo {
  max-height: 32px !important;
  max-width: 150px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: invert(1) hue-rotate(180deg) !important; /* preserve brand colors on dark bg */
}

/* ── 5. STAT CARDS — fix icon position on mobile ── */
/* Override the absolute icon position to be relative on small screens */
#bms-portal-wrap .bms-stat-tile {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important; /* number at bottom */
  min-height: 120px !important;
  padding: 20px !important;
}
#bms-portal-wrap .bms-stat-tile-icon {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 36px !important; height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(201,168,76,.12) !important;
  color: #a07c30 !important;
  flex-shrink: 0 !important;
}
#bms-portal-wrap .bms-stat-tile-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  color: #6b7898 !important;
  margin-bottom: 8px !important;
  display: block !important;
  padding-right: 48px !important; /* prevent overlap with icon */
}
#bms-portal-wrap .bms-stat-tile-num {
  font-size: 40px !important;
  font-weight: 900 !important;
  color: #0f1929 !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
  display: block !important;
}
/* Accent card */
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-label { color: rgba(255,255,255,.45) !important; }
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-num   { color: #c9a84c !important; }
#bms-portal-wrap .bms-stat-tile.bms-stat-tile-accent .bms-stat-tile-icon  { background: rgba(201,168,76,.15) !important; color: #c9a84c !important; }
#bms-portal-wrap .bms-icon-gold  { background: rgba(201,168,76,.12) !important; color: #a07c30 !important; }
#bms-portal-wrap .bms-icon-green { background: rgba(22,163,74,.10) !important; color: #16a34a !important; }

@media (max-width: 520px) {
  #bms-portal-wrap .bms-stat-tile { min-height: 100px !important; padding: 16px !important; }
  #bms-portal-wrap .bms-stat-tile-num { font-size: 32px !important; }
  #bms-portal-wrap .bms-stat-tile-icon { top: 12px !important; right: 12px !important; width: 30px !important; height: 30px !important; }
  #bms-portal-wrap .bms-stat-tile-label { padding-right: 40px !important; font-size: 9px !important; }
}

/* ── 6. AUTH — MOBILE RESPONSIVE (single column stack) ── */
#bms-portal-wrap .bms-auth-screen {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  height: 100dvh !important;
  width: 100% !important;
  overflow: hidden !important;
}
@media (max-width: 768px) {
  #bms-portal-wrap .bms-auth-screen {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  /* Compact brand panel on mobile */
  #bms-portal-wrap .bms-auth-brand {
    padding: 32px 24px 24px !important;
    min-height: unset !important;
  }
  #bms-portal-wrap .bms-auth-tagline h1 {
    font-size: 28px !important;
    margin-bottom: 10px !important;
  }
  #bms-portal-wrap .bms-auth-tagline p { margin-bottom: 20px !important; font-size: 14px !important; }
  #bms-portal-wrap .bms-auth-features { gap: 10px !important; }
  #bms-portal-wrap .bms-auth-feat     { font-size: 13px !important; }

  /* Form panel fills the rest */
  #bms-portal-wrap .bms-auth-form-panel {
    padding: 24px 16px 40px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #bms-portal-wrap .bms-auth-form-inner {
    padding: 28px 22px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
  }
  #bms-portal-wrap .bms-auth-header h2 { font-size: 22px !important; }
}
@media (max-width: 400px) {
  #bms-portal-wrap .bms-auth-brand { display: none !important; }
  #bms-portal-wrap .bms-auth-form-panel {
    height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 16px !important;
    overflow-y: auto !important;
  }
  #bms-portal-wrap .bms-auth-form-inner { max-width: 100% !important; }
}

/* ── 7. APP — prevent double sidebar columns on mobile ── */
#bms-portal-wrap .bms-app {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  height: 100dvh !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f7f8fc !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-app {
    grid-template-columns: 1fr !important; /* sidebar is a fixed overlay, NOT a column */
  }
}

/* ── 8. Bottom tab bar — clean 4-item layout ── */
#bms-portal-wrap .bms-bottom-nav {
  display: none !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: 62px !important;
    background: #fff !important;
    border-top: 1px solid #e0e4f0 !important;
    z-index: 200 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    box-shadow: 0 -2px 16px rgba(15,25,41,.06) !important;
  }
}
#bms-portal-wrap .bms-bottom-tab {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #b0bac8 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  transition: color .15s !important;
  padding: 4px 2px !important;
  position: relative !important;
}
#bms-portal-wrap .bms-bottom-tab.active { color: #0f1929 !important; }
#bms-portal-wrap .bms-bottom-tab.active svg { stroke: #c9a84c !important; }
#bms-portal-wrap .bms-bottom-tab.bms-bottom-book {
  color: #0f1929 !important;
}
#bms-portal-wrap .bms-bottom-tab.bms-bottom-book svg {
  background: #c9a84c !important;
  border-radius: 50% !important;
  padding: 8px !important;
  width: 38px !important; height: 38px !important;
  stroke: #0f1929 !important;
  box-shadow: 0 2px 12px rgba(201,168,76,.4) !important;
  margin-top: -8px !important;
}

/* ── 9. Content padding-bottom for bottom nav ── */
@media (max-width: 900px) {
  #bms-portal-wrap .bms-content { padding-bottom: 76px !important; }
}

/* ── 10. Profile page inputs — full width on mobile ── */
@media (max-width: 768px) {
  #bms-portal-wrap .bms-profile-grid { grid-template-columns: 1fr !important; }
  #bms-portal-wrap .bms-widget-body { padding: 16px !important; }
}

/* ── 11. Booking embed — no double padding ── */
#bms-portal-wrap .bms-booking-embed { padding: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; }
#bms-portal-wrap .bms-booking-embed #bms-booking-wrap { padding: 16px !important; max-width: 100% !important; background: #fff !important; border-radius: 14px !important; }

/* ════════════════════════════════════════════════════════════
   AUTH SCREEN — Complete Mobile-First Rewrite
════════════════════════════════════════════════════════════ */

/* ── Auth screen container ── */
#bms-portal-wrap .bms-auth-screen {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

/* ── LEFT brand panel — desktop only ── */
#bms-portal-wrap .bms-auth-brand {
  background: #0f1929 !important;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(201,168,76,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,.06) 0%, transparent 50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 60px 50px !important;
  overflow-y: auto !important;
}
#bms-portal-wrap .bms-auth-brand-inner { max-width: 380px !important; width: 100% !important; }

/* Brand logo */
#bms-portal-wrap .bms-auth-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 52px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #c9a84c !important;
}
#bms-portal-wrap .bms-brand-logo-img {
  max-height: 40px !important;
  max-width: 160px !important;
  object-fit: contain !important;
  filter: invert(1) hue-rotate(180deg) !important;
}
#bms-portal-wrap .bms-logo-icon {
  width: 38px !important; height: 38px !important;
  background: #c9a84c !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  color: #0f1929 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 16px rgba(201,168,76,.4) !important;
}

/* Tagline */
#bms-portal-wrap .bms-auth-tagline h1 {
  font-size: 40px !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.18 !important;
  margin-bottom: 18px !important;
}
#bms-portal-wrap .bms-auth-tagline p {
  font-size: 15px !important;
  color: rgba(255,255,255,.55) !important;
  line-height: 1.7 !important;
  margin-bottom: 40px !important;
}

/* Feature list */
#bms-portal-wrap .bms-auth-features { display: flex !important; flex-direction: column !important; gap: 14px !important; }
#bms-portal-wrap .bms-auth-feat {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,.72) !important;
}
#bms-portal-wrap .bms-auth-feat > span:first-child { font-size: 20px !important; flex-shrink: 0 !important; }

/* ── RIGHT form panel ── */
#bms-portal-wrap .bms-auth-form-panel {
  background: #f4f5fb !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
#bms-portal-wrap .bms-auth-form-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 32px !important;
  gap: 0 !important;
}

/* Mobile-only top logo — hidden on desktop */
#bms-portal-wrap .bms-mobile-logo-bar {
  display: none !important;
  text-align: center !important;
  margin-bottom: 28px !important;
}
#bms-portal-wrap .bms-mobile-logo-img {
  max-height: 52px !important;
  max-width: 180px !important;
  object-fit: contain !important;
  margin: 0 auto 10px !important;
  display: block !important;
}
#bms-portal-wrap .bms-mobile-logo-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}
#bms-portal-wrap .bms-logo-dot {
  width: 44px !important; height: 44px !important;
  background: #c9a84c !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  color: #0f1929 !important;
  box-shadow: 0 4px 16px rgba(201,168,76,.4) !important;
}
#bms-portal-wrap .bms-mobile-logo-name {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #0f1929 !important;
}
#bms-portal-wrap .bms-mobile-tagline {
  font-size: 13px !important;
  color: #6b7898 !important;
}

/* Form card */
#bms-portal-wrap .bms-auth-form-inner {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  width: 100% !important;
  max-width: 420px !important;
  box-shadow: 0 8px 40px rgba(15,25,41,.10) !important;
  border: 1px solid #e0e4f0 !important;
}

/* Tabs */
#bms-portal-wrap .bms-auth-tabs {
  display: flex !important;
  border-bottom: 2px solid #e0e4f0 !important;
  margin-bottom: 28px !important;
}
#bms-portal-wrap .bms-auth-tab {
  flex: 1 !important;
  padding: 11px 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: none !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  cursor: pointer !important;
  color: #6b7898 !important;
  transition: color .18s, border-color .18s !important;
}
#bms-portal-wrap .bms-auth-tab:hover  { color: #0f1929 !important; }
#bms-portal-wrap .bms-auth-tab.active { color: #0f1929 !important; border-bottom-color: #c9a84c !important; }

/* Panel */
#bms-portal-wrap .bms-auth-panel { display: none !important; }
#bms-portal-wrap .bms-auth-panel.active { display: block !important; animation: bmsUp .2s ease both !important; }

/* Header inside panel */
#bms-portal-wrap .bms-auth-header { margin-bottom: 24px !important; }
#bms-portal-wrap .bms-auth-header h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f1929 !important;
  margin-bottom: 5px !important;
}
#bms-portal-wrap .bms-auth-header p { font-size: 14px !important; color: #6b7898 !important; }

/* Switch link */
#bms-portal-wrap .bms-auth-switch {
  text-align: center !important;
  font-size: 13px !important;
  color: #6b7898 !important;
  margin-top: 18px !important;
  display: block !important;
}
#bms-portal-wrap .bms-auth-switch a {
  color: #a07c30 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
#bms-portal-wrap .bms-auth-switch a:hover { text-decoration: underline !important; }

/* ── MOBILE AUTH — everything stacks ── */
@media (max-width: 768px) {
  #bms-portal-wrap .bms-auth-screen {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    overflow-y: auto !important;
    height: 100dvh !important;
  }

  /* Hide the big brand panel completely on mobile */
  #bms-portal-wrap .bms-auth-brand { display: none !important; }

  /* Form panel fills entire screen */
  #bms-portal-wrap .bms-auth-form-panel {
    height: 100dvh !important;
    overflow: hidden !important;
  }
  #bms-portal-wrap .bms-auth-form-scroll {
    justify-content: flex-start !important;
    padding: 36px 20px 40px !important;
    overflow-y: auto !important;
    height: 100% !important;
  }

  /* Show the mobile logo bar */
  #bms-portal-wrap .bms-mobile-logo-bar { display: block !important; }

  /* Tighter form card on mobile */
  #bms-portal-wrap .bms-auth-form-inner {
    padding: 28px 22px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
  }
  #bms-portal-wrap .bms-auth-form-inner .bms-form-row {
    grid-template-columns: 1fr !important;
  }
  #bms-portal-wrap .bms-auth-header h2 { font-size: 20px !important; }
}

@media (max-width: 380px) {
  #bms-portal-wrap .bms-auth-form-scroll { padding: 24px 14px 32px !important; }
  #bms-portal-wrap .bms-auth-form-inner  { padding: 22px 16px !important; }
}

/* ════════════════════════════════════════════════════════════
   AUTH FORM — Fill full right panel (no floating card)
════════════════════════════════════════════════════════════ */

/* Right panel: white background, flex center */
#bms-portal-wrap .bms-auth-form-panel {
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#bms-portal-wrap .bms-auth-form-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 48px 56px !important;
}

/* Form inner — full width of panel, no card shadow/border */
#bms-portal-wrap .bms-auth-form-inner {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 400px !important;
  box-shadow: none !important;
  border: none !important;
}

/* Desktop: scale to fill nicely */
@media (min-width: 769px) {
  #bms-portal-wrap .bms-auth-form-scroll { padding: 48px 64px !important; }
  #bms-portal-wrap .bms-auth-form-inner  { max-width: 420px !important; }
}

/* Mobile: still full width, proper padding */
@media (max-width: 768px) {
  #bms-portal-wrap .bms-auth-form-panel {
    background: #ffffff !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  #bms-portal-wrap .bms-auth-form-scroll {
    justify-content: flex-start !important;
    padding: 36px 24px 40px !important;
    overflow-y: auto !important;
    height: 100% !important;
  }
  #bms-portal-wrap .bms-auth-form-inner {
    max-width: 100% !important;
  }
}

/* ════════════════════════════════════════════════════════════
   AUTH FORM — Restore floating card (shadow + border + grey bg)
════════════════════════════════════════════════════════════ */

#bms-portal-wrap .bms-auth-form-panel {
  background: #f0f2f8 !important;
}

#bms-portal-wrap .bms-auth-form-scroll {
  padding: 48px 40px !important;
  align-items: center !important;
  justify-content: center !important;
}

#bms-portal-wrap .bms-auth-form-inner {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 40px 40px !important;
  max-width: 420px !important;
  width: 100% !important;
  box-shadow: 0 8px 40px rgba(15,25,41,.12) !important;
  border: 1px solid #e0e4f0 !important;
}

@media (max-width: 768px) {
  #bms-portal-wrap .bms-auth-form-panel  { background: #f0f2f8 !important; }
  #bms-portal-wrap .bms-auth-form-scroll { padding: 32px 20px 48px !important; justify-content: flex-start !important; }
  #bms-portal-wrap .bms-auth-form-inner  { padding: 30px 24px !important; max-width: 100% !important; border-radius: 16px !important; }
}

/* ── Auth form — wider card ── */
#bms-portal-wrap .bms-auth-form-inner {
  max-width: 500px !important;
  padding: 44px 48px !important;
}
@media (max-width: 768px) {
  #bms-portal-wrap .bms-auth-form-inner { max-width: 100% !important; padding: 30px 24px !important; }
}

/* ── Topbar: push Book Now button to far right ── */
#bms-portal-wrap .bms-topbar {
  justify-content: flex-start !important;
}
#bms-portal-wrap .bms-topbar-logo {
  flex: 1 !important;        /* takes all middle space */
  justify-content: center !important;
}
#bms-portal-wrap .bms-topbar-actions {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* Desktop: title (not logo) in centre, button right */
@media (min-width: 901px) {
  #bms-portal-wrap .bms-topbar-title {
    flex: 1 !important;
  }
  #bms-portal-wrap .bms-topbar-actions {
    margin-left: auto !important;
  }
}

/* ── Logo size increase — sidebar, topbar, auth ── */

/* Sidebar logo image */
#bms-portal-wrap .bms-site-logo {
  max-height: 52px !important;
  max-width: 180px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: invert(1) hue-rotate(180deg) !important;
}

/* Sidebar logo text fallback */
#bms-portal-wrap .bms-sidebar-logo {
  padding: 22px 20px 18px !important;
  font-size: 17px !important;
  gap: 12px !important;
}
#bms-portal-wrap .bms-sidebar-logo-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 18px !important;
}

/* Topbar mobile logo image */
#bms-portal-wrap .bms-topbar-logo-img {
  max-height: 44px !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

/* Auth page — brand panel logo */
#bms-portal-wrap .bms-brand-logo-img {
  max-height: 60px !important;
  max-width: 220px !important;
  object-fit: contain !important;
  filter: invert(1) hue-rotate(180deg) !important;
  margin-bottom: 40px !important;
}

/* Auth page — mobile logo bar */
#bms-portal-wrap .bms-mobile-logo-img {
  max-height: 70px !important;
  max-width: 220px !important;
  object-fit: contain !important;
  margin: 0 auto 12px !important;
}
#bms-portal-wrap .bms-logo-dot {
  width: 50px !important;
  height: 50px !important;
  font-size: 22px !important;
  border-radius: 14px !important;
}
#bms-portal-wrap .bms-mobile-logo-name {
  font-size: 22px !important;
  font-weight: 900 !important;
}

/* ════════════════════════════════════════════════════════════
   REFERRAL + GOOGLE OAUTH UI
════════════════════════════════════════════════════════════ */

/* Google sign-in button */
#bms-portal-wrap .bms-google-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 12px !important;
  background: #fff !important;
  border: 1.5px solid #dadce0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #3c4043 !important;
  cursor: pointer !important;
  transition: background .15s, box-shadow .15s !important;
  font-family: inherit !important;
  margin-top: 4px !important;
}
#bms-portal-wrap .bms-google-btn:hover {
  background: #f8f9fa !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.12) !important;
}
#bms-portal-wrap .bms-google-btn:disabled { opacity: .6 !important; cursor: not-allowed !important; }

/* OR divider */
#bms-portal-wrap .bms-or-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
#bms-portal-wrap .bms-or-divider::before,
#bms-portal-wrap .bms-or-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: #e0e4f0 !important;
}

/* Referral hero card */
#bms-portal-wrap .bms-ref-hero {
  background: #0f1929 !important;
  background-image: radial-gradient(ellipse at 90% 0, rgba(201,168,76,.2) 0%, transparent 55%) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
#bms-portal-wrap .bms-ref-hero-inner { }
#bms-portal-wrap .bms-ref-hero-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  color: rgba(255,255,255,.45) !important;
  margin-bottom: 8px !important;
}
#bms-portal-wrap .bms-ref-hero-amount {
  font-size: 42px !important;
  font-weight: 900 !important;
  color: #c9a84c !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
  margin-bottom: 6px !important;
}
#bms-portal-wrap .bms-ref-hero-note {
  font-size: 12px !important;
  color: rgba(255,255,255,.35) !important;
}
#bms-portal-wrap .bms-ref-stats-mini {
  display: flex !important;
  gap: 16px !important;
}
#bms-portal-wrap .bms-ref-stat {
  text-align: center !important;
  background: rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
}
#bms-portal-wrap .bms-ref-stat span {
  display: block !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1 !important;
}
#bms-portal-wrap .bms-ref-stat small {
  font-size: 10px !important;
  color: rgba(255,255,255,.4) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
}
#bms-portal-wrap .bms-ref-stat-green span { color: #34d399 !important; }

/* Referral link box */
#bms-portal-wrap .bms-ref-link-box {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}
#bms-portal-wrap .bms-ref-link-input {
  flex: 1 !important;
  padding: 11px 14px !important;
  border: 1.5px solid #e0e4f0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: monospace !important;
  color: #0f1929 !important;
  background: #f7f8fc !important;
  outline: none !important;
}

/* Share buttons */
#bms-portal-wrap .bms-ref-share-btns {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
#bms-portal-wrap .bms-ref-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: 1.5px solid #e0e4f0 !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f1929 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s !important;
  font-family: inherit !important;
}
#bms-portal-wrap .bms-share-wa:hover    { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
#bms-portal-wrap .bms-share-email:hover { background: #0f1929 !important; color: #c9a84c !important; border-color: #0f1929 !important; }
#bms-portal-wrap .bms-share-copy:hover  { background: #c9a84c !important; color: #0f1929 !important; border-color: #c9a84c !important; }

/* Referral table */
#bms-portal-wrap .bms-ref-table-wrap { overflow-x: auto !important; }

/* ════════════════════════════════════════════════════════════
   NAV FIX — Ensure sidebar + bottom nav items are always clickable
════════════════════════════════════════════════════════════ */

/* Sidebar nav items — always interactive */
#bms-portal-wrap .bms-sidebar {
  z-index: 100 !important;
  pointer-events: auto !important;
}
#bms-portal-wrap .bms-nav-item {
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Bottom tabs — ensure clickable above content */
#bms-portal-wrap .bms-bottom-nav {
  pointer-events: auto !important;
}
#bms-portal-wrap .bms-bottom-tab {
  pointer-events: auto !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: rgba(201,168,76,.15) !important;
  user-select: none !important;
}

/* Portal wrap should NOT be overflow:hidden at root — clips sidebar overlay */
#bms-portal-wrap {
  overflow: visible !important;
}
/* But the app shell itself handles overflow */
#bms-portal-wrap .bms-app {
  overflow: hidden !important;
}
/* Content area scrolls, nothing else */
#bms-portal-wrap .bms-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ════════════════════════════════════════════════════════════
   REFERRAL v2 — Revamped UI
════════════════════════════════════════════════════════════ */

/* Hero */
#bms-portal-wrap .bms-ref-hero-v2 {
  background: linear-gradient(135deg, #0f1929 0%, #1e2d43 100%) !important;
  border-radius: 18px !important;
  padding: 28px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  position: relative !important;
  overflow: hidden !important;
}
#bms-portal-wrap .bms-ref-hero-v2::after {
  content: '' !important;
  position: absolute !important;
  top: -40px !important; right: -40px !important;
  width: 160px !important; height: 160px !important;
  border-radius: 50% !important;
  background: rgba(201,168,76,.12) !important;
  pointer-events: none !important;
}
#bms-portal-wrap .bms-ref-hero-badge {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .8px !important;
  color: rgba(255,255,255,.4) !important;
  margin-bottom: 10px !important;
}
#bms-portal-wrap .bms-ref-hero-big {
  font-size: 48px !important;
  font-weight: 900 !important;
  color: #c9a84c !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
  margin-bottom: 8px !important;
}
#bms-portal-wrap .bms-ref-hero-caption {
  font-size: 13px !important;
  color: rgba(255,255,255,.35) !important;
}
#bms-portal-wrap .bms-ref-hero-stats {
  display: flex !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  flex-wrap: wrap !important;
}
#bms-portal-wrap .bms-ref-mini-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.07) !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  min-width: 70px !important;
}
#bms-portal-wrap .bms-ref-mini-num {
  display: block !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1 !important;
}
#bms-portal-wrap .bms-ref-mini-label {
  display: block !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  color: rgba(255,255,255,.4) !important;
  margin-top: 4px !important;
}
#bms-portal-wrap .bms-ref-mini-green .bms-ref-mini-num { color: #34d399 !important; }
#bms-portal-wrap .bms-ref-mini-amber .bms-ref-mini-num  { color: #fbbf24 !important; }

/* How it works steps */
#bms-portal-wrap .bms-ref-steps-card {
  background: #fff !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 14px !important;
  border: 1px solid #e0e4f0 !important;
}
#bms-portal-wrap .bms-ref-steps-card h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f1929 !important;
  margin-bottom: 16px !important;
}
#bms-portal-wrap .bms-ref-steps {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
#bms-portal-wrap .bms-ref-step {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  flex: 1 !important;
  min-width: 140px !important;
}
#bms-portal-wrap .bms-ref-step-num {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #0f1929 !important;
  color: #c9a84c !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
#bms-portal-wrap .bms-ref-step strong { display: block !important; font-size: 13px !important; color: #0f1929 !important; margin-bottom: 3px !important; }
#bms-portal-wrap .bms-ref-step span   { font-size: 12px !important; color: #6b7898 !important; }
#bms-portal-wrap .bms-ref-step-arrow  { font-size: 18px !important; color: #c9a84c !important; flex-shrink: 0 !important; }
@media (max-width: 480px) { #bms-portal-wrap .bms-ref-step-arrow { display: none !important; } }

/* Share card */
#bms-portal-wrap .bms-ref-share-card {
  background: #fff !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 14px !important;
  border: 1px solid #e0e4f0 !important;
}
#bms-portal-wrap .bms-ref-share-card h3 { font-size: 15px !important; font-weight: 800 !important; color: #0f1929 !important; margin-bottom: 16px !important; }

#bms-portal-wrap .bms-ref-code-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
#bms-portal-wrap .bms-ref-code-badge {
  background: #0f1929 !important;
  color: #c9a84c !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-family: monospace !important;
}
#bms-portal-wrap .bms-ref-code-label { font-size: 12px !important; color: #6b7898 !important; }

#bms-portal-wrap .bms-ref-url-row {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
#bms-portal-wrap .bms-ref-url-input {
  flex: 1 !important;
  padding: 10px 14px !important;
  border: 1.5px solid #e0e4f0 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-family: monospace !important;
  color: #6b7898 !important;
  background: #f7f8fc !important;
  outline: none !important;
}
#bms-portal-wrap .bms-ref-copied-msg {
  font-size: 12px !important;
  color: #16a34a !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}
#bms-portal-wrap .bms-ref-social-row {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
#bms-portal-wrap .bms-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 16px !important;
  border-radius: 8px !important;
  border: 1.5px solid #e0e4f0 !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f1929 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s !important;
  font-family: inherit !important;
}
#bms-portal-wrap .bms-social-wa:hover { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
#bms-portal-wrap .bms-social-em:hover { background: #0f1929 !important; color: #c9a84c !important; border-color: #0f1929 !important; }
#bms-portal-wrap .bms-social-cp:hover { background: #c9a84c !important; color: #0f1929 !important; border-color: #c9a84c !important; }

/* History card */
#bms-portal-wrap .bms-ref-history-card {
  background: #fff !important;
  border-radius: 14px !important;
  border: 1px solid #e0e4f0 !important;
  overflow: hidden !important;
}
#bms-portal-wrap .bms-ref-history-header {
  padding: 16px 20px !important;
  background: #f7f8fc !important;
  border-bottom: 1px solid #e0e4f0 !important;
}
#bms-portal-wrap .bms-ref-history-header h3 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f1929 !important;
}
#bms-portal-wrap .bms-ref-count-badge {
  background: #0f1929 !important;
  color: #c9a84c !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 99px !important;
}
#bms-portal-wrap .bms-ref-history-list { display: flex !important; flex-direction: column !important; }
#bms-portal-wrap .bms-ref-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 20px !important;
  border-bottom: 1px solid #f0f2f8 !important;
  transition: background .15s !important;
}
#bms-portal-wrap .bms-ref-row:last-child { border-bottom: none !important; }
#bms-portal-wrap .bms-ref-row:hover { background: #fafbff !important; }
#bms-portal-wrap .bms-ref-row-avatar {
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0f1929, #253352) !important;
  color: #c9a84c !important;
  font-size: 15px !important; font-weight: 900 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-shrink: 0 !important;
}
#bms-portal-wrap .bms-ref-row-body { flex: 1 !important; min-width: 0 !important; }
#bms-portal-wrap .bms-ref-row-body strong { display: block !important; font-size: 13px !important; font-weight: 700 !important; color: #0f1929 !important; }
#bms-portal-wrap .bms-ref-row-body span   { font-size: 11px !important; color: #9ca3af !important; }
#bms-portal-wrap .bms-ref-row-status {
  padding: 4px 10px !important;
  border-radius: 99px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  flex-shrink: 0 !important;
}
#bms-portal-wrap .bms-ref-row-reward { font-size: 14px !important; font-weight: 800 !important; color: #0f1929 !important; flex-shrink: 0 !important; min-width: 40px !important; text-align: right !important; }
#bms-portal-wrap .bms-ref-empty { text-align: center !important; padding: 48px 24px !important; }
#bms-portal-wrap .bms-ref-empty span { font-size: 40px !important; display: block !important; margin-bottom: 12px !important; opacity: .3 !important; }
#bms-portal-wrap .bms-ref-empty p { color: #6b7898 !important; font-size: 14px !important; }

/* ════════════════════════════════════════════════════════════
   PORTAL DEFINITIVE FIX v6 — Overrides all previous rules
   Single authoritative block for the app shell layout.
════════════════════════════════════════════════════════════ */

/* Portal root fills viewport */
#bms-portal-wrap {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99990 !important;
  overflow: visible !important; /* allows overlay to escape */
  background: #0f1929 !important;
}

/* App shell = full-height grid */
#bms-portal-wrap .bms-app {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-app { grid-template-columns: 1fr !important; }
}

/* Sidebar — desktop: in-grid. Mobile: fixed overlay */
#bms-portal-wrap .bms-sidebar {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  background: #0f1929 !important;
  position: relative !important;
  z-index: 100 !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-sidebar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 260px !important;
    height: 100dvh !important;
    z-index: 9998 !important;
    transform: translateX(-110%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    box-shadow: 4px 0 32px rgba(15,25,41,.3) !important;
  }
  #bms-portal-wrap .bms-sidebar.bms-open {
    transform: translateX(0) !important;
  }
}

/* Overlay — always outside sidebar, fixed */
#bms-portal-wrap .bms-sidebar-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,25,41,.5) !important;
  z-index: 9997 !important;
  display: none !important;
  pointer-events: auto !important;
}
#bms-portal-wrap .bms-sidebar-overlay.bms-visible {
  display: block !important;
}

/* Main = flex column filling right side */
#bms-portal-wrap .bms-main {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

/* Topbar — fixed height, never shifts */
#bms-portal-wrap .bms-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: 58px !important;
  min-height: 58px !important;
  flex-shrink: 0 !important;
  padding: 0 20px !important;
  background: #fff !important;
  border-bottom: 1px solid #e0e4f0 !important;
  position: relative !important;
  z-index: 50 !important;
}

/* Content — scrollable, fills remaining height */
#bms-portal-wrap .bms-content {
  flex: 1 1 auto !important;
  min-height: 0 !important; /* critical for flex scroll */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 22px !important;
  background: #f7f8fc !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-content { padding: 14px !important; padding-bottom: 78px !important; }
}

/* Bottom nav */
#bms-portal-wrap .bms-bottom-nav {
  display: none !important;
}
@media (max-width: 900px) {
  #bms-portal-wrap .bms-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: 62px !important;
    background: #fff !important;
    border-top: 1px solid #e0e4f0 !important;
    z-index: 200 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    box-shadow: 0 -2px 12px rgba(15,25,41,.06) !important;
    pointer-events: auto !important;
  }
}

/* Nav items — always pointer-events on */
#bms-portal-wrap .bms-nav-item,
#bms-portal-wrap .bms-bottom-tab,
#bms-portal-wrap .bms-switch-section,
#bms-portal-wrap .bms-widget-link {
  cursor: pointer !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: rgba(201,168,76,.15) !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

/* Sections */
#bms-portal-wrap .bms-section { display: none !important; }
#bms-portal-wrap .bms-section.active { display: block !important; }

/* ════════════════════════════════════════════════════════════
   PORTAL FINAL OVERRIDE — Added v1.3.0
   This block overrides ALL previous conflicting rules.
   It is the single source of truth for the portal layout.
════════════════════════════════════════════════════════════ */

/* 1. Viewport lock */
html body.bms-portal-page,
html.wp-toolbar body.bms-portal-page,
html.admin-bar body.bms-portal-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

/* 2. Portal wrap fills screen */
body.bms-portal-page #bms-portal-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99990 !important;
  overflow: visible !important;
  background: #f7f8fc !important;
}

/* 3. App grid */
body.bms-portal-page #bms-portal-wrap .bms-app {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  height: 100dvh !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f7f8fc !important;
}
@media (max-width: 900px) {
  body.bms-portal-page #bms-portal-wrap .bms-app {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Sidebar */
body.bms-portal-page #bms-portal-wrap .bms-sidebar {
  background: #0f1929 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}
@media (max-width: 900px) {
  body.bms-portal-page #bms-portal-wrap .bms-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 260px !important;
    height: 100dvh !important;
    z-index: 9998 !important;
    transform: translateX(-110%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
  }
  body.bms-portal-page #bms-portal-wrap .bms-sidebar.bms-open {
    transform: translateX(0) !important;
  }
}

/* 5. Overlay */
body.bms-portal-page #bms-portal-wrap .bms-sidebar-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,25,41,.5) !important;
  z-index: 9997 !important;
  display: none !important;
  pointer-events: auto !important;
}
body.bms-portal-page #bms-portal-wrap .bms-sidebar-overlay.bms-visible {
  display: block !important;
}

/* 6. Main column */
body.bms-portal-page #bms-portal-wrap .bms-main {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

/* 7. Topbar */
body.bms-portal-page #bms-portal-wrap .bms-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: 58px !important;
  min-height: 58px !important;
  flex-shrink: 0 !important;
  padding: 0 20px !important;
  background: #fff !important;
  border-bottom: 1px solid #e0e4f0 !important;
  z-index: 50 !important;
}

/* 8. Content scroll area */
body.bms-portal-page #bms-portal-wrap .bms-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 22px !important;
  background: #f7f8fc !important;
}
@media (max-width: 900px) {
  body.bms-portal-page #bms-portal-wrap .bms-content {
    padding: 14px !important;
    padding-bottom: 80px !important;
  }
}

/* 9. Bottom nav */
body.bms-portal-page #bms-portal-wrap .bms-bottom-nav {
  display: none !important;
}
@media (max-width: 900px) {
  body.bms-portal-page #bms-portal-wrap .bms-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 62px !important;
    background: #fff !important;
    border-top: 1px solid #e0e4f0 !important;
    z-index: 200 !important;
    pointer-events: auto !important;
  }
}

/* 10. Nav elements — always clickable */
body.bms-portal-page #bms-portal-wrap .bms-nav-item,
body.bms-portal-page #bms-portal-wrap .bms-bottom-tab,
body.bms-portal-page #bms-portal-wrap .bms-switch-section,
body.bms-portal-page #bms-portal-wrap .bms-widget-link {
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(201,168,76,.15) !important;
  user-select: none !important;
}

/* 11. Sections */
body.bms-portal-page #bms-portal-wrap .bms-section {
  display: none !important;
}
body.bms-portal-page #bms-portal-wrap .bms-section.active {
  display: block !important;
}

/* 12. Auth panels */
body.bms-portal-page #bms-portal-wrap .bms-auth-panel {
  display: none !important;
}
body.bms-portal-page #bms-portal-wrap .bms-auth-panel.active {
  display: block !important;
}

/* ── Hamburger spans must not intercept clicks ── */
#bms-portal-wrap .bms-menu-btn { touch-action: manipulation !important; }
#bms-portal-wrap .bms-menu-btn span { pointer-events: none !important; }

/* ════════════════════════════════════════════════════════════
   AUTH SCREEN FINAL FIX v1.3.0
   - Hide scrollbar, allow scroll
   - Perfect vertical centering
   - Balanced form layout
════════════════════════════════════════════════════════════ */

/* Auth screen: fixed, full viewport, no overflow */
body.bms-portal-page #bms-portal-wrap .bms-auth-screen {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
  z-index: 99991 !important;
}
@media (max-width: 860px) {
  body.bms-portal-page #bms-portal-wrap .bms-auth-screen {
    grid-template-columns: 1fr !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: fixed !important;
  }
  body.bms-portal-page #bms-portal-wrap .bms-auth-brand {
    display: none !important;
  }
}

/* Brand panel: fills height, no scroll */
body.bms-portal-page #bms-portal-wrap .bms-auth-brand {
  height: 100dvh !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Form panel: scrollable but NO visible scrollbar */
body.bms-portal-page #bms-portal-wrap .bms-auth-form-panel {
  height: 100dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  align-items: flex-start !important; /* allow scroll from top */
  justify-content: center !important;
  padding: 0 !important;
  /* Hide scrollbar all browsers */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
body.bms-portal-page #bms-portal-wrap .bms-auth-form-panel::-webkit-scrollbar {
  display: none !important;
}

/* Form inner card: centered with top/bottom breathing room */
body.bms-portal-page #bms-portal-wrap .bms-auth-form-inner {
  width: 100% !important;
  max-width: 420px !important;
  margin: auto !important;       /* vertical center when content < height */
  padding: 44px 40px !important;
  box-sizing: border-box !important;
  /* min-height ensures card never feels cramped */
  flex-shrink: 0 !important;
}

/* Wrapper that pads card so it doesn't kiss edges */
body.bms-portal-page #bms-portal-wrap .bms-auth-form-scroll {
  width: 100% !important;
  min-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 28px !important;
  box-sizing: border-box !important;
}
@media (max-width: 480px) {
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-scroll {
    padding: 24px 16px !important;
    align-items: flex-start !important;
  }
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-inner {
    padding: 32px 22px !important;
  }
}

/* ════════════════════════════════════════════════════════════
   FREQUENCY SELECTOR — Step 1 booking form
════════════════════════════════════════════════════════════ */
#bms-booking-wrap .bms-frequency-wrap {
  margin-top: 24px !important;
  padding-top: 22px !important;
  border-top: 1px solid #e5e8f0 !important;
}
#bms-booking-wrap .bms-frequency-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e2d4e !important;
  margin-bottom: 14px !important;
}
#bms-booking-wrap .bms-frequency-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}
#bms-booking-wrap .bms-freq-option {
  cursor: pointer !important;
  display: block !important;
}
#bms-booking-wrap .bms-freq-option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#bms-booking-wrap .bms-freq-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 16px 12px 14px !important;
  border: 2px solid #dde1ee !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: border-color .2s, box-shadow .2s, background .2s !important;
  text-align: center !important;
  position: relative !important;
  cursor: pointer !important;
}
#bms-booking-wrap .bms-freq-card:hover {
  border-color: #c9a84c !important;
  background: #fffdf5 !important;
}
#bms-booking-wrap .bms-freq-option input:checked + .bms-freq-card {
  border-color: #c9a84c !important;
  background: #fffdf5 !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15) !important;
}
#bms-booking-wrap .bms-freq-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}
#bms-booking-wrap .bms-freq-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e2d4e !important;
}
#bms-booking-wrap .bms-freq-price {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #c9a84c !important;
  margin-top: 2px !important;
}
#bms-booking-wrap .bms-freq-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  background: #fef3cd !important;
  color: #856404 !important;
  padding: 2px 7px !important;
  border-radius: 99px !important;
  margin-top: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}
#bms-booking-wrap .bms-freq-badge-green {
  background: #d1fae5 !important;
  color: #065f46 !important;
}
/* Mobile */
@media (max-width: 600px) {
  #bms-booking-wrap .bms-frequency-grid {
    grid-template-columns: 1fr !important;
  }
  #bms-booking-wrap .bms-freq-card {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }
  #bms-booking-wrap .bms-freq-icon { font-size: 20px !important; }
  #bms-booking-wrap .bms-freq-title, #bms-booking-wrap .bms-freq-price { font-size: 13px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE AUTH DEFINITIVE OVERRIDE
   This block is at the end of the file to guarantee it wins over all
   conflicting earlier blocks. Uses high specificity + !important.
════════════════════════════════════════════════════════════════════ */

/* Desktop: two-column split */
body.bms-portal-page #bms-portal-wrap .bms-auth-screen {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
  z-index: 99991 !important;
}

/* On mobile: single column, brand GONE, form fills screen */
@media (max-width: 768px) {
  body.bms-portal-page #bms-portal-wrap .bms-auth-screen {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: fixed !important;
  }

  /* Brand panel: completely hidden on mobile */
  body.bms-portal-page #bms-portal-wrap .bms-auth-brand {
    display: none !important;
  }

  /* Form panel: full screen, scrollable */
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-panel {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    width: 100vw !important;
    overflow: hidden !important;
    background: #f0f2f8 !important;
  }

  /* Scroll wrapper: scrollable, no visible scrollbar */
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-scroll {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 32px 20px 48px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-scroll::-webkit-scrollbar {
    display: none !important;
  }

  /* Mobile logo bar: shown, centered */
  body.bms-portal-page #bms-portal-wrap .bms-mobile-logo-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 420px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  body.bms-portal-page #bms-portal-wrap .bms-mobile-logo-img {
    max-height: 52px !important;
    max-width: 160px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 8px !important;
  }

  body.bms-portal-page #bms-portal-wrap .bms-mobile-logo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 6px !important;
  }

  body.bms-portal-page #bms-portal-wrap .bms-mobile-logo-name {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #0f1929 !important;
  }

  body.bms-portal-page #bms-portal-wrap .bms-mobile-tagline {
    font-size: 12px !important;
    color: #8a93aa !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }

  /* Form card: full width, compact padding */
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-inner {
    width: 100% !important;
    max-width: 420px !important;
    padding: 28px 22px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    box-shadow: 0 4px 24px rgba(15,25,41,.12) !important;
  }

  body.bms-portal-page #bms-portal-wrap .bms-auth-header h2 {
    font-size: 22px !important;
  }

  body.bms-portal-page #bms-portal-wrap .bms-auth-form-inner .bms-form-row {
    grid-template-columns: 1fr !important;
  }
}

/* Tiny phones (≤400px): even tighter */
@media (max-width: 400px) {
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-scroll {
    padding: 24px 14px 40px !important;
  }
  body.bms-portal-page #bms-portal-wrap .bms-auth-form-inner {
    padding: 24px 18px !important;
    border-radius: 14px !important;
  }
  body.bms-portal-page #bms-portal-wrap .bms-mobile-logo-img {
    max-height: 44px !important;
  }
}

/* ── Booking calendar availability dot colours ── */
#bms-booking-wrap .bms-cal-day.unavailable {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
#bms-booking-wrap .bms-cal-day.unavailable .bms-cal-dot {
  background: #e74c3c !important;
}
