/* ============================================================
   MINDSHIFT AFRICA — GLOBAL DESIGN SYSTEM
   Gold x Black. Luxury / Executive / Premium.
   ============================================================ */

:root{
  --gold:#D4AF37;
  --gold-light:#E8C766;
  --gold-bright:#F0D878;
  --gold-dim:rgba(212,175,55,.14);
  --black:#000000;
  --surface-0:#0A0A0A;
  --surface-1:#111111;
  --surface-2:#1A1A1A;
  --white:#FFFFFF;
  --muted:rgba(255,255,255,.45);
  --muted-2:rgba(255,255,255,.65);
  --border:rgba(255,255,255,.08);
  --border-soft:rgba(255,255,255,.08);
  --border-gold:rgba(212,175,55,.35);
  --success:#27AE60;
  --success-bg:rgba(39,174,96,.15);
  --danger:#C0392B;
  --danger-bg:rgba(192,57,43,.15);
  --warn-bg:rgba(212,175,55,.15);
  --radius:14px;
  --radius-lg:20px;
  --radius-sm:8px;
  --font-display: system-ui, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-gold:0 8px 30px rgba(212,175,55,.12);
  --shadow-soft:0 10px 30px rgba(0,0,0,.4);
  --topbar-h:60px;
  --sidebar-w:250px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  background:var(--black); color:var(--white); font-family:var(--font-body);
  font-size:16px; line-height:1.6; min-height:100vh; overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{
  font-family:inherit; font-size:16px;
  background:var(--surface-1); border:1px solid var(--border); color:var(--white);
  border-radius:var(--radius-sm); padding:12px 14px; width:100%; outline:none;
  transition:border-color .2s;
}
input:focus,select:focus,textarea:focus{ border-color:var(--gold); }
input::placeholder,textarea::placeholder{ color:var(--muted); }
textarea{ resize:vertical; min-height:90px; }
.input,.select{ /* aliases some pages use */ }

h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; line-height:1.15; }
.display-1{ font-family:var(--font-display); font-weight:700; font-size:clamp(2rem,7vw,3.4rem); line-height:1.1; }
.display-2{ font-family:var(--font-display); font-weight:700; font-size:clamp(1.6rem,5vw,2.4rem); line-height:1.15; }
.display-3{ font-family:var(--font-display); font-weight:700; font-size:clamp(1.2rem,4vw,1.6rem); line-height:1.2; }
.title{ font-family:var(--font-display); font-weight:700; font-size:1.3rem; }
.eyebrow{ color:var(--gold); font-weight:600; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; }
.text-gold{ color:var(--gold); }
.text-muted{ color:var(--muted); }
.text-success{ color:var(--success); }
.text-center{ text-align:center; }
.hint{ font-size:.8rem; color:var(--muted); margin-top:4px; }
.divider{ height:1px; background:var(--border); margin:20px 0; border:none; }

.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 20px; }
.section{ padding:64px 0; }
.section-block{ padding:40px 0; }
.section-head{ margin-bottom:28px; }
.main-content{ padding:24px 0 60px; }

