/* Clubbyx public site — from homepage mockup (clubbyx.html) */

:root {
  --teal: #00B8A9;
  --teal-dark: #009e91;
  --teal-light: #e6f9f8;
  --teal-bg: #f0fdfc;
  --dark: #0d1b2a;
  --gray: #5c6b7a;
  --light-gray: #f5f7fa;
  --border: #e2e8f0;
  --white: #ffffff;
  --icon-bg: #e8f8f7;
}

.cbx-front {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.cbx-front #main-content {
  flex: 1 0 auto;
}

.cbx-front-container {
  max-width: 1360px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cbx-front img,
.cbx-front svg {
  max-width: 100%;
  max-height: 70px;
  height: auto;
}

/* Member portal — allow avatars, QR codes, event images at natural size 
.cbx-member-portal img,
.cbx-member-portal svg {
  max-height: none;
}

/* Membership card media must fill their section boxes */
.cbx-member-portal .cbx-mc__photo-img,
.cbx-member-portal .cbx-mc__qr-img,
.cbx-member-portal .cbx-mc-png-img {
  max-width: none;
  max-height: none;
}*/

.cbx-text-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.cbx-text-logo span { color: var(--teal); }

.cbx-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: #fff;
}
.cbx-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── NAVBAR ── */
.cbx-front-nav.navbar {
  padding: 18px 0;
  border-bottom: none;
  background: #fff;
  transition: box-shadow .2s;
}
.cbx-front-nav.cbx-navbar-scrolled {
  box-shadow: 0 4px 20px rgba(13, 27, 42, .08) !important;
}

.cbx-front-nav .navbar-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.cbx-front-nav .navbar-brand span { color: var(--teal); }

.cbx-front-nav .nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark);
  padding: 0 14px !important;
  transition: color .2s;
}
.cbx-front-nav .nav-link:hover,
.cbx-front-nav .nav-link.active { color: var(--teal); }
.cbx-front-nav .nav-link.active {
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px !important;
}

