/* ═══════════════════════════════════════════════════════════════
   MEMBER DASHBOARD — Emerald Primary, Inline & Collapsible
═══════════════════════════════════════════════════════════════ */

.md-loading { display: flex; justify-content: center; padding: 5rem; font-size: 2rem; color: #34D399; }
.md-error { text-align: center; padding: 3rem; color: var(--cream-dim); }
.md-retry { color: #34D399; text-decoration: underline; }

.md-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ═══ HEADER BAR — Inline with path info ═══ */
.md-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.md-header-left { flex: 1; min-width: 0; }
.md-greeting {
  font-family: var(--font-heading);
  font-size: 1.7rem; font-weight: 700; margin: 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold, #C6A44E) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.md-path-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--cream-dim);
}
.md-path-label { color: var(--gold, #C6A44E); font-weight: 600; }
.md-path-sep { opacity: 0.4; }
.md-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
}

.md-plan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gradient-primary);
  color: #1E2235; font-size: 0.7rem; font-weight: 700;
  padding: 0.35rem 0.75rem; border-radius: var(--r-full);
  white-space: nowrap; box-shadow: var(--shadow-emerald);
}

.md-change-path {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(198, 164, 78, 0.08);
  border: 1px solid rgba(198, 164, 78, 0.2);
  border-radius: var(--r-full);
  color: var(--gold, #C6A44E); cursor: pointer;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.md-change-path:hover { background: rgba(198, 164, 78, 0.15); border-color: rgba(198, 164, 78, 0.4); transform: translateY(-1px); }
.md-change-path span { display: inline; }

/* ═══ NEXT STEP — Hero Card ═══ */
.md-next-step {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(198, 164, 78, 0.04), rgba(42, 48, 80, 0.7));
  border: 1px solid rgba(198, 164, 78, 0.12);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.md-next-step:hover {
  border-color: rgba(198, 164, 78, 0.3);
  box-shadow: 0 8px 32px rgba(198, 164, 78, 0.08);
  transform: translateY(-3px);
}
.md-next-thumb {
  position: relative;
  width: 240px;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #2A3050;
  flex-shrink: 0;
}
.md-next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-next-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; background: rgba(52, 211, 153, 0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #1E2235;
  font-size: 1rem; box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
  transition: transform var(--trans);
}
.md-next-step:hover .md-next-play { transform: translate(-50%, -50%) scale(1.1); }
.md-next-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: rgba(0, 0, 0, 0.5);
}
.md-next-progress-fill { height: 100%; background: #34D399; border-radius: 0 2px 0 0; }
.md-next-info { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; flex: 1; min-width: 0; }
.md-next-label { font-size: 0.72rem; font-weight: 700; color: var(--gold, #C6A44E); text-transform: uppercase; letter-spacing: 0.1em; }
.md-next-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--cream); margin: 0; }
.md-next-trainer { font-size: 0.82rem; color: var(--cream-dim); }
.md-next-pct { font-size: 0.72rem; color: var(--cream-muted); }

/* ═══ STATS ROW — Inline cards ═══ */
.md-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.md-stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(42, 48, 80, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: var(--r-lg);
  flex: 1;
  min-width: 220px;
}
.md-stat-live {
  border-color: rgba(198, 164, 78, 0.15);
  background: linear-gradient(135deg, rgba(198, 164, 78, 0.06), rgba(42, 48, 80, 0.65));
}
.md-stat-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.md-stat-title { font-size: 0.82rem; font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-stat-sub { font-size: 0.72rem; color: var(--cream-dim); margin-top: 2px; }
.md-stat-done { font-size: 0.72rem; color: var(--gold, #C6A44E); font-weight: 600; margin-top: 2px; }

/* Goal ring (small inline) */
.md-stat-ring { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.md-stat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.md-ring-bg { fill: none; stroke: rgba(245, 240, 232, 0.06); stroke-width: 6; }
.md-ring-fill { fill: none; stroke: #34D399; stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.md-ring-fill.complete { stroke: #34D399; }
.md-ring-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; color: var(--cream);
}

/* Live dot */
.md-live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #34D399; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: pulse-glow 2s infinite;
}
.md-join-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--gradient-primary); color: #1E2235;
  font-size: 0.75rem; font-weight: 700; text-decoration: none;
  flex-shrink: 0; box-shadow: var(--shadow-emerald);
  transition: all var(--trans);
}
.md-join-btn:hover { box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3); transform: translateY(-1px); }

/* Stat icon (for total videos) */
.md-stat-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: #34D399; font-size: 1rem; flex-shrink: 0;
}

/* ═══ COLLAPSIBLE SECTIONS ═══ */
.md-section {
  background: rgba(42, 48, 80, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.md-section:hover {
  border-color: rgba(198, 164, 78, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.md-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--trans);
}
.md-section-header:hover { background: rgba(198, 164, 78, 0.03); }
.md-section-icon { color: var(--gold, #C6A44E); font-size: 0.85rem; flex-shrink: 0; }
.md-section-title {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600;
  color: var(--cream); flex: 1;
  letter-spacing: -0.2px;
}
.md-section-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-muted); font-size: 0.7rem;
  transition: transform 0.25s, background var(--trans);
  flex-shrink: 0;
}
.md-section-toggle:hover { background: rgba(245, 240, 232, 0.06); }
.md-section.collapsed .md-section-toggle i { transform: rotate(-90deg); }
.md-section-body { padding: 0 1rem 1rem; }

/* ═══ RECOMMENDED VIDEOS ═══ */
.md-reco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.md-reco-card {
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: rgba(42, 48, 80, 0.5);
  border: 1px solid rgba(245, 240, 232, 0.04);
  transition: transform var(--trans-slow), box-shadow var(--trans-slow), border-color var(--trans-slow);
}
.md-reco-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(52, 211, 153, 0.12);
}
.md-reco-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #2A3050;
  overflow: hidden;
}
.md-reco-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.md-reco-card:hover .md-reco-thumb img { transform: scale(1.05); }
.md-thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.5rem; color: var(--cream-muted); }
.md-play-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; background: rgba(52, 211, 153, 0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #1E2235;
  font-size: 0.8rem; opacity: 0; transition: opacity var(--trans);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}
.md-reco-card:hover .md-play-overlay,
.md-continue-card:hover .md-play-overlay { opacity: 1; }
.md-reco-info { padding: 0.6rem 0.7rem; }
.md-reco-title { font-size: 0.78rem; font-weight: 600; color: var(--cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 0.15rem; }
.md-reco-trainer { font-size: 0.68rem; color: var(--cream-dim); margin: 0; }

/* ═══ CONTINUE WATCHING ═══ */
.md-continue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.md-continue-card {
  border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  background: rgba(42, 48, 80, 0.5);
  border: 1px solid rgba(245, 240, 232, 0.04);
  transition: transform var(--trans-slow), box-shadow var(--trans-slow), border-color var(--trans-slow);
}
.md-continue-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(52, 211, 153, 0.12); }
.md-continue-thumb { position: relative; aspect-ratio: 16/9; background: #2A3050; overflow: hidden; }
.md-continue-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.md-continue-card:hover .md-continue-thumb img { transform: scale(1.05); }
.md-dur-badge { position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,0.75); color: var(--cream); font-size: 0.65rem; padding: 2px 6px; border-radius: 5px; }
.md-continue-info { padding: 0.6rem 0.7rem; }
.md-continue-title { font-size: 0.78rem; font-weight: 600; margin: 0 0 0.15rem; color: var(--cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.md-continue-trainer { font-size: 0.68rem; color: var(--cream-dim); margin: 0 0 0.4rem; }
.md-progress-bar-wrap { display: flex; align-items: center; gap: 0.4rem; }
.md-progress-bar { flex: 1; height: 3px; background: rgba(245, 240, 232, 0.06); border-radius: 2px; overflow: hidden; }
.md-progress-fill { height: 100%; background: var(--gradient-primary); border-radius: 2px; transition: width 0.4s ease; }
.md-progress-pct { font-size: 0.65rem; color: #34D399; font-weight: 600; min-width: 28px; text-align: right; }

/* ═══ TRAINERS GRID — Inline chips ═══ */
.md-trainers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.md-trainer-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.md-trainer-chip:hover { background: rgba(52, 211, 153, 0.04); border-color: rgba(52, 211, 153, 0.08); }
.md-trainer-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: #353D60; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1.5px solid rgba(52, 211, 153, 0.12);
}
.md-trainer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.md-trainer-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.md-trainer-name { font-size: 0.8rem; font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-trainer-meta { font-size: 0.68rem; color: var(--cream-dim); }
.md-trainer-progress-wrap { display: flex; align-items: center; gap: 0.4rem; margin-top: 2px; }
.md-trainer-progress { flex: 1; height: 3px; background: rgba(245, 240, 232, 0.06); border-radius: 2px; overflow: hidden; max-width: 80px; }
.md-trainer-progress-fill { height: 100%; background: var(--gradient-primary); border-radius: 2px; }
.md-trainer-progress-label { font-size: 0.6rem; color: var(--cream-muted); }
.md-trainer-done {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.12); color: #34D399;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; flex-shrink: 0;
}
.md-trainer-badge {
  background: rgba(52, 211, 153, 0.12); color: #34D399;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: var(--r-full);
  flex-shrink: 0;
}

/* ═══ ACTIVITY ═══ */
.md-activity-list { display: flex; flex-direction: column; gap: 0.5rem; }
.md-activity-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; padding: 0.25rem 0;
}
.md-activity-icon {
  width: 26px; height: 26px;
  background: rgba(52, 211, 153, 0.06); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.65rem; color: #34D399;
}
.md-activity-text { flex: 1; color: var(--cream-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-activity-time { font-size: 0.68rem; color: var(--cream-muted); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   WIZARD — Inline Accordion Categories
═══════════════════════════════════════════════════════════════ */

.wizard-wrap {
  max-width: 800px;
  margin: 0 auto;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-hero { text-align: center; padding: 1.5rem 1rem 1.25rem; }
.wizard-hero-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; animation: float-cinematic 4s ease-in-out infinite; }
.wizard-hero h2 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold, #C6A44E) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.wizard-hero p { font-size: 0.85rem; color: var(--cream-dim); max-width: 500px; margin: 0 auto; line-height: 1.5; }

/* Category grid — 4 squares */
.wizard-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0 0.5rem;
}
.wizard-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(42, 48, 80, 0.65);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(245, 240, 232, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: center;
}
.wizard-cat-card:hover {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(42, 48, 80, 0.85);
  transform: translateY(-2px);
}
.wizard-cat-card.selected {
  border-color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
}
.wizard-cat-card .wcc-icon { font-size: 2rem; }
.wizard-cat-card .wcc-name {
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.wizard-cat-card .wcc-count {
  font-size: 0.7rem;
  color: var(--cream-muted);
}
.wcc-icon-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 240, 232, 0.04);
  border-radius: 16px;
  transition: all 0.25s ease;
}
.wizard-cat-card.selected .wcc-icon-wrap {
  background: rgba(52, 211, 153, 0.15);
}
.wcc-check-circle {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 240, 232, 0.06);
  border: 2px solid rgba(245, 240, 232, 0.1);
  color: transparent;
  border-radius: 50%;
  font-size: 0.6rem;
  transition: all 0.25s ease;
}
.wizard-cat-card.selected .wcc-check-circle {
  background: #34D399;
  border-color: #34D399;
  color: #1E2235;
  transform: scale(1.05);
}

/* Step indicators */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1rem;
}
.wizard-step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.15);
  transition: all 0.3s ease;
}
.wizard-step-dot.active {
  background: #C6A44E;
  box-shadow: 0 0 8px rgba(198, 164, 78, 0.4);
}
.wizard-step-line {
  width: 40px; height: 2px;
  background: rgba(245, 240, 232, 0.1);
  transition: background 0.3s ease;
}
.wizard-step-line.active {
  background: linear-gradient(90deg, #C6A44E, #34D399);
}

/* Next button (step 1) */
.wizard-next-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.7rem 1.75rem;
  background: linear-gradient(135deg, #C6A44E, #D4B85C);
  color: #1E2235;
  border: none; border-radius: 10px;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(198, 164, 78, 0.3);
}
.wizard-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(198, 164, 78, 0.45);
}

