/* ==========================================================================
   Essential Spa Solutions — Member Portal Theme
   Built on top of Bootstrap 5 utilities. Custom rules are kept to things
   Bootstrap can't express: brand gradient, wave decoration, badge colors,
   the sidebar, password strength meter, and a couple of card treatments.
   ========================================================================== */

:root {
  /* Brand tokens — unchanged so coloured badges/buttons keep working */
  --spa-navy:   #17243B;
  --spa-blue:   #233657;
  --spa-gold:   #D8AF4C;
  --spa-white:  #FFFFFF;
  --spa-green:  #3F6B4E;
  --spa-purple: #7C5CBF;

  /* Dark theme surface & text tokens */
  --spa-cream:   #1B2F48;
  --spa-mist:    rgba(255, 255, 255, 0.07);
  --spa-ink:     #D0DEEC;
  --spa-muted:   #6B85A0;
  --spa-border:  rgba(255, 255, 255, 0.09);
  --spa-surface: #152840;

  --spa-radius:    0.9rem;
  --spa-radius-sm: 0.6rem;
  --spa-shadow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --spa-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);

  --spa-font-display: "Playfair Display", "Georgia", serif;
  --spa-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--spa-font-body);
  color: var(--spa-ink);
  background: radial-gradient(120% 120% at 6% 0%, #1B2F48 0%, #0F1E30 28%, #091727 62%, #060E1B 100%);
  overflow-x: hidden !important;
}

h1, h2, h3, .spa-font-display {
  font-family: var(--spa-font-display);
  color: var(--spa-navy);
}

a {
  color: var(--spa-navy);
}

/* --------------------------------------------------------------------
   Page background — gradient wash + low-opacity wave decoration
   The wave SVG is injected by portal-ui.js so it isn't duplicated in
   every page. This class only sets up the gradient + positioning.
   -------------------------------------------------------------------- */
.spa-page-bg {
  position: relative;
  min-height: 100vh;
  width :100%;
  /* overflow-x: hidden ; */
}

@media(max-width:768px) { 

  .spa-main-container { 
    margin-bottom : 5rem;
  }
}

.bg-surface { 
  background-color: var(--spa-surface) !important;
}
.bg-navy { 
  background-color : var(--spa-navy) !important;
}
.spa-wave-decoration {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.spa-page-bg > * {
  position: relative;
  z-index: 1;
}

.smooth-transition { 
  transition: all 0.2s ease-in-out;
}
/* --------------------------------------------------------------------
   Auth card (Login / Setup Password)
   -------------------------------------------------------------------- */
.spa-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow);
  padding: 2.25rem 2rem;
}

.spa-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.spa-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background: var(--spa-navy);
  border: 1px solid var(--spa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--spa-font-display);
  color: var(--spa-gold);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.spa-logo-text {
  line-height: 1.1;
  text-align: left;
}

.spa-logo-text .top {
  font-family: var(--spa-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--spa-navy);
  letter-spacing: 0.04em;
  display: block;
}

.spa-logo-text .bottom {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--spa-gold);
  text-transform: uppercase;
  display: block;
}

.spa-input-eye {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--spa-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.form-control.spa-input {
  border-color: var(--spa-border);
  padding: 0.65rem 0.9rem;
}

.form-control.spa-input:focus {
  border-color: var(--spa-navy);
  box-shadow: 0 0 0 3px rgba(23, 36, 59, 0.1);
}

.btn-spa-navy {
  background-color: var(--spa-navy);
  border: 1px solid var(--spa-gold);
  color: var(--spa-white);
  font-weight: 500;
}

.btn-spa-navy:hover,
.btn-spa-navy:focus {
  background-color: var(--spa-blue);
  color: var(--spa-white);
  border-color: var(--spa-gold);
}

.btn-spa-green {
  background-color: var(--spa-green);
  border: 1px solid var(--spa-green);
  color: var(--spa-white);
  font-weight: 500;
  font-size: 0.85rem;
}

.btn-spa-green:hover,
.btn-spa-green:focus {
  background-color: #335a40;
  color: var(--spa-white);
}

/* Password strength meter */
.spa-strength-meter {
  display: flex;
  gap: 4px;
  margin: 0.5rem 0 0.35rem;
}

.spa-strength-meter span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background-color: var(--spa-border);
  transition: background-color 0.2s ease;
}

.spa-strength-hint {
  font-size: 0.72rem;
  color: var(--spa-muted);
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------
   Portal shell — navbar + sidebar (Dashboard / Phase / Content Detail)
   -------------------------------------------------------------------- */
.spa-navbar {
  padding: 1rem 1.5rem;
  position:fixed;
  top :0;
  width : 100%;
  z-index: 30;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(8, 18, 30, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)
}
#carouselBannerPackage {
  margin-top : 3rem;
}
@media(max-width : 768px) { 
  .spa-navbar {
    position: fixed;
  }
  #carouselBannerPackage{
    margin-top:3.5rem;
  }
}
.spa-navbar-mobile { 
  position: fixed;
  padding: 1.1rem 1.5rem;
  bottom: 0;
  left : 0;
  width : 100%;
  z-index : 30;
  transition: all 0.2s;
  background-color: rgba(8, 18, 30, 0.94);
  backdrop-filter:blur(0.8px);
  border-radius: 15px 15px 0px 0px;
  border : 1px solid var(--spa-border)
}
.spa-navbar-mobile ul { 
  display: flex;
  justify-content: space-between;
  padding : 0px; 
  margin : 0px;
}
.spa-navbar-mobile ul li { 
  list-style: none;
  display: flex;
  align-items: center;
}
@media(min-width:768px) {
  .spa-navbar-mobile { 
    display : none
  }
}
.spa-navbar-mobile ul li a { 
  text-decoration: none;
  display: flex;
  gap : 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.5em;
  letter-spacing: 1px;
  width : 60px;
  /* border : 1px solid white; */
}
.spa-navbar-mobile ul li a .icon {
  font-size: 2em;
}
.spa-avatar.spa-avatar-mobile { 
  width : 50px;
  height :50px;
  font-size:1.8em;
}

.spa-navbar.scrolled { 
  background-color: rgba(8, 18, 30, 0.94);
}

.cart-nav {
  position : relative;
}
.cart-dropdown { 
  position: absolute;
  width : 350px;
  right : 0;
  top : 3rem;
  display: none;
}
.cart-dropdown .cart-item-container { 
  max-height : 200px;
  overflow-y : auto;
  overflow-x: hidden;
}


.notification-nav { 
  position: relative;
}
.notification-dropdown{ 
  position: absolute;
  width : 250px;
  right : 0;
  top : 3rem;
  display: none;
  /* transition: all 0.3s ease-in-out; */
}

.avatar-nav { 
  position : relative;
}
.avatar-dropdown { 
  position : absolute;
  display: none;
  justify-content: center;
  width : 140px;
  top : 3rem;
  right : 0;
  /* transition: all 0.3s ease-in-out; */
}

.spa-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  background: var(--spa-white);
  border: 1px solid var(--spa-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--spa-navy);
}

.spa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--spa-navy);
  color: var(--spa-white);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spa-avatar:hover { 
  cursor: pointer;
}

.spa-hero {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  margin-top : 5rem;
}
@media(min-width:768px) { 
  .spa-hero{ 
    margin-top : 3rem;
  }
}

.spa-hero .eyebrow {
  font-family: var(--spa-font-display);
  font-size: 1.4rem;
  color: var(--spa-navy);
}

.spa-hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.2rem 0 0.85rem;
}

.spa-hero p {
  color: var(--spa-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.92rem;
}

.spa-sidebar {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  display: flex;
  flex-direction: column;
  /* min-height: 500px; */
  position: sticky;
  top: 5rem;
}

.spa-sidebar-header {
  background: rgba(8, 18, 30, 0);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--spa-ink);
  border-bottom: 1px solid var(--spa-border);
  border-radius: var(--spa-radius) var(--spa-radius) 0 0;
  gap: 0.5rem;
}
.spa-sidebar-header:hover { 
  background-color: var(--spa-mist); 
}
.spa-sidebar-header.active { 
  background: rgba(8, 18, 30, 0.9);
}

.spa-sidebar-header .label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-sidebar-collapse-toggle {
  position: absolute;
  top: 0.9rem;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--spa-navy);
  color: var(--spa-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 2;
  box-shadow: var(--spa-shadow-sm);
}

.spa-sidebar-nav {
  padding: 0.5rem 0.5rem;
  flex: 1;
  border-bottom: 1px solid var(--spa-border);
}

.spa-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--spa-radius-sm);
  font-size: 0.85rem;
  color: var(--spa-ink);
  text-decoration: none;
}

.spa-sidebar-nav a:hover,
.spa-sidebar-nav a.active {
  background: var(--spa-mist);
  color: var(--spa-navy);
}

.spa-sidebar-footer {
  padding: 0.85rem 1rem;
  font-size: 0.7rem;
  color: var(--spa-muted);
  text-align: center;
  border-top: 1px solid var(--spa-border);
  border-radius: 0 0 var(--spa-radius) var(--spa-radius);
}

.spa-sidebar-container { 
  transition: all 0.3s ease-in-out;
  display: none;
}
@media(min-width:768px) { 
  .spa-sidebar-container { 
    display: block;
  }
}
.spa-sidebar-container.collapsed { 
  width : 90px;
}
/* .spa-sidebar.is-collapsed { 
  width : 50px
} */


.spa-sidebar.is-collapsed .spa-sidebar-label,
.spa-sidebar.is-collapsed .spa-sidebar-footer {
  display: none;
}