.btn-login {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 8px;
  transition: border-color .2s, color .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-login:hover { border-color: var(--teal); color: var(--teal); }

.btn-demo-nav {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-demo-nav:hover { background: var(--teal-dark); color: #fff; }

.hero-content { z-index: 2; }

.hero-cta .btn-demo-hero,
.hero-cta .btn-video {
  justify-content: center;
  width: 100%;
}
@media (min-width: 576px) {
  .hero-cta .btn-demo-hero,
  .hero-cta .btn-video { width: auto; }
}

.hero-spacer { height: 80px; }

.hero-visual {
  display: flex;
  justify-content: center;
}
@media (min-width: 992px) {
  .hero-visual { justify-content: flex-end; }
}

.dashboard-scroll-wrap { width: 100%; }

.dash-nav-label { white-space: nowrap; }

/* ── HERO ── */
.hero-section {
  padding: 70px 0 0;
  background: #fff;
  overflow: hidden;
  min-height: 620px;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f0fdfc);
  pointer-events: none;
}

.hero-headline {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 6px;
}
.hero-headline .teal { color: var(--teal); }

.hero-sub {
  font-size: 15.5px;
  color: #4a5568;
  line-height: 1.65;
  max-width: 360px;
  margin-top: 16px;
  margin-bottom: 30px;
}

.btn-demo-hero {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
  text-decoration: none;
}
.btn-demo-hero:hover { background: var(--teal-dark); color: #fff; }

.btn-video {
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s;
  text-decoration: none;
}
.btn-video:hover { border-color: var(--teal); color: var(--teal); }
.btn-video .play-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}

.trusted-label {
  font-size: 13px;
  color: #7a8795;
  margin-top: 48px;
  margin-bottom: 14px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.logo-row .logo-pill {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.logo-row .logo-pill i { color: var(--teal); }

/* Dashboard mockup */
.dashboard-wrapper {
  position: relative;
  margin-top: -10px;
  width: 100%;
  max-width: 590px;
}

.dashboard-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,184,169,.12), 0 2px 12px rgba(0,0,0,.07);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8f4f3;
  width: 100%;
  max-width: 560px;
}

.dash-topbar {
  background: #f8fcfb;
  border-bottom: 1px solid #e5f0ee;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-topbar .logo-sm {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  display: flex; align-items: center; gap: 4px;
}
.dash-topbar .logo-sm span { color: var(--teal); }
.dash-icons { display: flex; gap: 10px; }
.dash-icons i { font-size: 14px; color: #94a3b8; cursor: pointer; }

.dash-body {
  display: flex;
  height: 360px;
}

.dash-sidebar {
  width: 130px;
  background: #f8fcfb;
  border-right: 1px solid #e5f0ee;
  padding: 12px 0;
  flex-shrink: 0;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 11.5px;
  color: #5c6b7a;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.dash-nav-item:hover,
.dash-nav-item.active {
  background: var(--teal-light);
  color: var(--teal);
}
.dash-nav-item.active { font-weight: 600; border-left: 2.5px solid var(--teal); }
.dash-nav-item i { font-size: 13px; width: 16px; }

.dash-content {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.stat-card .label {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 2px;
}
.stat-card .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.stat-card .badge-green {
  font-size: 8.5px;
  color: #22c55e;
  font-weight: 600;
  margin-top: 2px;
}
.stat-card .sub {
  font-size: 8.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
}

.section-title-sm {
  font-size: 10px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.event-row:last-child { border-bottom: none; }
.event-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--teal);
  flex-shrink: 0;
}
.event-info .name { font-size: 9.5px; font-weight: 600; color: var(--dark); }
.event-info .date { font-size: 8.5px; color: #94a3b8; }
.event-badge {
  margin-left: auto;
  font-size: 8px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

.donut-wrap { text-align: center; }
.donut-svg { width: 100px; height: 100px; }

.legend-row {
  display: flex; align-items: center; gap: 4px;
  font-size: 8.5px; color: #5c6b7a; margin-bottom: 2px;
}
.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.payment-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 8.5px;
}
.payment-row .name { font-weight: 600; color: var(--dark); }
.payment-row .type { color: #94a3b8; }
.payment-row .date { color: #94a3b8; }
.payment-row .amount { font-weight: 700; color: var(--dark); }
.payment-row .paid { color: #22c55e; font-weight: 600; }

.phone-mockup {
  position: absolute;
  right: -60px;
  bottom: 10px;
  width: 165px;
  background: #111827;
  border-radius: 26px;
  padding: 10px 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  border: 2px solid #1f2937;
  z-index: 10;
}
.phone-screen {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  padding: 10px;
  min-height: 320px;
  position: relative;
}
.phone-topbar {
  background: var(--teal);
  margin: -10px -10px 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.phone-topbar .sub { font-size: 7.5px; font-weight: 400; opacity: .85; }

.member-card-phone {
  background: var(--teal-light);
  border-radius: 8px;
  padding: 7px;
  margin-bottom: 8px;
  font-size: 8px;
}
.member-card-phone .badge-active {
  background: var(--teal);
  color: #fff;
  font-size: 7px;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}

.qr-placeholder {
  background: #f1f5f9;
  border-radius: 6px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  margin: 6px auto;
  font-size: 8px;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.quick-link-item {
  text-align: center;
  font-size: 7px;
  color: #5c6b7a;
}
.quick-link-item .icon {
  width: 22px; height: 22px;
  background: var(--icon-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2px;
  font-size: 9px;
  color: var(--teal);
}

.upcoming-phone {
  background: var(--teal-light);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 7.5px;
}
.upcoming-phone .label { font-size: 7px; color: #7a8795; font-weight: 600; }

.hero-landscape {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  overflow: hidden;
  z-index: 0;
}

/* ── FEATURES ── */
.features-section {
  background: var(--light-gray);
  padding: 64px 0;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 26px;
  height: 100%;
  border: 1px solid #e8f0f8;
  transition: box-shadow .2s, transform .2s;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
}

/* Horizontal feature layout (homepage mockup) */
.feature-card-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 24px 22px;
}

.feature-card-body {
  flex: 1;
  min-width: 0;
}

.feature-card-horizontal h5 {
  margin-bottom: 8px;
}

.feature-card-horizontal p {
  margin-bottom: 14px;
}

.feature-icon-circle {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  margin-bottom: 0;
  background: var(--icon-bg);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--feature-accent, var(--teal)) 12%, transparent);
  color: var(--feature-accent, var(--teal));
}

.cbx-nav-brand {
  padding: 0;
  margin: 0;
  line-height: 1;
}

.cbx-nav-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* GekkoChat hidden but kept in DOM */
.gekkochat-hidden {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,184,169,.12);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 54px; height: 54px;
  background: var(--icon-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--teal);
}

.feature-card h5 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
}

.link-teal {
  color: var(--teal);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s;
}
.link-teal:hover { gap: 9px; color: var(--teal-dark); }

.section-heading-sm {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}
@media (max-width: 575px) {
  .section-heading-sm { font-size: 1.375rem; }
}

/* ── STATS ── */
.stats-section {
  background: #fff;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.stats-section .row {
  row-gap: 2rem;
}
@media (min-width: 992px) {
  .stats-section .row { row-gap: 0; }
}

.stat-block { text-align: center; }
.stat-block .icon-wrap {
  font-size: 32px;
  color: var(--teal);
  margin-bottom: 10px;
}
.stat-block .number {
  font-size: 42px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-block .desc {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* ── FOOTER ── */
.cbx-front-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}
.cbx-front-footer .brand { color: #fff; font-weight: 700; }
.cbx-front-footer .cbx-text-logo { font-size: inherit; }

/* ── Inner pages ── */
.cbx-page-hero {
  background: var(--light-gray);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.cbx-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.cbx-page-lead {
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
}
.cbx-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cbx-inner-section {
  padding: 48px 0 64px;
}

/* Contact page — sidebar + form grid */
.cbx-contact-layout {
  align-items: stretch;
}

.cbx-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.cbx-contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.cbx-contact-detail + .cbx-contact-detail {
  margin-top: 1rem;
}

.cbx-contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  font-size: 18px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.cbx-contact-tip {
  background: var(--teal-bg);
  border-color: color-mix(in srgb, var(--teal) 22%, #e8f0f8);
  padding: 1rem 1.25rem;
}

@media (min-width: 992px) {
  .cbx-contact-tip {
    margin-top: auto;
  }
}

.cbx-contact-info:hover,
.cbx-contact-tip:hover,
.cbx-contact-form:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
}

.cbx-contact-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.cbx-content-card {
  background: #fff;
  border: 1px solid #e8f0f8;
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}
.cbx-content-card .feature-icon-wrap {
  width: 44px;
  height: 44px;
  font-size: 20px;
  margin-bottom: 12px;
}

.cbx-pricing-featured {
  border-color: var(--teal) !important;
  box-shadow: 0 8px 32px rgba(0,184,169,.15);
}
.text-teal { color: var(--teal) !important; }

.cbx-blog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8f0f8;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.cbx-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,184,169,.12);
  transform: translateY(-2px);
}
.cbx-blog-card-img {
  aspect-ratio: 16/9;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 2rem;
}
.cbx-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cbx-link-title {
  color: var(--dark);
  text-decoration: none;
}
.cbx-link-title:hover { color: var(--teal); }

.cbx-prose h2, .cbx-prose h3 { font-weight: 700; margin-top: 1.5rem; }
.cbx-prose p, .cbx-prose li { color: #64748b; }
.cbx-prose a { color: var(--teal); }
.cbx-prose img { max-width: 100%; height: auto; border-radius: 8px; }

/* ── Responsive ── */

/* Large tablet / small desktop */
@media (max-width: 1199px) {
  .phone-mockup {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 1.25rem auto 0;
    width: 150px;
  }
  .hero-section { min-height: auto; }
}

/* Tablet */
@media (max-width: 991px) {
  .cbx-front-nav.navbar { padding: 14px 0; }

  .cbx-front-nav .navbar-collapse {
    padding: 0.75rem 0 0.25rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .cbx-front-nav .nav-link {
    padding: 0.6rem 0 !important;
    border-bottom: none !important;
  }

  .cbx-front-nav .nav-link.active {
    padding-bottom: 0.6rem !important;
    background: var(--teal-light);
    border-radius: 8px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .cbx-front-nav .dropdown-menu {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    padding-left: 0.5rem;
  }

  .cbx-nav-actions {
    flex-direction: column;
    width: 100%;
    padding-top: 0.5rem;
  }

  .cbx-nav-actions .btn-login,
  .cbx-nav-actions .btn-demo-nav {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero-section {
    padding: 48px 0 0;
    min-height: auto;
  }

  .hero-headline { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { max-width: 100%; }

  .trusted-label { margin-top: 32px; }

  .dashboard-card { max-width: 100%; }
  .dashboard-wrapper { margin-top: 0; max-width: 100%; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-row { grid-template-columns: repeat(2, 1fr); }

  .features-section { padding: 48px 0; }
  .feature-card { padding: 24px 20px; }

  .stats-section { padding: 40px 0; }
  .stat-block .number { font-size: 34px; }

  .cbx-page-hero { padding: 40px 0 32px; }
  .cbx-page-title { font-size: 1.875rem; }
  .cbx-inner-section { padding: 36px 0 48px; }
}

/* Mobile landscape / large phones */
@media (max-width: 767px) {
  .hero-headline { font-size: 32px; }

  .hero-section::after { height: 80px; }
  .hero-landscape { height: 100px; }
  .hero-spacer { height: 48px; }

  .logo-row { gap: 10px; }
  .logo-row .logo-pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  .dashboard-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .dashboard-card {
    min-width: 300px;
  }

  .dash-body {
    height: auto;
    min-height: 300px;
  }

  .dash-sidebar {
    width: 88px;
  }

  .dash-nav-item {
    padding: 6px 8px;
    justify-content: center;
  }

  .dash-nav-label { display: none; }

  .dash-nav-item i {
    width: auto;
    font-size: 14px;
  }

  .dash-content { padding: 10px; }

  .event-badge { display: none; }

  .payment-row {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .payment-row .date { width: 100%; order: 3; font-size: 7.5px; }

  .phone-mockup { display: none; }

  .stat-block .icon-wrap { font-size: 26px; }
  .stat-block .number { font-size: 28px; }
  .stat-block .desc { font-size: 13px; }

  .cbx-front-footer {
    padding: 24px 0;
    font-size: 12px;
    line-height: 1.7;
  }
}

/* Small phones */
@media (max-width: 575px) {
  .cbx-front-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cbx-front .form-control,
  .cbx-front .form-select,
  .cbx-front .btn-login,
  .cbx-front .btn-demo-nav {
    min-height: 44px;
  }

  .cbx-text-logo,
  .cbx-front-nav .navbar-brand { font-size: 20px; }

  .hero-section { padding: 32px 0 0; }
  .hero-headline { font-size: 28px; letter-spacing: -0.75px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 22px; }

  .btn-demo-hero,
  .btn-video {
    font-size: 14px;
    padding: 12px 20px;
  }

  .trusted-label {
    margin-top: 24px;
    font-size: 12px;
  }

  .stat-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-card .value { font-size: 15px; }

  .dash-body { min-height: 260px; }
  .dash-sidebar { width: 40px; padding: 8px 0; }

  .features-section { padding: 40px 0; }
  .feature-card {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .feature-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 12px;
  }
  .feature-card h5 { font-size: 15px; }
  .feature-card p { font-size: 13px; margin-bottom: 14px; }

  .stats-section { padding: 32px 0; }
  .stat-block { padding: 0 0.5rem; }

  .cbx-page-hero { padding: 32px 0 24px; }
  .cbx-page-title { font-size: 1.625rem; }
  .cbx-page-lead { font-size: 14px; }
  .cbx-inner-section { padding: 28px 0 40px; }

  .cbx-content-card,
  .feature-card .cbx-prose { padding: 1.25rem !important; }

  .feature-card-horizontal {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .feature-icon-circle {
    margin-bottom: 4px;
  }

  .cbx-front-footer .brand {
    display: inline-block;
  }
}

/* Touch devices — reduce hover motion */
@media (hover: none) {
  .feature-card:hover,
  .cbx-blog-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* GekkoChat — keep clear of mobile edges / bottom safe area */
@media (max-width: 767px) {
  .cbx-front .gekkochat {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }

  .cbx-front .gekkochat-panel {
    width: min(360px, calc(100vw - 1.5rem));
    right: 0;
  }
}

/* Solution pages */
.cbx-solution-hero {
  background: linear-gradient(135deg, #f0fdfc 0%, #fff 55%, #e6f9f8 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.cbx-solution-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--dark);
}
.cbx-solution-lead { font-size: 1.15rem; color: #4a5568; max-width: 540px; }
.cbx-solution-hero-icon {
  width: 140px; height: 140px; margin: 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--solution-accent, var(--teal)) 15%, #fff);
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--solution-accent, var(--teal)) 8%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--solution-accent, var(--teal));
}
.cbx-solution-list { padding-left: 1.1rem; margin: 0; color: #64748b; font-size: 14px; }
.cbx-solution-list li { margin-bottom: 0.55rem; }
.cbx-solution-block-accent { border-color: color-mix(in srgb, var(--teal) 35%, #e8f0f8); }
.cbx-module-pill {
  display: inline-block; background: var(--teal-light); color: var(--teal-dark);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px;
}
.cbx-solution-cta {
  background: var(--light-gray);
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--border);
}

/* About */
.cbx-vision-quote {
  max-width: 720px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #334155;
  border-left: 4px solid var(--teal);
  padding-left: 1.25rem;
  text-align: left;
  font-style: italic;
}

/* Member auth pages (login / register) — with front header & footer */
.cbx-auth-page {
  background: var(--light-gray);
}

.cbx-auth-main {
  flex: 1 0 auto;
}

.cbx-auth-shell {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .cbx-auth-shell {
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    min-height: min(520px, calc(100vh - 280px));
  }
}

.cbx-auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #f0fdfc 0%, #fff 55%, #e6f9f8 100%);
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--border));
}

@media (max-width: 991.98px) {
  .cbx-auth-aside {
    order: 2;
    padding: 1.25rem;
  }
}

.cbx-auth-aside-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.cbx-auth-aside-lead {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.cbx-auth-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.cbx-auth-aside-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 14px;
  color: #334155;
}

.cbx-auth-aside-list i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 184, 169, 0.12);
}

.cbx-auth-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.cbx-auth-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 14px;
  color: #334155;
}

.cbx-auth-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cbx-auth-aside-note {
  margin-top: auto;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}

.cbx-auth-aside-note.is-highlight {
  background: var(--teal-light);
  border-color: color-mix(in srgb, var(--teal) 25%, var(--border));
  color: var(--teal-dark);
}

.cbx-auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cbx-auth-form-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(13, 27, 42, 0.06);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 576px) {
  .cbx-auth-form-card {
    padding: 2rem 1.75rem;
  }
}

.cbx-auth-form-head {
  margin-bottom: 1.5rem;
}

.cbx-auth-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--dark);
  margin: 0 0 0.35rem;
}

.cbx-auth-form-lead {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.cbx-auth-input-wrap {
  position: relative;
}

.cbx-auth-input-wrap > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.cbx-auth-input-wrap .form-control {
  padding-left: 2.5rem;
  border-radius: 10px;
  border-color: var(--border);
  min-height: 44px;
}

.cbx-auth-input-wrap .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 15%, transparent);
}

.cbx-auth-submit {
  min-height: 46px;
  font-weight: 600;
  border-radius: 10px;
}

.cbx-auth-form-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cbx-auth-demo-hint code {
  font-size: 12px;
  background: var(--light-gray);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.cbx-member-menu { min-width: 240px; }
.cbx-member-menu .dropdown-header { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Club switch dropdown (header, live search) */
.cbx-club-switch-toggle {
  max-width: min(220px, 42vw);
  text-align: left;
}

.cbx-club-switch-label {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.cbx-club-switch-menu {
  min-width: 280px;
  max-width: min(360px, calc(100vw - 2rem));
}

.cbx-club-switch-list {
  max-height: 260px;
  overflow-y: auto;
}

.cbx-club-switch-list .dropdown-item {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbx-club-switch-list .dropdown-item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.text-teal { color: var(--teal) !important; }

/* ═══ Member portal (front-integrated, desktop: no sidebar) ═══ */
.cbx-member-portal {
  background:
    radial-gradient(1100px 420px at 8% -8%, color-mix(in srgb, var(--teal, #00B8A9) 16%, transparent), transparent 58%),
    radial-gradient(900px 360px at 100% 0%, rgba(15, 23, 42, 0.045), transparent 55%),
    var(--light-gray);
}

.cbx-member-portal-main {
  flex: 1 0 auto;
}

.cbx-member-portal-container {
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

.cbx-member-portal .cbx-member-profile-layout {
  align-items: flex-start;
}

.cbx-member-portal .cbx-member-profile-layout .cbx-mc,
.cbx-member-portal .cbx-member-profile-layout .cbx-digital-card {
  position: static;
}

@media (max-width: 991.98px) {
  .cbx-member-portal {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .cbx-member-portal-container {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  /* No bottom nav on clubs picker — avoid extra padding */
  .cbx-member-portal:not(.cbx-member-portal-has-nav) {
    padding-bottom: 0;
  }

  .cbx-member-portal:not(.cbx-member-portal-has-nav) .cbx-member-portal-container {
    padding-bottom: 1.75rem;
  }

  .cbx-nav-actions .cbx-club-switch-toggle {
    max-width: min(180px, 55vw);
  }

  .cbx-nav-actions .cbx-club-switch-label {
    max-width: 110px;
  }
}

.cbx-member-portal-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.cbx-member-portal-link:hover { color: var(--teal-dark); }

.cbx-member-page-head {
  margin-bottom: 1.15rem;
}

.cbx-member-page-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--dark);
}

.cbx-member-page-lead {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0.35rem 0 0;
  max-width: 42rem;
}

.cbx-member-welcome-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

/* Dashboard — 2-column on desktop */
.cbx-member-dashboard {
  display: grid;
  gap: 1.25rem;
  animation: cbxMemberFadeUp 0.45s ease both;
}

@keyframes cbxMemberFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cbx-member-desktop-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .cbx-member-dashboard {
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.9fr);
    gap: 1.75rem;
    align-items: start;
  }

  .cbx-member-portal .cbx-member-card-app,
  .cbx-member-portal .cbx-mc,
  .cbx-member-portal .cbx-digital-card {
    position: sticky;
    top: calc(72px + 1.25rem);
  }

  .cbx-member-portal .cbx-member-event-card,
  .cbx-member-portal .cbx-member-list {
    max-width: none;
  }
}

/* Inner pages — card grid on desktop */
@media (min-width: 992px) {
  .cbx-member-portal .cbx-member-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cbx-member-portal .cbx-member-card-app.cbx-member-card-full,
  .cbx-member-portal .cbx-mc--lg,
  .cbx-member-portal .cbx-digital-card-full {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .cbx-member-portal .cbx-member-dues-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
  }

  .cbx-member-portal .cbx-member-profile {
    max-width: none;
  }

  .cbx-member-portal .cbx-member-checkout-wrap,
  .cbx-member-portal .cbx-member-ai-wrap {
    max-width: 560px;
  }
}

/* Member dues & payments */
.cbx-dues-page {
  max-width: 1100px;
  margin: 0 auto;
  animation: cbxMemberFadeUp 0.4s ease both;
}

.cbx-dues-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem 1rem;
}

.cbx-dues-head-cta .btn {
  min-height: 44px;
  white-space: nowrap;
}

.cbx-dues-stats .cbx-dues-stat {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.035);
  position: relative;
  overflow: hidden;
}

.cbx-dues-stat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal, #00B8A9), color-mix(in srgb, var(--teal, #00B8A9) 55%, #0f172a));
}

.cbx-dues-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray, #64748b);
  margin-bottom: 0.25rem;
}

.cbx-dues-stat-value {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark, #0f172a);
  letter-spacing: -0.02em;
}

.cbx-dues-stat small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

.cbx-member-dues-layout {
  display: grid;
  gap: 1.15rem;
}

.cbx-dues-plan-card,
.cbx-dues-history-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.04);
}

.cbx-dues-plan-card {
  padding: 1.15rem 1.2rem 1.25rem;
}

.cbx-dues-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cbx-dues-plan-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal, #00B8A9);
  margin-bottom: 0.2rem;
}

.cbx-dues-plan-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-dues-page .alert {
  border-radius: 0.75rem;
}

.cbx-dues-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.cbx-dues-badge.is-active {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.cbx-dues-badge.is-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.cbx-dues-badge.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.cbx-dues-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #eef2f7;
}

.cbx-dues-plan-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal, #00B8A9);
}

.cbx-dues-plan-price strong {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--dark, #0f172a);
}

.cbx-dues-plan-cycle {
  margin-left: 0.25rem;
  font-size: 0.85rem;
  color: var(--gray, #64748b);
}

.cbx-dues-plan-meta {
  display: grid;
  gap: 0.65rem;
}

.cbx-dues-plan-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.cbx-dues-plan-meta li span {
  color: var(--gray, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.cbx-dues-plan-meta li span .bi {
  color: var(--teal, #00B8A9);
}

.cbx-dues-plan-meta li strong {
  color: var(--dark, #0f172a);
  text-align: right;
}

.cbx-dues-renew-form {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--teal, #00B8A9) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--teal, #00B8A9) 18%, #e5e7eb);
}

.cbx-dues-renew-form .form-check-label {
  font-size: 0.84rem;
  color: var(--dark, #0f172a);
}

.cbx-dues-plan-empty {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.cbx-dues-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--teal, #00B8A9) 12%, #fff);
  color: var(--teal, #00B8A9);
  font-size: 1.35rem;
}

.cbx-dues-history-card {
  overflow: hidden;
}

.cbx-dues-history-head {
  padding: 1.05rem 1.15rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
}

.cbx-dues-history-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--dark, #0f172a);
}

.cbx-dues-history-lead {
  margin-top: 0.2rem;
  font-size: 0.84rem;
  color: var(--gray, #64748b);
}

.cbx-dues-table {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cbx-dues-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
  padding: 0.7rem 1rem;
}

.cbx-dues-table tbody td {
  padding: 0.85rem 1rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.cbx-dues-table tbody tr:last-child td {
  border-bottom: 0;
}

.cbx-dues-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.cbx-dues-pay-badge.is-paid {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.cbx-dues-pay-badge.is-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.cbx-dues-pay-badge.is-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.cbx-dues-pay-badge.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.cbx-dues-mobile-list {
  display: grid;
  gap: 0;
}

.cbx-dues-mobile-item {
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid #eef2f7;
}

.cbx-dues-mobile-item:last-child {
  border-bottom: 0;
}

.cbx-dues-history-empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
  color: var(--gray, #64748b);
}

.cbx-dues-history-empty .bi {
  font-size: 1.75rem;
  color: var(--teal, #00B8A9);
  margin-bottom: 0.55rem;
  display: inline-block;
}

@media (max-width: 575.98px) {
  .cbx-dues-stats .cbx-dues-stat {
    padding: 0.8rem 0.85rem;
  }

  .cbx-dues-stat-value {
    font-size: 1.1rem;
  }
}

/* GekkoChat offset above mobile bottom nav */
.cbx-member-portal .gekkochat {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  .cbx-member-portal .gekkochat {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* My clubs picker (logged-in, no active club) */
.cbx-member-clubs-page {
  max-width: 960px;
  margin: 0 auto;
}

.cbx-member-club-pick {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.cbx-member-club-pick:hover {
  border-color: color-mix(in srgb, var(--teal) 40%, var(--border));
  box-shadow: 0 4px 16px rgba(0, 184, 169, 0.08);
}

.cbx-member-club-pick-icon {
  width: 44px !important;
  height: 44px !important;
  font-size: 18px !important;
  flex-shrink: 0;
}

.cbx-member-club-pick-body {
  min-width: 0;
  flex: 1;
}

/* Member profile page */
.cbx-member-profile {
  max-width: 1100px;
  margin: 0 auto;
}

.cbx-profile-hero {
  padding: 1.5rem !important;
}

.cbx-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal-light);
  box-shadow: 0 4px 20px rgba(0, 184, 169, 0.15);
}

.cbx-profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cbx-profile-name { color: var(--dark); }

.cbx-profile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.cbx-profile-badge-active { background: #dcfce7; color: #166534; }
.cbx-profile-badge-pending { background: #fef3c7; color: #92400e; }
.cbx-profile-badge-suspended { background: #fee2e2; color: #991b1b; }
.cbx-profile-badge-muted { background: #f1f5f9; color: #64748b; }
.cbx-profile-badge-plan { background: var(--teal-light); color: var(--teal-dark); }

.cbx-profile-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.cbx-profile-meta-label {
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cbx-profile-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem !important;
}

.cbx-profile-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cbx-profile-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.cbx-profile-stat-value {
  display: block;
  font-size: 15px;
  color: var(--dark);
}

.cbx-profile-section {
  padding: 1.35rem 1.25rem !important;
}

.cbx-profile-quick-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.cbx-profile-quick-link:hover {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--border));
  background: var(--teal-light);
  color: var(--teal-dark);
}

.cbx-profile-quick-link .bi:first-child { color: var(--teal); }

.cbx-profile-club-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cbx-profile-club-chip:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(0, 184, 169, 0.08);
}

.cbx-profile-club-chip.is-active {
  border-color: color-mix(in srgb, var(--teal) 50%, var(--border));
  background: var(--teal-light);
}

.cbx-profile-auto-renew {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--gray);
}

.cbx-profile-identity {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem !important;
  margin-bottom: 0.25rem;
}

.cbx-profile-identity-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cbx-profile-identity-copy { min-width: 0; }

.cbx-profile-identity-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.cbx-profile-identity-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 14px;
}

.cbx-profile-identity-meta dt {
  margin: 0;
  color: var(--gray);
  font-weight: 500;
}

.cbx-profile-identity-meta dd {
  margin: 0;
  font-weight: 700;
  color: var(--dark);
  text-align: end;
}

.cbx-profile-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 1.35rem;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}

.cbx-profile-tabs .nav-item { flex: 0 0 auto; }

.cbx-profile-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--gray);
  font-weight: 600;
  font-size: 14px;
  padding: 0.5rem 0.9rem;
  background: transparent;
}

.cbx-profile-tabs .nav-link .bi { font-size: 1rem; }

.cbx-profile-tabs .nav-link.active,
.cbx-profile-tabs .nav-link:hover {
  color: var(--dark);
  background: transparent;
}

.cbx-profile-tabs .nav-link.active {
  border-bottom-color: var(--teal);
}

.cbx-profile-panes {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 0.15rem 1rem 1.15rem;
}

.cbx-profile-tab-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 1.25rem 0 0.4rem;
}

.cbx-profile-tab-lead {
  margin: 0 0 1rem;
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 42rem;
}

.cbx-profile-subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

.cbx-member-profile .form-control,
.cbx-member-profile .form-select {
  font-size: 16px;
  min-height: 44px;
}

.cbx-member-profile textarea.form-control {
  min-height: 7rem;
  height: auto;
}

.cbx-profile-save {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cbx-profile-save .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cbx-profile-facts {
  display: grid;
  gap: 0.5rem;
}

.cbx-profile-fact,
.cbx-profile-committees li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cbx-profile-fact span,
.cbx-profile-committees li span {
  color: var(--gray);
  font-size: 14px;
}

.cbx-profile-fact strong,
.cbx-profile-committees li strong {
  color: var(--dark);
  text-align: end;
}

.cbx-profile-committees {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cbx-profile-identity {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cbx-profile-identity-meta { min-width: 16rem; }

  .cbx-profile-facts,
  .cbx-profile-committees {
    grid-template-columns: 1fr 1fr;
  }
}

/* Landscape membership card — PrivilegeNetwork-inspired credit-card ratio (~1.6:1) */
.cbx-mc {
  width: 100%;
  margin-inline: auto;
}

.cbx-mc__face {
  --mc-primary: #0A2540;
  --mc-secondary: #0d4f4a;
  --mc-accent: #00B8A9;
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 20px;
  padding: 0.25rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  height: auto;
  min-height: 0;
  background:
    radial-gradient(110% 85% at 100% 0%, color-mix(in srgb, var(--mc-accent) 28%, transparent) 0%, transparent 48%),
    radial-gradient(90% 75% at 0% 100%, color-mix(in srgb, var(--mc-secondary) 65%, transparent) 0%, transparent 52%),
    linear-gradient(148deg, var(--mc-primary) 0%, color-mix(in srgb, var(--mc-primary) 75%, var(--mc-secondary)) 46%, var(--mc-secondary) 100%);
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--mc-primary) 32%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  isolation: isolate;
}

.cbx-mc__glow {
  position: absolute;
  inset: -35% -15% auto auto;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.cbx-mc__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.14) 0%, transparent 38%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.cbx-mc__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.55) 1px, transparent 0);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}

.cbx-mc__face > *:not(.cbx-mc__glow):not(.cbx-mc__pattern):not(.cbx-mc__shine) {
  position: relative;
  z-index: 1;
}

.cbx-mc__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
}

.cbx-mc__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cbx-mc__logo {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

.cbx-mc__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
}

.cbx-mc__identity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.cbx-mc__photo {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-self: center;
  position: relative;
  flex-shrink: 0;
}

.cbx-mc--lg .cbx-mc__photo {
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
}

.cbx-mc__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbx-mc__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.cbx-mc__photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.8vw, 1.75rem);
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--mc-accent) 28%, rgba(255,255,255,0.08));
}

.cbx-mc__identity-text { min-width: 0; }

.cbx-mc__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.05rem;
}

.cbx-mc__name {
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbx-mc__number {
  margin-top: 0.1rem;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbx-mc__plan {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbx-mc__qr-wrap {
  text-align: center;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
}

.cbx-mc__qr {
  --cbx-mc-qr-pad: 8px;
  background: #fff;
  border-radius: 10px;
  padding: var(--cbx-mc-qr-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  overflow: hidden;
}

.cbx-mc__qr--lg {
  width: 138px;
  height: 138px;
}

.cbx-mc__qr.is-invalid {
  filter: blur(5px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.cbx-mc__qr-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 4px;
  object-fit: cover;
  object-position: center center;
  flex: 1 1 auto;
}

.cbx-mc__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  margin: 0 -1rem -0.85rem;
  background: rgba(3, 20, 32, 0.92);
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  text-transform: uppercase;
}

.cbx-mc__meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.15rem;
}

.cbx-mc__meta-value {
  font-weight: 700;
  font-size: 0.9rem;
}

.cbx-mc__powered-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
  font-weight: 600;
}

.cbx-mc__powered {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.cbx-mc-page .cbx-member-page-head {
  margin-bottom: 0.5rem;
}

.cbx-mc-page .cbx-member-page-lead {
  margin-bottom: 0;
}

.cbx-mc-page .cbx-mc-stage {
  padding-top: 0.85rem;
}

/*
 * Home privilege-card view (/{club}/member): fit the card in the viewport
 * with no page scroll on X or Y.
 */
body.cbx-member-portal-card-home {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

body.cbx-member-portal-card-home #main-content,
body.cbx-member-portal-card-home .cbx-member-portal-main {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.cbx-member-portal-card-home .cbx-member-portal-container {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.cbx-member-portal-card-home .cbx-mc-page--home {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.cbx-member-portal-card-home .cbx-mc-page--home .cbx-member-page-head {
  flex: 0 0 auto;
  margin-bottom: 0.35rem;
}

body.cbx-member-portal-card-home .cbx-mc-page--home .cbx-member-page-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

body.cbx-member-portal-card-home .cbx-mc-page--home .cbx-mc-stage {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: min(700px, 100%);
  margin: 0 auto;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  body.cbx-member-portal-card-home.cbx-member-portal-has-nav {
    /* Keep space for fixed bottom nav without allowing page scroll. */
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.cbx-member-portal-card-home .cbx-member-portal-container {
    padding-bottom: 0.35rem;
  }
}

.cbx-mc-page-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cbx-mc-page-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cbx-mc-stage {
  max-width:700px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.75rem;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--mc-secondary, #0d4f4a) 8%, transparent), transparent 55%),
    #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cbx-mc-stage .cbx-mc { width: 100%; max-width: 600px; }
.cbx-mc-orient { width: 100%; }

.cbx-mc--compact .cbx-mc__logo { max-height: 48px; }
.cbx-mc--compact .cbx-mc__meta { margin-top: 0.75rem; gap: 1rem; }
.cbx-mc--compact .cbx-mc__name { font-size: clamp(1rem, 2.2vw, 1.35rem); }

/*
 * Mobile portrait: keep desktop landscape layout, rotate 90°,
 * and size so the full card stays on screen (PN pattern).
 */
@media (max-width: 575.98px) and (orientation: portrait) {
  .cbx-mc-orient {
    --cbx-mc-w: min(560px, calc((100vw - 1.25rem) * 1.6), calc(100dvh - 7.5rem));
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: var(--cbx-mc-w);
    margin: 0.75rem 0 1rem;
    overflow: visible;
  }
  .cbx-mc-orient .cbx-mc,
  .cbx-mc-orient .cbx-mc--lg,
  .cbx-mc-orient .cbx-mc--compact {
    width: var(--cbx-mc-w);
    max-width: none;
    margin: 0;
    transform: rotate(90deg);
    transform-origin: center center;
    flex-shrink: 0;
  }
  .cbx-mc-orient .cbx-mc__qr {
    width: 138px;
    height: 138px;
  }
  .cbx-mc-stage {
    max-width: 100%;
    overflow: visible;
  }

  /* Home/card page has a title, actions, and the bottom nav — keep the rotated card inside that space. */
  .cbx-mc-page .cbx-mc-orient {
    --cbx-mc-w: min(520px, calc((100vw - 2.75rem) * 1.6), calc(100dvh - 21.5rem));
    margin: 0.35rem 0 0.35rem;
  }

  .cbx-mc-page .cbx-member-page-lead {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .cbx-mc-page .cbx-mc-stage {
    padding: 0.5rem 0.65rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbx-mc-orient .cbx-mc,
  .cbx-member-dashboard {
    animation: none !important;
    transition: none !important;
  }
}

/* PNG membership card demo (/member/card1) */
.cbx-mc-png-stage {
  max-width: 640px;
}

.cbx-mc-png-orient {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cbx-mc-png-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 1012 / 638;
  border-radius: 18px;
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--mc-primary, #0A2540) 28%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

@media (max-width: 575.98px) and (orientation: portrait) {
  .cbx-mc-png-orient {
    --cbx-mc-png-w: min(520px, calc((100vw - 2.5rem) * 1.586), calc(100dvh - 20rem));
    height: var(--cbx-mc-png-w);
    margin: 0.5rem 0;
    overflow: visible;
  }

  .cbx-mc-png-img {
    width: var(--cbx-mc-png-w);
    max-width: none;
    transform: rotate(90deg);
    transform-origin: center center;
    flex-shrink: 0;
  }

  .cbx-mc-png-page .cbx-mc-stage {
    padding: 0.5rem 0.65rem 0.85rem;
  }

  .cbx-mc-png-page .cbx-member-page-lead {
    font-size: 0.875rem;
    line-height: 1.35;
  }
}

/* Member events — listing tiles & detail */
.cbx-member-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--gray);
  margin: 0 0 0.65rem;
}

.cbx-member-event-date {
  width: 52px;
  text-align: center;
  background: var(--teal-light);
  border-radius: 10px;
  padding: 0.4rem 0.35rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.cbx-member-event-date strong {
  display: block;
  font-size: 0.7rem;
  color: var(--teal-dark);
  text-transform: uppercase;
}

.cbx-member-event-date span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.cbx-member-event-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.cbx-member-event-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  color: inherit;
  height: 100%;
}

.cbx-member-event-tile:hover {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--border));
  box-shadow: 0 8px 24px rgba(0, 184, 169, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.cbx-member-event-tile.is-featured {
  border-color: color-mix(in srgb, var(--teal) 25%, var(--border));
}

.cbx-member-event-tile-media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--light-gray);
  overflow: hidden;
}

.cbx-member-event-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbx-member-event-tile-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.cbx-member-event-tile-body {
  padding: 1rem 1.1rem 1.1rem;
}

.cbx-member-event-tile-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.cbx-member-event-tile-meta {
  font-size: 13px;
  color: var(--gray);
}

.cbx-member-event-tile-meta .bi {
  margin-right: 0.35rem;
  color: var(--teal);
}

.cbx-member-event-tile-excerpt {
  font-size: 13px;
  color: var(--gray);
  margin: 0.65rem 0 0;
  line-height: 1.45;
}

.cbx-member-event-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.cbx-member-events-featured {
  display: grid;
  gap: 1rem;
}

.cbx-member-events-grid {
  display: grid;
  gap: 1rem;
}

.cbx-member-events-empty {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .cbx-member-events-featured {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 992px) {
  .cbx-member-portal .cbx-member-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cbx-member-event-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cbx-member-event-detail-card {
  padding: 0 !important;
}

/* Event detail — hero + sidebar layout */
.cbx-event-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.cbx-event-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.cbx-event-detail-back:hover {
  color: var(--teal);
}

.cbx-event-detail-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b2a 0%, #134e4a 55%, var(--teal) 120%);
  color: #fff;
  margin-bottom: 1.5rem;
  min-height: 220px;
}

.cbx-event-detail-hero.has-cover {
  min-height: 280px;
}

.cbx-event-detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbx-event-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(13, 27, 42, 0.72) 45%,
    rgba(0, 184, 169, 0.35) 100%
  );
}

.cbx-event-detail-hero.has-cover .cbx-event-detail-hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(13, 27, 42, 0.55) 50%,
    rgba(0, 184, 169, 0.25) 100%
  );
}

.cbx-event-detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.35rem 1.75rem;
}

@media (min-width: 768px) {
  .cbx-event-detail-hero-content {
    padding: 2rem 2rem 2.25rem;
  }

  .cbx-event-detail-hero {
    min-height: 260px;
  }

  .cbx-event-detail-hero.has-cover {
    min-height: 340px;
  }
}

.cbx-event-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.cbx-event-detail-chip.is-featured {
  background: rgba(250, 204, 21, 0.22);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde68a;
}

.cbx-event-detail-chip.is-countdown {
  background: rgba(0, 184, 169, 0.28);
  border-color: rgba(0, 184, 169, 0.5);
  color: #a7f3d0;
}

.cbx-event-detail-hero-main {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.cbx-event-detail-hero-date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  backdrop-filter: blur(8px);
  line-height: 1.1;
}

.cbx-event-detail-hero-month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.cbx-event-detail-hero-day {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.15rem 0;
}

.cbx-event-detail-hero-year {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.cbx-event-detail-title {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cbx-event-detail-lead {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.88;
  margin: 0 0 0.85rem;
  max-width: 52ch;
}

.cbx-event-detail-hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.cbx-event-detail-hero-meta .bi {
  color: var(--teal);
  font-size: 1rem;
}

.cbx-event-detail-layout {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .cbx-event-detail-sidebar {
    position: sticky;
    top: calc(72px + 1rem);
  }
}

.cbx-event-detail-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
  .cbx-event-detail-panel {
    padding: 1.5rem 1.5rem;
  }
}

.cbx-event-detail-panel-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--gray);
  margin: 0 0 0.85rem;
}

.cbx-event-detail-prose {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.cbx-event-detail-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 184, 169, 0.08);
  margin-bottom: 1rem;
}

.cbx-event-detail-info-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.cbx-event-detail-info-row:last-child {
  border-bottom: 0;
}

.cbx-event-detail-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cbx-event-detail-info-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray);
  margin-bottom: 0.15rem;
}

.cbx-event-detail-info-row strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
}

.cbx-event-detail-contact {
  background: var(--teal-bg);
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--border));
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}

.cbx-event-detail-contact-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--dark);
}