/* ---------- utility ---------- */
.flex{ display:flex; }
.items-center{ align-items:center; }
.items-start{ align-items:flex-start; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; }
.mb-8{margin-bottom:8px;} .mb-12{margin-bottom:12px;} .mb-16{margin-bottom:16px;}
.mb-20{margin-bottom:20px;} .mb-24{margin-bottom:24px;}
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;}
.w-full{ width:100%; }
.hidden{ display:none !important; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 22px; border-radius:999px; border:1px solid transparent;
  font-weight:600; font-size:.95rem; transition:transform .15s ease, opacity .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
/* Faint gold light expanding around a button on touch/select, to confirm the tap */
@keyframes btnTapGlow{
  0%{ box-shadow:0 0 0 0 rgba(212,175,55,.55); }
  100%{ box-shadow:0 0 0 14px rgba(212,175,55,0); }
}
.btn:active,.tab-btn:active,.filter-chip:active,.bottom-nav-item:active{ animation:btnTapGlow .5s ease-out; }
.tab-btn.active,.filter-chip.active,.bottom-nav-item.active{ box-shadow:0 0 14px 1px rgba(212,175,55,.25); }
.btn-gold{ background:var(--gold); color:#000; }
.btn-gold:hover{ background:var(--gold-light); }
.btn-outline{ background:transparent; border-color:var(--border-gold); color:var(--gold); }
.btn-outline:hover{ background:var(--gold-dim); }
.btn-ghost{ background:var(--surface-2); color:var(--white); border-color:var(--border); }
.btn-ghost:hover{ background:var(--surface-1); }
.btn-danger{ background:var(--danger); color:#fff; }
.btn-success{ background:var(--success); color:#fff; }
.btn-block{ width:100%; }
.btn-sm{ min-height:36px; padding:0 14px; font-size:.85rem; }
.btn[disabled]{ opacity:.5; pointer-events:none; }

/* ---------- Cards ---------- */
.card{ background:var(--surface-1); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.card-gold-edge{ border-top:2px solid var(--gold); }
.banner{ background:var(--surface-1); border:1px solid var(--border-gold); border-radius:var(--radius); padding:18px 20px; }
.welcome-banner{ background:linear-gradient(135deg,var(--surface-1),var(--surface-2)); border:1px solid var(--border-gold); border-radius:var(--radius); padding:22px 20px; }
.loading-block{ padding:10px 0; color:var(--muted); }

/* "Alive" faint gold glow — every card-shaped surface breathes gently so the
   app never feels static, per the design brief. Very subtle by design. */
@keyframes cardAliveGlow{
  0%,100%{ box-shadow:0 0 0 0 rgba(212,175,55,0), 0 4px 18px rgba(0,0,0,.25); }
  50%{ box-shadow:0 0 22px 1px rgba(212,175,55,.16), 0 4px 18px rgba(0,0,0,.25); }
}
.card,.membership-card,.quick-card,.stat-card,.rank-card,.session-card,.lesson-card,
.app-card,.resource-card,.member-row,.leaderboard-row{
  animation:cardAliveGlow 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .card,.membership-card,.quick-card,.stat-card,.rank-card,.session-card,.lesson-card,
  .app-card,.resource-card,.member-row,.leaderboard-row{ animation:none; }
}
/* While html2canvas is capturing the card for download, freeze the glow so
   the exported PNG shows a clean, consistent gold edge instead of a random
   mid-animation frame. */
.membership-card.mc-capturing{ animation:none !important; box-shadow:0 4px 18px rgba(0,0,0,.25) !important; }

/* ---------- Badges ---------- */
.badge{ display:inline-flex; align-items:center; gap:6px; font-size:.75rem; font-weight:700; letter-spacing:.03em; padding:4px 12px; border-radius:999px; text-transform:uppercase; }
.badge-gold{ background:var(--gold-dim); color:var(--gold); border:1px solid var(--border-gold); }
.badge-success{ background:var(--success-bg); color:var(--success); border:1px solid rgba(39,174,96,.4); }
.badge-muted{ background:var(--surface-2); color:var(--muted-2); border:1px solid var(--border); }
.badge-orange{ background:rgba(230,126,34,.15); color:#E67E22; border:1px solid rgba(230,126,34,.4); }
.badge-blue{ background:rgba(52,152,219,.15); color:#3498DB; border:1px solid rgba(52,152,219,.4); }
.badge-danger{ background:var(--danger-bg); color:#E8776A; border:1px solid rgba(192,57,43,.4); }
.badge-count{
  background:var(--danger); color:#fff; font-size:.68rem; font-weight:700;
  min-width:18px; height:18px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; padding:0 4px; margin-left:auto;
}
.dot{ width:9px; height:9px; border-radius:50%; background:var(--muted); display:inline-block; }
.dot-pulse{ background:var(--success); animation:pulse 1.4s infinite; }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(39,174,96,.5);} 70%{box-shadow:0 0 0 8px rgba(39,174,96,0);} 100%{box-shadow:0 0 0 0 rgba(39,174,96,0);} }
.pending{ color:var(--gold); }
.suspended{ color:var(--danger); }

/* ---------- Public Navbar ---------- */
.navbar{ position:fixed; top:0; left:0; right:0; z-index:200; background:rgba(0,0,0,.85); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.navbar-inner{ height:var(--topbar-h); display:flex; align-items:center; justify-content:space-between; overflow:hidden; gap:10px; }
.navbar-brand,.brand{ font-family:var(--font-display); font-size:1.25rem; font-weight:700; color:var(--gold); display:flex; align-items:center; gap:8px; white-space:nowrap; overflow:hidden; flex-shrink:1; min-width:0; }
.navbar-brand .name,.brand .name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.navbar-brand span,.brand span,.mark,.brand-mark{ color:var(--white); }
.mark,.brand-mark{ background:var(--gold); color:#000 !important; width:28px; height:28px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:.95rem; }
.mark-img{ width:30px; height:auto; flex-shrink:0; display:inline-block; vertical-align:middle; }
.navbar-links{ display:none; align-items:center; gap:28px; }
.navbar-links a{ font-size:.92rem; color:var(--muted-2); transition:color .2s; }
.navbar-links a:hover{ color:var(--gold); }
.navbar-actions{ display:flex; align-items:center; gap:10px; }
.navbar-toggle,.hamburger-btn{ background:none; border:none; color:var(--white); font-size:1.4rem; padding:8px; line-height:1; }
.mobile-drawer{ position:fixed; top:var(--topbar-h); left:0; right:0; z-index:190; background:var(--surface-0); border-bottom:1px solid var(--border); max-height:0; overflow:hidden; transition:max-height .3s ease; }
.mobile-drawer.open{ max-height:420px; }
.mobile-drawer-inner{ padding:16px 20px; display:flex; flex-direction:column; gap:14px; }
.mobile-drawer-inner a{ font-size:1rem; padding:8px 0; border-bottom:1px solid var(--border); color:var(--white); }

@media(min-width:860px){
  .navbar-links{ display:flex; }
  .navbar-toggle{ display:none; }
}
@media(max-width:400px){
  .navbar-brand .name,.brand .name{ font-size:1rem; }
  .navbar-actions .btn-outline{ display:none; } /* Login stays reachable via the mobile drawer */
  .navbar-actions{ gap:6px; }
}

/* ---------- Hero ---------- */
.hero{ padding:calc(var(--topbar-h) + 60px) 0 60px; text-align:center; background:radial-gradient(circle at 50% 0%, rgba(212,175,55,.12), transparent 60%); }
.hero-badge{ display:inline-block; margin-bottom:14px; }
.hero-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:32px; }
@media(max-width:600px){
  .hero{ padding:calc(var(--topbar-h) + 44px) 0 44px; }
  .hero-actions{ margin-top:28px; margin-bottom:12px; }
}

/* ---------- Grids ---------- */
.grid{ display:grid; gap:18px; }
.grid-2{ grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.grid-3{ grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.grid-4{ grid-template-columns:repeat(2,1fr); }
.grid-auto{ grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
@media(min-width:700px){ .grid-4{ grid-template-columns:repeat(4,1fr); } }
@media(max-width:480px){ .grid-3{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding:44px 0 24px; color:var(--muted); font-size:.85rem; }
.footer-grid{ display:grid; gap:28px; grid-template-columns:1fr; margin-bottom:24px; }
@media(min-width:700px){ .footer-grid{ grid-template-columns:2fr 1fr 1fr; } }
.footer-brand{ font-family:var(--font-display); color:var(--gold); font-size:1.2rem; margin-bottom:8px; }
.footer-col a{ display:block; padding:4px 0; color:var(--muted-2); }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{ border-top:1px solid var(--border); padding-top:18px; text-align:center; }

/* ---------- App Shell (bottom nav, replaces the old sidebar) ---------- */
.app-topbar{
  position:fixed; top:0; left:0; right:0; height:var(--topbar-h); z-index:160;
  display:flex; align-items:center; justify-content:space-between; padding:0 16px;
  background:rgba(0,0,0,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border);
}
.app-topbar .brand{ font-size:1.05rem; }
.app-topbar-avatar{
  width:36px; height:36px; border-radius:50%; background:var(--gold-dim); color:var(--gold);
  border:1px solid var(--border-gold); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.82rem;
}

/* ---- Curved Floating Bottom Navigation Bar ---- */
.bottom-nav{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:calc(12px + env(safe-area-inset-bottom));
  z-index:150; display:flex;
  background:rgba(14,14,14,.97); backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(212,175,55,.18);
  border-radius:28px;
  padding:6px 10px;
  gap:2px;
  width:calc(100% - 32px); max-width:460px;
  box-shadow:0 8px 32px rgba(0,0,0,.55), 0 1px 0 rgba(212,175,55,.08) inset;
}
.bottom-nav-item{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding:8px 4px; color:var(--muted-2); font-size:.63rem; font-weight:600;
  border-radius:20px; position:relative; background:none; border:none;
  transition:background .18s, color .15s, transform .15s;
}
.bottom-nav-item:active{ transform:scale(0.88); }
.bottom-nav-item .icon{ line-height:1; display:flex; }
.bottom-nav-item .icon svg{ width:21px; height:21px; color:var(--muted-2); transition:color .15s; }
.bottom-nav-item.active{
  color:var(--gold);
  background:rgba(212,175,55,.13);
}
.bottom-nav-item.active .icon svg{ color:var(--gold); }
.bottom-nav-item .nav-badge{
  position:absolute; top:2px; right:calc(50% - 20px); background:var(--danger); color:#fff;
  font-size:.6rem; font-weight:700; min-width:16px; height:16px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}

.sheet-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:400; display:flex; align-items:flex-end; justify-content:center; opacity:0; pointer-events:none; transition:opacity .2s; }
.sheet-backdrop.open{ opacity:1; pointer-events:auto; }
.sheet{ background:var(--surface-1); border:1px solid var(--border); border-radius:16px 16px 0 0; width:100%; max-width:520px; max-height:80vh; overflow-y:auto; padding:20px; transform:translateY(30px); transition:transform .25s; }
.sheet-backdrop.open .sheet{ transform:translateY(0); }
.sheet-user{ display:flex; align-items:center; gap:12px; padding-bottom:16px; margin-bottom:10px; border-bottom:1px solid var(--border); }
.sheet-user .u-name{ font-size:.95rem; font-weight:600; }
.sheet-user .u-role{ font-size:.75rem; color:var(--muted); }
.sheet-link{ display:flex; align-items:center; gap:12px; padding:13px 8px; border-radius:var(--radius-sm); color:var(--white); font-size:.92rem; font-weight:500; }
.sheet-link:hover{ background:var(--surface-2); }
.sheet-link.active{ color:var(--gold); background:var(--gold-dim); }
.sheet-link .icon{ width:22px; display:flex; align-items:center; justify-content:center; }
.sheet-link .icon svg{ width:19px; height:19px; color:var(--muted-2); }
.sheet-link.active .icon svg{ color:var(--gold); }
.sheet-link .nav-badge{ margin-left:auto; background:var(--danger); color:#fff; font-size:.68rem; font-weight:700; min-width:18px; height:18px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; padding:0 4px; }

.avatar-circle{
  width:38px; height:38px; border-radius:50%; background:var(--gold-dim); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; flex-shrink:0; border:1px solid var(--border-gold);
}
.u-name{ font-size:.88rem; font-weight:600; }
.u-role{ font-size:.72rem; color:var(--muted); }

#app-shell-root ~ .main-content,
.app-main{ padding:calc(var(--topbar-h) + 20px) 16px calc(78px + env(safe-area-inset-bottom)); }
.main-content{ padding:calc(var(--topbar-h) + 20px) 16px calc(100px + env(safe-area-inset-bottom)); max-width:900px; margin:0 auto; }

/* ---------- Stat / quick cards ---------- */
.stat-card{ padding:12px 14px; text-align:left; }
.stat-card .lbl{ font-size:.62rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px; display:block; }
.stat-card .val{ font-family:var(--font-display); font-size:1.15rem; font-weight:700; color:var(--gold); line-height:1.1; }

/* Compact stat grid — used for member dashboard (points/rank/debt/status)
   and admin top-row summary cards. Keeps four small cards per row on
   phones instead of two large ones. */
.stat-grid-compact{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
@media (max-width:420px){ .stat-grid-compact{ grid-template-columns:repeat(2,1fr); } }
.quick-card{ padding:20px; text-align:center; transition:transform .15s, border-color .15s; }
.quick-card:hover{ transform:translateY(-3px); border-color:var(--border-gold); }
.quick-card .qicon{ font-size:1.7rem; margin-bottom:10px; }

.progress-track{ height:10px; border-radius:999px; background:var(--surface-2); overflow:hidden; }
.progress-fill{ height:100%; background:linear-gradient(90deg,var(--gold),var(--gold-light)); border-radius:999px; transition:width .4s ease; }

/* ---------- Points / scoreboard ---------- */
.points-hero{ text-align:center; padding:36px 20px; }
.points-hero .big-num{ font-family:var(--font-display); font-size:64px; font-weight:700; color:var(--gold); line-height:1; }
.rank-card{ padding:18px; text-align:center; border:1px solid var(--border); }
.rank-card.current{ border-color:var(--gold); background:var(--gold-dim); }
.rank-card.achieved{ border-color:rgba(39,174,96,.4); background:var(--success-bg); }
.breakdown-row{ display:flex; justify-content:space-between; padding:12px 0; border-top:1px solid var(--border-soft); font-size:.88rem; }
.breakdown-row:first-child{ border-top:none; }
.summary-strip{ display:flex; gap:14px; flex-wrap:wrap; }
.s-card{ flex:1; min-width:140px; padding:16px; text-align:center; }
.d-row{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); font-size:.88rem; }
.d-row:last-child{ border-bottom:none; }

/* ---------- Lessons / Library / Sessions ---------- */
.lesson-card{ padding:20px; }
.lesson-date{ font-size:.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
.reflection-box{ border-left:3px solid var(--gold); background:var(--gold-dim); padding:12px 14px; border-radius:var(--radius-sm); margin-top:12px; font-size:.9rem; }
.action-box{ border-left:3px solid var(--success); background:var(--success-bg); padding:12px 14px; border-radius:var(--radius-sm); margin-top:10px; font-size:.9rem; }
.resource-card{ padding:18px; text-align:center; }
.resource-icon{ font-size:1.8rem; margin-bottom:10px; }
.type-label{ font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:4px; }
.filter-row{ display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
.filter-row::-webkit-scrollbar{ display:none; }
.filter-chip{ flex:0 0 auto; padding:8px 16px; border-radius:999px; background:var(--surface-1); border:1px solid var(--border); color:var(--muted-2); font-size:.82rem; font-weight:600; }
.filter-chip.active{ background:var(--gold-dim); color:var(--gold); border-color:var(--border-gold); }
.month-pill{ display:inline-block; background:var(--gold-dim); color:var(--gold); border:1px solid var(--border-gold); padding:6px 16px; border-radius:999px; font-weight:700; font-size:.85rem; margin-bottom:14px; }
.session-card{ padding:18px; margin-bottom:14px; }
.session-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; }
.file-item{ display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-top:1px solid var(--border); font-size:.85rem; flex-wrap:wrap; gap:8px; }
.file-item:first-child{ border-top:none; }

/* ---------- Sessions: hero + clean date-badge schedule rows (no horizontal scroll, ever) ---------- */
.session-hero{ padding:24px 20px; border:1px solid var(--border-gold); background:linear-gradient(135deg,var(--surface-1),var(--surface-2)); position:relative; overflow:hidden; }
.session-hero .eyebrow{ color:var(--gold); }
.session-hero .display-3{ margin-top:6px; }
.date-badge{
  flex-shrink:0; width:54px; height:54px; border-radius:12px; background:var(--gold-dim);
  border:1px solid var(--border-gold); display:flex; flex-direction:column; align-items:center; justify-content:center;
  line-height:1.05;
}
.date-badge .d{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; color:var(--gold); }
.date-badge .m{ font-size:.6rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted-2); }
.schedule-month-heading{ font-family:var(--font-display); font-weight:700; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:22px 0 10px; }
.schedule-month-heading:first-child{ margin-top:4px; }
.schedule-row{ display:flex; align-items:center; gap:14px; padding:12px 4px; border-bottom:1px solid var(--border-soft); min-width:0; }
.schedule-row:last-child{ border-bottom:none; }
.schedule-row .info{ min-width:0; flex:1; }
.schedule-row .info .t{ font-weight:600; font-size:.92rem; overflow-wrap:break-word; }
.schedule-row .info .s{ font-size:.78rem; color:var(--muted); margin-top:2px; }
.schedule-row.is-today .date-badge{ background:var(--gold); }
.schedule-row.is-today .date-badge .d,.schedule-row.is-today .date-badge .m{ color:#000; }

/* AudioMack/YouTube-style media row — cover art left, title+details right.
   Used for session materials and library resources. */
.media-row{
  display:flex; gap:12px; align-items:center; padding:10px; border-radius:12px;
  background:var(--surface-1); border:1px solid var(--border); margin-bottom:10px;
  cursor:pointer; transition:border-color .15s;
}
.media-row:hover{ border-color:var(--border-gold); }
.media-row .cover{
  flex:0 0 64px; width:64px; height:64px; border-radius:8px; background:var(--surface-2);
  background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center;
  font-size:22px; color:var(--muted); overflow:hidden; position:relative;
}
.media-row .cover .play-badge{
  position:absolute; inset:0; background:rgba(0,0,0,.28); display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .15s; color:#fff; font-size:18px;
}
.media-row:hover .cover .play-badge{ opacity:1; }
.media-row .info{ flex:1; min-width:0; }
.media-row .info .t{ font-weight:700; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.media-row .info .s{ font-size:11.5px; color:var(--muted); margin-top:3px; }
.media-row .info .badge-type{ display:inline-block; margin-top:5px; font-size:9.5px; padding:2px 7px; border-radius:20px; background:var(--surface-2); color:var(--muted-2); text-transform:uppercase; letter-spacing:.03em; }
.media-row .action{ flex-shrink:0; color:var(--gold); font-size:12px; font-weight:700; }
.cover-upload-preview{
  width:100%; height:120px; border-radius:10px; background:var(--surface-2); background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; margin-bottom:10px; overflow:hidden;
}

/* Monthly-swipe schedule (shared by member sessions.html and admin.html) */
.schedule-month-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.schedule-month-nav h3 { font-size:1.15rem; }
.schedule-nav-btn { width:38px; height:38px; border-radius:50%; background:var(--surface-1); border:1px solid var(--border); color:var(--gold); font-size:20px; line-height:1; }
.schedule-nav-btn:disabled { opacity:.3; }
.schedule-day-row { display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--border-soft); }
.schedule-day-row .day-col { flex:0 0 46px; text-align:center; }
.schedule-day-row .day-col .num { font-family:var(--font-display); font-size:1.15rem; font-weight:700; color:var(--gold); line-height:1; }
.schedule-day-row .day-col .dow { font-size:.62rem; text-transform:uppercase; color:var(--muted); margin-top:2px; }
.schedule-day-row .info { flex:1; }
.schedule-day-row .info .t { font-weight:700; font-size:14px; }
.schedule-day-row .info .s { font-size:12.5px; color:var(--muted); margin-top:2px; }
.schedule-day-row .info .d { font-size:12.5px; color:var(--muted-2); margin-top:6px; line-height:1.5; }
.schedule-day-row.is-today .day-col .num { color:#4ade80; }

/* Date-box grid — tappable rounded-square date tiles for Schedule / Upcoming.
   Each tile shows day number + month abbreviation; tapping opens a modal
   with that session's details. */
.date-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
@media (max-width:380px){ .date-grid{ grid-template-columns:repeat(3,1fr); } }
.date-tile{
  aspect-ratio:1/1; border-radius:16px; background:var(--surface-1); border:1px solid var(--border);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  cursor:pointer; transition:border-color .15s, transform .1s; position:relative;
}
.date-tile:active{ transform:scale(.96); }
.date-tile .d{ font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--gold); line-height:1; }
.date-tile .m{ font-size:.62rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted-2); }
.date-tile .accent-dot{ position:absolute; top:8px; right:8px; width:6px; height:6px; border-radius:50%; }
.date-tile.is-today{ border-color:var(--gold); box-shadow:0 0 0 1px var(--gold) inset; }
.date-tile.is-live::after{
  content:''; position:absolute; top:8px; left:8px; width:7px; height:7px; border-radius:50%;
  background:#4ade80; box-shadow:0 0 0 0 rgba(74,222,128,.6); animation:liveDotPulse 1.8s infinite;
}
@keyframes liveDotPulse{
  0%{ box-shadow:0 0 0 0 rgba(74,222,128,.55); }
  70%{ box-shadow:0 0 0 7px rgba(74,222,128,0); }
  100%{ box-shadow:0 0 0 0 rgba(74,222,128,0); }
}
.date-grid-heading{ font-family:var(--font-display); font-weight:700; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:22px 0 10px; }
.date-grid-heading:first-child{ margin-top:4px; }
.past-sessions-toggle{ width:100%; text-align:left; background:none; border:none; padding:14px 0; color:var(--gold); font-weight:600; font-size:.88rem; display:flex; align-items:center; justify-content:space-between; }
.past-sessions-toggle .chev{ transition:transform .2s; }
.past-sessions-toggle.open .chev{ transform:rotate(90deg); }
.past-sessions-box{ display:none; }
.past-sessions-box.open{ display:block; animation:fadeIn .2s ease; }

/* ---------- Pods accordion (Members → Pods tab) ---------- */
.pod-item{ border:1px solid var(--border); border-radius:var(--radius); margin-bottom:12px; overflow:hidden; background:var(--surface-1); }
.pod-item[open]{ border-color:var(--border-gold); }
.pod-summary{
  list-style:none; cursor:pointer; padding:16px 18px; display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap; user-select:none;
}
.pod-summary::-webkit-details-marker{ display:none; }
.pod-summary .left{ display:flex; align-items:center; gap:10px; min-width:0; }
.pod-summary .chev{ color:var(--muted-2); transition:transform .2s; flex-shrink:0; }
.pod-item[open] .pod-summary .chev{ transform:rotate(90deg); color:var(--gold); }
.pod-summary .name{ font-family:var(--font-display); font-weight:700; font-size:.95rem; }
.pod-summary .meta{ font-size:.76rem; color:var(--muted); margin-top:2px; }
.pod-body{ padding:0 18px 16px; border-top:1px solid var(--border); }
.pod-member-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border-soft); font-size:.86rem; gap:10px; }
.pod-member-row:last-child{ border-bottom:none; }
.pod-member-row .nm{ min-width:0; overflow-wrap:break-word; }
.pod-member-row .pt{ flex-shrink:0; font-weight:700; color:var(--gold); }

/* ---------- Month-total stat widget (Payment History summary) ---------- */
.month-stat-card{ padding:22px 20px; }
.month-stat-select-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.month-stat-value{ font-family:var(--font-display); font-weight:700; font-size:2.1rem; color:var(--gold); line-height:1.1; }
.month-stat-label{ font-size:.78rem; color:var(--muted); margin-top:4px; }
.month-select{ max-width:180px; }

/* ---------- Profile ---------- */
.profile-head{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.profile-head .avatar-circle{ width:64px; height:64px; font-size:1.4rem; }
.info-item{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--border); font-size:.88rem; }
.info-item:last-child{ border-bottom:none; }
.info-item .k{ color:var(--muted); }
.info-item .v{ font-weight:600; text-align:right; }
.success-box{ background:var(--success-bg); border:1px solid rgba(39,174,96,.4); border-radius:var(--radius-sm); padding:14px 16px; font-size:.88rem; }

/* ---------- Applications (admin) ---------- */
.app-card{ padding:18px; margin-bottom:14px; }
.app-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; }
.app-meta{ display:flex; flex-wrap:wrap; gap:8px 18px; font-size:.85rem; color:var(--muted-2); margin:10px 0; }
.app-details{ margin-top:12px; padding-top:12px; border-top:1px solid var(--border); font-size:.87rem; display:none; }
.app-details.open{ display:block; }
.app-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.toggle-details{ background:none; border:none; color:var(--gold); font-size:.82rem; font-weight:600; padding:6px 0; }
.approve-btn{ background:var(--success); color:#fff; }
.reject-btn{ background:var(--danger); color:#fff; }

/* ---------- Forms / multi-step ---------- */
.field{ margin-bottom:16px; }
.field label,.field .lbl{ display:block; margin-bottom:6px; font-size:.85rem; color:var(--muted-2); font-weight:600; }
.form-row-2{ display:grid; gap:16px; grid-template-columns:1fr; }
@media(min-width:600px){ .form-row-2{ grid-template-columns:1fr 1fr; } }
.step-progress{ display:flex; gap:6px; margin-bottom:24px; }
.step-progress .dot,
.step-progress .step{ flex:1; height:4px; border-radius:999px; background:var(--surface-2); }
.step-progress .dot.active,
.step-progress .step.active{ background:var(--gold); }
.step-progress .step.done{ background:var(--gold-dim); }
.step-panel{ display:none; }
.step-panel.active{ display:block; animation:fadeIn .3s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }
.step-nav{ display:flex; gap:10px; justify-content:space-between; margin-top:22px; }
.join-wrap{ max-width:640px; margin:0 auto; padding:calc(var(--topbar-h) + 30px) 20px 50px; }

/* ---------- Login ---------- */
/* ---------- Hero Image Slider ---------- */
.hero-slider{ position:relative; width:100%; height:64vh; min-height:420px; max-height:600px; margin-top:var(--topbar-h); overflow:hidden; }
.hero-slides{ position:absolute; inset:0; }
.hero-slide{ position:absolute; inset:0; background-size:cover; background-position:center 22%; opacity:0; transition:opacity 1s ease; }
.hero-slide.active{ opacity:1; }
.hero-slide-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 55%, var(--black) 100%); }
.hero-slide-content{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding-top:20px; }
.hero-slide-content .eyebrow{ text-shadow:0 2px 10px rgba(0,0,0,.6); }
.hero-slide-content h1{ text-shadow:0 4px 20px rgba(0,0,0,.7); }
.hero-below{ text-align:center; padding:28px 20px 8px; }
.hero-below .hero-actions{ margin-top:22px; }
@media(max-width:600px){
  .hero-slider{ height:52vh; min-height:340px; }
  .hero-below{ padding:22px 16px 4px; }
}

/* ---------- Scroll "alive" reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- Membership Card ---------- */
.membership-card{
  background:linear-gradient(135deg,#1c1c1c 0%,#0a0a0a 55%,#000 100%);
  border:1px solid var(--border-gold); border-radius:18px; padding:22px 24px;
  max-width:420px; margin:0 auto 24px; position:relative; overflow:hidden;
  box-shadow:var(--shadow-gold), 0 12px 30px rgba(0,0,0,.5);
}
.membership-card::before{ content:''; position:absolute; top:-45%; right:-15%; width:220px; height:220px; background:radial-gradient(circle,rgba(212,175,55,.16),transparent 70%); pointer-events:none; }
.mc-top{ display:flex; justify-content:space-between; align-items:flex-start; position:relative; z-index:1; }
.mc-brand{ display:flex; align-items:center; gap:10px; }
.mc-brand img{ width:32px; height:32px; }
.mc-title{ font-family:var(--font-display); font-weight:700; font-size:.95rem; color:#fff; letter-spacing:.02em; }
.mc-subtitle{ font-size:.62rem; color:var(--gold); font-weight:700; letter-spacing:.06em; margin-top:2px; }
.mc-nfc{ color:var(--muted); font-size:1rem; display:inline-block; transform:rotate(90deg); }
.mc-mid{ display:flex; justify-content:space-between; align-items:center; margin-top:28px; position:relative; z-index:1; }
.mc-chip{ width:42px; height:32px; border-radius:6px; background:linear-gradient(135deg,#e8c766,#a97e2b); position:relative; }
.mc-chip-frame{ position:absolute; top:5px; left:5px; right:5px; bottom:5px; border:1px solid rgba(0,0,0,.35); border-radius:3px; display:block; }
.mc-chip-hline{ position:absolute; top:15px; left:5px; right:5px; height:2px; background:rgba(0,0,0,.4); display:block; }
.mc-chip-vline{ position:absolute; top:9px; bottom:9px; width:2px; background:rgba(0,0,0,.4); display:block; }
.mc-badges{ text-align:right; }
.mc-pill{ display:inline-block; line-height:1; font-size:.62rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:7px 11px 5px; border-radius:999px; white-space:nowrap; margin-left:6px; vertical-align:middle; }
.mc-pill-gold{ background:var(--gold-dim); color:var(--gold); border:1px solid var(--border-gold); }
.mc-pill-success{ background:var(--success-bg); color:var(--success); border:1px solid rgba(39,174,96,.4); }
.mc-pill-muted{ background:var(--surface-2); color:var(--muted-2); border:1px solid var(--border); }
.mc-number{ font-family:'Courier New',monospace; letter-spacing:.09em; color:var(--muted-2); margin-top:22px; font-size:.92rem; position:relative; z-index:1; }
.mc-bottom{ display:flex; justify-content:space-between; align-items:flex-end; margin-top:20px; gap:10px; position:relative; z-index:1; }
.mc-label{ font-size:.6rem; color:var(--gold); letter-spacing:.08em; font-weight:700; }
.mc-name{ font-family:var(--font-display); font-weight:700; font-size:1.1rem; color:#fff; margin-top:2px; line-height:1.2; }
.mc-role-badge{ display:inline-block; line-height:1; background:var(--gold-dim); color:var(--gold); border:1px solid var(--border-gold); padding:8px 13px 6px; border-radius:999px; font-size:.68rem; font-weight:700; text-transform:uppercase; white-space:nowrap; flex-shrink:0; }
@media(max-width:380px){
  .membership-card{ padding:18px 18px; }
  .mc-name{ font-size:.98rem; }
}

.login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; background:radial-gradient(circle at 50% 0%, rgba(212,175,55,.1), transparent 60%); }
.login-card{ width:100%; max-width:420px; }
.login-toggle{ display:flex; gap:8px; margin-bottom:22px; background:var(--surface-2); padding:4px; border-radius:999px; }
.login-toggle button{ flex:1; background:none; border:none; color:var(--muted-2); padding:10px; border-radius:999px; font-weight:600; font-size:.88rem; }
.login-toggle button.active{ background:var(--gold); color:#000; }
.google-btn{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; background:#fff; color:#1f1f1f; border-radius:999px; min-height:48px; font-weight:600; }

/* ---------- Tabs ---------- */
.tabs{ display:flex; gap:8px; overflow-x:auto; padding-bottom:10px; scrollbar-width:none; -ms-overflow-style:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab-btn{ flex:0 0 auto; display:flex; align-items:center; gap:6px; padding:10px 16px; border-radius:999px; background:var(--surface-1); border:1px solid var(--border); color:var(--muted-2); font-size:.85rem; font-weight:600; white-space:nowrap; position:relative; }
.tab-btn.active{ background:var(--gold-dim); color:var(--gold); border-color:var(--border-gold); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadeIn .25s ease; }

/* ---------- Tables ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); }
table{ width:100%; border-collapse:collapse; min-width:560px; }
th,td{ text-align:left; padding:12px 14px; font-size:.86rem; border-bottom:1px solid var(--border); white-space:nowrap; }
th{ color:var(--muted); text-transform:uppercase; font-size:.7rem; letter-spacing:.04em; background:var(--surface-1); }
tr:last-child td{ border-bottom:none; }

/* ---------- Modal ---------- */
.modal-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:400; display:flex; align-items:flex-end; justify-content:center; opacity:0; pointer-events:none; transition:opacity .2s; }
.modal-backdrop.open{ opacity:1; pointer-events:auto; }
.modal{ background:var(--surface-1); border:1px solid var(--border); border-radius:16px 16px 0 0; width:100%; max-width:520px; max-height:88vh; overflow-y:auto; padding:24px; transform:translateY(30px); transition:transform .25s; }
.modal-backdrop.open .modal{ transform:translateY(0); }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.modal-close{ background:none; border:none; color:var(--muted); font-size:1.4rem; line-height:1; }
@media(min-width:640px){
  .modal-backdrop{ align-items:center; }
  .modal{ border-radius:16px; }
}

/* ---------- Toasts ---------- */
.toast-stack{ position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:999; display:flex; flex-direction:column; gap:8px; width:calc(100% - 32px); max-width:380px; }
.toast{ background:var(--surface-2); border:1px solid var(--border); border-left:4px solid var(--gold); padding:12px 16px; border-radius:var(--radius-sm); font-size:.88rem; box-shadow:var(--shadow-soft); animation:slideDown .25s ease; }
.toast.success{ border-left-color:var(--success); }
.toast.error{ border-left-color:var(--danger); }
.toast.info{ border-left-color:var(--gold); }
@keyframes slideDown{ from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }

/* ---------- Empty / Loading ---------- */
.empty-state{ text-align:center; padding:50px 20px; color:var(--muted); }
.empty-state .icon{ margin-bottom:10px; display:flex; align-items:center; justify-content:center; }
.empty-state .icon svg{ width:34px; height:34px; color:var(--gold); opacity:.85; }
/* ---- Skeleton shimmer system (replaces spinner) ---- */
@keyframes shimmer{
  0%{ background-position:-600px 0; }
  100%{ background-position:600px 0; }
}
.skeleton{
  background:linear-gradient(90deg, var(--surface-2) 25%, rgba(255,255,255,.06) 50%, var(--surface-2) 75%);
  background-size:600px 100%;
  animation:shimmer 1.4s ease-in-out infinite;
  border-radius:var(--radius-sm);
}
.skeleton-line{ height:14px; margin-bottom:10px; border-radius:6px; }
.skeleton-line.w-80{ width:80%; }
.skeleton-line.w-60{ width:60%; }
.skeleton-line.w-40{ width:40%; }
.skeleton-line.w-100{ width:100%; }
.skeleton-card{ height:72px; border-radius:var(--radius); margin-bottom:10px; }
.skeleton-row{ display:flex; flex-direction:column; gap:0; }

/* Keep .spinner for any inline use, but make it skeleton-style */
.spinner{
  width:100%; height:14px;
  background:linear-gradient(90deg, var(--surface-2) 25%, rgba(255,255,255,.06) 50%, var(--surface-2) 75%);
  background-size:600px 100%;
  animation:shimmer 1.4s ease-in-out infinite;
  border-radius:6px; margin:8px 0;
  display:block;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- PWA Install Banner ---------- */
.pwa-install-banner{
  position:fixed; left:16px; right:16px; bottom:-100px; z-index:998;
  max-width:420px; margin:0 auto;
  background:var(--surface-1); border:1px solid var(--border-gold); border-radius:var(--radius);
  box-shadow:var(--shadow-soft); padding:14px; display:flex; align-items:center; gap:12px;
  transition:bottom .3s ease;
}
.pwa-install-banner.open{ bottom:16px; }
.pwa-install-banner img{ width:40px; height:40px; border-radius:10px; flex-shrink:0; }
.pwa-install-banner .pwa-text{ display:flex; flex-direction:column; flex:1; min-width:0; }
.pwa-install-banner .pwa-text strong{ font-size:.88rem; }
.pwa-install-banner .pwa-text span{ font-size:.75rem; color:var(--muted); }
.pwa-install-banner .pwa-close{ background:none; border:none; color:var(--muted); font-size:1.2rem; padding:4px 8px; flex-shrink:0; }
@media(min-width:500px){ .pwa-install-banner{ left:auto; right:20px; width:380px; } }
.perm-checks{ display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px; }
.perm-checks label{ display:flex; align-items:center; gap:8px; font-size:.85rem; font-weight:500; color:var(--muted-2); cursor:pointer; }
.perm-checks input[type="checkbox"]{ width:16px; height:16px; flex-shrink:0; accent-color:var(--gold); }
.phone-input-group{ display:flex; gap:8px; align-items:stretch; }
.phone-input-group select{ padding-left:8px; padding-right:4px; }
.phone-fixed-prefix{ display:flex; align-items:center; padding:0 12px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); font-size:.9rem; font-weight:600; color:var(--muted-2); white-space:nowrap; flex-shrink:0; }
@media(max-width:480px){ .perm-checks{ grid-template-columns:1fr; } }
@media(max-width:480px){
  .container{ padding:0 16px; }
}