.spa-sidebar.is-collapsed .spa-sidebar-nav a span {
  display: none;
}

/* Phase badges */
.spa-phase-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  color: var(--spa-white);
  display: inline-block;
  align-self: flex-start;
}

.spa-phase-badge.phase_1 { background-color: var(--spa-green); }
.spa-phase-badge.phase_2 { background-color: var(--spa-gold); color: var(--spa-navy); }
.spa-phase-badge.phase_3 { background-color: var(--spa-purple); }

/* Phase card */
.spa-phase-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  padding: 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spa-phase-card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--spa-radius-sm);
  background: var(--spa-mist);
  color: var(--spa-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spa-phase-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.spa-phase-card p {
  font-size: 0.85rem;
  color: var(--spa-muted);
  flex: 1;
}

/* Operating system content rows */
.spa-os-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  padding: 1.4rem;
}

.spa-os-row {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--spa-border);
}

.spa-os-row:last-child {
  border-bottom: none;
}

.spa-os-tag {
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--spa-white);
  border-radius: var(--spa-radius-sm);
  padding: 0.4rem 0.3rem;
}

.spa-os-tag.phase_1 { background-color: var(--spa-green); }
.spa-os-tag.phase_2 { background-color: var(--spa-gold); color: var(--spa-navy); }
.spa-os-tag.phase_3 { background-color: var(--spa-purple); }

.spa-os-row .title-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.92rem;
}
@media(max-width:768px) { 
  .spa-os-row .title-line {
    font-size : 0.8rem;
  }
}

.spa-os-row .subtitle {
  font-size: 0.78rem;
  color: var(--spa-muted);
}

/* PDF viewer placeholder */
.spa-pdf-viewer {
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  background: rgba(255, 255, 255, 0.03);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spa-muted);
  font-family: var(--spa-font-display);
  letter-spacing: 0.04em;
}

/* Related content card */
.spa-related-card {
  border-radius: var(--spa-radius-sm);
  overflow: hidden;
  box-shadow: var(--spa-shadow-sm);
  height: 100%;
}

.spa-related-card .head {
  background: var(--spa-green);
  color: var(--spa-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
}

.spa-related-card .body {
  background: var(--spa-surface);
  padding: 0.85rem 0.9rem;
  font-size: 0.78rem;
  color: var(--spa-muted);
}

.ss-pattern-place { 
    position : absolute;
    bottom  : 0rem;
    right : -10rem;
    z-index : 0;
    width:35%;
    display: none !important;
}

/* --------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .spa-hero h1 { font-size: 1.6rem; }
  .spa-hero .eyebrow { font-size: 1.1rem; }
  .spa-sidebar { min-height: auto; margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px) {
  .spa-auth-card { padding: 1.75rem 1.4rem; }
  .spa-sidebar-collapse-toggle { display : none }
  .ss-pattern-place { display: none;}
}


/* Accessibility: visible focus ring everywhere */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--spa-navy);
  outline-offset: 2px;
}


/* Banner carousel placeholder --------------------------------------- */
.spa-banner-wrap {
  position: relative;
  /* border-radius: var(--spa-radius); */
  overflow: hidden;
  border: 1px solid var(--spa-border);
  background: var(--spa-mist);
  min-height: 250px;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  margin-bottom: 1.5rem;
}
.spa-banner-wrap .banner-img { 
  height : 100%;
  width : 100%;
  object-fit: cover;
}
.spa-banner-wrap .carousel-item { 
  height : 250px 
}
@media(min-width:1200px) { 
  .spa-banner-wrap { 
    min-height : 250px;
  }
  .spa-banner-wrap .carousel-item { 
    height : 250px;
  }
}
@media(min-width:1400px) {
  .spa-banner-wrap { 
    min-height : 350px;
  }
  .spa-banner-wrap .carousel-item { 
    height : 350px;
  }
}

.spa-banner-placeholder {
  font-family: var(--spa-font-display);
  letter-spacing: 0.12em;
  color: var(--spa-muted);
  font-size: 0.95rem;
}

.spa-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--spa-navy);
  cursor: pointer;
  z-index: 2;
}

.spa-banner-arrow.prev { left: 0.75rem; }
.spa-banner-arrow.next { right: 0.75rem; }


/* Product card (Browse Package grid + Related Products) -------------- */
.spa-product-card {
  border-radius: var(--spa-radius-sm);
  overflow: hidden;
  box-shadow: var(--spa-shadow-sm);
  background: var(--spa-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.spa-product-card-head {
  background: var(--spa-green);
  color: var(--spa-white);
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spa-product-card-head .cat {
  font-size: 0.7rem;
  opacity: 0.85;
}

.spa-product-card-head .cat-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.spa-product-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.spa-product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--spa-ink);
}

.spa-product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--spa-navy);
}

.spa-product-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.35rem;
}

.spa-product-actions .btn-spa-navy {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}

/* ── Horizontal product card ──────────────────────────────────────────
   Add spa-product-card--h to override the default stacked layout.
   Works on both light and dark themes — inherits the same base class.
   ─────────────────────────────────────────────────────────────────── */

.spa-product-card--h {
  flex-direction: row;
  align-items: stretch;
  height: auto;           /* base class has height:100%, not wanted here */
}

.spa-product-card-head--h {
  width: 38%;
  min-width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spa-product-card-body--h {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Stack back to vertical on small screens */
@media (max-width: 575.98px) {
  .spa-product-card--h           { flex-direction: column; }
  .spa-product-card-head--h      { width: 100%; min-width: unset; }
}

/* Package detail — description card --------------------------------- */
.spa-pkg-detail-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  overflow: hidden;
}

.spa-pkg-detail-header {
  background: var(--spa-green);
  color: var(--spa-white);
  padding: 0.7rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spa-pkg-detail-header .phase-label {
  font-size: 0.7rem;
  opacity: 0.85;
}

.spa-pkg-detail-header .pkg-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.spa-pkg-detail-body {
  padding: 1.1rem;
  font-size: 0.88rem;
  color: var(--spa-muted);
  line-height: 1.7;
}

/* Add-to-cart widget (Package Detail right panel) ------------------- */
.spa-cart-widget {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  padding: 1.2rem;
}

.spa-cart-widget-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--spa-navy);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spa-cart-widget-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--spa-border);
}

.spa-cart-widget-line.subtotal {
  border-bottom: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding-top: 0.65rem;
}


/* Cart page items --------------------------------------------------- */
.spa-cart-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  overflow: hidden;
}

.spa-cart-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--spa-border);
  background: rgba(255, 255, 255, 0.04);
}

.spa-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--spa-border);
}

.spa-cart-item:last-child { border-bottom: none; }

.spa-cart-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--spa-radius-sm);
  background: var(--spa-mist);
  color: var(--spa-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spa-cart-item-info {
  flex: 1;
  min-width: 0;
}

.spa-cart-item-info .phase { font-size: 0.7rem; color: var(--spa-muted); }
.spa-cart-item-info .name { font-size: 0.88rem; font-weight: 600; color: var(--spa-ink); }

.spa-cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.spa-cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--spa-navy);
}

.btn-delete {
  background: none;
  border: none;
  color: #C0392B;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
}

/* Summary card (Cart + Transaction right panel) --------------------- */
.spa-summary-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  padding: 1.2rem;
  position: sticky;
  top: 1.5rem;
}

.spa-summary-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--spa-navy);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spa-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 0;
  border-top: 1px solid var(--spa-border);
  border-bottom: 1px solid var(--spa-border);
  margin-bottom: 1rem;
}

/* Transaction rows -------------------------------------------------- */
.spa-tx-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius-sm);
  box-shadow: var(--spa-shadow-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.spa-tx-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--spa-border);
  font-size: 0.75rem;
  color: var(--spa-muted);
  flex-wrap: wrap;
}

.spa-tx-body {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--spa-border);
}

.spa-tx-body .info { flex: 1; min-width: 0; }
.spa-tx-body .phase { font-size: 0.7rem; color: var(--spa-muted); }
.spa-tx-body .name { font-size: 0.88rem; font-weight: 600; color: var(--spa-ink); }
.spa-tx-body .price { font-size: 0.88rem; font-weight: 700; color: var(--spa-navy); flex-shrink: 0; }

.spa-tx-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
}

.btn-pay {
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
}

/* Status badges */
.spa-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: var(--spa-white);
}

.spa-status-badge.status-waiting_payment { background: var(--spa-gold); color: var(--spa-navy); }
.spa-status-badge.status-paid { background: var(--spa-green); }
.spa-status-badge.status-expired { background: var(--spa-muted); }
.spa-status-badge.status-failed { background: #C0392B; }
.spa-status-badge.status-cancel { background: #C0392B; }

.spa-tx-id {
  font-size: 0.68rem;
  font-family: monospace;
  background: var(--spa-mist);
  color: var(--spa-navy);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Filter tabs (Transaction) ----------------------------------------- */
.spa-filter-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--spa-border);
  padding-bottom: 0.75rem;
}

.spa-filter-tab {
  background: none;
  border: 1px solid var(--spa-border);
  color: var(--spa-muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.spa-filter-tab:hover { border-color: var(--spa-navy); color: var(--spa-navy); }
.spa-filter-tab.active { background: var(--spa-navy); border-color: var(--spa-navy); color: var(--spa-white); }

/* Profile sidebar --------------------------------------------------- */
.spa-profile-sidebar {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 1.5rem;
}

.spa-profile-sidebar-header {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--spa-border);
  position: relative;
}

.spa-avatar-md {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--spa-navy);
  color: var(--spa-white);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spa-profile-info {
  flex: 1;
  min-width: 0;
}

.spa-profile-info .fullname {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--spa-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-active-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--spa-green);
  color: var(--spa-white);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.15rem;
}

.spa-my-profile-btn {
  font-size: 0.68rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--spa-border);
  background: none;
  color: var(--spa-navy);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.35rem;
  white-space: nowrap;
}