.cbx-event-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .cbx-event-detail-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cbx-event-detail-gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cbx-event-detail-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 184, 169, 0.15);
}

.cbx-event-detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbx-event-detail-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.cbx-event-detail-related-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--dark);
}

.cbx-member-event-detail-cover {
  aspect-ratio: 21 / 8;
  max-height: 320px;
  overflow: hidden;
  background: var(--light-gray);
}

.cbx-member-event-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbx-member-event-detail-fact {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--light-gray);
  height: 100%;
}

.cbx-member-event-detail-fact > .bi {
  font-size: 1.15rem;
  color: var(--teal);
  margin-top: 0.15rem;
}

.cbx-member-event-detail-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray);
  margin-bottom: 0.15rem;
}

.cbx-member-event-detail-description {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.cbx-committee-card {
  display: flex;
  flex-direction: column;
}

/* Member directory */
.cbx-member-section-label--spaced {
  margin-top: 1.75rem;
}

.cbx-member-network-search {
  margin: 0 0 0.25rem;
}

.cbx-member-network .cbx-member-section-label {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.cbx-member-network .cbx-member-section-label--spaced {
  margin-top: 1.75rem;
}

.cbx-member-network-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cbx-member-network-search-field {
  position: relative;
  min-width: 0;
}

.cbx-member-network-search-field .bi {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}

.cbx-member-network-search .form-control,
.cbx-member-network-search .form-select,
.cbx-member-network-search .btn {
  min-height: 44px;
  font-size: 16px;
}

.cbx-member-network-search-field .form-control {
  padding-left: 2.4rem;
}

.cbx-member-network-featured,
.cbx-member-network-grid {
  display: grid;
  gap: 0.85rem;
}

.cbx-member-person {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.cbx-member-person.is-featured {
  border-color: color-mix(in srgb, var(--teal) 28%, var(--border));
}

.cbx-member-person-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cbx-member-person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cbx-member-person-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.cbx-member-person-id {
  min-width: 0;
  flex: 1;
}

.cbx-member-person-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-member-person-role {
  margin: 0.15rem 0 0;
  font-size: 13px;
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-member-person-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cbx-member-person-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  min-width: 0;
}

.cbx-member-person-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.cbx-member-person-chip {
  display: inline-block;
  max-width: 100%;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-member-person-place {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
}

.cbx-member-person-place .bi {
  margin-right: 0.2rem;
  color: var(--teal);
}

.cbx-member-person-number {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--gray);
  text-align: end;
  white-space: nowrap;
}

.cbx-member-person-contacts {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.cbx-member-person-contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--dark);
  text-decoration: none;
  background: #fff;
}

.cbx-member-person-contacts a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cbx-member-network-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
}

.bootstrap-pagination .pagination {
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.bootstrap-pagination .page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .cbx-member-network-search-row {
    flex-direction: row;
    align-items: center;
  }

  .cbx-member-network-search-field {
    flex: 1 1 auto;
  }

  .cbx-member-network-search-row .form-select {
    width: auto;
    min-width: 11rem;
    max-width: 16rem;
  }

  .cbx-member-network-featured,
  .cbx-member-network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .cbx-member-network-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   MEMBER ACCESS — premium responsive portal
   Mobile-first, Bootstrap-compatible, no overflow by design.
   ============================================================ */
body.cbx-member-portal,
body.cbx-auth-page {
  --cbx-member-ink: #122033;
  --cbx-member-muted: #637083;
  --cbx-member-faint: #f3f7f7;
  --cbx-member-line: #dce7ea;
  --cbx-member-surface: #ffffff;
  --cbx-member-brand: var(--cbx-club-primary, #00b8a9);
  --cbx-member-brand-dark: var(--cbx-club-secondary, #0a2540);
  --cbx-member-brand-soft: color-mix(in srgb, var(--cbx-member-brand) 8%, #ffffff);
  --cbx-member-shadow: 0 14px 36px rgba(10, 37, 64, 0.075);
  --cbx-member-shadow-hover: 0 20px 44px rgba(10, 37, 64, 0.13);
  --cbx-member-radius: 1.25rem;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cbx-member-ink);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cbx-member-brand) 5%, #ffffff) 0, rgba(255, 255, 255, 0) 19rem),
    #f7fafb;
  overflow-x: clip;
}

body.cbx-member-portal ::selection,
body.cbx-auth-page ::selection {
  background: var(--cbx-member-brand);
  color: #ffffff;
}

body.cbx-member-portal :focus-visible,
body.cbx-auth-page :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cbx-member-brand) 36%, transparent);
  outline-offset: 2px;
}

