[x-cloak] { display: none !important; }

:root {
  --bmr-teal:       #1b6055;
  --bmr-teal-light: #e8f5f3;
  --bmr-teal-mid:   #c8e6e0;
  --bmr-border:     #dee2e6;
}

/* ── Shared Top Navbar ──────────────────────────────── */
.bmr-topnav {
  background: var(--bmr-teal);
  padding: 0 1.5rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.bmr-topnav .navbar-brand img { height: 40px; }
.bmr-topnav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: .875rem;
  font-weight: 600;
  padding: .75rem .8rem !important;
  white-space: nowrap;
  transition: color .15s;
}
.bmr-topnav .nav-link:hover { color: #fff !important; }

/* Guest sign-in button */
.bmr-signin-btn {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem 1.1rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.bmr-signin-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.9);
  color: #fff;
}

/* Logged-in profile button */
.bmr-profile-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 30px;
  color: #fff;
  padding: .3rem .9rem .3rem .35rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s;
}
.bmr-profile-btn:hover { border-color: rgba(255,255,255,.85); }
.bmr-profile-btn img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.5);
}
.bmr-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--bmr-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
  min-width: 180px;
  z-index: 1050;
  overflow: hidden;
}
.bmr-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  color: #333;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.bmr-profile-dropdown a:hover { background: var(--bmr-teal-light); }
.bmr-profile-dropdown a.text-danger:hover { background: #fff5f5; }
.bmr-profile-dropdown .dropdown-divider { margin: 4px 0; border-top: 1px solid #f0f0f0; }

/* ── Shared Footer ──────────────────────────────────── */
.bmr-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--bmr-border);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: #888;
}

/* ── Member portal layout (default body) ────────────── */
.bmr-wrapper {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 56px - 48px);
  background: #f4f7f6;
  padding: 1.25rem;
  gap: 1.25rem;
}
.bmr-sidebar {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
}
.bmr-sidebar-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--bmr-border);
  overflow: hidden;
}
.bmr-sidebar-profile {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}
.bmr-sidebar-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bmr-teal-mid);
  margin-bottom: .6rem;
}
.bmr-sidebar-name {
  font-weight: 700;
  font-size: .95rem;
  color: #222;
  margin-bottom: .1rem;
}
.bmr-sidebar-email {
  font-size: .78rem;
  color: #888;
  margin-bottom: .6rem;
}
.bmr-no-membership {
  display: inline-block;
  background: var(--bmr-teal);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: .25rem 1rem;
}
.bmr-section-divider {
  border: 0;
  border-top: 1px dashed #d0d0d0;
  margin: .75rem 0;
}
.bmr-menu-header {
  background: var(--bmr-teal);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  margin: 0;
}
.bmr-sidebar-link {
  display: block;
  padding: .65rem 1.1rem;
  color: #333;
  font-size: .875rem;
  font-weight: 500;
  border-bottom: 1px dashed #ebebeb;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.bmr-sidebar-link:hover,
.bmr-sidebar-link.active {
  background: var(--bmr-teal-light);
  color: var(--bmr-teal);
}
.bmr-quick-header {
  font-size: .78rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  padding: .5rem 1rem .25rem;
  letter-spacing: .04em;
}
.bmr-sidebar-actions { padding: .5rem .85rem .75rem; display: flex; flex-direction: column; gap: .45rem; }
.btn-bmr-primary {
  background: var(--bmr-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  padding: .55rem 1rem;
}
.btn-bmr-primary:hover { background: #164d44; color: #fff; }
.btn-bmr-outline {
  background: transparent;
  border: 1.5px solid var(--bmr-border);
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 500;
  color: #555;
  padding: .5rem 1rem;
}
.btn-bmr-outline:hover { border-color: var(--bmr-teal); color: var(--bmr-teal); }
.bmr-sidebar-logout {
  display: block;
  text-align: center;
  color: #dc3545;
  font-size: .875rem;
  font-weight: 600;
  padding: .7rem;
  cursor: pointer;
  text-decoration: none;
}
.bmr-sidebar-logout:hover { background: #fff5f5; }

/* ── Main content area ──────────────────────────────── */
.bmr-content { flex: 1; min-width: 0; }
.bmr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.bmr-page-title { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.bmr-breadcrumb {
  font-size: .8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.bmr-breadcrumb a { color: var(--bmr-teal); text-decoration: none; }
.bmr-breadcrumb .sep { color: #bbb; }
.bmr-breadcrumb .current { color: var(--bmr-teal); font-weight: 600; }

/* Mobile hamburger toggle button */
.bmr-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  padding: .3rem .55rem;
  cursor: pointer;
  margin-right: .25rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .bmr-mobile-toggle { display: inline-flex; align-items: center; }
}

/* Mobile sidebar backdrop */
.bmr-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: rgba(0,0,0,.45);
  z-index: 1035;
}
@media (min-width: 769px) {
  .bmr-sidebar-backdrop { display: none !important; }
}

@media (max-width: 768px) {
  .bmr-wrapper { padding: .75rem; }

  /* Slide-in drawer */
  .bmr-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease, box-shadow .25s ease;
    min-width: 260px;
    width: 260px;
  }
  .bmr-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 6px 0 28px rgba(0,0,0,.22);
  }
  .bmr-sidebar-backdrop.is-open {
    display: block;
  }
}

/* Mobile nav panel (guest users — public nav links) */
.bmr-mobile-nav {
  background: #164d44;
  border-top: 1px solid rgba(255,255,255,.12);
  position: sticky;
  top: 56px;
  z-index: 1029;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.bmr-mobile-nav a {
  display: block;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}
.bmr-mobile-nav a:last-child { border-bottom: 0; }
.bmr-mobile-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (min-width: 769px) { .bmr-mobile-nav { display: none !important; } }

/* Sidebar site-links section — only on mobile */
.bmr-sidebar-site-links { display: none; }
@media (max-width: 768px) { .bmr-sidebar-site-links { display: block; } }