/* Step 2 — Subcategory rows */
.wizard-subs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 0.5rem;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-sub-group-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-muted, #A09888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  padding-left: 4px;
}
.wizard-sub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 1rem 1.15rem;
  background: rgba(42, 48, 80, 0.55);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 240, 232, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.4rem;
  text-align: left;
}
.wizard-sub-row:hover {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(42, 48, 80, 0.8);
  transform: translateX(4px);
}
.wizard-sub-row.selected {
  border-color: #34D399;
  background: rgba(52, 211, 153, 0.08);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.1);
}
.wizard-sub-row .wsr-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 240, 232, 0.04);
  border-radius: 10px;
}
.wizard-sub-row.selected .wsr-icon {
  background: rgba(52, 211, 153, 0.15);
}
.wizard-sub-row .wsr-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.wizard-sub-row .wsr-label {
  font-size: 0.88rem; font-weight: 600;
  color: var(--cream, #FAFAF6);
}
.wizard-sub-row .wsr-count {
  font-size: 0.72rem;
  color: var(--cream-muted, #A09888);
}
.wizard-sub-row .wsr-check {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 240, 232, 0.06);
  border: 2px solid rgba(245, 240, 232, 0.1);
  border-radius: 50%;
  color: transparent;
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.wizard-sub-row.selected .wsr-check {
  background: #34D399;
  border-color: #34D399;
  color: #1E2235;
}

/* Step 2 footer */
.wizard-footer-2 {
  position: sticky;
  bottom: 0;
  background: rgba(30, 34, 53, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0 0 16px 16px;
  margin-top: 0.75rem;
}
.wizard-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.6rem 1.15rem;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 10px;
  color: var(--cream-dim, #D0C9BC);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wizard-back-btn:hover {
  background: rgba(245, 240, 232, 0.12);
  color: var(--cream, #FAFAF6);
}
.wizard-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wizard-sel-count {
  font-size: 0.78rem;
  color: var(--cream-muted, #A09888);
  white-space: nowrap;
}
.wizard-start-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Subcategories area */
.wizard-subs-area {
  padding: 0 0.5rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-subs-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wizard-subs-title i {
  color: #34D399;
  font-size: 0.8rem;
}

/* Legacy accordion (kept for compat) */
.wizard-inline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wizard-inline-cat {
  background: rgba(42, 48, 80, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 240, 232, 0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--trans-slow);
}
.wizard-inline-cat.expanded {
  border-color: rgba(52, 211, 153, 0.2);
}
.wizard-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: background var(--trans);
}
.wizard-cat-header:hover { background: rgba(52, 211, 153, 0.03); }
.wizard-cat-icon { font-size: 1.5rem; flex-shrink: 0; }
.wizard-cat-text { flex: 1; min-width: 0; }
.wizard-cat-name { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: var(--cream); display: block; }
.wizard-cat-count { font-size: 0.72rem; color: var(--cream-muted); display: block; margin-top: 2px; }
.wizard-cat-chevron {
  color: var(--cream-muted); font-size: 0.7rem;
  transition: transform 0.25s; flex-shrink: 0;
}
.wizard-cat-chevron.rotated { transform: rotate(180deg); color: #34D399; }
.wizard-cat-arrow {
  color: var(--cream-muted); font-size: 0.7rem; flex-shrink: 0;
  transition: color var(--trans);
}
.wizard-cat-header:hover .wizard-cat-arrow { color: #34D399; }

/* Subcategory chips — multi-select */
.wizard-sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.15rem 1rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-sub-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.6rem 1rem;
  background: rgba(52, 211, 153, 0.04);
  border: 1.5px solid rgba(52, 211, 153, 0.12);
  border-radius: 12px;
  cursor: pointer; font-size: 0.82rem; font-weight: 500;
  color: var(--cream-dim); transition: all 0.2s ease;
  position: relative;
}
.wizard-sub-chip .wsc-icon { font-size: 1rem; flex-shrink: 0; }
.wizard-sub-chip .wsc-label { white-space: nowrap; }
.wizard-sub-chip .wsc-count { font-size: 0.68rem; color: var(--cream-muted); opacity: 0.7; }
.wizard-sub-chip .wsc-check {
  font-size: 0.65rem; color: #1E2235;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border-radius: 50%;
  opacity: 0; transform: scale(0.5);
  transition: all 0.2s ease;
}
.wizard-sub-chip:hover {
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--cream);
  background: rgba(52, 211, 153, 0.08);
}
.wizard-sub-chip.selected {
  border-color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  color: var(--cream);
}
.wizard-sub-chip.selected .wsc-check {
  opacity: 1; transform: scale(1);
  background: #34D399;
}

/* Wizard footer — sticky confirm */
.wizard-footer {
  position: sticky;
  bottom: 0;
  background: rgba(30, 34, 53, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(52, 211, 153, 0.15);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0 0 16px 16px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-selected-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.wizard-selected-summary .ws-labels {
  font-size: 0.78rem;
  color: var(--cream);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wizard-selected-summary .ws-total {
  font-size: 0.68rem;
  color: var(--cream-muted);
}
.wizard-start-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #34D399, #059669);
  color: #1E2235;
  border: none; border-radius: 10px;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.3);
}
.wizard-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.45);
}

/* ═══ CUSTOMIZE PANEL ═══ */
.md-customize-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--cream-dim);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 48, 80, 0.6);
  border: 1px solid rgba(245, 240, 232, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.md-customize-btn:hover,
.md-customize-btn.active {
  background: rgba(198, 164, 78, 0.1);
  border-color: rgba(198, 164, 78, 0.3);
  color: var(--gold, #C6A44E);
}
.md-customize-panel {
  background: rgba(42, 48, 80, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(198, 164, 78, 0.12);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.md-cust-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.md-cust-title i { color: var(--gold, #C6A44E); font-size: 0.8rem; }
.md-cust-toggles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.md-cust-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.75rem;
  background: rgba(30, 34, 53, 0.5);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--cream-dim);
  transition: background 0.2s ease;
  position: relative;
}
.md-cust-toggle:hover { background: rgba(30, 34, 53, 0.8); }
.md-cust-toggle i { color: var(--cream-muted); font-size: 0.75rem; width: 18px; text-align: center; }
.md-cust-toggle span:first-of-type { flex: 1; }
.md-cust-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 36px; height: 20px;
  background: rgba(245, 240, 232, 0.1);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.md-cust-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--cream-muted);
  border-radius: 50%;
  transition: all 0.2s ease;
}
.md-cust-toggle input[type="checkbox"]:checked {
  background: rgba(52, 211, 153, 0.3);
}
.md-cust-toggle input[type="checkbox"]:checked::after {
  left: 18px;
  background: #34D399;
}
.md-toggle-slider { display: none; }

/* ═══ UPCOMING CLASSES ═══ */
.md-classes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.md-class-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(42, 48, 80, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 240, 232, 0.07);
  border-radius: 14px;
  transition: all 0.2s ease;
}
.md-class-card:hover {
  border-color: rgba(198, 164, 78, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.md-class-left { flex-shrink: 0; }
.md-class-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.5rem 0.75rem;
  background: rgba(198, 164, 78, 0.08);
  border: 1px solid rgba(198, 164, 78, 0.2);
  border-radius: 10px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: #C6A44E;
  white-space: nowrap;
}
.md-class-countdown.urgent {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34D399;
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
  50% { box-shadow: 0 0 12px rgba(52, 211, 153, 0.2); }
}
.md-class-info { flex: 1; min-width: 0; }
.md-class-trainer {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream, #FAFAF6);
  margin-bottom: 2px;
}
.md-class-topic {
  font-size: 0.8rem;
  color: var(--cream-dim, #D0C9BC);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.md-class-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--cream-muted, #A09888);
}
.md-class-meta i { margin-right: 3px; }
.md-class-action { flex-shrink: 0; }
.md-class-join {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, #34D399, #059669);
  color: #1E2235;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.25);
}
.md-class-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .md-next-step { flex-direction: column; gap: 0.85rem; }
  .md-next-thumb { width: 100%; }
  .md-reco-grid, .md-continue-grid { grid-template-columns: 1fr 1fr; }
  .md-trainers-grid { grid-template-columns: 1fr; }
  .md-header-bar { flex-direction: column; align-items: flex-start; }
  .md-header-right {
    width: 100%;
    flex-wrap: wrap;
  }
  .md-greeting { font-size: 1.3rem; }
  .md-stats-row { flex-direction: column; }
  .md-stat-card { min-width: unset; }
  .md-cust-toggles { grid-template-columns: 1fr; }
  .wizard-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .md-reco-grid, .md-continue-grid { grid-template-columns: 1fr; }
  .md-wrap {
    padding: 0.85rem 0.65rem;
    gap: 1rem;
  }
  .wizard-hero h2 { font-size: 1.12rem; }
  .md-next-title { font-size: 0.9rem; }
  .wizard-cat-grid { grid-template-columns: 1fr 1fr; }
  .wizard-cat-card { padding: 0.85rem 0.65rem; }
  .wizard-cat-card .wcc-name { font-size: 0.74rem; }
  .md-class-card { flex-wrap: wrap; }
  .md-class-action { width: 100%; }
  .md-class-join { width: 100%; justify-content: center; }
  .md-change-path {
    flex: 1 1 150px;
    justify-content: center;
  }
  .wizard-footer-2 { flex-direction: column; gap: 0.75rem; }
  .wizard-footer-right { width: 100%; justify-content: space-between; }
}