body.cbx-member-portal img,
body.cbx-auth-page img {
  max-width: 100%;
}

.cbx-member-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1200;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: var(--cbx-member-brand-dark, #0a2540);
  color: #ffffff !important;
  font-weight: 700;
  transform: translateY(-180%);
}

.cbx-member-skip-link:focus {
  transform: translateY(0);
}

/* --- Dedicated member topbar --- */
.cbx-member-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  border-bottom: 1px solid rgba(220, 231, 234, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.045);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.cbx-member-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  min-width: 0;
}

.cbx-member-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 48px;
  color: var(--cbx-member-ink);
  text-decoration: none !important;
}

.cbx-member-brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--cbx-member-line);
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.07);
}

.cbx-member-brand-logo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: 0.25rem;
}

.cbx-member-brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.12;
}

.cbx-member-brand-copy strong {
  max-width: 11rem;
  overflow: hidden;
  color: var(--cbx-member-ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-member-brand-copy small,
.cbx-member-account-copy small {
  color: var(--cbx-member-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.cbx-member-desktop-nav {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.cbx-member-desktop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #435167;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cbx-member-desktop-link:hover {
  border-color: var(--cbx-member-line);
  background: #ffffff;
  color: var(--cbx-member-brand-dark);
}

.cbx-member-desktop-link.active {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 24%, #ffffff);
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cbx-member-brand) 8%, transparent);
}

.cbx-member-desktop-link i {
  color: var(--cbx-member-brand);
  font-size: 0.96rem;
}

.cbx-member-account {
  flex: 0 0 auto;
  margin-left: auto;
}

.cbx-member-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--cbx-member-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cbx-member-ink);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.055);
}

.cbx-member-account-btn::after {
  margin-left: 0.1rem;
  color: var(--cbx-member-muted);
}

.cbx-member-account-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}

.cbx-member-account-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cbx-member-brand), var(--cbx-member-brand-dark));
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cbx-member-account-copy {
  line-height: 1.05;
  text-align: left;
}

.cbx-member-account-copy strong {
  display: block;
  max-width: 6.5rem;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-member-account-menu {
  min-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border: 1px solid var(--cbx-member-line);
  border-radius: 1rem;
  box-shadow: 0 24px 55px rgba(10, 37, 64, 0.16);
}

.cbx-member-account-head {
  display: grid;
  gap: 0.16rem;
  padding: 0.7rem 0.8rem 0.45rem;
  min-width: 0;
}

.cbx-member-account-head strong {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.cbx-member-account-head small {
  overflow-wrap: anywhere;
  color: var(--cbx-member-muted);
}

.cbx-member-account-head span {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
  font-size: 0.7rem;
  font-weight: 750;
}

.cbx-member-account-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  border-radius: 0.65rem;
  font-weight: 600;
}

.cbx-member-account-menu .dropdown-item i {
  width: 1.1rem;
  color: var(--cbx-member-brand);
  text-align: center;
}

/* --- Shell, alerts, footer, bottom navigation --- */
.cbx-member-portal-main {
  min-width: 0;
  padding: 1.25rem 0 2.5rem;
}

.cbx-member-portal-container,
.cbx-member-alert-wrap {
  min-width: 0;
}

.cbx-member-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 0.9rem;
  box-shadow: var(--cbx-member-shadow);
  font-size: 0.92rem;
}

.cbx-member-alert i {
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.cbx-member-alert .btn-close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  margin-top: -0.65rem;
  margin-right: -0.65rem;
}

.cbx-member-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--cbx-member-line);
  background: rgba(255, 255, 255, 0.82);
}

.cbx-member-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.cbx-member-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  margin-right: auto;
}

.cbx-member-footer-brand img {
  width: 34px;
  height: 34px;
  max-height: none;
  object-fit: contain;
}

.cbx-member-footer-brand span {
  display: grid;
  line-height: 1.15;
}

.cbx-member-footer-brand strong {
  max-width: 13rem;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-member-footer-brand small,
.cbx-member-footer-powered {
  color: var(--cbx-member-muted);
  font-size: 0.72rem;
}

.cbx-member-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.cbx-member-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  color: #435167;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 0.55rem;
}

.cbx-member-footer-links a:hover {
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
}

body.cbx-member-portal .cbx-member-bottom-nav {
  border-top: 1px solid rgba(220, 231, 234, 0.96);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 32px rgba(10, 37, 64, 0.09);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

body.cbx-member-portal .cbx-member-bottom-nav a {
  position: relative;
  min-height: 58px;
  border-radius: 0.8rem;
  font-size: 0.68rem;
}

body.cbx-member-portal .cbx-member-bottom-nav a.active {
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
}

body.cbx-member-portal .cbx-member-bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 50%;
  width: 2.25rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--cbx-member-brand);
  transform: translateX(-50%);
}

/* --- Shared page typography, controls, and surfaces --- */
body.cbx-member-portal .cbx-member-page-title {
  margin: 0;
  color: var(--cbx-member-brand-dark);
  font-size: clamp(1.65rem, 4.8vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

body.cbx-member-portal .cbx-member-page-lead {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: var(--cbx-member-muted);
  font-size: clamp(0.94rem, 2.5vw, 1.02rem);
  line-height: 1.6;
}

body.cbx-member-portal .cbx-member-welcome-eyebrow {
  margin: 0 0 0.42rem;
  color: var(--cbx-member-brand);
}

body.cbx-member-portal .cbx-member-page-head {
  margin: 0.35rem 0 1.25rem;
}

body.cbx-member-portal .cbx-perks-head,
body.cbx-member-portal .cbx-events-head,
body.cbx-member-portal .cbx-network-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

body.cbx-member-portal .cbx-member-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--cbx-member-line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.055);
  color: var(--cbx-member-brand-dark);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

body.cbx-member-portal .cbx-member-count-badge i {
  color: var(--cbx-member-brand);
}

body.cbx-member-portal .cbx-member-section-label {
  margin: 1.65rem 0 0.65rem;
  color: var(--cbx-member-brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.cbx-member-portal .form-control,
body.cbx-member-portal .form-select,
body.cbx-auth-page .form-control,
body.cbx-auth-page .form-select {
  min-height: 48px;
  border-color: #ccd9dd;
  border-radius: 0.8rem;
  font-size: 1rem;
}

body.cbx-member-portal textarea.form-control {
  min-height: 7rem;
}

body.cbx-member-portal .form-control:focus,
body.cbx-member-portal .form-select:focus,
body.cbx-auth-page .form-control:focus,
body.cbx-auth-page .form-select:focus {
  border-color: var(--cbx-member-brand, var(--cbx-club-primary, #00b8a9));
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--cbx-member-brand, var(--cbx-club-primary, #00b8a9)) 16%, transparent);
}

body.cbx-member-portal .btn,
body.cbx-auth-page .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

body.cbx-member-portal .btn-sm {
  min-height: 44px;
  padding-right: 0.8rem;
  padding-left: 0.8rem;
}

body.cbx-member-portal .btn-demo-nav,
body.cbx-member-portal .btn-cbx-accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cbx-member-brand), color-mix(in srgb, var(--cbx-member-brand) 72%, var(--cbx-member-brand-dark)));
  color: #ffffff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--cbx-member-brand) 24%, transparent);
}

body.cbx-member-portal .btn-demo-nav:hover,
body.cbx-member-portal .btn-cbx-accent:hover {
  color: #ffffff;
  filter: brightness(1.04);
}

body.cbx-member-portal .btn-login {
  border-color: var(--cbx-member-line);
  background: #ffffff;
  color: var(--cbx-member-brand-dark);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.055);
}

body.cbx-member-portal .btn-login:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 38%, #ffffff);
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
}

body.cbx-member-portal .cbx-member-portal-link {
  color: var(--cbx-member-brand-dark);
  font-weight: 750;
}

body.cbx-member-portal .pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
}

body.cbx-member-portal .page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem !important;
  font-variant-numeric: tabular-nums;
}

/* --- Member home --- */
.cbx-member-dashboard {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.cbx-member-dashboard-primary,
.cbx-member-dashboard-secondary {
  min-width: 0;
}

.cbx-member-welcome {
  margin-bottom: 1rem;
}

.cbx-member-home-card-wrap {
  max-width: 35rem;
  margin-inline: auto;
}

.cbx-member-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cbx-member-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.cbx-member-quick-link {
  min-width: 0;
  min-height: 76px;
  border: 1px solid var(--cbx-member-line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.05);
}

.cbx-member-quick-link:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 34%, #ffffff);
  box-shadow: var(--cbx-member-shadow-hover);
  transform: translateY(-1px);
}

.cbx-member-quick-icon {
  border: 1px solid color-mix(in srgb, var(--cbx-member-brand) 18%, #ffffff);
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
}

.cbx-member-home-panel {
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
  padding: 1rem;
}

.cbx-member-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cbx-member-panel-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--cbx-member-brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.cbx-member-panel-title {
  margin: 0;
  color: var(--cbx-member-brand-dark);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cbx-member-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--cbx-member-line);
  border-radius: 999px;
  background: var(--cbx-member-faint);
  color: #435167;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.cbx-member-status-badge.is-active {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 26%, #ffffff);
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
}

.cbx-member-status-badge.is-pending {
  border-color: #f2d492;
  background: #fff8e6;
  color: #7c5700;
}

.cbx-member-fact-grid {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.cbx-member-fact-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e8eff1;
  border-radius: 0.85rem;
  background: #fbfcfc;
}

.cbx-member-fact-grid dt {
  color: var(--cbx-member-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.cbx-member-fact-grid dd {
  margin: 0;
  color: var(--cbx-member-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cbx-member-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.cbx-member-empty-panel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cbx-member-empty-panel h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
}

.cbx-member-empty-panel p {
  margin: 0;
  color: var(--cbx-member-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cbx-member-empty-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cbx-member-brand) 18%, #ffffff);
  border-radius: 0.9rem;
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
  font-size: 1.2rem;
}

body.cbx-member-portal .cbx-member-event-card,
body.cbx-member-portal .cbx-member-list {
  border-color: var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
}

body.cbx-member-portal .cbx-member-event-card {
  padding: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.cbx-member-portal .cbx-member-event-card:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 30%, #ffffff);
  box-shadow: var(--cbx-member-shadow-hover);
  transform: translateY(-1px);
}

.cbx-member-event-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cbx-member-event-card-copy strong,
.cbx-member-event-card-copy small {
  overflow-wrap: anywhere;
}

.cbx-member-event-arrow {
  flex: 0 0 auto;
  color: var(--cbx-member-brand);
}

body.cbx-member-portal .cbx-member-list-item {
  min-height: 62px;
  border-color: #e8eff1;
}

.cbx-member-list-amount {
  font-variant-numeric: tabular-nums;
}

.cbx-member-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  margin-top: 0.35rem;
  text-decoration: none;
}

.cbx-member-desktop-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* Local card stays landscape inside the dashboard; only the dedicated card page may rotate. */
.cbx-member-dashboard .cbx-mc-orient,
.cbx-member-profile-card-wrap .cbx-mc-orient {
  display: block;
  height: auto;
  margin: 0;
}

.cbx-member-dashboard .cbx-mc,
.cbx-member-profile-card-wrap .cbx-mc {
  width: 100% !important;
  max-width: 100%;
  transform: none !important;
}

/* --- Privilege Card / PN frame --- */
.cbx-mc-page {
  min-width: 0;
}

.cbx-mc-stage {
  min-width: 0;
  border: 1px solid var(--cbx-member-line);
  border-radius: clamp(1.15rem, 3vw, 1.6rem);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--cbx-member-brand) 11%, transparent), transparent 18rem),
    linear-gradient(180deg, #ffffff, #fbfcfc);
  box-shadow: var(--cbx-member-shadow);
  padding: clamp(0.65rem, 2.5vw, 1.25rem);
}