.spa-my-profile-btn.active,
.spa-my-profile-btn:hover {
  background: var(--spa-mist);
  border-color: var(--spa-navy);
}

.spa-profile-sidebar.is-collapsed .spa-profile-info,
.spa-profile-sidebar.is-collapsed .spa-sidebar-footer {
  display: none;
}

.spa-profile-sidebar.is-collapsed .spa-sidebar-nav a span {
  display: none;
}

/* My Profile page --------------------------------------------------- */
.spa-profile-page-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow-sm);
  padding: 1.4rem;
}

.spa-avatar-upload-box {
  background: var(--spa-navy);
  border-radius: var(--spa-radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  min-height: 200px;
  justify-content: center;
}

.spa-avatar-upload-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--spa-white);
  font-family: var(--spa-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-edit-profile {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.15);
  color: var(--spa-white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

.btn-edit-profile:hover { background: rgba(255,255,255,0.25); color: var(--spa-white); }

.spa-upload-hint {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.spa-contact-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--spa-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spa-contact-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.spa-contact-field .val {
  font-size: 0.88rem;
  color: var(--spa-ink);
}

.spa-contact-field .edit-icon {
  color: var(--spa-muted);
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.spa-payment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius-sm);
  margin-bottom: 0.5rem;
}

.spa-payment-row .card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--spa-white);
  background: #1A1F71;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.spa-payment-row .card-info { flex: 1; }
.spa-payment-row .card-name { font-size: 0.82rem; font-weight: 600; }
.spa-payment-row .card-num { font-size: 0.72rem; color: var(--spa-muted); }

.spa-primary-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--spa-navy);
  color: var(--spa-white);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

/* Premium subscription card */
.spa-premium-card {
  background: linear-gradient(135deg, #C9A227 0%, #E8C84A 45%, #B8892A 100%);
  border-radius: var(--spa-radius);
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
  min-height: 100px;
}

.spa-premium-card .watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -0.75rem;
  font-family: var(--spa-font-display);
  font-size: 5.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  pointer-events: none;
}

.spa-premium-card .premium-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
}

.spa-premium-card .valid-until {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.spa-subs-price {
  font-size: 0.7rem;
  background: var(--spa-navy);
  color: var(--spa-white);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.btn-manage-subs {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  background: var(--spa-navy);
  color: var(--spa-white);
  border: none;
  border-radius: var(--spa-radius-sm);
}

.btn-manage-subs:hover { background: var(--spa-blue); color: var(--spa-white); }

/* Responsive for new pages */
@media (max-width: 991.98px) {
  .spa-profile-sidebar { min-height: auto; margin-bottom: 1.5rem; }
  .spa-summary-card { position: static; }
}


/* ====================================================================
   Receipt page
   ==================================================================== */
.spa-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F5EE;
  color: var(--spa-green);
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.spa-receipt-wrap {
  max-width: 90%;
  margin: 0 auto;
}
@media(max-width:768px) { 
  .spa-receipt-wrap { 
    max-width: 100%;
  }
}

.spa-receipt-card {
  background: var(--spa-surface);
  border-radius: var(--spa-radius);
  box-shadow: var(--spa-shadow);
  border: 1px solid var(--spa-border);
  overflow: hidden;
}

.spa-receipt-header {
  background: var(--spa-navy);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spa-receipt-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spa-receipt-header .brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--spa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--spa-font-display);
  color: var(--spa-gold);
  font-weight: 700;
  font-size: 1rem;
}

.spa-receipt-header .brand .label {
  font-family: var(--spa-font-display);
  color: var(--spa-white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.spa-receipt-header .brand .sublabel {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--spa-gold);
  text-transform: uppercase;
  display: block;
}

.spa-receipt-header .meta {
  text-align: right;
}

.spa-receipt-header .receipt-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
}

.spa-receipt-header .tx-id {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--spa-white);
  font-family: monospace;
  display: block;
}

.spa-paid-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: var(--spa-green);
  color: var(--spa-white);
  display: inline-block;
  margin-top: 0.3rem;
}

.spa-receipt-body {
  padding: 1.5rem;
}

.spa-receipt-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.spa-receipt-info-block .info-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spa-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.spa-receipt-info-block .info-val {
  font-size: 0.88rem;
  color: var(--spa-ink);
  font-weight: 500;
}

.spa-receipt-info-block .info-sub {
  font-size: 0.78rem;
  color: var(--spa-muted);
  margin-top: 0.1rem;
}

.spa-receipt-divider {
  border: none;
  border-top: 1px dashed var(--spa-border);
  margin: 1.1rem 0;
}

.spa-receipt-items-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spa-muted);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.spa-receipt-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--spa-border);
}

.spa-receipt-item-row:last-child { border-bottom: none; }
.spa-receipt-item-row .item-info { flex: 1; min-width: 0; }
.spa-receipt-item-row .item-name { font-size: 0.88rem; font-weight: 600; color: var(--spa-ink); }
.spa-receipt-item-row .item-phase { font-size: 0.72rem; color: var(--spa-muted); margin-top: 0.1rem; }
.spa-receipt-item-row .item-price { font-size: 0.88rem; font-weight: 700; color: var(--spa-navy); white-space: nowrap; }

.spa-receipt-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0 0;
  border-top: 2px solid var(--spa-navy);
  margin-top: 0.75rem;
}

.spa-receipt-total-row .total-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spa-navy);
}

.spa-receipt-total-row .total-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--spa-navy);
  font-family: var(--spa-font-display);
}

.spa-receipt-card-footer {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--spa-border);
  padding: 0.85rem 1.5rem;
  font-size: 0.7rem;
  color: var(--spa-muted);
  text-align: center;
}

