/* ═══════════════════════════════════════════════════════════════
   H2O Therapy Design System
   Palette: Near-black base · Electric orange accent · Slate tones
   Type: Bebas Neue (display) + Inter (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #ffffff;
  --bg-card:     #f7fbfc;
  --bg-raised:   #1e2328;
  --border:      #2a2f36;
  --border-soft: #222830;

  --accent:      #116f7f;   /* electric orange — the therapy's energy */
  --accent-dim:  #c04620;
  --accent-glow: rgba(240, 90, 40, 0.15);

  --admin-accent: #7c5cfc;  /* purple for admin panels */
  --admin-dim:    #5e3fd4;

  --text:        #f0f2f4;
  --text-muted:  #7a8390;
  --text-faint:  #3e454f;

  --success:     #22c55e;
  --error:       #ef4444;
  --warning:     #f59e0b;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;

  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;

  --sidebar-w:   240px;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Utility ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.8em; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { opacity: 0.85; }
.btn--full { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Form fields ──────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  transition: border-color 0.15s;
  outline: none;
}
.field-input:focus { border-color: var(--accent); }
.field--inline { display: flex; align-items: center; gap: 12px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }

/* ── Alerts ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 12px;
}
.alert--error   { background: rgba(239,68,68,0.12); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }
.alert--success { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════════════ */
.auth-page { display: flex; min-height: 100vh; }

.auth-split { display: flex; width: 100%; min-height: 100vh; }

/* Brand panel */
.auth-brand {
  position: relative;
  flex: 0 0 42%;
  background: linear-gradient(145deg, #111418 0%, #0a0c0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
}
.brand-inner { position: relative; z-index: 2; }
.brand-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 4px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 4.5rem;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
}
.brand-name span { color: var(--accent); }
.brand-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.brand-features { display: flex; flex-direction: column; gap: 14px; }
.brand-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.brand-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Decorative rings */
.brand-decoration { position: absolute; inset: 0; pointer-events: none; }
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(240,90,40,0.08);
}
.deco-ring--lg { width: 600px; height: 600px; right: -200px; bottom: -200px; }
.deco-ring--md { width: 380px; height: 380px; right: -100px; bottom: -50px; border-color: rgba(240,90,40,0.12); }
.deco-ring--sm { width: 200px; height: 200px; right: 20px; bottom: 80px; border-color: rgba(240,90,40,0.2); }

/* Form panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.auth-form-inner { width: 100%; max-width: 380px; }
.form-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.form-sub { color: var(--text-muted); margin-bottom: 32px; }

/* Phone row */
.phone-row { display: flex; align-items: center; gap: 0; }
.phone-prefix {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 12px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}
.phone-row .field-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* OTP boxes */
.otp-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.otp-inputs { display: flex; gap: 10px; margin-bottom: 24px; }
.otp-box {
  width: 50px; height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--bg-raised);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.otp-box:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT (dashboard, admin)
   ══════════════════════════════════════════════════════════════ */
.app-page {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  background: var(--accent);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.logo-mark--admin { background: var(--admin-accent); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text);
}

.sidebar-nav { padding: 0 12px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  margin-bottom: 4px;
}
.nav-item:hover { background: var(--bg-raised); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.app-page--admin .nav-item.active { background: rgba(124,92,252,0.12); color: var(--admin-accent); }
.nav-icon { font-size: 1rem; opacity: 0.7; }

.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.avatar--admin { background: var(--admin-accent); }
.user-name { font-size: 0.88rem; font-weight: 600; }
.user-phone { font-size: 0.78rem; color: var(--text-muted); }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 40px 36px;
  max-width: calc(100vw - var(--sidebar-w));
  overflow-x: hidden;
}