.cbx-pn-card-frame {
  display: block;
  width: 100%;
  height: clamp(380px, 58vh, 540px);
  min-height: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
}

.cbx-mc-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cbx-mc-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--cbx-member-line);
  border-radius: 999px;
  background: #ffffff;
  color: #435167;
  font-size: 0.76rem;
  font-weight: 700;
}

.cbx-mc-trust-row i {
  color: var(--cbx-member-brand);
}

.cbx-mc-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Card home owns exactly one viewport: sticky topbar + flexible stage, no page scroll. */
body.cbx-member-portal-card-home {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.cbx-member-portal-card-home .cbx-member-topbar,
body.cbx-member-portal-card-home .cbx-member-portal-main,
body.cbx-member-portal-card-home .cbx-member-portal-container,
body.cbx-member-portal-card-home .cbx-mc-page,
body.cbx-member-portal-card-home .cbx-mc-stage {
  min-height: 0;
  min-width: 0;
}

body.cbx-member-portal-card-home .cbx-member-topbar {
  flex: 0 0 auto;
  position: relative;
}

body.cbx-member-portal-card-home .cbx-member-portal-main {
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  padding: 0.65rem 0;
}

body.cbx-member-portal-card-home .cbx-member-portal-container {
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
}

body.cbx-member-portal-card-home .cbx-mc-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.cbx-member-portal-card-home .cbx-member-page-head {
  flex: 0 0 auto;
  justify-content: center;
  margin: 0 0 0.65rem;
  text-align: center;
}

body.cbx-member-portal-card-home .cbx-mc-stage {
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
}

body.cbx-member-portal-card-home .cbx-pn-card-frame {
  flex: 1 1 auto;
  height: auto;
}

/* --- Dues / payments refinements --- */
.cbx-dues-head {
  margin-top: 0.35rem;
}

.cbx-dues-grid .cbx-dues-stat,
.cbx-dues-plan,
.cbx-dues-history {
  border: 1px solid var(--cbx-member-line) !important;
  border-radius: var(--cbx-member-radius) !important;
  background: #ffffff !important;
  box-shadow: var(--cbx-member-shadow) !important;
}

.cbx-dues-history {
  overflow: hidden;
}

.cbx-dues-stat-icon {
  border: 1px solid color-mix(in srgb, var(--cbx-member-brand) 18%, #ffffff);
  background: var(--cbx-member-brand-soft) !important;
  color: var(--cbx-member-brand-dark) !important;
}

.cbx-dues-history .table,
.cbx-dues-mobile-amount {
  font-variant-numeric: tabular-nums;
}

.cbx-dues-plan-list > div,
.cbx-dues-mobile-row {
  border-color: #e8eff1 !important;
}

.cbx-dues-mobile-list {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
}

.cbx-dues-mobile-row {
  border: 1px solid #e8eff1;
  border-radius: 0.95rem;
  background: #fbfcfc;
  padding: 0.8rem;
}

.cbx-dues-mobile-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cbx-dues-mobile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

@media (max-width: 575.98px) {
  .cbx-dues-cta {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
  }

  .cbx-dues-cta > div {
    min-width: 0;
  }

  .cbx-dues-cta .btn {
    width: 100%;
  }
}

/* --- Checkout --- */
.cbx-checkout-page {
  max-width: 46rem;
  margin-inline: auto;
}

.cbx-checkout-secure-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  margin-top: 0.9rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--cbx-member-brand) 22%, #ffffff);
  border-radius: 999px;
  background: var(--cbx-member-brand-soft);
  color: var(--cbx-member-brand-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.cbx-member-checkout-wrap {
  max-width: none;
  margin-top: 0;
}

.cbx-checkout-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 0.9rem;
}

.cbx-checkout-panel {
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
  padding: clamp(1rem, 4vw, 1.5rem);
}

.cbx-checkout-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cbx-checkout-panel-head h2,
.cbx-checkout-redirect h2 {
  margin: 0;
  color: var(--cbx-member-brand-dark);
  font-size: 1.3rem;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.cbx-checkout-summary {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.cbx-checkout-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e8eff1;
  border-radius: 0.85rem;
  background: #fbfcfc;
}

.cbx-checkout-summary dt {
  color: var(--cbx-member-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.cbx-checkout-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
  text-align: right;
}

.cbx-checkout-amount {
  color: var(--cbx-member-brand-dark);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.cbx-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.cbx-checkout-actions form {
  display: contents;
}

.cbx-checkout-redirect {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
}

.cbx-checkout-redirect p:not(.cbx-member-panel-eyebrow) {
  max-width: 30rem;
  margin: 0;
  color: var(--cbx-member-muted);
  line-height: 1.6;
}

.cbx-checkout-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-color: color-mix(in srgb, var(--cbx-member-brand) 22%, transparent);
  border-right-color: var(--cbx-member-brand);
}

/* --- Events --- */
body.cbx-member-portal .cbx-member-event-tile,
body.cbx-member-portal .cbx-member-event-hero-panel,
body.cbx-member-portal .cbx-member-event-facts {
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
}

body.cbx-member-portal .cbx-member-event-tile {
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.cbx-member-portal .cbx-member-event-tile:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 30%, #ffffff);
  box-shadow: var(--cbx-member-shadow-hover);
  transform: translateY(-2px);
}

body.cbx-member-portal .cbx-member-event-tile img,
body.cbx-member-portal .cbx-member-event-featured img {
  object-fit: cover;
}

body.cbx-member-portal .cbx-member-event-featured {
  overflow: hidden;
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: var(--cbx-member-brand-dark) !important;
  box-shadow: var(--cbx-member-shadow);
}

body.cbx-member-portal .cbx-member-event-hero {
  overflow: hidden;
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: var(--cbx-member-brand-dark) !important;
  box-shadow: var(--cbx-member-shadow);
}

body.cbx-member-portal .cbx-member-event-hero img {
  object-fit: cover;
}

body.cbx-member-portal .cbx-member-event-hero-panel,
body.cbx-member-portal .cbx-member-event-facts {
  padding: clamp(1rem, 3vw, 1.4rem);
}

body.cbx-member-portal .cbx-member-event-gallery img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--cbx-member-line);
  border-radius: 1rem;
  object-fit: cover;
}

/* --- Perks --- */
.cbx-perks-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--cbx-member-brand) 20%, #ffffff);
  border-radius: 1rem;
  background: var(--cbx-member-brand-soft);
  color: #435167;
}

.cbx-perks-intro p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cbx-perks-intro-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: #ffffff;
  color: var(--cbx-member-brand-dark);
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.06);
}

.cbx-perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  min-width: 0;
}

.cbx-perk-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius);
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cbx-perk-card:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 30%, #ffffff);
  box-shadow: var(--cbx-member-shadow-hover);
  transform: translateY(-2px);
}

.cbx-perk-card.is-inactive {
  opacity: 0.68;
}

.cbx-perk-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.cbx-perk-partner-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cbx-member-brand) 18%, #ffffff);
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--cbx-member-brand-soft), #ffffff);
  color: var(--cbx-member-brand-dark);
  font-size: 1.15rem;
  font-weight: 850;
  object-fit: contain;
}