.spa-receipt-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn-receipt-download {
  background: none;
  border: 1px solid var(--spa-navy);
  color: var(--spa-navy);
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--spa-radius-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-receipt-download:hover {
  background: var(--spa-navy);
  color: var(--spa-white);
}

.btn-receipt-access {
  background: var(--spa-green);
  border: 1px solid var(--spa-green);
  color: var(--spa-white);
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--spa-radius-sm);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-receipt-access:hover { background: #335a40; color: var(--spa-white); }

@media (max-width: 575.98px) {
  .spa-receipt-info-grid { grid-template-columns: 1fr; }
  .spa-receipt-actions { flex-direction: column; align-items: stretch; }
  .spa-receipt-actions a,
  .spa-receipt-actions button { justify-content: center; }
}


/* ==========================================================================
   Dark-theme overrides
   Appended after the original rules so same-specificity selectors win
   by source order. Fixes every place var(--spa-navy) was used as a
   *text or border* colour (it stays correct as a *background* colour on
   buttons, avatars, collapse toggles, etc.).
   ========================================================================== */

/* Wave SVG is injected inline — override its stroke via CSS */
.spa-wave-decoration g { stroke: rgba(255, 255, 255, 0.05); }

/* Headings — were navy, must be near-white on dark bg */
h1, h2, h3, .spa-font-display { color: #E4EEF8; }
a { color: #B8CDE0; }

/* Logo wordmark */
.spa-logo-text .top { color: #E4EEF8; }

/* Navbar scrolled state — already handled by bs-light replacement above,
   but add a backdrop blur for glass effect */
.spa-navbar.scrolled { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Icon buttons (bell, cart) — white bg → surface */
.spa-icon-btn {
  background: var(--spa-surface);
  border-color: var(--spa-border);
  color: #C8DAE8;
}

/* Sidebar collapse toggle — navy circle hard to see on dark, use gold */
.spa-sidebar-collapse-toggle {
  background: var(--spa-gold);
  color: var(--spa-navy);
}

/* Hero eyebrow */
.spa-hero .eyebrow { color: #E4EEF8; }

/* Sidebar nav: active/hover text was navy */
.spa-sidebar-nav a { color: #B0C8DC; }
.spa-sidebar-nav a:hover,
.spa-sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #E4EEF8;
}

/* Phase card icon chip */
.spa-phase-card .icon {
  background: rgba(255, 255, 255, 0.07);
  color: #C8DAE8;
}

/* Product price — gold pops better than near-black navy on dark */
.spa-product-name  { color: var(--spa-ink); }
.spa-product-price { color: var(--spa-gold); }

/* Package detail body text */
.spa-pkg-detail-body { color: var(--spa-muted); }

/* Cart widget */
.spa-cart-widget-header { color: #E4EEF8; }
.spa-cart-widget-line   { color: var(--spa-ink); }

/* Cart item icon chip */
.spa-cart-item-icon {
  background: rgba(255, 255, 255, 0.07);
  color: #C8DAE8;
}
.spa-cart-item-info .name  { color: var(--spa-ink); }
.spa-cart-item-info .phase { color: var(--spa-muted); }
.spa-cart-item-price { color: var(--spa-gold); }

/* Summary panel */
.spa-summary-header { color: #E4EEF8; }
.spa-summary-total  { color: var(--spa-ink); }

/* Transaction rows */
.spa-tx-body .info .name  { color: var(--spa-ink); }
.spa-tx-body .info .phase { color: var(--spa-muted); }
.spa-tx-body .price { color: var(--spa-gold); }

.spa-tx-id {
  background: rgba(255, 255, 255, 0.08);
  color: #C8DAE8;
}

/* Filter tabs — active uses gold instead of navy so it reads on dark */
.spa-filter-tab:hover {
  border-color: var(--spa-gold);
  color: var(--spa-gold);
}
.spa-filter-tab.active {
  background: var(--spa-gold);
  border-color: var(--spa-gold);
  color: var(--spa-navy);
}

/* Profile sidebar my-profile button */
.spa-my-profile-btn { color: #B0C8DC; border-color: var(--spa-border); }
.spa-my-profile-btn.active,
.spa-my-profile-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #E4EEF8;
}
.spa-profile-info .fullname { color: var(--spa-ink); }

/* Banner carousel arrows */
.spa-banner-arrow { color: #C8DAE8; }

/* Subscription / profile page */
.spa-primary-badge { background: var(--spa-gold); color: var(--spa-navy); }

.spa-subs-price {
  background: rgba(255, 255, 255, 0.12);
  color: #C8DAE8;
}

.btn-manage-subs {
  background: rgba(255, 255, 255, 0.1);
  color: #C8DAE8;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-manage-subs:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #E4EEF8;
}

/* Profile page card */
.spa-contact-field .val { color: var(--spa-ink); }
.spa-payment-row .card-name { color: var(--spa-ink); }

/* Receipt page */
.spa-success-icon {
  background: rgba(63, 107, 78, 0.2);
  color: #5DAA7A;
}

.spa-receipt-body { background: var(--spa-surface); }

.spa-receipt-info-block .info-val { color: var(--spa-ink); }

.spa-receipt-item-row .item-name  { color: var(--spa-ink); }
.spa-receipt-item-row .item-price { color: var(--spa-gold); }

.spa-receipt-total-row {
  border-top: 2px solid rgba(255, 255, 255, 0.15);
}
.spa-receipt-total-row .total-label { color: #C8DAE8; }
.spa-receipt-total-row .total-val   { color: var(--spa-gold); }

.spa-receipt-card-footer {
  background: rgba(255, 255, 255, 0.03);
  color: var(--spa-muted);
}

.btn-receipt-download {
  border-color: rgba(255, 255, 255, 0.25);
  color: #C8DAE8;
}
.btn-receipt-download:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #E4EEF8;
}

/* Focus rings — gold is far more visible on dark than navy */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--spa-gold);
  outline-offset: 2px;
}

/* Input focus — was navy border + navy shadow */
.form-control.spa-input:focus {
  border-color: var(--spa-gold);
  box-shadow: 0 0 0 3px rgba(216, 175, 76, 0.2);
  color: var(--spa-ink);
}

/* ── Bootstrap form control overrides ──────────────────────────────────
   No data-bs-theme="dark" on <html>, so Bootstrap defaults forms to
   white. Override manually here so nothing in HTML needs to change.
   ──────────────────────────────────────────────────────────────────── */
.form-control {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--spa-border);
  color: var(--spa-ink);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.09);
  color: var(--spa-ink);
}

.form-control::placeholder {
  color: var(--spa-muted);
  opacity: 1;
}

/* Checkboxes (cart Select All) */
.form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.form-check-input:checked {
  background-color: var(--spa-gold);
  border-color: var(--spa-gold);
}

/* Bootstrap .text-muted utility */
.text-muted { color: var(--spa-muted) !important; }

#pkgDescription ul {
  padding-left:0rem;
}
#pkgDescription ul li {
  list-style-type: none;
  position: relative;
  padding-left: 0rem;
}

.spa-product-description ul {
  padding-left:0rem;
}
.spa-product-description ul li {
  list-style-type: none;
  position: relative;
  padding-left: 0rem;
}

/* ====================================================================
   Bundle section (spa-portal-browse-package.html)
   The card uses its own dark navy background so it works on both
   light and dark themes. Only the card edge gets a tweak for dark.
   ==================================================================== */

/* -- Section wrapper ------------------------------------------------- */
.spa-bundle-section { margin-top: 1.5rem; }

.spa-bundle-section-heading {
  font-family: var(--spa-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 1rem;
}

/* -- Main featured card --------------------------------------------- */
.spa-bundle-card {
  border-radius: var(--spa-radius);
  overflow: hidden;
  border: 1px solid rgba(216, 175, 76, 0.45);
  background: linear-gradient(135deg, #1E3554 0%, #253E63 50%, #1E3554 100%);
  position: relative;
}

/* Decorative glow blob */
.spa-bundle-card::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,175,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* -- Left info pane -------------------------------------------------- */
.spa-bundle-info {
  padding: 2rem 1.75rem;
  position: relative;
  z-index: 1;
}

.spa-bundle-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--spa-gold);
  color: var(--spa-navy);
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.spa-bundle-title {
  font-family: var(--spa-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.spa-bundle-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.4rem;
  line-height: 1.65;
  max-width: 480px;
}

.spa-bundle-includes-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 0.6rem;
}

.spa-bundle-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spa-bundle-item {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.spa-bundle-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.spa-bundle-item.phase_1 .spa-bundle-item-dot { background: var(--spa-green); }
.spa-bundle-item.phase_2 .spa-bundle-item-dot { background: var(--spa-gold); }
.spa-bundle-item.phase_3 .spa-bundle-item-dot { background: var(--spa-purple); }

/* -- Right pricing pane --------------------------------------------- */
.spa-bundle-pricing {
  background: rgba(0, 0, 0, 0.25);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.spa-bundle-original-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.spa-bundle-original-price {
  text-decoration: line-through;
  color: rgba(255,255,255,0.35);
}

.spa-bundle-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.spa-bundle-price {
  font-family: var(--spa-font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--spa-gold);
  line-height: 1;
}

.spa-bundle-savings {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(63, 107, 78, 0.35);
  color: #7DD8A0;
  border: 1px solid rgba(63, 107, 78, 0.55);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}

.spa-bundle-cta {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--spa-gold);
  border: none;
  border-radius: var(--spa-radius-sm);
  color: var(--spa-navy);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  margin-top: 0.25rem;
}

.spa-bundle-cta:hover { background: #e8c060; color: var(--spa-navy); }

@media (max-width: 991.98px) {
  .spa-bundle-pricing {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .spa-bundle-price { font-size: 1.55rem; }
}


/* ── Community Access section ─────────────────────────────────────── */

/* Benefit list in the right panel */
.spa-community-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.spa-community-benefits li {
  font-size: .875rem;
  color: var(--spa-ink);
  padding-left: 1.4rem;
  position: relative;
}

.spa-community-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3F6B4E;
}

/* Stacked avatar dots for social proof */
.spa-community-avatars {
  display: flex;
}

.spa-community-avatars span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--spa-navy);
  margin-left: -6px;
}

.spa-community-avatars span:first-child { margin-left: 0; }
.spa-community-avatars span:nth-child(2) { background: #3F6B4E; }
.spa-community-avatars span:nth-child(3) { background: var(--spa-gold); }

/* Inside community cards */
.spa-inside-card {
  background: var(--spa-surface, #fff);
  border: 1px solid var(--spa-border, #E7E5DF);
  border-radius: var(--spa-radius-sm);
  padding: 1.4rem 1rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  transition: box-shadow .18s, transform .18s;
}

.spa-inside-card:hover {
  box-shadow: var(--spa-shadow-sm);
  transform: translateY(-2px);
}

.spa-inside-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.spa-inside-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--spa-ink);
  line-height: 1.3;
}

.spa-inside-desc {
  font-size: .75rem;
  color: var(--spa-muted);
  line-height: 1.4;
}

/* Mobile: left panel goes full width and stacks on top */
@media (max-width: 575.98px) {
  .spa-community-left { width: 100% !important; min-width: unset !important; }
}

/* ── Coming Soon section ─────────────────────────────────────────── */

/* Pulsing "Coming Soon" pill */
.spa-soon-pill {
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: rgba(216, 175, 76, .12);
  color: var(--spa-gold);
  border: 1px solid rgba(216, 175, 76, .28);
}

.spa-soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spa-gold);
  flex-shrink: 0;
  animation: spa-soon-blink 1.6s ease-in-out infinite;
}

@keyframes spa-soon-blink {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .3; transform: scale(.7); }
}

/* Teaser card base */
.spa-teaser-card {
  position: relative;
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
}

/* Featured (bundle) card */
.spa-teaser-card--featured {
  border-color: rgba(216, 175, 76, .35);
  background: linear-gradient(155deg, #1E3554 0%, var(--spa-surface) 65%);
}

/* "Best Value" corner ribbon */
.spa-teaser-best-value {
  position: absolute;
  top: 0;
  left: 0;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--spa-gold);
  color: var(--spa-navy);
  padding: .28rem .8rem;
  border-radius: 0 0 var(--spa-radius-sm) 0;
}

/* Lock icon badge */
.spa-teaser-lock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--spa-border);
  color: var(--spa-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
}

/* Content area inside teaser */
.spa-teaser-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.spa-teaser-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--spa-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.spa-teaser-cat {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--spa-muted);
}

.spa-teaser-card h5 {
  color: #E4EEF8;
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
}

.spa-teaser-desc {
  font-size: .8rem;
  color: var(--spa-muted);
  line-height: 1.6;
  margin: 0;
}

/* Phase pills inside teaser */
.spa-teaser-items       { display: flex; flex-wrap: wrap; gap: .4rem; }

.spa-teaser-phase-pill {
  font-size: .65rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 999px;
  letter-spacing: .03em;
}

.spa-teaser-phase-1 {
  background: rgba(63,107,78,.2);
  color: #7DD8A0;
  border: 1px solid rgba(63,107,78,.35);
}

.spa-teaser-phase-2 {
  background: rgba(216,175,76,.18);
  color: var(--spa-gold);
  border: 1px solid rgba(216,175,76,.32);
}

.spa-teaser-phase-3 {
  background: rgba(124,92,191,.2);
  color: #B09EE0;
  border: 1px solid rgba(124,92,191,.35);
}

.spa-teaser-phase-bonus {
  background: rgba(255,255,255,.07);
  color: var(--spa-muted);
  border: 1px solid var(--spa-border);
}

/* Checkmark feature rows */
.spa-teaser-feature {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: var(--spa-ink);
}

.spa-teaser-feature i {
  width: 16px;
  color: var(--spa-green);
  font-size: .7rem;
  flex-shrink: 0;
}

/* Notify Me button */
.spa-notify-btn {
  width: 100%;
  padding: .62rem 1rem;
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius-sm);
  background: rgba(255, 255, 255, .05);
  color: var(--spa-ink);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .18s, border-color .18s;
}

