/* ============================================================
   Being Quantum — Membership Portal
   Shared Stylesheet (MasterClass-inspired dark theme)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0a;
  --bg2:          #111111;
  --card:         #1a1a1a;
  --card-hover:   #222222;
  --accent:       #c9a84c;
  --accent-light: #e0bf6a;
  --text:         #ffffff;
  --text-mid:     #cccccc;
  --text-muted:   #a3a3a3;
  --border:       #2a2a2a;
  --border-light: #333333;
  --nav-h:        68px;
  --sidebar-w:    240px;
  --radius:       8px;
  --radius-sm:    4px;
  --shadow:       0 8px 32px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Inter', sans-serif; }
input, textarea, select { font-family: 'Inter', sans-serif; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--text); }
.nav-logo img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Avatar + dropdown */
.avatar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color 0.2s;
}
.avatar-btn:hover { border-color: var(--accent); }

.avatar-wrap { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 190px;
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: var(--shadow);
  display: none;
  z-index: 999;
}
.dropdown.open { display: block; }
.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
}
.dropdown a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown .sign-out { color: #ff6b6b; }
.dropdown .sign-out:hover { color: #ff4444; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #0a0a0a; }

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-danger {
  background: rgba(255,59,48,0.12);
  color: #ff3b30;
  border: 1px solid rgba(255,59,48,0.25);
}
.btn-danger:hover { background: rgba(255,59,48,0.2); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page { padding-top: var(--nav-h); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: 80px 48px; }
.section-sm { padding: 48px 48px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* Capped so the hero doesn't grow into a huge empty block on tall/large
     monitors (100vh alone) — mirrors how Masterclass.com keeps a fixed
     hero height rather than filling the full viewport. */
  min-height: clamp(600px, calc(100vh - var(--nav-h)), 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #0d0d14 60%, #080810 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 40%, rgba(201,168,76,0.09) 0%, transparent 65%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 80px;
  max-width: 700px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}
.section-link {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.slider-wrap { position: relative; }

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.slider::-webkit-scrollbar { display: none; }

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.slider-arrow:hover { background: var(--accent-light); transform: translateY(-50%) scale(1.08); }
.arrow-prev { left: -21px; }
.arrow-next { right: -21px; }

.prog-card {
  flex: 0 0 255px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
  position: relative;
}
.prog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-color: rgba(201,168,76,0.35);
}

.prog-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.prog-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(201,168,76,0.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.prog-body { padding: 16px 18px 18px; }
.prog-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; line-height: 1.35; }
.prog-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }

.prog-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.prog-badge-locked { background: rgba(201,168,76,0.12); color: var(--accent); }
.prog-badge-unlocked { background: rgba(52,199,89,0.12); color: #34c759; }

.progress-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.progress-label { font-size: 11px; color: var(--text-muted); }

/* Grid cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-input::placeholder { color: #6b6b6b; }

textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; }

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: #ff6b6b; margin-top: 6px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #111;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-green  { background: rgba(52,199,89,0.14);  color: #34c759; }
.badge-gold   { background: rgba(201,168,76,0.14); color: var(--accent); }
.badge-blue   { background: rgba(10,132,255,0.14); color: #4dabf7; }
.badge-gray   { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge-red    { background: rgba(255,59,48,0.14);  color: #ff6b6b; }
.badge-purple { background: rgba(175,82,222,0.14); color: #bf8fff; }

/* ============================================================
   CARDS & BOXES
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab:hover { color: var(--text-mid); }

/* ============================================================
   AUTH BOX
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: radial-gradient(ellipse at 50% -10%, rgba(201,168,76,0.07) 0%, transparent 60%), var(--bg);
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  text-align: center;
}
.auth-tagline {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
}
.auth-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.sidebar {
  width: var(--sidebar-w);
  background: #0d0d0d;
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  bottom: 0;
  overflow-y: auto;
  padding: 28px 0;
  z-index: 100;
}

.sidebar-section { margin-bottom: 36px; }

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  padding: 0 20px;
  margin-bottom: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--accent);
}
.sidebar-icon { width: 18px; font-size: 15px; text-align: center; flex-shrink: 0; }

.admin-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 40px 48px;
  min-width: 0;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}
.page-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

/* ============================================================
   VIDEO PLAYER STUB
   ============================================================ */
.video-stub {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-stub-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d1e, #1a0d0d, #0d1a0d);
}
.play-btn {
  position: relative;
  width: 72px; height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  cursor: pointer;
  color: #0a0a0a;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 12px rgba(201,168,76,0.15);
}
.play-btn:hover { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(201,168,76,0.12); }
.video-overlay-label {
  position: absolute;
  bottom: 16px; left: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   LESSON PLAYER LAYOUT
   ============================================================ */
.lesson-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}
.lesson-main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
}
.lesson-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: #0d0d0d;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
}
.lesson-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.lesson-sidebar-title { font-size: 14px; font-weight: 600; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.lesson-item:hover { background: rgba(255,255,255,0.03); }
.lesson-item.active { background: rgba(201,168,76,0.06); border-left: 3px solid var(--accent); padding-left: 17px; }

.lesson-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lesson-num.done { background: var(--accent); color: #0a0a0a; font-size: 14px; }

.lesson-info { flex: 1; }
.lesson-name { font-size: 13px; font-weight: 500; line-height: 1.35; }
.lesson-duration { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   MODULE ACCORDION
   ============================================================ */
.module-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--card);
  cursor: pointer;
  transition: background 0.15s;
}
.module-head:hover { background: var(--card-hover); }
.module-head h4 { font-size: 15px; font-weight: 600; }
.module-head .meta { font-size: 12px; color: var(--text-muted); }
.module-body {
  background: var(--bg2);
  display: none;
}
.module-body.open { display: block; }
.chevron { transition: transform 0.25s; }
.module-head.open .chevron { transform: rotate(180deg); }

/* ============================================================
   FORUM
   ============================================================ */
.forum-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.15s;
  display: flex;
  gap: 16px;
}
.forum-post:hover { border-color: rgba(201,168,76,0.3); background: var(--card-hover); }

.forum-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.forum-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   PROGRESS RING
   ============================================================ */
.ring-wrap {
  position: relative;
  width: 96px; height: 96px;
  flex-shrink: 0;
}
.ring-wrap svg { transform: rotate(-90deg); }
.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.ring-text small { font-size: 10px; color: var(--text-muted); font-weight: 400; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-info    { background: rgba(10,132,255,0.1);   border: 1px solid rgba(10,132,255,0.25);  color: #4dabf7; }
.alert-success { background: rgba(52,199,89,0.1);    border: 1px solid rgba(52,199,89,0.25);   color: #34c759; }
.alert-warning { background: rgba(201,168,76,0.1);   border: 1px solid rgba(201,168,76,0.25);  color: var(--accent); }
.alert-danger  { background: rgba(255,59,48,0.1);    border: 1px solid rgba(255,59,48,0.25);   color: #ff6b6b; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: #3a3a3a; }
.breadcrumb .current { color: var(--text); }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-row .form-input { max-width: 300px; }

/* ============================================================
   CONTINUE WATCHING BANNER
   ============================================================ */
.continue-banner {
  background: linear-gradient(90deg, rgba(201,168,76,0.1) 0%, transparent 100%);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.continue-banner:hover { border-color: rgba(201,168,76,0.45); }

/* ============================================================
   MISC HELPERS
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.text-gold   { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-mid    { color: var(--text-mid); }
.text-green  { color: #34c759; }
.text-red    { color: #ff6b6b; }

.font-serif  { font-family: 'Playfair Display', serif; }
.font-bold   { font-weight: 700; }
.font-semi   { font-weight: 600; }

.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.text-lg  { font-size: 18px; }
.text-xl  { font-size: 22px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.flex-1 { flex: 1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.w-full { width: 100%; }

/* ============================================================
   AVATAR (inline profile)
   ============================================================ */
.avatar-lg {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

/* Toggle */
.toggle-wrap { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.toggle {
  width: 46px; height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left 0.2s;
}
.toggle.on::after { left: 23px; }

/* ============================================================
   RESPONSIVE — NAV / HERO
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
}

@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-logo img { height: 38px; }
  .nav-right .btn { padding: 9px 16px; font-size: 13px; }
  /* No hamburger menu exists yet — hiding inline links here is a stopgap
     so they don't overlap the logo/sign-in button on narrow screens.
     A real mobile nav toggle should replace this. */
  .nav-links { display: none; }
}

/* ============================================================
   SITEWIDE HEADING SYSTEM
   Standard pattern for every page/section heading:
     <div class="eyebrow">LABEL</div>
     <h1/h2 class="page-title | section-title">Heading</h1>
     <div class="title-accent"></div>
     <p class="page-sub | section-sub">Gray subtext</p>
   ============================================================ */
.title-accent {
  width: 46px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0 0;
}
.title-accent-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   SITEWIDE FOOTER (with legal links)
   Standard markup to include near the end of every page's <body>:

   <footer class="site-footer">
     <div class="site-footer-brand">
       <div class="site-footer-logo">Reimagine YOU Now!</div>
       <div>© 2025 Joshua Bloom · All Rights Reserved</div>
     </div>
     <nav class="site-footer-legal">
       <a href="terms-of-use.html">Terms of Use</a>
       <a href="privacy-policy.html">Privacy Policy</a>
       <a href="disclaimer.html">Disclaimer</a>
     </nav>
   </footer>
   ============================================================ */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 4px;
}
.site-footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer-legal a { color: var(--text-muted); text-decoration: none; }
.site-footer-legal a:hover { color: var(--accent); }
@media (max-width: 480px) {
  .site-footer { flex-direction: column; text-align: center; padding: 28px 24px; }
  .site-footer-legal { justify-content: center; }
}

/* ============================================================
   ICON UPLOAD WIDGET
   Lets a slot show either an uploaded image or an emoji, editable
   in-browser (persisted via localStorage — see js/icon-upload.js).

   <span class="icon-upload" data-icon-key="unique-key"
         data-default-src="images/icon-x.png" data-default-emoji="🎓"></span>
   ============================================================ */
.icon-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-upload-visual {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.icon-upload-visual.is-emoji {
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
}
.icon-upload-edit-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  border: 2px solid var(--bg2);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.icon-upload-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  width: 230px;
  z-index: 200;
  display: none;
  box-shadow: var(--shadow);
}
.icon-upload-menu.open { display: block; }
.icon-upload-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.icon-upload-tab {
  flex: 1;
  padding: 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  background: #111;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid var(--border);
}
.icon-upload-tab.active { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.icon-upload-pane { display: none; }
.icon-upload-pane.active { display: block; }
.icon-upload-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  padding: 16px 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}
.icon-upload-dropzone:hover { border-color: var(--accent); color: var(--text); }
.icon-upload-hint { font-size: 10px; color: #555; margin-top: 8px; }
.icon-upload-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-upload-emoji-btn {
  font-size: 18px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 7px;
  cursor: pointer;
  line-height: 1;
}
.icon-upload-emoji-btn:hover { border-color: var(--accent); }
.icon-upload-reset {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: block;
}
.icon-upload-reset:hover { color: var(--accent); }

/* ============================================================
   LEGAL / STATIC CONTENT PAGES
   ============================================================ */
.legal-page { max-width: 800px; margin: 0 auto; padding: 64px 48px 96px; }
.legal-page .eyebrow { margin-bottom: 18px; }
.legal-page h1 { font-family:'Playfair Display', serif; font-size: 38px; font-weight: 900; margin-bottom: 10px; }
.legal-page .legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }
.legal-page h2 { font-family:'Playfair Display', serif; font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal-page p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.legal-page ul { margin: 0 0 14px 22px; color: var(--text-mid); font-size: 15px; line-height: 1.8; }
.legal-page a { color: var(--accent); }
@media (max-width: 640px) {
  .legal-page { padding: 40px 24px 64px; }
  .legal-page h1 { font-size: 30px; }
}
