/* ═══════════════════════════════════════════════════════════════════════════
   HEDEXUS V2 – Premium Fitness Portal CSS
   Brand: Navy #192350 | Accent #7071AC | Warm Beige #F6E9E5 | Text #121212
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  --navy:        #192350;
  --navy-d:      #0f1a3a;
  --navy-light:  #2a3a6e;
  --accent:      #7071AC;
  --accent-l:    #9091c8;
  --beige:       #F6E9E5;
  --beige-d:     #edd8d0;
  --bg:          #FDFDFC;
  --surface:     #FFFFFF;
  --text:        #121212;
  --muted:       #6b7280;
  --border:      #e8e8ec;
  --success:     #2d7d5a;
  --success-l:   #d4f0e3;
  --danger:      #c0392b;
  --danger-l:    #fde8e6;
  --warn-bg:     #fef7ee;
  --warn-border: #f0a04e;
  --radius:      14px;
  --radius-sm:   9px;
  --radius-xs:   6px;
  --shadow-sm:   0 1px 4px rgba(25,35,80,0.07);
  --shadow:      0 3px 14px rgba(25,35,80,0.10);
  --shadow-lg:   0 8px 30px rgba(25,35,80,0.14);
  --font-head:   'Bricolage Grotesque', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'DM Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition:  0.22s ease;
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.brand-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2.5px;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}
.brand-logo span { color: var(--beige); }
.admin-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── MAIN LAYOUT ─────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px 56px;
}
.main-content.admin-page { max-width: 1020px; padding-top: 24px; }

/* ── HOME HERO ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  margin: 0 -16px;
  padding: 44px 28px 40px;
  text-align: center;
  color: #fff;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 10px;
  opacity: 0.85;
}
.hero-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── PROGRAM CARDS ────────────────────────────────────────────────────────── */
.program-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 8px;
}
.program-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 18px;
}
.program-card:hover, .program-card:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  outline: none;
}
.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.card-icon-wrap--armlift  { background: #e8eaf8; }
.card-icon-wrap--bodylift { background: #fce7f3; }
.card-body-text { flex: 1; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.card-desc  { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.card-arrow { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* ── SAFETY NOTICE ───────────────────────────────────────────────────────── */
.safety-notice {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #7a5c2e;
  line-height: 1.55;
  margin-bottom: 0;
}
.safety-notice strong { display: block; margin-bottom: 3px; }

/* ── ENTRY PAGE ──────────────────────────────────────────────────────────── */
.entry-section { padding: 28px 0 16px; }
.entry-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}
.entry-icon { font-size: 2.4rem; margin-bottom: 12px; }
.entry-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.entry-sub { font-size: 0.9rem; opacity: 0.8; line-height: 1.5; }

.entry-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.entry-form { display: flex; flex-direction: column; gap: 14px; }

/* ── FORMS ────────────────────────────────────────────────────────────────── */
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112,113,172,0.15);
}
.form-group { display: flex; flex-direction: column; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-full  { width: 100%; }
.btn-sm    { padding: 8px 14px; font-size: 0.82rem; }

.btn-navy   { background: var(--navy);   color: #fff; }
.btn-navy:hover   { background: var(--navy-d); box-shadow: var(--shadow); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-l); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #205f41; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-danger-outline {
  background: transparent;
  border: 2px solid #f5c0bb;
  color: var(--danger);
  font-size: 0.82rem;
  padding: 8px 14px;
}
.btn-danger-outline:hover { background: var(--danger-l); }

/* ── ALERTS ──────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.alert-error   { background: var(--danger-l);  border-left: 4px solid var(--danger);  color: #7c1a22; }
.alert-success { background: var(--success-l); border-left: 4px solid var(--success); color: #1b4332; }
.alert-icon    { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

/* ── BACK LINK ───────────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.back-link:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════════════════
   QUIZ V2 – One question per card, animated
   ═══════════════════════════════════════════════════════════════════════════ */
.quiz-outer {
  padding: 20px 0 40px;
}
.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.quiz-prog-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.quiz-prog-bar-outer {
  flex: 1;
  margin: 0 14px;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.quiz-prog-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Consent card */
.consent-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.consent-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}
.consent-checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Question slides */
.quiz-slides-wrap { position: relative; overflow: hidden; }

.quiz-slide {
  display: none;
  animation: slideIn 0.3s ease;
}
.quiz-slide.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}

.quiz-slide-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.q-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: #eeeef8;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.q-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.3;
}
.q-options-v2 { display: flex; flex-direction: column; gap: 10px; }

.q-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  gap: 12px;
}
.q-btn:hover   { border-color: var(--accent); background: #f5f5fb; }
.q-btn:active  { transform: scale(0.98); }
.q-btn.selected {
  border-color: var(--navy);
  background: #e8eaf8;
  color: var(--navy);
  font-weight: 600;
}
.q-btn-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.q-btn.selected .q-btn-dot {
  border-color: var(--navy);
  background: var(--navy);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}
.quiz-nav .btn-prev {
  background: none;
  border: 2px solid var(--border);
  color: var(--muted);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.quiz-nav .btn-prev:hover { border-color: var(--navy); color: var(--navy); }
.quiz-nav .btn-next {
  flex: 1;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
}
.quiz-nav .btn-next:hover  { background: var(--navy-d); }
.quiz-nav .btn-next:active { transform: scale(0.97); }
.quiz-nav .btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* hidden real form */
#quizHiddenForm { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   PREPARATION SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */
.prep-outer {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.prep-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.prep-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.prep-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.prep-steps { text-align: left; margin-bottom: 28px; }
.prep-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
}
.prep-step.show   { opacity: 1; transform: translateX(0); }
.prep-step.done   { color: var(--success); }
.prep-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: border-color 0.3s, background 0.3s;
}
.prep-step.done .prep-step-dot {
  border-color: var(--success);
  background: var(--success-l);
  color: var(--success);
}
.prep-step.active .prep-step-dot { border-color: var(--accent); }

.prep-bar-outer {
  background: var(--border);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.prep-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s ease;
}
.prep-complete-text {
  display: none;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.prep-complete-text.show { display: block; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTAL / DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */
.portal-hero {
  background: linear-gradient(150deg, var(--navy-d) 0%, var(--navy) 60%, var(--navy-light) 100%);
  margin: 0 -16px;
  padding: 28px 24px 24px;
  color: #fff;
}
.portal-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.welcome-eyebrow { font-size: 0.78rem; opacity: 0.7; margin-bottom: 3px; letter-spacing: 0.5px; }
.welcome-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.welcome-plan-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  margin-top: 6px;
  opacity: 0.9;
}
.portal-change-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.portal-change-btn:hover { background: rgba(255,255,255,0.22); }

.progress-block { }
.progress-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 7px;
  opacity: 0.88;
}
.progress-bar-outer {
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  height: 9px;
  overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg, #b7e4c7, #95d5b2);
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s ease;
}
.progress-pct { font-size: 0.75rem; opacity: 0.7; margin-top: 5px; text-align: right; }

/* Today card */
.today-card-section { padding: 20px 0 4px; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.today-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.today-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.today-card-day {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  flex-shrink: 0;
}
.today-day-num  { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.today-day-lbl  { font-size: 0.68rem; opacity: 0.7; margin-top: 2px; }
.today-card-info { flex: 1; text-align: left; }
.today-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.today-card-tags  { display: flex; flex-wrap: wrap; gap: 5px; }
.today-card-arrow { font-size: 1.1rem; opacity: 0.6; flex-shrink: 0; }

.all-done-card {
  background: var(--success-l);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--success);
  border: 2px solid #a3d9c2;
}
.all-done-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.all-done-card p  { font-size: 0.88rem; opacity: 0.85; }

/* No quiz state */
.no-quiz-section { padding: 28px 0; }
.no-quiz-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.no-quiz-icon  { font-size: 2.8rem; margin-bottom: 14px; }
.no-quiz-card h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.no-quiz-card p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

/* Week groups */
.days-section { padding: 16px 0 8px; }
.days-heading  { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.week-group  { margin-bottom: 18px; }
.week-label  {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.days-list { display: flex; flex-direction: column; gap: 8px; }

/* Day cards */
.day-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.day-card--done  { background: #f6fdf9; border-color: #b7dfc9; }
.day-card--next  {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112,113,172,0.12);
}
.day-card--future { opacity: 0.65; }

.day-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.day-number-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.1;
}
.day-card--done  .day-number-badge { background: var(--success-l); }
.day-card--next  .day-number-badge { background: #eeeef8; color: var(--accent); }
.day-num-big  { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.day-card--next  .day-num-big { color: var(--accent); }
.day-card--done  .day-num-big { color: var(--success); }
.check-mark { font-size: 1.3rem; }

.day-meta { flex: 1; min-width: 0; }
.day-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.day-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}
.tag-duration   { background: #dbeafe; color: #1e40af; }
.tag-difficulty { background: #fef3c7; color: #92400e; }
.tag-target     { background: #ede9fe; color: #5b21b6; }

.day-toggle-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
  border-radius: 6px;
}
.day-toggle-btn:hover { color: var(--navy); background: var(--bg); }
.day-toggle-btn.open  { transform: rotate(180deg); }

/* Day detail body */
.day-card-body {
  padding: 0 15px 16px;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.day-purpose-block {
  margin-top: 14px;
  background: var(--beige);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 14px;
}

.day-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 7px;
  margin-top: 14px;
}
.day-ex-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.day-ex-list li { font-size: 0.88rem; line-height: 1.45; color: var(--text); }

/* Video block */
.video-block {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-block iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.video-open-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  width: 100%;
  margin-top: 14px;
  transition: background var(--transition);
}
.video-open-btn:hover { background: var(--navy-d); }
.video-title-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

/* Safety / technique */
.technique-tip {
  font-size: 0.83rem;
  background: #eeeef8;
  color: var(--accent);
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  margin-top: 10px;
  line-height: 1.5;
}
.day-safety {
  font-size: 0.8rem;
  color: #7a5c2e;
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  margin-top: 10px;
  line-height: 1.5;
}
.motivation-msg {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
  padding: 10px 12px;
  background: #f5f5fb;
  border-radius: var(--radius-xs);
}

/* Action buttons inside day */
.day-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.completed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--success);
  font-weight: 600;
  padding: 10px 0 4px;
}
.completed-check { font-size: 1.2rem; }

/* Portal actions bar */
.portal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0 8px;
}

/* Reset modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 22px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-box h3   { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.modal-box p    { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }
.modal-actions  { display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-title { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: 22px; }
.admin-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.admin-section-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }

/* Analytics stat cards */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}
.stat-card-val  { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card-lbl  { font-size: 0.75rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.stat-card-icon { font-size: 1.2rem; margin-bottom: 6px; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 8px; }
.mini-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.mini-table tr:last-child td { border-bottom: none; }
.mini-bar-row { display: flex; align-items: center; gap: 8px; }
.mini-bar-outer { flex: 1; height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.mini-bar-fill  { height: 100%; background: var(--accent); border-radius: 4px; }
.mini-bar-val   { font-size: 0.78rem; color: var(--muted); flex-shrink: 0; min-width: 22px; text-align: right; }

.export-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Admin form */
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.checkbox-label input { accent-color: var(--navy); width: 16px; height: 16px; }

/* Admin table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 600px;
}
.admin-table th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

.prog-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 600;
  margin: 2px;
}
.prog-tag--armlift  { background: #dbeafe; color: #1e40af; }
.prog-tag--bodylift { background: #fce7f3; color: #9d174d; }

.plan-cell     { margin-bottom: 3px; font-size: 0.82rem; }
.prog-label    { font-weight: 600; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; margin-right: 3px; }
.text-muted    { color: var(--muted); }
.text-center   { text-align: center; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 22px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}
.disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 8px;
}
.footer-brand { font-size: 0.72rem; color: #c4c9d1; margin-top: 4px; }

/* ── MISC ─────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-sm { font-size: 0.82rem; }
.text-muted-sm { font-size: 0.78rem; color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-title     { font-size: 1.45rem; }
  .welcome-name   { font-size: 1.3rem; }
  .form-row       { grid-template-columns: 1fr; }
  .portal-hero    { padding-left: 16px; padding-right: 16px; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .portal-hero-top { flex-direction: column; gap: 10px; }
}
@media (min-width: 600px) {
  .program-cards   { flex-direction: row; }
  .program-card    { flex: 1; }
  .program-cards   { flex-direction: column; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   V2.1 ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Today banner ────────────────────────────────────────────────────────── */
.today-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eeeef8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 16px 0 4px;
  flex-wrap: wrap;
}
.today-banner-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.today-banner-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.today-banner-btn:hover { background: var(--navy-d); }
.today-banner-arrow { font-size: 1rem; }

/* ── Compact day selector ────────────────────────────────────────────────── */
.day-selector-section { padding: 16px 0 4px; }
.day-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 0 8px;
}
.day-dot {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.day-dot:hover        { border-color: var(--accent); background: #eeeef8; }
.day-dot:active       { transform: scale(0.92); }
.day-dot--done        { background: var(--success-l); border-color: #9fd4bc; color: var(--success); font-size: 1rem; }
.day-dot--active      { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 3px rgba(25,35,80,0.18); }
.day-dot--done.day-dot--active { background: var(--navy); color: #fff; }

/* ── Day detail panel ────────────────────────────────────────────────────── */
.day-detail-section { padding: 12px 0 4px; }
.day-detail-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.25s ease;
}
.day-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.day-detail-num-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.day-detail-num-badge.done { background: var(--success-l); color: var(--success); font-size: 1.5rem; }
.day-detail-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* ── Video placeholder ───────────────────────────────────────────────────── */
.video-section { margin-top: 14px; }
.video-placeholder {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 14px;
  text-align: center;
}

/* ── Recreate plan button ─────────────────────────────────────────────────── */
.portal-recreate-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.portal-recreate-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Admin login page ─────────────────────────────────────────────────────── */
.login-outer { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 58px); padding: 24px 16px; }


/* ═══════════════════════════════════════════════════════════════════════════
   V2.2 – TOP VIDEO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.top-video-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 18px 0 4px;
  overflow: hidden;
}
.top-video-header {
  padding: 14px 16px 10px;
}
.top-video-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.top-video-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.top-video-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.top-video-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.top-video-wrap {
  width: 100%;
  background: #000;
}
.top-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.top-video-note {
  font-size: 0.74rem;
  color: var(--muted);
  padding: 8px 16px 12px;
  line-height: 1.5;
  font-style: italic;
}
.top-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   V2.2 – ENTRY FORM second field (name input)
   Already handled by existing .form-group / .form-input — no extra rules needed.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   V2.2 UI – Header website link + Product CTA block
   ═══════════════════════════════════════════════════════════════════════════ */

/* "Ana Sayfaya Git" link in the header */
.header-website-link {
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  letter-spacing: 0.2px;
}
.header-website-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Product purchase CTA shown on program_access_denied */
.product-cta-block {
  background: #f0f4ff;
  border: 1.5px solid #c7d0f0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-cta-text {
  font-size: 0.86rem;
  color: var(--navy);
  line-height: 1.55;
  margin: 0;
}