.spa-notify-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}

/* Gold tint for the featured card's button */
.spa-notify-btn--gold {
  border-color: rgba(216, 175, 76, .3);
  color: var(--spa-gold);
}

.spa-notify-btn--gold:hover {
  background: rgba(216, 175, 76, .1);
  border-color: rgba(216, 175, 76, .5);
}

/* ── Community inside cards (reused from community section) ────── */
.spa-inside-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius-sm);
  padding: 1.4rem 1rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  transition: box-shadow .18s, transform .18s;
}

.spa-inside-card:hover {
  box-shadow: var(--spa-shadow-sm);
  transform: translateY(-2px);
}

.spa-inside-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.spa-inside-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--spa-ink);
  line-height: 1.3;
}

.spa-inside-desc {
  font-size: .75rem;
  color: var(--spa-muted);
  line-height: 1.45;
}


/* ── Dashboard top section ──────────────────────────────────────── */

/* ── Hero card ───────────────────────────────────────────────────── */
.spa-dash-hero {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.75rem 1.75rem 1.5rem;
}

.spa-dash-welcome-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--spa-gold);
  color: var(--spa-gold);
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.spa-dash-headline {
  font-family: var(--spa-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.spa-dash-sub {
  font-size: 0.875rem;
  color: var(--spa-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

/* Feature pills row */
.spa-dash-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.spa-dash-pill {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
}

/* Tagline */
.spa-dash-tagline {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--spa-muted);
}

/* Carousel dots */
.spa-dash-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spa-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.spa-dash-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--spa-gold);
}

/* ── Audit results card ──────────────────────────────────────────── */
.spa-dash-audit {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.5rem 1.75rem;
}

.spa-dash-audit-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--spa-green);
  color: #FFFFFF;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.spa-dash-audit-heading {
  font-family: var(--spa-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.spa-dash-audit-sub {
  font-size: 0.82rem;
  color: var(--spa-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.spa-dash-audit-amount {
  color: var(--spa-gold);
  font-weight: 600;
}

/* Progress bars */
.spa-leak-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.spa-leak-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spa-leak-label {
  font-size: 0.78rem;
  color: var(--spa-muted);
  flex: 0 0 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-leak-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.spa-leak-fill {
  height: 100%;
  width: 0;                         /* starts at 0, JS animates to --pct */
  background: var(--spa-gold);
  border-radius: 3px;
  transition: width 0.9s cubic-bezier(.22,.61,.36,1);
}

.spa-leak-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  flex: 0 0 32px;
  text-align: right;
}

/* Audit CTA */
.spa-dash-audit-cta {
  display: inline-block;
  background: none;
  border: 1px solid var(--spa-border);
  color: var(--spa-ink);
  font-size: 0.8rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--spa-radius-sm);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.spa-dash-audit-cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--spa-ink);
}

/* Mobile: shrink label so bars don't collapse */
@media (max-width: 575.98px) {
  .spa-dash-headline { font-size: 1.25rem; }
  .spa-leak-label    { flex: 0 0 130px; font-size: 0.72rem; }
}

/* ====================================================================
   Essential360 page — e360-* namespace
   ==================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────── */
.e360-hero {
  background: linear-gradient(135deg, #0B1623 0%, #17243B 55%, #1A2E48 100%);
  border: 1px solid rgba(216, 175, 76, 0.22);
  border-radius: var(--spa-radius);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Subtle grid texture */
.e360-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 175, 76, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 175, 76, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.e360-hero-body   { position: relative; z-index: 1; flex: 1; }
.e360-hero-mark   {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(216, 175, 76, .35);
  background: rgba(216, 175, 76, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--spa-font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--spa-gold);
}

.e360-system-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--spa-gold);
  color: var(--spa-gold);
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.e360-headline {
  font-family: var(--spa-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 520px;
}

.e360-lead {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.e360-hero-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.e360-hero-pill {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ── Section header ───────────────────────────────────────────────── */
.e360-section-title {
  font-family: var(--spa-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 0.4rem;
}

.e360-section-sub {
  font-size: 0.875rem;
  color: var(--spa-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

/* ── Connect cards ────────────────────────────────────────────────── */
.e360-connect-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color .18s, box-shadow .18s;
}

.e360-connect-card:hover {
  border-color: rgba(216, 175, 76, .25);
  box-shadow: var(--spa-shadow-sm);
}

.e360-connect-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--spa-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.e360-connect-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #D0DEEC;
}

.e360-connect-desc {
  font-size: 0.78rem;
  color: var(--spa-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* ── Why cards ────────────────────────────────────────────────────── */
.e360-why-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color .18s;
}

.e360-why-card:hover { border-color: rgba(216, 175, 76, .25); }

.e360-why-icon { font-size: 1.3rem; color: var(--spa-gold); }

.e360-why-name {
  font-family: var(--spa-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #D0DEEC;
  margin: 0;
}

.e360-why-desc {
  font-size: 0.82rem;
  color: var(--spa-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── How it works — step flow ─────────────────────────────────────── */
.e360-steps-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 2rem 1.5rem;
}

.e360-steps {
  display: flex;
  align-items: flex-start;
}

.e360-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  min-width: 0;
  position: relative;
}

.e360-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--spa-gold);
  color: var(--spa-navy);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.e360-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(216, 175, 76, .1);
  border: 1px solid rgba(216, 175, 76, .22);
  color: var(--spa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.e360-step-icon--done {
  background: rgba(63, 107, 78, .15);
  border-color: rgba(63, 107, 78, .3);
  color: #5DBB85;
}

.e360-step-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #D0DEEC;
}

.e360-step-desc {
  font-size: 0.72rem;
  color: var(--spa-muted);
  line-height: 1.45;
  margin: 0;
}

/* Connector line between steps */
.e360-step-connector {
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: var(--spa-border);
  margin-top: 52px; /* align with icon center (22+50/2) */
  position: relative;
}

.e360-step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--spa-border);
  border-right: 1px solid var(--spa-border);
  transform: rotate(45deg);
}

/* ── Manual vs Essential360 ───────────────────────────────────────── */
.e360-vs-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.e360-vs-col { flex: 1; padding: 1.75rem; }

.e360-vs-before {
  background: rgba(255, 255, 255, .02);
  border-right: 1px solid var(--spa-border);
}

.e360-vs-after { background: rgba(63, 107, 78, .05); }

.e360-vs-divider {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.e360-vs-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(216, 175, 76, .12);
  border: 1px solid rgba(216, 175, 76, .28);
  color: var(--spa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.e360-vs-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spa-muted);
  margin-bottom: 1rem;
}

.e360-vs-after .e360-vs-label { color: #5DBB85; }

.e360-vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.e360-vs-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.e360-vs-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.e360-vs-bad  { color: var(--spa-muted); }
.e360-vs-bad  .e360-vs-ico { background: rgba(192, 57, 43, .15); color: #E74C3C; }

.e360-vs-good { color: #D0DEEC; }
.e360-vs-good .e360-vs-ico { background: rgba(63, 107, 78, .2); color: #5DBB85; }

/* ── Revenue dashboard mockup ─────────────────────────────────────── */
.e360-dashboard {
  background: #0B1623;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--spa-radius);
  overflow: hidden;
}

.e360-dash-topbar {
  background: #0F1E30;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.e360-dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.e360-dash-url {
  font-size: 0.68rem;
  color: var(--spa-muted);
  margin-left: 0.5rem;
}

.e360-dash-body { padding: 1.25rem; }

.e360-metric {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--spa-radius-sm);
  padding: 0.9rem;
  text-align: center;
}

.e360-metric--gold {
  background: rgba(216, 175, 76, .08);
  border-color: rgba(216, 175, 76, .2);
}

.e360-metric-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spa-muted);
  margin-bottom: 0.35rem;
}

.e360-metric-val {
  font-family: var(--spa-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.e360-metric--gold .e360-metric-val { color: var(--spa-gold); }

.e360-booking-table {
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--spa-radius-sm);
  overflow: hidden;
}

.e360-booking-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.7fr 1fr 0.85fr;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.e360-booking-row:last-child { border-bottom: none; }

.e360-booking-head {
  background: rgba(255, 255, 255, .04);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spa-muted);
}

.e360-booking-row:not(.e360-booking-head) { color: #C8DAE8; }

.e360-status {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}

.e360-status--confirmed {
  background: rgba(63, 107, 78, .2);
  color: #5DBB85;
}

.e360-status--pending {
  background: rgba(216, 175, 76, .15);
  color: var(--spa-gold);
}

/* ── CTA block ────────────────────────────────────────────────────── */
.e360-cta {
  background: linear-gradient(135deg, #0B1623 0%, #17243B 100%);
  border: 1px solid rgba(216, 175, 76, .22);
  border-radius: var(--spa-radius);
  padding: 2.75rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.e360-cta-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #5DBB85;
  background: rgba(63, 107, 78, .15);
  border: 1px solid rgba(63, 107, 78, .3);
  padding: 0.3rem 1rem;
  border-radius: 999px;
}

.e360-cta-heading {
  font-family: var(--spa-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.e360-cta-desc {
  font-size: 0.875rem;
  color: var(--spa-muted);
  max-width: 440px;
  line-height: 1.65;
  margin: 0;
}

.e360-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--spa-gold);
  color: var(--spa-navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--spa-radius-sm);
  text-decoration: none;
  transition: background .18s;
}

.e360-cta-btn:hover { background: #e8c060; color: var(--spa-navy); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .e360-hero        { flex-direction: column; padding: 2rem 1.5rem; }
  .e360-hero-mark   { width: 80px; height: 80px; font-size: 1.5rem; }
  .e360-headline    { font-size: 1.35rem; }
  .e360-steps       { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .e360-step        { min-width: 140px; max-width: 160px; }
  .e360-step-connector { display: none; }
  .e360-vs-card     { flex-direction: column; }
  .e360-vs-before   { border-right: none; border-bottom: 1px solid var(--spa-border); }
  .e360-vs-divider  { justify-content: center; padding: 0.75rem 0; }
}

@media (max-width: 575.98px) {
  .e360-hero        { padding: 1.5rem 1.25rem; }
  .e360-headline    { font-size: 1.2rem; }
  .e360-steps-card  { padding: 1.25rem 1rem; }
  .e360-step        { min-width: 120px; }
  .e360-booking-row {
    grid-template-columns: 1fr 1.2fr 1fr 0.9fr;
  }
}

/* ====================================================================
   Consultation Services page — cs-* namespace
   ==================================================================== */

/* ── Page header ─────────────────────────────────────────────────── */
.cs-page-title {
  font-family: var(--spa-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 0.6rem;
}

.cs-page-sub {
  font-size: 0.9rem;
  color: var(--spa-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

/* ── Section header ──────────────────────────────────────────────── */
.cs-section-hd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cs-section-title {
  font-family: var(--spa-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #E4EEF8;
  margin: 0;
}

.cs-section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

/* ── Monthly retainer card ───────────────────────────────────────── */
.cs-retainer-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}

.cs-retainer-card:hover {
  border-color: rgba(216, 175, 76, .28);
  box-shadow: var(--spa-shadow-sm);
}

/* Green accent line at top */
.cs-retainer-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--spa-green), rgba(63,107,78,.2));
}

.cs-retainer-head {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--spa-border);
}

.cs-retainer-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(63, 107, 78, .15);
  color: #5DBB85;
  border: 1px solid rgba(63, 107, 78, .28);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.cs-retainer-name {
  font-family: var(--spa-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 0.6rem;
}

.cs-retainer-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.cs-price-val {
  font-family: var(--spa-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--spa-gold);
}

.cs-price-per {
  font-size: 0.8rem;
  color: var(--spa-muted);
}

.cs-retainer-body {
  padding: 1.1rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cs-retainer-desc {
  font-size: 0.82rem;
  color: var(--spa-muted);
  line-height: 1.6;
  margin: 0;
}

.cs-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cs-feature-list li {
  font-size: 0.8rem;
  color: var(--spa-ink);
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.45;
}

.cs-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spa-green);
}

.cs-retainer-footer {
  padding: 1rem 1.4rem 1.4rem;
}

.cs-subscribe-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--spa-navy);
  border: 1px solid var(--spa-gold);
  color: var(--spa-white);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--spa-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background .18s;
}

.cs-subscribe-btn:hover { background: var(--spa-blue); }

/* ── One-off project card ────────────────────────────────────────── */
.cs-project-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}

.cs-project-card:hover {
  border-color: rgba(216, 175, 76, .25);
  box-shadow: var(--spa-shadow-sm);
}

.cs-project-head {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cs-project-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
}

.cs-project-name {
  font-family: var(--spa-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #D0DEEC;
  margin: 0;
  line-height: 1.25;
}

.cs-project-desc {
  font-size: 0.78rem;
  color: var(--spa-muted);
  line-height: 1.55;
  margin: 0;
}

.cs-project-features {
  list-style: none;
  padding: 0.85rem 1.25rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--spa-border);
  margin-top: 0.85rem;
}

.cs-project-features li {
  font-size: 0.75rem;
  color: var(--spa-ink);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

.cs-project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spa-gold);
}

.cs-project-footer {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.cs-project-price {
  font-family: var(--spa-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--spa-gold);
  white-space: nowrap;
}

.cs-add-btn {
  background: var(--spa-navy);
  border: 1px solid var(--spa-gold);
  color: var(--spa-white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: var(--spa-radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s;
}

.cs-add-btn:hover { background: var(--spa-blue); }

/* ── Bundle — item dot colours (all gold here, use spa-bundle-item) */
.spa-bundle-item.cs-item-1 .spa-bundle-item-dot { background: var(--spa-green); }
.spa-bundle-item.cs-item-2 .spa-bundle-item-dot { background: var(--spa-gold); }
.spa-bundle-item.cs-item-3 .spa-bundle-item-dot { background: #28A9E0; }
.spa-bundle-item.cs-item-4 .spa-bundle-item-dot { background: var(--spa-purple); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .cs-page-title { font-size: 1.4rem; }
  .cs-project-footer { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .cs-add-btn   { width: 100%; justify-content: center; display: flex; }
}

@media (max-width: 767.98px) {
  .cs-section-hd { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* ── Pricing card row ─────────────────────────────────────────────── */
.cs-pricing-row {
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  overflow: hidden;
}

/* Base card */
.cs-price-card {
  background: var(--spa-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border-right: 1px solid var(--spa-border);
  transition: background .2s;
}

.cs-price-card:last-child { border-right: none; }

/* Featured card overrides */
.cs-price-card--featured {
  background: linear-gradient(175deg, #1E3554 0%, #152840 100%);
  border-right-color: rgba(216, 175, 76, .2);
  border-left: 1px solid rgba(216, 175, 76, .2);
  z-index: 1;
  box-shadow: 0 0 40px rgba(0, 0, 0, .35);
}

/* "Most Popular" floating badge */
.cs-price-popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--spa-gold);
  color: var(--spa-navy);
  padding: 0.28rem 1rem;
  border-radius: 0 0 var(--spa-radius-sm) var(--spa-radius-sm);
  white-space: nowrap;
}

/* ── Card sections ─────────────────────────────────────────────────── */
.cs-price-head {
  padding: 2.25rem 1.75rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--spa-border);
}

.cs-price-card--featured .cs-price-head {
  border-bottom-color: rgba(216, 175, 76, .15);
}

.cs-price-tier {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.cs-price-card--featured .cs-price-tier {
  color: var(--spa-gold);
  background: rgba(216, 175, 76, .1);
  border-color: rgba(216, 175, 76, .28);
}

.cs-price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.cs-price-currency {
  font-family: var(--spa-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--spa-gold);
  align-self: flex-start;
  margin-top: 0.4rem;
}

.cs-price-num {
  font-family: var(--spa-font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.cs-price-mo {
  font-size: 0.82rem;
  color: var(--spa-muted);
  margin-left: 0.15rem;
}

.cs-price-tagline {
  font-size: 0.8rem;
  color: var(--spa-muted);
  line-height: 1.55;
  margin: 0;
}

/* Body — feature list */
.cs-price-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
}

.cs-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.cs-price-features li {
  font-size: 0.83rem;
  color: var(--spa-ink);
  padding: 0.65rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--spa-border);
  line-height: 1.4;
}

.cs-price-card--featured .cs-price-features li {
  border-bottom-color: rgba(255, 255, 255, .06);
}

.cs-price-features li:last-child { border-bottom: none; }

.cs-price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spa-green);
}

.cs-price-card--featured .cs-price-features li::before {
  background: var(--spa-gold);
}

/* Footer */
.cs-price-foot {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
}

.cs-price-btn {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1px solid var(--spa-border);
  background: rgba(255, 255, 255, .06);
  color: var(--spa-ink);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--spa-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background .18s, border-color .18s;
}

.cs-price-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
}

/* Gold button for featured card */
.cs-price-btn--featured {
  background: var(--spa-gold);
  border-color: var(--spa-gold);
  color: var(--spa-navy);
}

.cs-price-btn--featured:hover {
  background: #e8c060;
  border-color: #e8c060;
  color: var(--spa-navy);
}

.cs-price-trial {
  font-size: 0.72rem;
  color: var(--spa-muted);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .cs-pricing-row    { border-radius: var(--spa-radius); }
  .cs-price-card     { border-right: none; border-bottom: 1px solid var(--spa-border); }
  .cs-price-card:last-child { border-bottom: none; }
  .cs-price-card--featured { border-left: none; box-shadow: none; }
  .cs-price-popular  { position: static; transform: none; border-radius: var(--spa-radius-sm); margin: 0 auto 1rem; display: table; }
  .cs-price-num      { font-size: 2.75rem; }
}

/* ====================================================================
   Community Hub page — ch-* namespace
   ==================================================================== */

/* ── Hero card ───────────────────────────────────────────────────── */
.ch-hero-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ch-hub-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--spa-gold);
  color: var(--spa-gold);
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}

.ch-headline {
  font-family: var(--spa-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
}

.ch-sub {
  font-size: 0.875rem;
  color: var(--spa-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

/* Gold CTA button — shared by hero + event card */
.ch-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--spa-gold);
  color: var(--spa-navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--spa-radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .18s;
  align-self: flex-start;
}

.ch-cta-btn:hover { background: #e8c060; color: var(--spa-navy); }

/* Full-width variant for the side card */
.ch-cta-btn--full {
  width: 100%;
  align-self: stretch;
}

.ch-divider {
  border-color: var(--spa-border);
  margin: 0.25rem 0;
  opacity: 1;
}

/* Stats row */
.ch-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ch-stat-val {
  font-family: var(--spa-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #E4EEF8;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ch-stat-label {
  font-size: 0.75rem;
  color: var(--spa-muted);
}

/* ── Testimonial card ─────────────────────────────────────────────── */
.ch-testimonial-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.4rem 1.75rem;
}

/* Avatar stack */
.ch-avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.ch-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--spa-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-left: -8px;
  flex-shrink: 0;
}

.ch-av:first-child { margin-left: 0; }

.ch-av-more {
  background: rgba(255, 255, 255, .12);
  color: var(--spa-ink);
  font-size: 0.58rem;
  white-space: nowrap;
  padding: 0 6px;
  min-width: 42px;
  width: auto;
}

/* Stars */
.ch-stars { color: var(--spa-gold); font-size: 0.85rem; }

.ch-quote-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #D0DEEC;
}

.ch-quote-attr {
  font-size: 0.82rem;
  color: var(--spa-muted);
}

/* ── Side cards (shared base) ─────────────────────────────────────── */
.ch-side-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.ch-side-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spa-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

/* Pulsing live dot */
.ch-live-dot {
  color: #E74C3C;
  font-size: 0.6rem;
  animation: ch-pulse 1.8s ease-in-out infinite;
}

@keyframes ch-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.ch-event-title {
  font-family: var(--spa-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.ch-event-date {
  font-size: 0.8rem;
  color: var(--spa-gold);
  font-weight: 500;
}

/* ── Connect list ─────────────────────────────────────────────────── */
.ch-connect-list {
  display: flex;
  flex-direction: column;
}

.ch-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--spa-border);
  gap: 0.5rem;
}

.ch-connect-name {
  font-size: 0.85rem;
  color: var(--spa-ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ch-connect-ico { font-size: 1rem; flex-shrink: 0; }

.ch-open-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--spa-gold);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .15s;
}

.ch-open-link:hover { opacity: .75; color: var(--spa-gold); }

/* ── Wins Wall ────────────────────────────────────────────────────── */
.ch-wins-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ch-win-row {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--spa-muted);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--spa-border);
}

.ch-win-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ch-win-name {
  font-weight: 700;
  color: #D0DEEC;
  margin-right: 0.25rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .ch-headline  { font-size: 1.3rem; }
  .ch-stats     { gap: 1.25rem; }
}

@media (max-width: 575.98px) {
  .ch-hero-card { padding: 1.4rem; }
  .ch-headline  { font-size: 1.15rem; }
  .ch-stat-val  { font-size: 1.15rem; }
}


/* ====================================================================
   Coming Soon / Vote page — csn-* namespace
   ==================================================================== */

/* ── Page header ──────────────────────────────────────────────────── */
.csn-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(216, 175, 76, .1);
  color: var(--spa-gold);
  border: 1px solid rgba(216, 175, 76, .28);
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.csn-page-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spa-gold);
  animation: spa-soon-blink 1.6s ease-in-out infinite;
}

.csn-headline {
  font-family: var(--spa-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.csn-sub {
  font-size: 0.9rem;
  color: var(--spa-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

/* Filter tabs */
.csn-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--spa-border);
  border-radius: 999px;
  padding: 0.3rem;
  width: fit-content;
}

.csn-tab {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--spa-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.csn-tab:hover { color: var(--spa-ink); }

.csn-tab.active {
  background: var(--spa-gold);
  color: var(--spa-navy);
  font-weight: 700;
}

/* ── Section header ───────────────────────────────────────────────── */
.csn-section-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.csn-section-title {
  font-family: var(--spa-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 0.25rem;
}

.csn-section-sub {
  font-size: 0.82rem;
  color: var(--spa-muted);
  margin: 0;
}

.csn-section-tag {
  font-size: 0.72rem;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--spa-border);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Ebook card ───────────────────────────────────────────────────── */
.csn-ebook-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .18s, box-shadow .18s;
}

.csn-ebook-card:hover {
  border-color: rgba(216, 175, 76, .25);
  box-shadow: var(--spa-shadow-sm);
}

.csn-ebook-head {
  padding: 1.4rem 1.4rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.csn-ebook-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(216, 175, 76, .1);
  color: var(--spa-gold);
  border: 1px solid rgba(216, 175, 76, .25);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  align-self: flex-start;
}

.csn-ebook-title {
  font-family: var(--spa-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #D0DEEC;
  line-height: 1.3;
  margin: 0;
}

.csn-ebook-desc {
  font-size: 0.78rem;
  color: var(--spa-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Card footer — vote + notify */
.csn-ebook-foot {
  padding: 0.9rem 1.4rem 1.2rem;
  border-top: 1px solid var(--spa-border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Vote button */
.csn-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  color: var(--spa-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.csn-vote-btn:hover {
  background: rgba(216, 175, 76, .1);
  border-color: rgba(216, 175, 76, .3);
  color: var(--spa-gold);
}

/* Voted state */
.csn-vote-btn.voted {
  background: rgba(216, 175, 76, .12);
  border-color: rgba(216, 175, 76, .35);
  color: var(--spa-gold);
}

.csn-vote-btn i { font-size: 0.7rem; transition: transform .18s; }
.csn-vote-btn:hover i,
.csn-vote-btn.voted i { transform: translateY(-1px); }

/* Notify me button */
.csn-notify-btn {
  flex: 1;
  padding: 0.38rem 0.75rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  color: var(--spa-ink);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}

.csn-notify-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}

/* Notified state */
.csn-notify-btn.notified {
  background: rgba(63, 107, 78, .15);
  border-color: rgba(63, 107, 78, .3);
  color: #5DBB85;
}

/* Smaller variant for article rows */
.csn-notify-btn--sm {
  flex: none;
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
}

/* ── Article list ─────────────────────────────────────────────────── */
.csn-article-list {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  overflow: hidden;
}

.csn-article-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--spa-border);
  flex-wrap: wrap;
  transition: background .15s;
}

.csn-article-row:hover { background: rgba(255, 255, 255, .02); }

/* Week tag */
.csn-article-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--spa-radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  flex-shrink: 0;
  line-height: 1;
}

.csn-week-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spa-muted);
}

.csn-week-num {
  font-family: var(--spa-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #E4EEF8;
  line-height: 1;
}

/* Category badges */
.csn-article-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.csn-cat--revenue {
  background: rgba(216, 175, 76, .12);
  color: var(--spa-gold);
  border: 1px solid rgba(216, 175, 76, .25);
}

.csn-cat--ops {
  background: rgba(63, 107, 78, .15);
  color: #5DBB85;
  border: 1px solid rgba(63, 107, 78, .28);
}

.csn-cat--guest {
  background: rgba(124, 92, 191, .15);
  color: #B09EE0;
  border: 1px solid rgba(124, 92, 191, .28);
}

.csn-cat--leadership {
  background: rgba(40, 169, 224, .12);
  color: #6CC8EE;
  border: 1px solid rgba(40, 169, 224, .25);
}

.csn-article-title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #D0DEEC;
  line-height: 1.4;
  min-width: 0;
}

/* ── Footer CTA ───────────────────────────────────────────────────── */
.csn-footer-cta {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.75rem 2rem;
}

.csn-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.csn-footer-title {
  font-family: var(--spa-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 0.35rem;
}

.csn-footer-desc {
  font-size: 0.82rem;
  color: var(--spa-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 460px;
}

.csn-submit-btn {
  display: inline-flex;
  align-items: center;
  background: var(--spa-gold);
  color: var(--spa-navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--spa-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s;
}

.csn-submit-btn:hover { background: #e8c060; color: var(--spa-navy); }
.csn-header{ 
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  /* display: flex; */
  /* flex-direction: column; */
  height: 100%;
  transition: border-color .18s, box-shadow .18s;
  padding: 1.5rem;
}
/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .csn-headline     { font-size: 1.35rem; }
  .csn-article-row  { gap: 0.65rem; }
  .csn-article-title { order: 3; width: 100%; }
  .csn-notify-btn--sm { order: 4; }
  .csn-footer-inner { flex-direction: column; align-items: flex-start; }
  .csn-submit-btn   { width: 100%; justify-content: center; }
}

/* ====================================================================
   Community Hub — Articles section
   ==================================================================== */

/* ── Section header ───────────────────────────────────────────────── */
.ch-articles-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ch-articles-title {
  font-family: var(--spa-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #E4EEF8;
  margin-bottom: 0.25rem;
}

.ch-articles-sub {
  font-size: 0.82rem;
  color: var(--spa-muted);
  margin: 0;
}

.ch-articles-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--spa-gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}

.ch-articles-all:hover { opacity: .75; color: var(--spa-gold); }

/* ── Shared article meta row ──────────────────────────────────────── */
.ch-art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ch-art-week {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

/* Category badges — reuse same colour palette as Coming Soon */
.ch-art-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.ch-cat--revenue  {
  background: rgba(216,175,76,.12);
  color: var(--spa-gold);
  border: 1px solid rgba(216,175,76,.25);
}

.ch-cat--ops      {
  background: rgba(63,107,78,.15);
  color: #5DBB85;
  border: 1px solid rgba(63,107,78,.28);
}

.ch-cat--guest    {
  background: rgba(124,92,191,.15);
  color: #B09EE0;
  border: 1px solid rgba(124,92,191,.28);
}

.ch-cat--leadership {
  background: rgba(40,169,224,.12);
  color: #6CC8EE;
  border: 1px solid rgba(40,169,224,.25);
}

/* Footer row inside each card */
.ch-art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--spa-border);
}

.ch-art-readtime {
  font-size: 0.72rem;
  color: var(--spa-muted);
}

.ch-art-read-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--spa-gold);
}

/* ── Featured card ────────────────────────────────────────────────── */
.ch-featured-card {
  display: flex;
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}

.ch-featured-card:hover {
  border-color: rgba(216, 175, 76, .28);
  box-shadow: var(--spa-shadow-sm);
}

/* Image pane */
.ch-featured-img {
  width: 38%;
  min-height: 240px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1A2E48 0%, #0F1E30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--spa-border);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture on image placeholder */
.ch-featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216,175,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,175,76,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.ch-img-placeholder {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, .1);
  position: relative;
  z-index: 1;
}

/* Content pane */
.ch-featured-body {
  flex: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ch-featured-title {
  font-family: var(--spa-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.ch-featured-excerpt {
  font-size: 0.85rem;
  color: var(--spa-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

/* ── Smaller article cards ────────────────────────────────────────── */
.ch-art-card {
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .18s, box-shadow .18s;
}

.ch-art-card:hover {
  border-color: rgba(216, 175, 76, .25);
  box-shadow: var(--spa-shadow-sm);
}

.ch-art-title {
  font-family: var(--spa-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #D0DEEC;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.ch-art-excerpt {
  font-size: 0.78rem;
  color: var(--spa-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .ch-featured-card  { flex-direction: column; }
  .ch-featured-img   { width: 100%; min-height: 140px; border-right: none;
                        border-bottom: 1px solid var(--spa-border); }
  .ch-featured-body  { padding: 1.25rem; }
  .ch-featured-title { font-size: 1.05rem; }
  .ch-articles-hd    { flex-direction: column; align-items: flex-start; }
}

    /* ── Score Breakdown Grid ────────────────────────────── */
    .breakdown-section {
      padding: 48px 0 24px;
    }
    .breakdown-table {
      background:    var(--spa-surface);
      border:        1px solid var(--spa-border);
      border-radius: var(--spa-radius-lg);
      overflow:      hidden;
    }
    .breakdown-row {
      display:         flex;
      align-items:     center;
      justify-content: space-between;
      padding:         13px 20px;
      border-bottom:   1px solid rgba(255,255,255,0.05);
      gap:             12px;
      transition:      background var(--spa-transition);
    }
    .breakdown-row:last-child { border-bottom: none; }
    .breakdown-row:hover      { background: rgba(255,255,255,0.02); }
 
    .breakdown-num {
      font-family: var(--spa-font-display);
      font-size:   13px;
      font-weight: 700;
      color:       var(--spa-text-muted);
      min-width:   24px;
    }
    .breakdown-name {
      flex:      1;
      font-size: 13px;
      color:     var(--spa-text-secondary);
    }
    .breakdown-bar-wrap {
      flex:          1;
      max-width:     120px;
      height:        4px;
      background:    rgba(255,255,255,0.08);
      border-radius: var(--spa-radius-pill);
      overflow:      hidden;
    }
    .breakdown-bar {
      height:        100%;
      border-radius: var(--spa-radius-pill);
      transition:    width 0.8s ease;
    }
    .breakdown-bar.critical { background: #eb5757; }
    .breakdown-bar.warning  { background: var(--spa-gold); }
    .breakdown-bar.good     { background: #4ac38a; }
 
    .breakdown-score {
      font-family: var(--spa-font-display);
      font-size:   15px;
      font-weight: 700;
      min-width:   52px;
      text-align:  right;
    }
    .breakdown-score.critical { color: #eb5757; }
    .breakdown-score.warning  { color: var(--spa-gold); }
    .breakdown-score.good     { color: #4ac38a; }



    /* ====================================================================
   Payment result pages (success + failed) — pmt-* namespace
   ==================================================================== */

/* ── Full page layout ─────────────────────────────────────────────── */
.pmt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Minimal navbar — logo only, no nav items */
.pmt-navbar {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--spa-border);
  display: flex;
  align-items: center;
}

/* Centered content container */
.pmt-container {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Status icon ──────────────────────────────────────────────────── */
.pmt-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.pmt-icon-wrap--success {
  background: rgba(63, 107, 78, .18);
  color: #5DBB85;
  border: 1px solid rgba(63, 107, 78, .35);
}

.pmt-icon-wrap--failed {
  background: rgba(192, 57, 43, .15);
  color: #E74C3C;
  border: 1px solid rgba(192, 57, 43, .3);
}

/* ── Headline ─────────────────────────────────────────────────────── */
.pmt-headline {
  font-family: var(--spa-font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.pmt-sub {
  font-size: 0.9rem;
  color: var(--spa-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

/* Failure reason chip */
.pmt-reason-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(192, 57, 43, .1);
  border: 1px solid rgba(192, 57, 43, .28);
  color: #E07070;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

/* ── Payment detail card ──────────────────────────────────────────── */
.pmt-detail-card {
  width: 100%;
  background: var(--spa-surface);
  border: 1px solid var(--spa-border);
  border-radius: var(--spa-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  text-align: left;
}

.pmt-detail-card--failed {
  border-color: rgba(192, 57, 43, .2);
}

/* Card header */
.pmt-detail-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--spa-border);
  background: rgba(255, 255, 255, .03);
}

.pmt-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pmt-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--spa-muted);
}

.pmt-meta-item i { font-size: 0.75rem; }

.pmt-meta-id {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--spa-border);
  color: var(--spa-ink);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}

.pmt-status-chip {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.pmt-status-chip--failed {
  background: rgba(192, 57, 43, .15);
  color: #E07070;
  border: 1px solid rgba(192, 57, 43, .28);
}

/* ── Table ────────────────────────────────────────────────────────── */
.pmt-table { width: 100%; }

/* Column layout — ID(narrow) | Detail(flex) | Amount(narrow) */
.pmt-table-head,
.pmt-table-row,
.pmt-table-total {
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  gap: 0.75rem;
  align-items: start;
}

.pmt-table-head {
  padding: 0.65rem 1.4rem;
  border-bottom: 1px solid var(--spa-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .02);
}

.pmt-table-row {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--spa-border);
}

.pmt-table-row:last-of-type { border-bottom: none; }

.pmt-table-row--muted { opacity: 0.65; }

.pmt-line-id {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--spa-muted);
  padding-top: 0.15rem;
}

.pmt-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #D0DEEC;
  margin-bottom: 0.3rem;
}

.pmt-item-desc {
  font-size: 0.8rem;
  color: var(--spa-gold);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.pmt-item-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pmt-item-features li {
  font-size: 0.75rem;
  color: var(--spa-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}

.pmt-item-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spa-gold);
  opacity: 0.6;
}

.pmt-item-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #D0DEEC;
  text-align: right;
  padding-top: 0.15rem;
}

.pmt-item-amount--muted { color: var(--spa-muted); }

/* Total row */
.pmt-table-total {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--spa-border);
  background: rgba(255, 255, 255, .03);
  align-items: center;
}

.pmt-total-label {
  grid-column: 1 / 3;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--spa-ink);
  text-align: right;
}

.pmt-total-val {
  font-family: var(--spa-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--spa-gold);
  text-align: right;
}

.pmt-total-val--muted { color: var(--spa-muted); }

/* ── Action buttons ───────────────────────────────────────────────── */
.pmt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.pmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--spa-radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s, color .18s;
}

/* Primary — gold, used for main CTA on both pages */
.pmt-btn--primary {
  background: var(--spa-gold);
  color: var(--spa-navy);
  border-color: var(--spa-gold);
}

.pmt-btn--primary:hover {
  background: #e8c060;
  color: var(--spa-navy);
}

/* Secondary — outlined */
.pmt-btn--secondary {
  background: rgba(255, 255, 255, .05);
  color: var(--spa-ink);
  border-color: var(--spa-border);
}

.pmt-btn--secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: var(--spa-ink);
}

/* Ghost — text-link style */
.pmt-btn--ghost {
  background: none;
  color: var(--spa-muted);
  border-color: transparent;
}

.pmt-btn--ghost:hover {
  color: var(--spa-ink);
  background: rgba(255, 255, 255, .04);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .pmt-container    { padding: 2rem 1rem 3rem; }
  .pmt-headline     { font-size: 1.5rem; }
  .pmt-navbar       { padding: 1rem 1.25rem; }
  .pmt-table-head,
  .pmt-table-row,
  .pmt-table-total  { grid-template-columns: 56px 1fr 64px; gap: 0.5rem; }
  .pmt-table-head,
  .pmt-table-row,
  .pmt-table-total  { padding: 0.85rem 1rem; }
  .pmt-actions      { flex-direction: column; }
  .pmt-btn          { width: 100%; }
}


/* ── OS content groups ────────────────────────────────────────────── */
.spa-os-group { margin-bottom: 1.5rem; }
.spa-os-group:last-child { margin-bottom: 0; }

.spa-os-group-hd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid var(--spa-border);
}

.spa-os-group-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--spa-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.spa-os-group-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #D0DEEC;
}

.spa-os-group-count {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--spa-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--spa-border);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}

/* First row in a group has no top border (group header acts as divider) */
.spa-os-group-body .spa-os-row:first-child { border-top: none; }