.cbx-perk-value {
  max-width: 9rem;
  color: var(--cbx-member-brand-dark);
  font-size: clamp(1.45rem, 5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-align: right;
  overflow-wrap: anywhere;
}

.cbx-perk-value small {
  display: block;
  margin-top: 0.15rem;
  color: var(--cbx-member-brand);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cbx-perk-card-body {
  flex: 1 1 auto;
  padding: 0.9rem 1rem 1rem;
}

.cbx-perk-partner {
  margin: 0 0 0.25rem;
  color: var(--cbx-member-brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cbx-perk-card-body h2 {
  margin: 0;
  color: var(--cbx-member-ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.3;
}

.cbx-perk-description {
  margin: 0.55rem 0 0;
  color: var(--cbx-member-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cbx-perk-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid #e8eff1;
  background: #fbfcfc;
}

.cbx-perk-code {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.55rem;
  border: 1px dashed color-mix(in srgb, var(--cbx-member-brand) 35%, #ffffff);
  border-radius: 0.65rem;
  background: #ffffff;
}

.cbx-perk-code small {
  color: var(--cbx-member-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cbx-perk-code code {
  color: var(--cbx-member-brand-dark);
  font-weight: 800;
}

.cbx-perk-validity,
.cbx-perk-inactive {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cbx-member-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.cbx-perks-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 2.25rem 1rem;
  border: 1px dashed #c7d7da;
  border-radius: var(--cbx-member-radius);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.cbx-perks-empty h2 {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.cbx-perks-empty p {
  max-width: 28rem;
  margin: 0;
  color: var(--cbx-member-muted);
  line-height: 1.6;
}

/* --- Directory polish --- */
.cbx-member-network-search {
  border: 1px solid var(--cbx-member-line) !important;
  border-radius: var(--cbx-member-radius) !important;
  background: #ffffff !important;
  box-shadow: var(--cbx-member-shadow) !important;
  padding: 1rem !important;
}

.cbx-member-network-search-row > * {
  min-width: 0;
}

.cbx-member-network-search-row .btn {
  width: 100%;
}

.cbx-member-person-card {
  border: 1px solid var(--cbx-member-line) !important;
  border-radius: var(--cbx-member-radius) !important;
  background: #ffffff !important;
  box-shadow: var(--cbx-member-shadow) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cbx-member-person-card:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 30%, #ffffff) !important;
  box-shadow: var(--cbx-member-shadow-hover) !important;
  transform: translateY(-2px);
}

.cbx-member-person-avatar,
.cbx-member-person-avatar img {
  object-fit: cover;
}

.cbx-member-person-actions .btn,
.cbx-member-person-actions a {
  min-height: 44px;
}

/* --- Profile, committees, AI, and club chooser --- */
.cbx-profile-identity,
.cbx-profile-panel,
.cbx-profile-tabs {
  min-width: 0;
}

.cbx-profile-identity {
  border: 1px solid var(--cbx-member-line) !important;
  border-radius: var(--cbx-member-radius) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cbx-member-brand) 7%, #ffffff), #ffffff 58%) !important;
  box-shadow: var(--cbx-member-shadow) !important;
}

.cbx-profile-avatar,
.cbx-profile-avatar img {
  object-fit: cover;
}

.cbx-profile-tabs {
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cbx-profile-tabs::-webkit-scrollbar {
  display: none;
}

.cbx-profile-tabs .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.cbx-profile-panes {
  border: 1px solid var(--cbx-member-line);
  border-top: 0;
  border-radius: 0 0 var(--cbx-member-radius) var(--cbx-member-radius);
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
}

.cbx-profile-save {
  position: sticky;
  bottom: 4.9rem;
  z-index: 20;
  border: 1px solid var(--cbx-member-line) !important;
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.cbx-member-portal .feature-card,
body.cbx-member-portal .card {
  border-color: var(--cbx-member-line);
}

body.cbx-member-portal .feature-card {
  border: 1px solid var(--cbx-member-line);
  border-radius: var(--cbx-member-radius) !important;
  background: #ffffff;
  box-shadow: var(--cbx-member-shadow);
}

body.cbx-member-portal .cbx-clubs-grid .cbx-benefit-card {
  border: 1px solid var(--cbx-member-line) !important;
  box-shadow: var(--cbx-member-shadow) !important;
}

/* --- Authentication polish --- */
body.cbx-auth-page {
  --cbx-member-brand: var(--cbx-club-primary, #00b8a9);
  --cbx-member-brand-dark: var(--cbx-club-secondary, #0a2540);
  --cbx-member-brand-soft: color-mix(in srgb, var(--cbx-member-brand) 8%, #ffffff);
  --cbx-member-line: #dce7ea;
  --cbx-member-muted: #637083;
  --cbx-member-shadow: 0 14px 36px rgba(10, 37, 64, 0.075);
}

body.cbx-auth-page .cbx-auth-card {
  border: 1px solid var(--cbx-member-line);
  border-radius: 1.4rem;
  box-shadow: 0 24px 60px rgba(10, 37, 64, 0.13);
}

body.cbx-auth-page .cbx-auth-aside {
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--cbx-member-brand) 24%, transparent), transparent 18rem),
    linear-gradient(160deg, var(--cbx-member-brand-dark), color-mix(in srgb, var(--cbx-member-brand-dark) 68%, var(--cbx-member-brand)));
}

body.cbx-auth-page .cbx-auth-input,
body.cbx-auth-page .cbx-auth-page .form-control {
  min-height: 50px;
}

body.cbx-auth-page .cbx-auth-submit {
  min-height: 50px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--cbx-member-brand), color-mix(in srgb, var(--cbx-member-brand) 72%, var(--cbx-member-brand-dark)));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--cbx-member-brand) 24%, transparent);
}

body.cbx-auth-page .cbx-auth-links a,
body.cbx-auth-page .cbx-auth-page a {
  min-height: 44px;
}

/* --- Local membership card sizing inside Member Access --- */
body.cbx-member-portal img,
body.cbx-member-portal svg {
  max-height: none;
}

body.cbx-member-portal .cbx-mc__photo-img,
body.cbx-member-portal .cbx-mc__qr-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

body.cbx-member-portal .cbx-mc__powered {
  width: auto !important;
  height: 28px !important;
  max-width: 140px !important;
  max-height: 28px !important;
}

body.cbx-member-portal .cbx-mc__face {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(1rem, 3.5vw, 1.4rem);
  box-shadow: 0 22px 46px rgba(10, 37, 64, 0.2);
}

body.cbx-member-portal .cbx-mc__logo {
  object-fit: contain;
}

body.cbx-member-portal .cbx-mc__photo,
body.cbx-member-portal .cbx-mc__fallback {
  object-fit: cover;
}

body.cbx-member-portal .cbx-mc__qr {
  border-radius: 0.7rem;
}

/* --- Responsive scale-up --- */
@media (min-width: 576px) {
  .cbx-member-brand-copy strong {
    max-width: 15rem;
  }

  .cbx-member-network-search-row .btn {
    width: auto;
  }

  .cbx-perks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cbx-member-portal .cbx-profile-save {
    bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .cbx-member-portal-main {
    padding-top: 1.6rem;
  }

  .cbx-member-home-panel {
    padding: 1.2rem;
  }

  .cbx-perks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .cbx-member-topbar-inner {
    min-height: 76px;
  }

  .cbx-member-brand {
    flex: 0 1 16rem;
  }

  .cbx-member-account {
    flex: 0 1 12rem;
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
  }

  .cbx-member-dashboard {
    grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
    align-items: start;
    gap: 1.25rem;
  }

  .cbx-member-dashboard-primary {
    position: sticky;
    top: 6.25rem;
  }

  .cbx-member-dashboard-secondary {
    display: grid;
    gap: 0.85rem;
  }

  .cbx-member-dashboard-secondary .cbx-member-section-label {
    margin-top: 0.5rem;
  }

  .cbx-member-home-card-wrap {
    margin-inline: 0;
  }

  .cbx-member-home-actions {
    justify-content: flex-start;
  }

  .cbx-perks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cbx-profile-save {
    bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .cbx-member-desktop-link {
    padding-inline: 0.9rem;
  }

  
}

@media (max-width: 575.98px) {
  body.cbx-member-portal .cbx-member-portal-main {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .cbx-member-brand-copy strong {
    max-width: 8.5rem;
    font-size: 0.82rem;
  }

  .cbx-member-account-btn {
    padding: 0.25rem;
  }

  .cbx-member-account-btn::after {
    display: none;
  }

  body.cbx-member-portal .cbx-member-page-head {
    align-items: flex-start;
  }

  body.cbx-member-portal .cbx-member-count-badge {
    max-width: 100%;
  }

  .cbx-member-home-actions .btn {
    flex: 1 1 10rem;
  }

  .cbx-member-empty-panel {
    align-items: flex-start;
  }

  .cbx-checkout-actions {
    display: grid;
  }

  .cbx-checkout-actions .btn {
    width: 100%;
  }

  .cbx-pn-card-frame {
    height: clamp(360px, 62vh, 500px);
  }

  body.cbx-member-portal-card-home .cbx-member-portal-main {
    padding: 0.45rem 0;
  }

  body.cbx-member-portal-card-home .cbx-member-page-head {
    margin-bottom: 0.45rem;
  }

  body.cbx-member-portal-card-home .cbx-member-page-title {
    font-size: 1.55rem;
  }

  body.cbx-member-portal-card-home .cbx-mc-stage {
    padding: 0.45rem;
    border-radius: 1rem;
  }

  /* Keep the embedded/digital card readable without rotating dashboard cards. */
  body.cbx-member-portal .cbx-mc__face {
    padding: 0.78rem;
  }

  body.cbx-member-portal .cbx-mc__top {
    gap: 0.55rem;
    margin-bottom: 0.65rem;
  }

  body.cbx-member-portal .cbx-mc__club {
    font-size: 0.6rem;
  }

  body.cbx-member-portal .cbx-mc__logo {
    max-height: 42px;
  }

  body.cbx-member-portal .cbx-mc__identity {
    gap: 0.6rem;
  }

  body.cbx-member-portal .cbx-mc__photo,
  body.cbx-member-portal .cbx-mc__fallback {
    width: 76px;
    height: 76px;
  }

  body.cbx-member-portal .cbx-mc__name {
    font-size: 0.98rem;
  }

  body.cbx-member-portal .cbx-mc__number {
    font-size: 0.68rem;
  }

  body.cbx-member-portal .cbx-mc__meta {
    gap: 0.65rem;
    margin-top: 0.5rem;
  }

  body.cbx-member-portal .cbx-mc__meta span {
    font-size: 0.53rem;
  }

  body.cbx-member-portal .cbx-mc__meta strong {
    font-size: 0.69rem;
  }

  body.cbx-member-portal .cbx-mc__qr {
    width: 82px;
    height: 82px;
    padding: 0.28rem;
  }

  body.cbx-member-portal .cbx-mc__bottom {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    font-size: 0.56rem;
  }
}

@media (max-width: 360px) {
  .cbx-member-brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .cbx-member-brand-copy strong {
    max-width: 7rem;
  }

  .cbx-member-quick-links {
    gap: 0.5rem;
  }

  body.cbx-member-portal .cbx-mc__face {
    padding: 0.65rem;
    gap: 0.45rem;
  }

  body.cbx-member-portal .cbx-mc__top {
    margin-bottom: 0.35rem;
  }

  body.cbx-member-portal .cbx-mc__logo {
    max-height: 36px;
  }

  body.cbx-member-portal .cbx-mc__body {
    gap: 0.45rem;
  }

  body.cbx-member-portal .cbx-mc__identity {
    gap: 0.45rem;
  }

  body.cbx-member-portal .cbx-mc__photo,
  body.cbx-member-portal .cbx-mc__photo--placeholder {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
  }

  body.cbx-member-portal .cbx-mc__name {
    font-size: 0.88rem;
  }

  body.cbx-member-portal .cbx-mc__number {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  body.cbx-member-portal .cbx-mc__plan {
    font-size: 0.66rem;
  }

  body.cbx-member-portal .cbx-mc__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.4rem;
  }

  body.cbx-member-portal .cbx-mc__meta > div {
    min-width: 0;
  }

  body.cbx-member-portal .cbx-mc__label {
    font-size: 0.5rem;
    line-height: 1.1;
  }

  body.cbx-member-portal .cbx-mc__meta-value {
    font-size: 0.62rem;
    white-space: nowrap;
  }

  body.cbx-member-portal .cbx-mc__qr {
    width: 68px;
    height: 68px;
    padding: 0.24rem;
  }

  body.cbx-member-portal .cbx-mc__bottom {
    margin: 0 -0.65rem -0.65rem;
    padding: 0.4rem 0.65rem;
  }

  body.cbx-member-portal .cbx-mc__powered {
    height: 22px !important;
    max-width: 96px !important;
    max-height: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cbx-member-portal *,
  body.cbx-auth-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   MEMBER LOGIN — focused, modern split-screen experience
   Scoped to /{club}/member login only.
   ============================================================ */
body.cbx-auth-modern {
  --cbx-login-brand: var(--cbx-club-primary, #00b8a9);
  --cbx-login-dark: var(--cbx-club-secondary, #0a2540);
  --cbx-login-accent: var(--cbx-club-accent, #5eead4);
  --cbx-login-ink: #122033;
  --cbx-login-muted: #637083;
  --cbx-login-line: #dce7ea;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--cbx-login-brand) 13%, transparent), transparent 26rem),
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--cbx-login-dark) 10%, transparent), transparent 24rem),
    linear-gradient(180deg, #fbfcfc, #f3f7f7);
}

/* The login is a focused task: replace the public site chrome with the club panel. */
body.cbx-auth-modern .cbx-front-nav,
body.cbx-auth-modern .cbx-front-footer {
  display: none !important;
}

body.cbx-auth-modern .cbx-auth-main {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(0.75rem, 3vw, 2.5rem) 0;
}

body.cbx-auth-modern .cbx-auth-main .container {
  width: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.cbx-auth-modern .cbx-auth-shell {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 234, 0.95);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(10, 37, 64, 0.14), 0 4px 18px rgba(10, 37, 64, 0.06);
}

/* Brand / story panel */
body.cbx-auth-modern .cbx-auth-aside {
  position: relative;
  isolation: isolate;
  order: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.35rem;
  min-width: 0;
  padding: clamp(1.35rem, 4vw, 3.25rem);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--cbx-login-accent) 30%, transparent), transparent 17rem),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--cbx-login-brand) 26%, transparent), transparent 19rem),
    linear-gradient(155deg, var(--cbx-login-dark) 0%, color-mix(in srgb, var(--cbx-login-dark) 72%, var(--cbx-login-brand)) 58%, var(--cbx-login-brand) 135%);
  color: #ffffff;
}

body.cbx-auth-modern .cbx-auth-aside::before,
body.cbx-auth-modern .cbx-auth-aside::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

body.cbx-auth-modern .cbx-auth-aside::before {
  width: 19rem;
  height: 19rem;
  top: -8rem;
  right: -6rem;
}

body.cbx-auth-modern .cbx-auth-aside::after {
  width: 13rem;
  height: 13rem;
  bottom: -6rem;
  left: -4rem;
}

.cbx-login-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.cbx-login-brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cbx-login-brand-logo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: 0.35rem;
}

.cbx-login-brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.12;
}

.cbx-login-brand-copy strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cbx-login-brand-copy small {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cbx-login-aside-copy {
  max-width: 34rem;
}

.cbx-login-eyebrow,
.cbx-login-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cbx-login-eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.cbx-auth-modern .cbx-auth-aside-title {
  max-width: 32rem;
  margin: 1rem 0 0.75rem;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

body.cbx-auth-modern .cbx-auth-aside-lead {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.cbx-login-feature-grid {
  display: grid;
  gap: 0.7rem;
}

.cbx-login-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cbx-login-feature > span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 1.15rem;
}

.cbx-login-feature div {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.cbx-login-feature strong {
  font-size: 0.92rem;
  font-weight: 780;
}

.cbx-login-feature small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.45;
}

.cbx-login-mini-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cbx-login-mini-card-top,
.cbx-login-mini-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cbx-login-mini-card-top {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cbx-login-mini-card-top i {
  font-size: 2rem;
  line-height: 1;
}

.cbx-login-mini-card-bottom {
  margin-top: 2.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.cbx-auth-modern .cbx-login-aside-note {
  display: grid;
  gap: 0.15rem;
  margin-top: auto;
  padding: 0.9rem 1rem;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
}

body.cbx-auth-modern .cbx-login-aside-note strong {
  color: #ffffff;
}

/* Form panel */
body.cbx-auth-modern .cbx-auth-form-panel {
  display: flex;
  align-items: center;
  min-width: 0;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--cbx-login-brand) 6%, transparent), transparent 16rem),
    #ffffff;
}

body.cbx-auth-modern .cbx-auth-form-card {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cbx-login-form-head {
  margin-bottom: 1.5rem;
}

.cbx-login-secure-badge {
  border: 1px solid color-mix(in srgb, var(--cbx-login-brand) 22%, #ffffff);
  background: color-mix(in srgb, var(--cbx-login-brand) 8%, #ffffff);
  color: var(--cbx-login-dark);
}

body.cbx-auth-modern .cbx-auth-form-title {
  margin: 1rem 0 0.45rem;
  color: var(--cbx-login-dark);
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

body.cbx-auth-modern .cbx-auth-form-lead {
  color: var(--cbx-login-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

body.cbx-auth-modern .cbx-auth-form-lead strong {
  color: var(--cbx-login-ink);
}

.cbx-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
}

.cbx-login-field {
  margin-bottom: 1rem;
}

body.cbx-auth-modern .form-label {
  margin-bottom: 0.45rem;
  color: var(--cbx-login-ink);
  font-size: 0.88rem;
  font-weight: 750;
}

body.cbx-auth-modern .cbx-auth-input-wrap > i {
  left: 1rem;
  color: var(--cbx-login-brand);
  font-size: 1.05rem;
}

body.cbx-auth-modern .cbx-auth-input-wrap .form-control {
  width: 100%;
  min-height: 56px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid #cfdde1;
  border-radius: 0.95rem;
  background: #fbfcfc;
  color: var(--cbx-login-ink);
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(10, 37, 64, 0.03);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

body.cbx-auth-modern .cbx-auth-input-wrap .form-control::placeholder {
  color: #93a1ad;
}

body.cbx-auth-modern .cbx-auth-input-wrap .form-control:hover {
  border-color: #b9ced4;
  background: #ffffff;
}

body.cbx-auth-modern .cbx-auth-input-wrap .form-control:focus {
  border-color: var(--cbx-login-brand);
  background: #ffffff;
  box-shadow: 0 0 0 0.24rem color-mix(in srgb, var(--cbx-login-brand) 15%, transparent);
}

body.cbx-auth-modern .cbx-login-password-wrap .form-control {
  padding-right: 3.6rem;
}

.cbx-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #708090;
  transform: translateY(-50%);
}

.cbx-login-password-toggle:hover {
  background: color-mix(in srgb, var(--cbx-login-brand) 8%, #ffffff);
  color: var(--cbx-login-dark);
}

.cbx-login-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1.1rem 0 1.25rem;
}

.cbx-login-options .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding-left: 0;
}

.cbx-login-options .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border-color: #b9ced4;
}

.cbx-login-options .form-check-input:checked {
  border-color: var(--cbx-login-brand);
  background-color: var(--cbx-login-brand);
}

.cbx-login-options .form-check-label {
  color: #435167;
  font-size: 0.88rem;
  font-weight: 600;
}

.cbx-login-forgot,
.cbx-login-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  border-radius: 0.75rem;
  font-weight: 750;
  text-decoration: none !important;
}

.cbx-login-forgot {
  padding: 0.45rem 0.55rem;
  color: var(--cbx-login-dark);
  font-size: 0.88rem;
}

.cbx-login-forgot:hover {
  background: color-mix(in srgb, var(--cbx-login-brand) 8%, #ffffff);
  color: var(--cbx-login-dark);
}

body.cbx-auth-modern .cbx-login-submit {
  min-height: 56px;
  gap: 0.6rem;
  border: 0;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--cbx-login-brand), color-mix(in srgb, var(--cbx-login-brand) 68%, var(--cbx-login-dark)));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--cbx-login-brand) 25%, transparent);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.cbx-auth-modern .cbx-login-submit:hover {
  color: #ffffff;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.cbx-login-register {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.9rem;
  border: 1px solid var(--cbx-login-line);
  border-radius: 1rem;
  background: #fbfcfc;
  color: var(--cbx-login-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.cbx-login-register-btn {
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--cbx-login-brand) 26%, #ffffff);
  background: #ffffff;
  color: var(--cbx-login-dark);
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.05);
}

.cbx-login-register-btn:hover {
  border-color: var(--cbx-login-brand);
  background: color-mix(in srgb, var(--cbx-login-brand) 8%, #ffffff);
  color: var(--cbx-login-dark);
}

.cbx-login-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  margin-top: 1.15rem;
  color: #7a8794;
  font-size: 0.76rem;
  font-weight: 650;
}

.cbx-login-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cbx-login-trust i {
  color: var(--cbx-login-brand);
}

/* Desktop split-screen */
@media (min-width: 992px) {
  body.cbx-auth-modern .cbx-auth-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
    min-height: min(680px, calc(100dvh - 5rem));
  }

  body.cbx-auth-modern .cbx-auth-aside {
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }

  body.cbx-auth-modern .cbx-auth-aside-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  body.cbx-auth-modern .cbx-login-feature {
    padding: 0.7rem 0.8rem;
  }

  body.cbx-auth-modern .cbx-login-mini-card-bottom {
    margin-top: 1.5rem;
  }
}

/* Mobile: compact club banner first, then the focused form. */
@media (max-width: 991.98px) {
  body.cbx-auth-modern .cbx-auth-aside {
    gap: 1rem;
    padding: 1.25rem;
  }

  body.cbx-auth-modern .cbx-auth-aside-title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  body.cbx-auth-modern .cbx-auth-aside-lead {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .cbx-login-feature-grid,
  .cbx-login-mini-card,
  body.cbx-auth-modern .cbx-login-aside-note {
    display: none;
  }
}

@media (max-width: 575.98px) {
  body.cbx-auth-modern .cbx-auth-main {
    align-items: flex-start;
    padding: 0.65rem 0;
  }

  body.cbx-auth-modern .cbx-auth-shell {
    border-radius: 1.25rem;
  }

  .cbx-login-brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 0.85rem;
  }

  body.cbx-auth-modern .cbx-auth-form-card {
    padding: 1.4rem 1.15rem 1.5rem;
  }

  .cbx-login-options {
    align-items: flex-start;
  }

  .cbx-login-register {
    display: grid;
  }

  .cbx-login-register-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cbx-auth-modern * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MEMBER AUTH — shared additions for forgot / register / reset
   (same modern split-screen design as the login page)
   ============================================================ */

/* Numbered steps (register / recovery) as translucent cards on the dark brand panel */
body.cbx-auth-modern .cbx-auth-steps {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

body.cbx-auth-modern .cbx-auth-steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

body.cbx-auth-modern .cbx-auth-steps li span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none;
}

/* Aside notes on the dark panel (invite highlight, security notes) */
body.cbx-auth-modern .cbx-auth-aside-note {
  display: grid;
  gap: 0.15rem;
  margin-top: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.55;
}

body.cbx-auth-modern .cbx-auth-aside-note strong {
  color: #ffffff;
}

body.cbx-auth-modern .cbx-auth-aside-note.is-highlight {
  border-color: color-mix(in srgb, var(--cbx-login-accent) 35%, transparent);
  background: color-mix(in srgb, var(--cbx-login-accent) 14%, transparent);
  color: #ffffff;
}

/* Plain (non-icon) inputs — e.g. register name fields — match the icon inputs */
body.cbx-auth-modern .cbx-auth-form .form-control {
  min-height: 56px;
  border: 1px solid #cfdde1;
  border-radius: 0.95rem;
  background: #fbfcfc;
  color: var(--cbx-login-ink);
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(10, 37, 64, 0.03);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

body.cbx-auth-modern .cbx-auth-form .form-control:hover {
  border-color: #b9ced4;
  background: #ffffff;
}

body.cbx-auth-modern .cbx-auth-form .form-control:focus {
  border-color: var(--cbx-login-brand);
  background: #ffffff;
  box-shadow: 0 0 0 0.24rem color-mix(in srgb, var(--cbx-login-brand) 15%, transparent);
}

body.cbx-auth-modern .cbx-auth-form .form-control[readonly] {
  background: #f1f5f6;
  color: var(--cbx-login-muted);
}

body.cbx-auth-modern .cbx-auth-form .form-text {
  margin-top: 0.45rem;
  color: #7a8794;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Success feedback (e.g. "reset link sent") inside the modern form card */
body.cbx-auth-modern .cbx-auth-success-alert {
  border: 1px solid #bbe8cf;
  border-radius: 0.9rem;
  background: #effcf4;
  color: #14532d;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.cbx-auth-modern .cbx-auth-success-alert i {
  color: #16a34a;
}

/* Stacked error list (register validation summary) */
.cbx-login-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Register form is denser: allow a slightly wider form card */
body.cbx-auth-page--register .cbx-auth-form-card {
  max-width: 580px;
}

/* Mobile: keep the brand banner compact — hide steps/notes like the login features */
@media (max-width: 991.98px) {
  body.cbx-auth-modern .cbx-auth-steps,
  body.cbx-auth-modern .cbx-auth-aside-note {
    display: none;
  }
}

/* ============================================================
   CLUBBYX HOMEPAGE (FRONT-01 reference)
   Scoped to .cbx-home / .cbx-home-* — other front pages are untouched.
   ============================================================ */
.cbx-home,
.cbx-home-nav,
.cbx-home-footer {
  --cbx-home-navy: #0b2239;
  --cbx-home-navy-2: #10314f;
  --cbx-home-cyan: #0fb5cc;
  --cbx-home-cyan-dark: #078ba3;
  --cbx-home-cyan-soft: #d9f4f9;
  --cbx-home-pale: #eef8fb;
  --cbx-home-ink: #12283f;
  --cbx-home-text: #46586c;
  --cbx-home-muted: #71839a;
  --cbx-home-border: #e2edf3;
  --cbx-home-shadow: 0 14px 34px rgba(11, 34, 57, 0.08);
}

.cbx-home-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* The global front rule caps images at 70px tall — homepage media needs natural sizing. */
.cbx-front .cbx-home img,
.cbx-front .cbx-home-nav img,
.cbx-front .cbx-home-footer img {
  max-height: none;
}

.cbx-home section[id] {
  scroll-margin-top: 96px;
}

/* ── A. Navigation (homepage variant) ─────────────────────── */
.cbx-home-nav {
  background: #ffffff;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cbx-home-border);
}

.cbx-home-brand {
  display: inline-flex;
  text-decoration: none;
}

.cbx-home-brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--cbx-home-navy), var(--cbx-home-navy-2));
  line-height: 0;
}

.cbx-home-brand-mark img {
  width: auto;
  height: 26px;
  object-fit: contain;
  /* Monochrome white rendering of the original logo on the navy block (asset untouched). */
  filter: brightness(0) invert(1);
}

.cbx-home-nav .nav-link {
  color: var(--cbx-home-ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
  border: 0 !important;
}

.cbx-home-nav .nav-link:hover,
.cbx-home-nav .nav-link:focus-visible {
  color: var(--cbx-home-cyan-dark);
}

.cbx-home-btn-signin,
.cbx-home-btn-join,
.cbx-home-btn-primary,
.cbx-home-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cbx-home-btn-signin,
.cbx-home-btn-outline {
  border: 1.5px solid #c7d7e2;
  background: #ffffff;
  color: var(--cbx-home-ink);
}

.cbx-home-btn-signin:hover,
.cbx-home-btn-signin:focus-visible,
.cbx-home-btn-outline:hover,
.cbx-home-btn-outline:focus-visible {
  border-color: var(--cbx-home-cyan);
  color: var(--cbx-home-cyan-dark);
  background: #ffffff;
}

.cbx-home-btn-join,
.cbx-home-btn-primary {
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #17c3dd, var(--cbx-home-cyan));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 181, 204, 0.28);
}

.cbx-home-btn-join:hover,
.cbx-home-btn-join:focus-visible,
.cbx-home-btn-primary:hover,
.cbx-home-btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--cbx-home-cyan), var(--cbx-home-cyan-dark));
  color: #ffffff;
  transform: translateY(-1px);
}

.cbx-home-signin-menu {
  min-width: 260px;
  padding: 0.5rem;
  border-radius: 0.9rem;
}

.cbx-home-signin-menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 0.6rem;
  font-weight: 600;
  color: var(--cbx-home-ink);
}

.cbx-home-signin-menu .dropdown-item:hover {
  background: var(--cbx-home-pale);
  color: var(--cbx-home-cyan-dark);
}

/* ── B. Hero ──────────────────────────────────────────────── */
.cbx-home-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.1rem, 2vw, 1.5rem);
  background:
    radial-gradient(circle at 88% 0%, rgba(15, 181, 204, 0.07), transparent 26rem),
    #ffffff;
}

.cbx-home-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.cbx-home-headline {
  margin: 1.1rem 0 1rem;
  color: var(--cbx-home-navy);
  font-size: clamp(2.05rem, 3.8vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.cbx-home-headline-accent {
  color: var(--cbx-home-cyan);
}

.cbx-home-lead {
  margin: 0 0 1.6rem;
  color: var(--cbx-home-text);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.65;
}

.cbx-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cbx-home-hero-media {
  position: relative;
}

.cbx-home-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 1.4rem;
  box-shadow: var(--cbx-home-shadow);
}

.cbx-home-overlay {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(226, 237, 243, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 32px rgba(11, 34, 57, 0.13);
  color: var(--cbx-home-ink);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
}

.cbx-home-overlay--members {
  left: 1.1rem;
  bottom: 1.1rem;
  flex-direction: column;
  gap: 0.55rem;
}

.cbx-home-overlay-title {
  font-size: 0.82rem;
  font-weight: 750;
}

.cbx-home-avatar-stack {
  display: flex;
  align-items: center;
}

.cbx-home-avatar-stack img,
.cbx-home-avatar-plus {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(11, 34, 57, 0.16);
}

.cbx-home-avatar-stack img + img,
.cbx-home-avatar-stack .cbx-home-avatar-plus {
  margin-left: -9px;
}

.cbx-home-avatar-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--cbx-home-navy);
  font-size: 0.8rem;
  text-decoration: none;
}

.cbx-home-avatar-plus:hover {
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
}

.cbx-home-overlay--chat {
  right: 1.1rem;
  bottom: 1.1rem;
  align-items: center;
  max-width: 240px;
}

.cbx-home-overlay-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  font-size: 1.15rem;
}