/* Tab panes */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 2px;
  line-height: 1;
}
.page-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.page-actions { display: flex; gap: 10px; align-items: center; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-card--highlight { border-color: var(--accent); background: var(--accent-glow); }
.app-page--admin .stat-card--highlight { border-color: var(--admin-accent); background: rgba(124,92,252,0.1); }
.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text);
}
.stat-card--highlight .stat-value { color: var(--accent); }
.app-page--admin .stat-card--highlight .stat-value { color: var(--admin-accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Section */
.section { margin-bottom: 36px; }
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Subscriptions list */
.subs-list { display: flex; flex-direction: column; gap: 12px; }
.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sub-name { font-weight: 700; font-size: 1rem; flex: 1; }
.sub-meta { color: var(--text-muted); font-size: 0.85rem; }
.sub-bar-wrap { flex: 1 1 200px; }
.sub-bar-track {
  height: 6px;
  background: var(--bg-raised);
  border-radius: 99px;
  overflow: hidden;
}
.sub-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.sub-sessions { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Packages grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.pkg-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.pkg-card--popular { border-color: var(--accent); }
.pkg-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 99px;
}
.pkg-sessions-big {
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 2px;
  color: var(--accent);
  line-height: 1;
}
.pkg-sessions-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.pkg-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pkg-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.pkg-price {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--text);
}
.pkg-price span { font-size: 1rem; color: var(--text-muted); }

/* History list */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.history-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.history-date { color: var(--text-muted); font-size: 0.85rem; width: 120px; flex-shrink: 0; }
.history-pkg { font-size: 0.9rem; flex: 1; }
.history-note { color: var(--text-muted); font-size: 0.82rem; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 0.95rem; }

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-raised);
  border: none;
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-title { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 2px; margin-bottom: 12px; }
.modal-body { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.modal-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); }
.modal-sessions { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
.modal-secure-note { text-align: center; color: var(--text-faint); font-size: 0.78rem; margin-top: 12px; }

/* ── Data tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-raised); }
.loading-cell { text-align: center; color: var(--text-muted); padding: 32px; }

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--active  { background: rgba(34,197,94,0.15); color: var(--success); }
.badge--inactive { background: rgba(239,68,68,0.12); color: var(--error); }
.badge--paid    { background: rgba(34,197,94,0.15); color: var(--success); }
.badge--pending { background: rgba(245,158,11,0.12); color: var(--warning); }

/* Table actions */
.tbl-actions { display: flex; gap: 8px; }

/* ── Charts ───────────────────────────────────────────────────── */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.chart-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 20px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col {
  width: 100%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
  opacity: 0.85;
}
.app-page--admin .bar-col { background: var(--admin-accent); }
.bar-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ── Form card ────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 540px;
}

/* ── Search ───────────────────────────────────────────────────── */
.search-input { max-width: 280px; }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 300;
  animation: slideUp 0.2s ease;
  max-width: 320px;
}
.toast--success { border-color: var(--success); color: var(--success); }
.toast--error   { border-color: var(--error);   color: var(--error); }
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Skeleton loader ──────────────────────────────────────────── */
.skeleton-loader {
  height: 100px;
  background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-card) 50%, var(--bg-raised) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Success page ─────────────────────────────────────────────── */
.success-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 100%;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: var(--success);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 2px solid var(--success);
}
.success-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px; margin-bottom: 12px; }
.success-body { color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-panel { padding: 32px 20px; }

  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0; top: auto;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border-soft);
    z-index: 100;
  }
  .sidebar-logo, .sidebar-footer { display: none; }
  .sidebar-nav { display: flex; padding: 0; flex: 1; gap: 0; }
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 0;
    font-size: 0.72rem;
    margin: 0;
    gap: 4px;
  }
  .nav-icon { font-size: 1.2rem; }
  .nav-item.active { border-top: 2px solid var(--accent); }

  .main-content { margin-left: 0; padding: 20px 16px 80px; max-width: 100vw; }
  .page-title { font-size: 1.8rem; }
  .charts-row { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .otp-box { width: 40px; height: 48px; font-size: 1.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   MEMBERSHIP STATUS CARD
   ══════════════════════════════════════════════════════════════ */
.membership-status-card {
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border-soft);
}
.membership-status-card--active {
  background: var(--accent-glow);
  border-color: var(--accent);
}
.membership-status-card--inactive {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.25);
}
.mem-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.mem-status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.mem-status-label--inactive { color: var(--error); }
.mem-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mem-expires { color: var(--text-muted); font-size: 0.88rem; }
.mem-session-pill {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 99px;
  white-space: nowrap;
}
.mem-bar-wrap { }
.mem-bar-track {
  height: 6px;
  background: var(--bg-raised);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.mem-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.mem-bar-label { font-size: 0.82rem; color: var(--text-muted); }

/* Current membership banner (membership tab) */
.current-membership-banner {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════════
   EVENT CARDS
   ══════════════════════════════════════════════════════════════ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}
.event-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.event-card--locked { opacity: 0.75; }
.event-card--registered { border-color: var(--success); }
.event-card-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.event-card-title { font-size: 1.05rem; font-weight: 700; }
.event-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  align-items: center;
}
.event-card-footer { margin-top: 8px; }
.event-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.event-tag--members { background: rgba(17,111,127,0.15); color: var(--accent); }

/* Events preview (overview tab) */
.events-preview-list { display: flex; flex-direction: column; gap: 8px; }
.event-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.event-preview-card:hover { border-color: var(--accent); }
.event-preview-card--locked { opacity: 0.65; }
.event-preview-date { font-size: 0.78rem; color: var(--accent); font-weight: 700; width: 130px; flex-shrink: 0; }
.event-preview-title { font-size: 0.92rem; font-weight: 600; flex: 1; }
.event-preview-loc { font-size: 0.82rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   PLAN CARDS (membership tab)
   ══════════════════════════════════════════════════════════════ */
.plan-benefits {
  list-style: none;
  margin-top: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-benefits li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.plan-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Modal benefits list */
.modal-benefits {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.modal-benefits li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0 4px 18px;
  position: relative;
}
.modal-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* pkg-sessions-label reuse */
.pkg-sessions-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 6px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