/* ── C. Feature strip ─────────────────────────────────────── */
.cbx-home-features {
  padding: 0.5rem 0 clamp(1.75rem, 3.5vw, 2.75rem);
}

.cbx-home-feature-card {
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: var(--cbx-home-shadow);
  overflow: hidden;
}

.cbx-home-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: 1.4rem 1.5rem;
}

.cbx-home-feature + .cbx-home-feature {
  border-left: 1px solid var(--cbx-home-border);
}

.cbx-home-feature-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  font-size: 1.45rem;
}

.cbx-home-feature-title {
  margin: 0.15rem 0 0.3rem;
  color: var(--cbx-home-navy);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.cbx-home-feature-text {
  margin: 0;
  color: var(--cbx-home-text);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Shared section headings / cards ──────────────────────── */
.cbx-home-section {
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
}

.cbx-home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.cbx-home-section-title {
  margin: 0 0 0.35rem;
  color: var(--cbx-home-navy);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cbx-home-section-sub {
  margin: 0;
  color: var(--cbx-home-muted);
  font-size: 0.95rem;
}

.cbx-home-section-link,
.cbx-home-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--cbx-home-cyan-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.cbx-home-section-link:hover,
.cbx-home-card-link:hover {
  color: var(--cbx-home-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── D. Event cards ───────────────────────────────────────── */
.cbx-home-event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cbx-home-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cbx-home-shadow);
}

.cbx-home-event-media {
  position: relative;
}

.cbx-home-event-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cbx-home-event-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.32rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(217, 244, 249, 0.95);
  color: var(--cbx-home-cyan-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cbx-home-event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.25rem;
}

.cbx-home-event-title {
  margin: 0 0 0.7rem;
  color: var(--cbx-home-navy);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.cbx-home-event-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.4rem;
  color: var(--cbx-home-muted);
  font-size: 0.86rem;
}

.cbx-home-event-meta i {
  color: var(--cbx-home-cyan-dark);
}

.cbx-home-event-body .cbx-home-card-link {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* ── E. Member directory ──────────────────────────────────── */
.cbx-home-section--directory {
  padding-top: 0.5rem;
}

.cbx-home-directory-panel {
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #f2fafd, var(--cbx-home-pale));
}

.cbx-home-directory-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.cbx-home-search {
  position: relative;
  flex: 1 1 300px;
  max-width: 430px;
}

.cbx-home-search > i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--cbx-home-muted);
  pointer-events: none;
}

.cbx-home-search .form-control {
  min-height: 50px;
  padding: 0.7rem 1rem 0.7rem 2.7rem;
  border: 1px solid var(--cbx-home-border);
  border-radius: 0.8rem;
  background: #ffffff;
  color: var(--cbx-home-ink);
  font-size: 1rem;
}

.cbx-home-search .form-control:focus {
  border-color: var(--cbx-home-cyan);
  box-shadow: 0 0 0 0.22rem rgba(15, 181, 204, 0.16);
}

.cbx-home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cbx-home-filter {
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--cbx-home-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cbx-home-text);
  font-size: 0.88rem;
  font-weight: 650;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cbx-home-filter:hover {
  border-color: var(--cbx-home-cyan);
  color: var(--cbx-home-cyan-dark);
}

.cbx-home-filter.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #17c3dd, var(--cbx-home-cyan));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 181, 204, 0.25);
}

.cbx-home-member-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.05);
}

.cbx-home-member-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  font-size: 1.6rem;
}

.cbx-home-member-title {
  margin: 0 0 0.3rem;
  color: var(--cbx-home-navy);
  font-size: 1.05rem;
  font-weight: 750;
}

.cbx-home-member-sub {
  margin: 0 0 0.6rem;
  color: var(--cbx-home-muted);
  font-size: 0.88rem;
}

.cbx-home-member-card .cbx-home-card-link {
  margin-top: auto;
}

.cbx-home-directory-empty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px dashed #bcd8e4;
  border-radius: 1rem;
  background: #ffffff;
  color: var(--cbx-home-text);
  font-size: 0.92rem;
}

.cbx-home-directory-empty[hidden] {
  display: none;
}

/* ── F. Membership banner ─────────────────────────────────── */
.cbx-home-section--banner {
  padding-top: 0.5rem;
}

.cbx-home-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.6rem;
  background: linear-gradient(100deg, #e2f5fa 0%, var(--cbx-home-cyan-soft) 52%, #cdeef7 100%);
}

.cbx-home-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
}

.cbx-home-banner-title {
  margin: 0 0 0.45rem;
  color: var(--cbx-home-navy);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cbx-home-banner-sub {
  margin: 0 0 1.3rem;
  color: var(--cbx-home-text);
  font-size: 0.98rem;
}

.cbx-home-banner-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  /* Curved/diagonal blend from the pale banner into the skyline photo. */
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.cbx-home-banner-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #d9f4f9 0%, rgba(217, 244, 249, 0) 34%);
}

.cbx-home-banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

/* ── G. Footer (homepage variant) ─────────────────────────── */
.cbx-home-footer {
  padding: 1.6rem 0 2.2rem;
  background: #ffffff;
}

.cbx-home-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 2rem;
}

.cbx-home-brand--footer .cbx-home-brand-mark {
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
}

.cbx-home-brand--footer .cbx-home-brand-mark img {
  height: 22px;
}

.cbx-home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cbx-home-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  color: var(--cbx-home-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.cbx-home-footer-nav a + a {
  border-left: 1px solid var(--cbx-home-border);
}

.cbx-home-footer-nav a:hover {
  color: var(--cbx-home-cyan-dark);
}

.cbx-home-footer-note {
  margin: 0 0 0 auto;
  color: var(--cbx-home-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: right;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .cbx-home-nav-actions .btn,
  .cbx-home-nav-actions .dropdown-toggle {
    width: 100%;
  }

  .cbx-home-signin-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid var(--cbx-home-border) !important;
    margin-top: 0.5rem;
  }

  .cbx-home-hero-img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767.98px) {
  .cbx-home-feature + .cbx-home-feature {
    border-left: 0;
    border-top: 1px solid var(--cbx-home-border);
  }

  .cbx-home-overlay--members {
    left: 0.7rem;
    bottom: 0.7rem;
    padding: 0.7rem 0.8rem;
  }

  .cbx-home-overlay--chat {
    top: 0.7rem;
    right: 0.7rem;
    bottom: auto;
    max-width: 185px;
    padding: 0.7rem 0.8rem;
    font-size: 0.78rem;
  }

  .cbx-home-overlay-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1rem;
  }

  .cbx-home-avatar-stack img,
  .cbx-home-avatar-plus {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .cbx-home-banner {
    display: flex;
    flex-direction: column;
  }

  .cbx-home-banner-copy {
    max-width: none;
  }

  .cbx-home-banner-media {
    position: relative;
    width: 100%;
    height: 180px;
    clip-path: none;
  }

  .cbx-home-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cbx-home-footer-note {
    margin-left: 0;
    text-align: left;
  }

  .cbx-home-footer-note br {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .cbx-home-headline {
    font-size: clamp(1.95rem, 9.5vw, 2.4rem);
  }

  .cbx-home-hero-actions .btn {
    flex: 1 1 100%;
  }

  .cbx-home-search {
    max-width: none;
  }

  .cbx-home-directory-panel {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbx-home *,
  .cbx-home-nav *,
  .cbx-home-footer * {
    transition-duration: 0.01ms !important;
  }
}

/* Active state in the platform (homepage-design) navigation */
.cbx-home-nav .nav-link.active {
  color: var(--cbx-home-cyan-dark);
  box-shadow: inset 0 -3px 0 var(--cbx-home-cyan);
  border-radius: 0.4rem 0.4rem 0 0;
}

/* ── Homepage platform-features section ───────────────────── */
.cbx-home-features-platform {
  padding-top: 0.5rem;
}

.cbx-home-feature-platform-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cbx-home-feature-platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cbx-home-shadow);
}

.cbx-home-feature-platform-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--feature-accent, #0fb5cc) 12%, #ffffff);
  color: var(--feature-accent, #0fb5cc);
  font-size: 1.5rem;
}

.cbx-home-feature-platform-title {
  margin: 0 0 0.4rem;
  color: var(--cbx-home-navy);
  font-size: 1.05rem;
  font-weight: 750;
}

.cbx-home-feature-platform-text {
  margin: 0 0 0.7rem;
  color: var(--cbx-home-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cbx-home-feature-platform-card .cbx-home-card-link {
  margin-top: auto;
}

/* ============================================================
   PLATFORM PAGES — homepage-inspired design
   (Pricing · About · Contact · Solutions) scoped to .cbx-site
   ============================================================ */
.cbx-site {
  --cbx-home-navy: #0b2239;
  --cbx-home-cyan: #0fb5cc;
  --cbx-home-cyan-dark: #078ba3;
  --cbx-home-cyan-soft: #d9f4f9;
  --cbx-home-pale: #eef8fb;
  --cbx-home-ink: #12283f;
  --cbx-home-text: #46586c;
  --cbx-home-muted: #71839a;
  --cbx-home-border: #e2edf3;
  color: var(--cbx-home-ink);
}

.cbx-site .cbx-front-container {
  max-width: 1200px;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.cbx-site .cbx-page-hero,
.cbx-site .cbx-solution-hero {
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2.1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--cbx-home-border);
  background:
    radial-gradient(circle at 88% 0%, rgba(15, 181, 204, 0.09), transparent 26rem),
    linear-gradient(180deg, #f2fafd, #ffffff);
}

.cbx-site .cbx-page-title,
.cbx-site .cbx-solution-title {
  color: var(--cbx-home-navy);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cbx-site .cbx-page-lead,
.cbx-site .cbx-solution-lead {
  color: var(--cbx-home-text);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.65;
}

.cbx-site .cbx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.cbx-site .cbx-inner-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.6rem, 6vw, 4rem);
}

.cbx-site .feature-card {
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.05);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cbx-site .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 34, 57, 0.08);
}

.cbx-site .feature-icon-wrap,
.cbx-site .feature-icon-circle {
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  box-shadow: none;
}

.cbx-site .text-teal {
  color: var(--cbx-home-cyan-dark) !important;
}

.cbx-site .btn-demo-nav,
.cbx-site a.btn-demo-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #17c3dd, var(--cbx-home-cyan));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(15, 181, 204, 0.25);
  text-decoration: none;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.cbx-site .btn-demo-nav:hover {
  background: linear-gradient(135deg, var(--cbx-home-cyan), var(--cbx-home-cyan-dark));
  color: #ffffff;
  transform: translateY(-1px);
}

.cbx-site .btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid #c7d7e2;
  border-radius: 0.65rem;
  background: #ffffff;
  color: var(--cbx-home-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.cbx-site .btn-login:hover {
  border-color: var(--cbx-home-cyan);
  color: var(--cbx-home-cyan-dark);
}

/* Pricing */
.cbx-site .cbx-pricing-featured {
  border: 1.5px solid var(--cbx-home-cyan) !important;
  box-shadow: 0 16px 36px rgba(15, 181, 204, 0.16);
}

/* About */
.cbx-site .cbx-vision-quote {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--cbx-home-border);
  border-left: 4px solid var(--cbx-home-cyan);
  border-radius: 1rem;
  background: #ffffff;
  color: var(--cbx-home-text);
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.05);
}

/* Contact + generic page forms */
.cbx-site .form-label {
  color: var(--cbx-home-ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.cbx-site .form-control {
  min-height: 52px;
  border: 1px solid #cfdde1;
  border-radius: 0.8rem;
  background: #fbfcfc;
  color: var(--cbx-home-ink);
  font-size: 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cbx-site textarea.form-control {
  min-height: 120px;
}

.cbx-site .form-control:hover {
  border-color: #b9ced4;
  background: #ffffff;
}

.cbx-site .form-control:focus {
  border-color: var(--cbx-home-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 0.22rem rgba(15, 181, 204, 0.16);
}

/* Solutions */
.cbx-site .breadcrumb a {
  color: var(--cbx-home-cyan-dark);
  text-decoration: none;
}

.cbx-site .cbx-solution-hero-icon {
  background: var(--cbx-home-cyan-soft);
  color: var(--cbx-home-cyan-dark);
  box-shadow: 0 0 0 16px rgba(15, 181, 204, 0.08);
}

.cbx-site .cbx-module-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--cbx-home-border);
  border-radius: 999px;
  background: var(--cbx-home-pale);
  color: var(--cbx-home-ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.cbx-site .cbx-solution-cta {
  padding: 0 0 clamp(2.6rem, 6vw, 4rem);
  border: 0;
  background: transparent;
}

.cbx-site .cbx-site-cta-card {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.6rem;
  background: linear-gradient(100deg, #e2f5fa, var(--cbx-home-cyan-soft) 55%, #cdeef7);
}

.cbx-site .cbx-site-cta-card h2 {
  color: var(--cbx-home-navy);
  letter-spacing: -0.02em;
}

/* ============================================================
   MEMBER ACCESS — homepage-inspired refinements
   (club colors stay dynamic via --cbx-member-* tokens)
   ============================================================ */
body.cbx-member-portal .cbx-member-topbar {
  border-bottom: 1px solid #e2edf3;
  box-shadow: 0 10px 30px rgba(11, 34, 57, 0.06);
}

body.cbx-member-portal .cbx-member-brand-logo {
  border-radius: 0.9rem;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--cbx-member-brand) 10%, transparent),
    0 8px 18px rgba(11, 34, 57, 0.08);
}

body.cbx-member-portal .cbx-member-brand-copy small {
  color: var(--cbx-member-brand);
}

body.cbx-member-portal .cbx-member-desktop-link.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cbx-club-accent, var(--cbx-member-brand)), var(--cbx-member-brand));
  color: #ffffff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--cbx-member-brand) 24%, transparent);
}

body.cbx-member-portal .cbx-member-desktop-link.active i {
  color: #ffffff;
}

body.cbx-member-portal .cbx-member-account-btn:hover {
  border-color: color-mix(in srgb, var(--cbx-member-brand) 35%, #ffffff);
  box-shadow: 0 10px 22px rgba(11, 34, 57, 0.09);
}

body.cbx-member-portal .cbx-member-account-menu .dropdown-item:hover {
  background: color-mix(in srgb, var(--cbx-member-brand) 7%, #ffffff);
}

@media (prefers-reduced-motion: reduce) {
  .cbx-site *,
  body.cbx-member-portal .cbx-member-desktop-link {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CLUB CMS PAGES — homepage-inspired layout
   (/{club}/pages/*) — homepage structure, club-branded accents
   ============================================================ */
.cbx-club-page {
  /* Club identity first: accent tokens derive from the tenant
     primary color (set as --cbx-club-primary by the layout),
     falling back to the homepage cyan. */
  --cbx-club-page-accent: var(--cbx-club-primary, #0fb5cc);
  --cbx-home-cyan: var(--cbx-club-page-accent);
  --cbx-home-cyan-dark: color-mix(in srgb, var(--cbx-club-page-accent) 68%, #0b2239);
  --cbx-home-cyan-soft: color-mix(in srgb, var(--cbx-club-page-accent) 13%, #ffffff);
  --cbx-home-pale: color-mix(in srgb, var(--cbx-club-page-accent) 6%, #ffffff);
}

.cbx-club-page .cbx-page-hero {
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--cbx-club-page-accent) 12%, transparent), transparent 26rem),
    linear-gradient(180deg, var(--cbx-home-pale), #ffffff);
}

/* Comfortable reading column for CMS prose */
.cbx-club-page-article {
  max-width: 820px;
}

/* Prose polish — navy headings, club-accent links, soft media */
.cbx-club-page .cbx-prose {
  color: var(--cbx-home-text);
  font-size: 1rem;
  line-height: 1.75;
}

.cbx-club-page .cbx-prose > :last-child {
  margin-bottom: 0;
}

.cbx-club-page .cbx-prose h2,
.cbx-club-page .cbx-prose h3,
.cbx-club-page .cbx-prose h4 {
  color: var(--cbx-home-navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cbx-club-page .cbx-prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
}

.cbx-club-page .cbx-prose h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
}

.cbx-club-page .cbx-prose p,
.cbx-club-page .cbx-prose li {
  color: var(--cbx-home-text);
}

.cbx-club-page .cbx-prose a {
  color: var(--cbx-home-cyan-dark);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--cbx-club-page-accent) 45%, transparent);
  text-underline-offset: 3px;
}

.cbx-club-page .cbx-prose a:hover {
  color: var(--cbx-home-cyan);
}

.cbx-club-page .cbx-prose img {
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(11, 34, 57, 0.1);
}

.cbx-club-page .cbx-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--cbx-club-page-accent);
  border-radius: 0 1rem 1rem 0;
  background: var(--cbx-home-pale);
  color: var(--cbx-home-ink);
}

.cbx-club-page .cbx-prose blockquote > :last-child {
  margin-bottom: 0;
}

.cbx-club-page .cbx-prose hr {
  margin: 2rem 0;
  border-color: var(--cbx-home-border);
  opacity: 1;
}

.cbx-club-page .cbx-prose ul,
.cbx-club-page .cbx-prose ol {
  padding-left: 1.35rem;
}

.cbx-club-page .cbx-prose li + li {
  margin-top: 0.35rem;
}

/* Wide CMS tables scroll inside the card instead of breaking layout */
.cbx-club-page .cbx-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.cbx-club-page .cbx-prose th,
.cbx-club-page .cbx-prose td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--cbx-home-border);
  text-align: left;
}

/* CTA banner tinted with the club accent */
.cbx-club-page .cbx-site-cta-card {
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--cbx-club-page-accent) 16%, #ffffff),
    var(--cbx-home-cyan-soft) 55%,
    color-mix(in srgb, var(--cbx-club-page-accent) 22%, #ffffff)
  );
}

.cbx-club-page .cbx-site-cta-card p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--cbx-home-text);
  line-height: 1.65;
}

/* ============================================================
   CLUB NEWS — homepage-inspired cards & article
   (/{club}/news, /{club}/news/*) — shares .cbx-club-page tokens
   ============================================================ */
.cbx-club-news .cbx-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cbx-home-border);
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 34, 57, 0.05);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cbx-club-news .cbx-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 34, 57, 0.09);
}

/* Card media — featured image, or tinted placeholder when none */
.cbx-club-news .cbx-blog-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--cbx-home-cyan-soft), var(--cbx-home-pale));
  color: var(--cbx-home-cyan-dark);
  text-decoration: none;
}

/* Overrides the global .cbx-front img height cap for news media */
.cbx-club-news .cbx-blog-card-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

.cbx-club-news-placeholder {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cbx-home-cyan-dark);
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(11, 34, 57, 0.08);
}

.cbx-club-news .cbx-link-title:hover {
  color: var(--cbx-home-cyan-dark);
}

/* Uniform card heights — excerpt clamped to 3 lines */
.cbx-club-news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cbx-club-news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cbx-home-cyan-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.18s ease, color 0.18s ease;
}

.cbx-club-news-more:hover {
  color: var(--cbx-home-cyan);
  gap: 0.55rem;
}

/* Article hero image */
.cbx-club-news-hero-img {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(11, 34, 57, 0.12);
}

.cbx-club-news-hero-img img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Pagination — club accent, touch-friendly targets */
.cbx-club-news .pagination {
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cbx-club-news .page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cbx-home-border);
  border-radius: 0.6rem !important;
  background: #ffffff;
  color: var(--cbx-home-cyan-dark);
  font-weight: 600;
}

.cbx-club-news .page-link:hover {
  border-color: var(--cbx-club-page-accent);
  background: var(--cbx-home-pale);
  color: var(--cbx-home-cyan-dark);
}

.cbx-club-news .page-item.active .page-link {
  border-color: var(--cbx-club-page-accent);
  background: var(--cbx-club-page-accent);
  color: #ffffff;
}

.cbx-club-news .page-item.disabled .page-link {
  border-color: var(--cbx-home-border);
  background: #ffffff;
  color: var(--cbx-home-muted);
}


