/* ═══════════════════════════════════════════════════════════════════════════
   EXERINA 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-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; }

.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--locked      { background: #f3f4f6; border-color: #d8dbe3; color: #7a7f8f; opacity: 0.72; font-size: 0; cursor: not-allowed; }
.day-dot--locked::after { content: "BLOQ"; font-size: 0.58rem; font-weight: 800; letter-spacing: 0; }
.day-dot--paywall     { background: #fff4e5; border-color: #f0b66d; color: #8a5200; font-size: 0; cursor: pointer; }
.day-dot--paywall::after { content: "PRO"; font-size: 0.68rem; font-weight: 900; letter-spacing: 0; }
.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;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AŞAMA 2 – SHARED: Logo + Ürün Görseli Bileşenleri
   (login ve dashboard aynı stili paylaşır)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared logo (login + dashboard) ─────────────────────────────────────── */
.login-logo-wrap,
.dashboard-logo-wrap {
  text-align: center;
  margin-bottom: 20px;
}
.login-logo-img,
.dashboard-logo-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.login-logo-fallback,
.dashboard-logo-fallback {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--navy);
  text-transform: uppercase;
  display: block;
  text-align: center;
}

/* ── Shared product image block ───────────────────────────────────────────── */
/* Container: square, centred, neutral background */
.dash-card-img-wrap,
.login-product-img-wrap {
  position: relative;
  width: 100%;
  background: var(--beige);
  /* Keep square aspect for 500×500 source images */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real product image — contained so nothing gets cropped */
.dash-card-img,
.login-product-img {
  max-width: 100%;
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}
.dash-card--open:hover .dash-card-img { transform: scale(1.04); }

/* Fallback emoji — visible only when image fails */
.dash-card-img-fallback,
.login-product-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  pointer-events: none;
}
/* Hide fallback when image loads */
.dash-card-img-wrap:not(.dash-card-img-wrap--fallback) .dash-card-img-fallback,
.login-product-img-wrap:not(.login-product-img-wrap--fallback) .login-product-img-fallback {
  display: none;
}

/* Locked overlay on image */
.dash-card--locked .dash-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AŞAMA 2 – LOGIN PAGE (yeni görsel tasarım)
   ═══════════════════════════════════════════════════════════════════════════ */

.login-page-section {
  padding: 28px 0 32px;
}

/* Product preview row above the form */
.login-products-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}
.login-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 200px;
}
.login-product-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

/* Form card */
.login-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.login-form-header {
  text-align: center;
  margin-bottom: 20px;
}
.login-form-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}
.login-form-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AŞAMA 2 – DASHBOARD (Ürün Kartlı Ana Ekran)
   ═══════════════════════════════════════════════════════════════════════════ */

.dashboard-section {
  padding: 28px 0 32px;
}

/* Greeting */
.dashboard-greeting {
  text-align: center;
  margin-bottom: 28px;
}
.dashboard-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.dashboard-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.dashboard-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Cards grid */
.dashboard-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

/* Individual card */
.dash-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.dash-card--open   { border-color: var(--accent); }
.dash-card--locked { border-color: var(--border); opacity: 0.88; }
.dash-card--open:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Card body */
.dash-card-body {
  padding: 18px 18px 20px;
}
.dash-card-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dash-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.dash-badge--open   { background: var(--success-l); color: var(--success); }
.dash-badge--locked { background: #f3f4f6; color: var(--muted); }

.dash-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.dash-card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 7px;
  line-height: 1.2;
}
.dash-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.dash-cta-btn { width: 100%; justify-content: center; }

.dash-locked-msg {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f9f9fb;
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--border);
}

/* Responsive */
@media (min-width: 560px) {
  .dashboard-section  { padding: 36px 0 40px; }
  .dashboard-cards    { flex-direction: row; }
  .dash-card          { flex: 1; }
  .login-page-section { padding: 36px 0 40px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AŞAMA 3 – PROFILES (Profil Seçim Ekranı)
   ═══════════════════════════════════════════════════════════════════════════ */

.profiles-section { padding: 28px 0 36px; }

.profiles-header {
  text-align: center;
  margin-bottom: 24px;
}
.profiles-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.profiles-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Profile card list */
.profile-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Base card */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.profile-card--open {
  cursor: pointer;
}
.profile-card--open:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.profile-card--locked {
  border-color: #e5e7eb;
  opacity: 0.92;
}

/* Card inner row */
.profile-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

/* Avatar circle */
.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.profile-card--locked .profile-avatar { background: var(--muted); }

.profile-card-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.profile-default-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #eeeef8;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.profile-card-arrow { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.profile-lock-icon  { font-size: 1.1rem; flex-shrink: 0; }

/* Inline PIN form inside locked card */
.profile-pin-form {
  padding: 0 16px 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.profile-pin-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-pin-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  letter-spacing: 0.15em;
}
.profile-pin-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
  line-height: 1.4;
}

/* New profile section */
.new-profile-wrap {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.new-profile-wrap:hover { border-color: var(--accent); }

.new-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.new-profile-plus {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.new-profile-label {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.new-profile-toggle-icon {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.new-profile-form {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Profile limit notice */
.profile-limit-notice {
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #7a5c2e;
  line-height: 1.5;
  margin-bottom: 16px;
}
.profile-limit-notice p { margin: 0; }

/* Exerina customer login */
.ex-login-page {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 44px 16px 58px;
  background:
    radial-gradient(circle at 12% 16%, rgba(235, 218, 255, 0.82), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(206, 232, 255, 0.76), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff7fb 45%, #f5f9ff 100%);
}

.ex-login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ex-login-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.45;
  animation: exLoginFloat 12s ease-in-out infinite alternate;
}

.ex-login-blob-one {
  top: 9%;
  left: max(-90px, 4vw);
  background: #ead8ff;
}

.ex-login-blob-two {
  right: max(-110px, 5vw);
  bottom: 12%;
  background: #dff0ff;
  animation-delay: -4s;
}

.ex-login-blob-three {
  left: 48%;
  bottom: -130px;
  background: #ffdce9;
  animation-delay: -7s;
}

.ex-login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  margin: 0 auto;
}

.ex-login-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.ex-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.ex-login-logo {
  width: min(190px, 58vw);
  max-height: 74px;
  object-fit: contain;
  display: block;
}

.ex-login-logo-text {
  color: #172554;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ex-login-copy {
  text-align: center;
}

.ex-login-kicker {
  margin: 0 0 8px;
  color: #6f5ca8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ex-login-copy h1 {
  margin: 0;
  color: #172554;
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.ex-login-copy p:last-child {
  max-width: 390px;
  margin: 12px auto 0;
  color: #52627a;
  font-size: 1rem;
  line-height: 1.6;
}

.ex-login-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(42, 56, 105, 0.16);
  backdrop-filter: blur(18px);
}

.ex-auth-tabs {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(112, 91, 168, 0.13);
  border-radius: 14px;
  background: rgba(246, 241, 255, 0.86);
}

.ex-auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #48556d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ex-auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #23346f, #7a64bc);
  box-shadow: 0 10px 22px rgba(35, 52, 111, 0.2);
}

.ex-auth-tab:focus-visible,
.ex-login-form .form-input:focus-visible,
.ex-login-submit:focus-visible,
.ex-login-actions a:focus-visible {
  outline: 3px solid rgba(122, 100, 188, 0.36);
  outline-offset: 3px;
}

.ex-login-form {
  display: grid;
  gap: 16px;
}

.ex-login-form .form-label {
  color: #263550;
  font-weight: 800;
}

.ex-login-form .form-input {
  min-height: 52px;
  border: 1.5px solid rgba(112, 91, 168, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #172554;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ex-login-form .form-input:focus {
  border-color: #7a64bc;
  box-shadow: 0 0 0 4px rgba(122, 100, 188, 0.14);
}

.ex-login-submit {
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #172554, #6d5ab3);
  box-shadow: 0 16px 32px rgba(35, 52, 111, 0.24);
}

.ex-login-submit:hover {
  background: linear-gradient(135deg, #1f3670, #806bc4);
}

.ex-login-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.ex-login-actions .back-link {
  margin: 0;
  color: #5e4da1;
  font-weight: 800;
}

.ex-login-trust {
  max-width: 390px;
  margin: 0 auto;
  color: #46546b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.ex-login-install {
  margin-top: 4px;
}

@keyframes exLoginFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

@media (max-width: 560px) {
  .ex-login-page {
    min-height: calc(100vh - 64px);
    padding: 30px 12px 42px;
  }

  .ex-login-card {
    padding: 18px;
    border-radius: 16px;
  }

  .ex-auth-tabs {
    grid-template-columns: 1fr;
  }

  .ex-login-copy p:last-child,
  .ex-login-trust {
    font-size: 0.92rem;
  }

  .ex-login-blob {
    width: 220px;
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-login-blob,
  .ex-auth-tab,
  .ex-login-submit {
    animation: none;
    transition: none;
  }
}

/* Premium animated Exerina login */
.ex-login-page-premium {
  min-height: calc(100vh - 72px);
  padding: 34px 18px 54px;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 212, 232, 0.92), transparent 27%),
    radial-gradient(circle at 80% 12%, rgba(204, 230, 255, 0.82), transparent 28%),
    radial-gradient(circle at 52% 88%, rgba(223, 207, 255, 0.78), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff7fb 42%, #f4f9ff 100%);
}

.ex-login-shell-wide {
  width: min(1180px, 100%);
}

.ex-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  min-height: calc(100vh - 168px);
}

.ex-login-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ex-login-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 30px;
  color: #172554;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
}

.ex-login-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #172554, #876dda 58%, #ff9fc7);
  box-shadow: 0 14px 30px rgba(58, 53, 115, 0.22);
}

.ex-login-copy-left {
  max-width: 610px;
  text-align: left;
}

.ex-login-copy-left .ex-login-kicker {
  color: #6d5ab3;
}

.ex-login-copy-left h1 {
  max-width: 570px;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
}

.ex-login-copy-left p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: #43536d;
  font-size: 1.1rem;
}

.ex-hero-stage {
  position: relative;
  height: 330px;
  margin-top: 26px;
}

.ex-armlift-showcase {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(390px, 78vw);
  height: 190px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 34px rgba(38, 45, 91, 0.16));
  animation: exHeroDrift 8s ease-in-out infinite;
}

.ex-band {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 78px;
  border-radius: 999px;
  border: 12px solid currentColor;
  background: rgba(255, 255, 255, 0.52);
  transform-origin: center;
  opacity: 0;
  animation: exBandCycle 9s ease-in-out infinite;
}

.ex-band::before,
.ex-band::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.ex-band::before { left: -36px; }
.ex-band::after { right: -36px; }

.ex-band-rose {
  color: #ff9fc7;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.ex-band-blue {
  color: #97d8ff;
  transform: translate(-50%, -50%) rotate(7deg);
  animation-delay: 3s;
}

.ex-band-lilac {
  color: #a994ee;
  transform: translate(-50%, -50%) rotate(0deg);
  animation-delay: 6s;
}

.ex-band-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #172554;
  font-family: var(--font-head);
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 24px 54px rgba(35, 52, 111, 0.16);
}

.ex-mini-card {
  position: absolute;
  display: grid;
  grid-template-columns: 38px auto;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #253551;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(35, 52, 111, 0.12);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: exMiniReveal 10s ease-in-out infinite;
}

.ex-mini-card svg {
  width: 38px;
  height: 38px;
  color: #7461bd;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ex-mini-card-one { left: 2%; top: 10%; animation-delay: 0.2s; }
.ex-mini-card-two { right: 8%; top: 3%; animation-delay: 1s; }
.ex-mini-card-three { left: 8%; bottom: 20%; animation-delay: 1.8s; }
.ex-mini-card-four { right: 0; bottom: 22%; animation-delay: 2.6s; }
.ex-mini-card-five { left: 34%; bottom: 2%; animation-delay: 3.4s; }
.ex-mini-card-six { right: 24%; top: 43%; animation-delay: 4.2s; }

.ex-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ex-hero-benefits span,
.ex-login-trust-grid span {
  border: 1px solid rgba(109, 90, 179, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #263550;
  font-size: 0.83rem;
  font-weight: 800;
  padding: 9px 12px;
}

.ex-login-panel-right {
  width: 100%;
}

.ex-login-card-premium {
  padding: clamp(24px, 4vw, 34px);
}

.ex-card-heading {
  margin-bottom: 20px;
  text-align: left;
}

.ex-card-heading p {
  margin: 0 0 8px;
  color: #6d5ab3;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.ex-card-heading h2 {
  margin: 0;
  color: #172554;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
}

.ex-login-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 20px;
}

.ex-login-trust-grid span {
  display: block;
  text-align: center;
}

@keyframes exHeroDrift {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
  50% { transform: translate(-50%, calc(-50% - 14px)) rotate(1.5deg); }
}

@keyframes exBandCycle {
  0%, 9% { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) rotate(var(--band-rotate, 0deg)) scale(0.94); }
  16%, 42% { opacity: 1; }
  50%, 100% { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) rotate(var(--band-rotate, 0deg)) scale(1.03); }
}

.ex-band-rose { --band-rotate: -8deg; }
.ex-band-blue { --band-rotate: 7deg; }
.ex-band-lilac { --band-rotate: 0deg; }

@keyframes exMiniReveal {
  0%, 12% { opacity: 0; transform: translateY(18px) rotate(-2deg); }
  20%, 70% { opacity: 1; transform: translateY(0) rotate(0deg); }
  88%, 100% { opacity: 0; transform: translateY(-12px) rotate(2deg); }
}

@media (max-width: 920px) {
  .ex-login-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ex-login-hero {
    min-height: 560px;
  }

  .ex-login-copy-left {
    text-align: center;
    margin: 0 auto;
  }

  .ex-login-copy-left p:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .ex-login-wordmark,
  .ex-hero-benefits {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .ex-login-page-premium {
    padding: 24px 12px 42px;
  }

  .ex-login-hero {
    min-height: 500px;
  }

  .ex-hero-stage {
    height: 260px;
    margin-top: 18px;
  }

  .ex-armlift-showcase {
    width: 270px;
    height: 150px;
  }

  .ex-band {
    width: 226px;
    height: 62px;
    border-width: 9px;
  }

  .ex-band::before,
  .ex-band::after {
    width: 42px;
    height: 23px;
  }

  .ex-band-core {
    width: 116px;
    height: 116px;
    font-size: 0.86rem;
  }

  .ex-mini-card {
    min-width: auto;
    grid-template-columns: 30px;
    justify-items: center;
    gap: 4px;
    padding: 8px 9px;
    font-size: 0.72rem;
  }

  .ex-mini-card svg {
    width: 30px;
    height: 30px;
  }

  .ex-mini-card-one { left: 0; top: 8%; }
  .ex-mini-card-two { right: 0; top: 4%; }
  .ex-mini-card-three { left: 2%; bottom: 18%; }
  .ex-mini-card-four { right: 2%; bottom: 18%; }
  .ex-mini-card-five { left: 36%; bottom: 0; }
  .ex-mini-card-six { right: 20%; top: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-armlift-showcase,
  .ex-band,
  .ex-mini-card {
    animation: none;
  }

  .ex-band-rose,
  .ex-mini-card {
    opacity: 1;
  }

  .ex-band-blue,
  .ex-band-lilac {
    opacity: 0.32;
  }
}

/* Clean premium customer login */
.ex-login-clean {
  min-height: calc(100vh - 112px);
  display: flex;
  align-items: center;
  padding: 34px 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 220, 235, 0.9), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(209, 235, 255, 0.86), transparent 31%),
    linear-gradient(135deg, #ffffff 0%, #fff8fc 45%, #f3f8ff 100%);
}

.ex-login-clean-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ex-login-clean-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.48;
  animation: exCleanGlow 12s ease-in-out infinite alternate;
}

.ex-login-clean-glow-one {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 8%;
  background: #f2d6ff;
}

.ex-login-clean-glow-two {
  width: 310px;
  height: 310px;
  right: -100px;
  bottom: 8%;
  background: #cfeaff;
  animation-delay: -5s;
}

.ex-login-clean-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
}

.ex-login-clean-hero {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ex-login-clean-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 30px;
  color: #172554;
  font-family: var(--font-head);
  font-size: 1.32rem;
  font-weight: 800;
}

.ex-login-clean-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #172554 0%, #7660c5 58%, #ff9ec5 100%);
  box-shadow: 0 14px 30px rgba(35, 52, 111, 0.22);
}

.ex-login-clean-copy {
  max-width: 560px;
}

.ex-login-clean-kicker {
  margin: 0 0 10px;
  color: #6d5ab3;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ex-login-clean-copy h1 {
  margin: 0;
  color: #172554;
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.ex-login-clean-copy p:last-child {
  max-width: 500px;
  margin: 18px 0 0;
  color: #465772;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ex-login-product {
  position: relative;
  width: min(430px, 80vw);
  height: 190px;
  margin-top: 34px;
  filter: drop-shadow(0 30px 34px rgba(35, 52, 111, 0.16));
  animation: exCleanProductFloat 8s ease-in-out infinite;
}

.ex-login-band {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  height: 76px;
  border: 11px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--rotate));
  animation: exCleanBand 9s ease-in-out infinite;
}

.ex-login-band::before,
.ex-login-band::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 52px;
  height: 29px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.ex-login-band::before { left: -34px; }
.ex-login-band::after { right: -34px; }

.ex-login-band-rose {
  --rotate: -7deg;
  color: #ff9ec5;
}

.ex-login-band-blue {
  --rotate: 7deg;
  color: #93d6ff;
  animation-delay: 3s;
}

.ex-login-band-lilac {
  --rotate: 0deg;
  color: #a690ea;
  animation-delay: 6s;
}

.ex-login-product-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #172554;
  font-family: var(--font-head);
  font-size: 0.96rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 22px 46px rgba(35, 52, 111, 0.13);
}

.ex-login-clean-card {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 70px rgba(35, 52, 111, 0.16);
  backdrop-filter: blur(18px);
}

.ex-login-card-head {
  margin-bottom: 22px;
}

.ex-login-card-head p {
  margin: 0 0 8px;
  color: #6d5ab3;
  font-size: 0.82rem;
  font-weight: 800;
}

.ex-login-card-head h2 {
  margin: 0;
  color: #172554;
  font-family: var(--font-head);
  font-size: 2.15rem;
  line-height: 1.1;
}

.ex-login-card-head span {
  display: block;
  margin-top: 9px;
  color: #52627a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ex-login-clean-form {
  display: grid;
  gap: 16px;
}

.ex-login-clean-form .form-label {
  color: #263550;
  font-weight: 800;
}

.ex-login-clean-form .form-input {
  min-height: 52px;
  border: 1.5px solid rgba(109, 90, 179, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  color: #172554;
}

.ex-login-clean-form .form-input:focus {
  border-color: #7660c5;
  box-shadow: 0 0 0 4px rgba(118, 96, 197, 0.15);
}

.ex-login-clean-submit {
  min-height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, #172554, #715bc0);
  box-shadow: 0 16px 32px rgba(35, 52, 111, 0.23);
}

.ex-login-clean-submit:hover {
  background: linear-gradient(135deg, #1f3670, #806ad0);
}

.ex-login-clean-links {
  display: grid;
  gap: 9px;
  justify-items: center;
  margin-top: 17px;
}

.ex-login-clean-links .back-link {
  margin: 0;
  color: #5d4ea3;
  font-weight: 800;
}

.ex-login-clean-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ex-login-clean-benefits span {
  flex: 1 1 auto;
  border: 1px solid rgba(109, 90, 179, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #263550;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  padding: 8px 10px;
}

@keyframes exCleanGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(20px, -18px, 0) scale(1.08); }
}

@keyframes exCleanProductFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.2deg); }
}

@keyframes exCleanBand {
  0%, 10% { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) rotate(var(--rotate)) scale(0.96); }
  18%, 46% { opacity: 1; }
  58%, 100% { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) rotate(var(--rotate)) scale(1.03); }
}

@media (max-width: 860px) {
  .ex-login-clean {
    align-items: flex-start;
    min-height: auto;
    padding-top: 28px;
  }

  .ex-login-clean-shell {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    gap: 22px;
  }

  .ex-login-clean-hero {
    min-height: auto;
    text-align: center;
  }

  .ex-login-clean-wordmark,
  .ex-login-product {
    margin-left: auto;
    margin-right: auto;
  }

  .ex-login-clean-copy {
    margin: 0 auto;
  }

  .ex-login-clean-copy p:last-child {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .ex-login-clean {
    padding: 22px 12px 34px;
  }

  .ex-login-clean-copy h1 {
    font-size: 2.55rem;
  }

  .ex-login-product {
    width: 290px;
    height: 138px;
    margin-top: 20px;
  }

  .ex-login-band {
    width: 230px;
    height: 58px;
    border-width: 8px;
  }

  .ex-login-band::before,
  .ex-login-band::after {
    width: 38px;
    height: 21px;
  }

  .ex-login-band::before { left: -27px; }
  .ex-login-band::after { right: -27px; }

  .ex-login-product-core {
    width: 96px;
    height: 96px;
    font-size: 0.82rem;
  }

  .ex-login-clean-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-login-clean-glow,
  .ex-login-product,
  .ex-login-band,
  .ex-login-clean-submit,
  .ex-login-clean-form .form-input {
    animation: none;
    transition: none;
  }

  .ex-login-band-rose {
    opacity: 1;
  }

  .ex-login-band-blue,
  .ex-login-band-lilac {
    opacity: 0.35;
  }
}

/* Final customer login: image hero + premium card */
.ex-login-app {
  width: 100vw;
  min-height: calc(100vh - 58px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 14%, rgba(219, 207, 255, 0.72), transparent 30%),
    radial-gradient(circle at 18% 86%, rgba(204, 232, 255, 0.7), transparent 28%),
    linear-gradient(135deg, #f9fbff 0%, #fff6fb 45%, #eef6ff 100%);
}

.ex-login-app-shell {
  width: min(1160px, 100%);
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 22px;
  align-items: stretch;
}

.ex-login-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(25, 35, 80, 0.18), rgba(112, 113, 172, 0.18)),
    url('/img/exerina-login-hero.webp'),
    url('/img/exerina-login-hero.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(25, 35, 80, 0.16);
}

.ex-login-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: exHeroImageScale 18s ease-in-out infinite alternate;
}

.ex-login-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 20, 50, 0.68) 0%, rgba(12, 20, 50, 0.28) 48%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(0deg, rgba(12, 20, 50, 0.52), rgba(12, 20, 50, 0.02) 55%);
}

.ex-login-visual-copy {
  position: absolute;
  left: clamp(24px, 4.5vw, 54px);
  bottom: clamp(28px, 6vw, 64px);
  width: min(460px, calc(100% - 48px));
  color: #fff;
  animation: exFadeRise 0.8s ease both;
}

.ex-login-visual-copy p {
  margin: 0 0 12px;
  color: #f5d7eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ex-login-visual-copy h1 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.ex-login-visual-copy span,
.ex-login-visual-copy strong {
  display: block;
  max-width: 390px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.ex-login-visual-copy span {
  color: rgba(255, 255, 255, 0.94);
}

.ex-login-visual-copy strong {
  margin-top: 6px;
  color: #ffffff;
  font-weight: 800;
}

.ex-login-card-wrap {
  display: flex;
  align-items: center;
}

.ex-login-card-panel {
  width: 100%;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 28px 70px rgba(25, 35, 80, 0.14);
  backdrop-filter: blur(18px);
}

.ex-login-card-title,
.ex-login-form-pro .form-group,
.ex-login-button-pro,
.ex-login-links-pro,
.ex-login-benefits-pro,
.ex-login-note-pro {
  opacity: 0;
  animation: exSlideInRight 0.7s ease forwards;
}

.ex-login-card-title { animation-delay: 0.05s; }
.ex-login-form-pro .form-group:nth-child(1) { animation-delay: 0.13s; }
.ex-login-form-pro .form-group:nth-child(2) { animation-delay: 0.21s; }
.ex-login-button-pro { animation-delay: 0.29s; }
.ex-login-links-pro { animation-delay: 0.37s; }
.ex-login-benefits-pro { animation-delay: 0.45s; }
.ex-login-note-pro { animation-delay: 0.53s; }

.ex-login-card-title {
  margin-bottom: 22px;
}

.ex-login-card-title p {
  margin: 0 0 8px;
  color: #7071ac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ex-login-card-title h2 {
  margin: 0;
  color: #192350;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.ex-login-card-title span {
  display: block;
  margin-top: 10px;
  color: #5a667a;
  font-size: 0.96rem;
  line-height: 1.55;
}

.ex-login-form-pro {
  display: grid;
  gap: 16px;
}

.ex-login-form-pro .form-label {
  color: #263550;
  font-weight: 800;
}

.ex-login-form-pro .form-input {
  min-height: 54px;
  border: 1.5px solid rgba(112, 113, 172, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #192350;
  font-size: 1rem;
}

.ex-login-form-pro .form-input:focus {
  border-color: #7071ac;
  box-shadow: 0 0 0 4px rgba(112, 113, 172, 0.16);
}

.ex-login-button-pro {
  min-height: 54px;
  margin-top: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #192350, #7071ac);
  box-shadow: 0 16px 34px rgba(25, 35, 80, 0.22);
}

.ex-login-button-pro:hover {
  background: linear-gradient(135deg, #24346f, #8283c2);
}

.ex-login-links-pro {
  display: grid;
  gap: 9px;
  justify-items: center;
  margin-top: 18px;
}

.ex-login-links-pro .back-link {
  margin: 0;
  color: #5e60a7;
  font-weight: 800;
  text-align: center;
}

.ex-login-benefits-pro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ex-login-benefits-pro span {
  flex: 1 1 auto;
  min-width: 116px;
  padding: 8px 10px;
  border: 1px solid rgba(112, 113, 172, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #263550;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.ex-login-note-pro {
  margin: 18px auto 0;
  color: #566277;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

@keyframes exHeroImageScale {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@keyframes exFadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes exSlideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .ex-login-app {
    min-height: auto;
    padding: 18px 12px 34px;
  }

  .ex-login-app-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    width: min(560px, 100%);
  }

  .ex-login-visual {
    min-height: clamp(260px, 58vw, 340px);
    border-radius: 22px 22px 0 0;
  }

  .ex-login-hero-img {
    object-position: center top;
  }

  .ex-login-visual-copy {
    left: 22px;
    bottom: 22px;
    width: calc(100% - 44px);
  }

  .ex-login-visual-copy h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .ex-login-visual-copy span,
  .ex-login-visual-copy strong {
    max-width: 330px;
    font-size: 0.94rem;
  }

  .ex-login-card-wrap {
    margin-top: -22px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
  }

  .ex-login-card-panel {
    border-radius: 22px;
    padding: 24px 18px;
  }
}

@media (max-width: 420px) {
  .ex-login-app {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ex-login-visual {
    min-height: 282px;
  }

  .ex-login-card-title h2 {
    font-size: 1.78rem;
  }

  .ex-login-benefits-pro span {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-login-hero-img,
  .ex-login-visual-copy,
  .ex-login-card-title,
  .ex-login-form-pro .form-group,
  .ex-login-button-pro,
  .ex-login-links-pro,
  .ex-login-benefits-pro,
  .ex-login-note-pro {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Shared Exerina auth/profile surfaces */
.ex-auth-page,
.ex-profile-page {
  width: 100vw;
  min-height: calc(100vh - 58px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 34px 16px 52px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 220, 235, 0.78), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(209, 235, 255, 0.74), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fff8fc 45%, #f3f8ff 100%);
}

.ex-auth-shell {
  width: min(520px, 100%);
  margin: 0 auto;
}

.ex-auth-brand,
.ex-profile-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto 20px;
  color: #192350;
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 800;
}

.ex-auth-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #192350, #7071ac 58%, #ff9ec5);
  box-shadow: 0 14px 30px rgba(25, 35, 80, 0.18);
}

.ex-auth-card,
.ex-new-profile-wrap,
.ex-profile-page .profile-card,
.ex-profile-inline-form,
.ex-profile-page .profile-photo-panel,
.ex-profile-page .profile-limit-notice {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 62px rgba(25, 35, 80, 0.12);
  backdrop-filter: blur(16px);
}

.ex-auth-card {
  padding: clamp(24px, 5vw, 34px);
}

.ex-auth-heading {
  margin-bottom: 22px;
  text-align: center;
}

.ex-auth-heading p {
  margin: 0 0 8px;
  color: #7071ac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ex-auth-heading h1 {
  margin: 0;
  color: #192350;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  line-height: 1.08;
}

.ex-auth-heading span {
  display: block;
  margin-top: 10px;
  color: #5a667a;
  font-size: 0.96rem;
  line-height: 1.56;
}

.ex-auth-tabs-soft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(112, 113, 172, 0.16);
  border-radius: 14px;
  background: rgba(246, 241, 255, 0.86);
}

.ex-auth-tab-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #48556d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.ex-auth-tab-soft.active {
  color: #fff;
  background: linear-gradient(135deg, #192350, #7071ac);
  box-shadow: 0 10px 22px rgba(25, 35, 80, 0.18);
}

.ex-auth-form {
  display: grid;
  gap: 16px;
}

.ex-auth-form .form-label,
.ex-profile-page .form-label {
  color: #263550;
  font-weight: 800;
}

.ex-auth-form .form-input,
.ex-profile-page .form-input {
  min-height: 52px;
  border: 1.5px solid rgba(112, 113, 172, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #192350;
}

.ex-auth-form .form-input:focus,
.ex-profile-page .form-input:focus {
  border-color: #7071ac;
  box-shadow: 0 0 0 4px rgba(112, 113, 172, 0.16);
}

.ex-auth-submit {
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #192350, #7071ac);
  box-shadow: 0 16px 32px rgba(25, 35, 80, 0.2);
}

.ex-auth-secondary-form {
  margin-top: 12px;
}

.ex-auth-back {
  display: block;
  margin: 18px 0 0;
  text-align: center;
}

.ex-auth-help,
.ex-auth-support {
  margin: 7px 0 0;
  color: #5f6b7f;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ex-auth-support {
  margin-top: 18px;
  text-align: center;
}

.ex-password-field {
  position: relative;
}

.ex-password-field .form-input {
  padding-right: 78px;
}

.ex-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5e60a7;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 8px;
}

.ex-password-toggle:hover,
.ex-password-toggle:focus-visible {
  background: rgba(112, 113, 172, 0.12);
  outline: none;
}

.ex-profile-page {
  padding-left: max(16px, calc((100vw - 620px) / 2));
  padding-right: max(16px, calc((100vw - 620px) / 2));
}

.ex-profile-header {
  margin-bottom: 24px;
}

.ex-profile-page .profile-card {
  overflow: hidden;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ex-profile-page .profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 68px rgba(25, 35, 80, 0.16);
}

.profile-card-inner,
.profile-card--open {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
}

.profile-card-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.profile-card-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-card-description {
  margin: 0;
  color: #5f6b7f;
  font-size: 0.82rem;
  line-height: 1.4;
}

.profile-card-arrow,
.profile-lock-icon {
  align-self: center;
  margin-left: auto;
  flex: 0 0 auto;
  color: #7071ac;
  font-weight: 800;
}

.ex-profile-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
  padding: 12px;
}

.ex-profile-inline-label {
  flex: 1;
  min-width: 150px;
  color: #263550;
  font-size: 0.78rem;
  font-weight: 800;
}

.ex-profile-inline-label .form-input {
  margin-top: 5px;
}

.profile-photo-panel {
  margin: -4px 0 16px;
  padding: 14px;
}

.profile-photo-note {
  margin: 0 0 12px;
  color: #5f6b7f;
  font-size: 0.82rem;
  line-height: 1.55;
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-photo-slot {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(112, 113, 172, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-photo-slot h3 {
  margin: 0 0 8px;
  color: #192350;
  font-size: 0.86rem;
}

.profile-photo-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(112, 113, 172, 0.18);
  margin-bottom: 8px;
  background: #f8fafc;
}

.profile-photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-photo-actions input[type="file"] {
  width: 100%;
  font-size: 0.78rem;
}

.ex-new-profile-wrap {
  overflow: hidden;
}

.ex-profile-empty {
  margin-bottom: 14px;
  padding: 14px 16px;
}

@media (max-width: 560px) {
  .ex-auth-page,
  .ex-profile-page {
    padding: 24px 12px 40px;
  }

  .ex-auth-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .ex-auth-tabs-soft {
    grid-template-columns: 1fr;
  }

  .profile-card-inner,
  .profile-card--open {
    gap: 11px;
    padding: 13px;
  }

  .profile-avatar {
    width: 42px;
    height: 42px;
  }

  .profile-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-profile-page .profile-card,
  .ex-auth-submit {
    transition: none;
  }
}

/* Exerina profiles cleanup */
.ex-profile-page {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  padding: 30px clamp(14px, 3vw, 34px) 46px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 176, 211, 0.32), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(181, 218, 247, 0.34), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #fff7fb 54%, #f6f1ff 100%);
}

.ex-profile-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.ex-profile-brand {
  margin: 0 auto 18px;
}

.ex-profile-header {
  max-width: 680px;
  margin: 0 auto 24px;
}

.ex-profile-header .profiles-title {
  color: #101a3d;
  letter-spacing: 0;
}

.ex-profile-header .profiles-sub {
  color: #5c677d;
}

.ex-profile-alert {
  margin: 0 auto 14px;
  max-width: 760px;
}

.ex-profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin: 0 0 18px;
}

.ex-profile-manage-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(30, 44, 92, 0.12);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.ex-profile-manage-card .profile-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ex-profile-manage-card .profile-card:hover {
  transform: none;
  box-shadow: none;
}

.ex-profile-manage-card .profile-card--open,
.ex-profile-manage-card .profile-card-inner {
  min-height: 112px;
  padding: 20px;
  gap: 16px;
}

.ex-profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #f6bdd7 0%, #aeb8ff 50%, #a9ddf4 100%);
  color: #101a3d;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76), 0 16px 34px rgba(99, 110, 165, 0.22);
}

.ex-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-profile-avatar-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: linear-gradient(135deg, #f6bdd7 0%, #aeb8ff 50%, #a9ddf4 100%);
}

.ex-profile-page .profile-card-name {
  color: #101a3d;
  font-size: 1.06rem;
  font-weight: 900;
}

.ex-profile-page .profile-card-description {
  margin-top: 4px;
  color: #627089;
  font-size: 0.91rem;
  line-height: 1.45;
}

.ex-profile-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #101a3d;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(16, 26, 61, 0.18);
}

.ex-profile-card-tools {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.ex-profile-page .ex-profile-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(112, 113, 172, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(255, 247, 251, 0.94));
  box-shadow: none;
}

.ex-profile-page .ex-profile-inline-label {
  min-width: 0;
  color: #263550;
  font-size: 0.79rem;
  font-weight: 850;
}

.ex-profile-page .ex-profile-inline-label .form-input {
  min-height: 46px;
  margin-top: 6px;
}

.ex-profile-photo-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(16, 26, 61, 0.045);
  color: #25304c;
}

.ex-profile-photo-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f29cc6, #8abced);
  box-shadow: 0 0 0 7px rgba(242, 156, 198, 0.12);
}

.ex-profile-photo-hint strong {
  display: block;
  font-size: 0.84rem;
  color: #101a3d;
}

.ex-profile-photo-hint p {
  margin: 2px 0 0;
  color: #68748a;
  font-size: 0.82rem;
}

.ex-profile-photo-hint a {
  color: #101a3d;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.ex-profile-photo-hint a:hover {
  text-decoration: underline;
}

.ex-profile-page .profile-pin-form {
  margin: 0 18px 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.ex-profile-page .ex-new-profile-wrap,
.ex-profile-page .profile-limit-notice {
  max-width: 720px;
  margin: 18px auto 0;
}

.ex-profile-page .ex-new-profile-wrap {
  border: 1px dashed rgba(112, 113, 172, 0.34);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 56px rgba(30, 44, 92, 0.1);
}

.ex-profile-back {
  text-align: center;
  padding: 18px 0 0;
}

@media (max-width: 760px) {
  .ex-profile-page {
    padding: 24px 12px 38px;
  }

  .ex-profile-cards {
    grid-template-columns: 1fr;
  }

  .ex-profile-manage-card .profile-card--open,
  .ex-profile-manage-card .profile-card-inner {
    align-items: flex-start;
    padding: 16px;
  }

  .ex-profile-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 19px;
  }

  .ex-profile-continue {
    display: none;
  }

  .ex-profile-page .ex-profile-inline-form {
    grid-template-columns: 1fr;
  }

  .ex-profile-photo-hint {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ex-profile-photo-hint a {
    grid-column: 2;
  }
}

/* Exerina portal redesign */
.ex-portal-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: 28px clamp(14px, 3vw, 34px) 46px;
  background:
    radial-gradient(circle at 14% 10%, rgba(246, 189, 215, 0.28), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(169, 221, 244, 0.3), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #fff7fb 52%, #f6f1ff 100%);
}

.ex-portal-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ex-portal-hero {
  position: relative;
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(16, 26, 61, 0.98), rgba(40, 47, 101, 0.96) 58%, rgba(112, 113, 172, 0.88)),
    #101a3d;
  box-shadow: 0 34px 90px rgba(22, 34, 80, 0.2);
}

.ex-portal-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: min(48vw, 540px);
  height: min(48vw, 540px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 189, 215, 0.34), rgba(169, 221, 244, 0.12) 46%, transparent 72%);
  pointer-events: none;
}

.ex-portal-hero-top {
  position: relative;
  z-index: 1;
  align-items: stretch;
  gap: 26px;
}

.ex-portal-hero-copy {
  min-width: 0;
}

.ex-portal-hero-text {
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.ex-portal-meta-row,
.ex-portal-plan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.ex-portal-meta-row {
  margin-top: 16px;
}

.ex-portal-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 760;
}

.ex-portal-plan-actions {
  margin-top: 14px;
}

.ex-portal-plan-actions form {
  margin: 0;
}

.ex-portal-progress {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.ex-portal-progress .progress-bar-header,
.ex-portal-progress .progress-pct {
  color: rgba(255, 255, 255, 0.9);
}

.ex-portal-progress .progress-bar-outer {
  background: rgba(255, 255, 255, 0.18);
}

.ex-portal-card,
.ex-portal-day-strip-card,
.ex-portal-routine-card,
.ex-portal-empty-card,
.ex-portal-complete-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(30, 44, 92, 0.12);
  backdrop-filter: blur(16px);
}

.ex-portal-card {
  max-width: none;
  margin: 0 0 18px;
  padding: 20px;
}

.ex-portal-card-head,
.ex-portal-preferences-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.ex-portal-card-head h2,
.ex-portal-preferences-head h3,
.ex-portal-day-strip-card h2 {
  margin: 0;
  color: #101a3d;
  font-size: 1.05rem;
  line-height: 1.3;
}

.ex-portal-card-head p,
.ex-portal-note-card p,
.ex-portal-checkin-card p {
  margin: 6px 0 0;
  color: #5c677d;
  line-height: 1.58;
}

.ex-portal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(112, 113, 172, 0.12);
  color: #192350;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.ex-portal-status-pill.is-done {
  background: rgba(42, 176, 111, 0.13);
  color: #168650;
}

.ex-portal-status-pill.is-current {
  background: #192350;
  color: #fff;
}

.ex-portal-push-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f8fc;
  color: #192350;
  font-size: 0.84rem;
  line-height: 1.5;
}

.ex-portal-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.ex-portal-push-preferences {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(112, 113, 172, 0.16);
}

.ex-portal-preferences-head label,
.ex-portal-days-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #192350;
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
}

.ex-portal-preferences-head input,
.ex-portal-days-picker input {
  width: 17px;
  height: 17px;
  accent-color: #192350;
}

.ex-portal-days-picker {
  margin-top: 16px;
}

.ex-portal-days-picker > p,
.ex-portal-time-field {
  margin: 0 0 8px;
  color: #192350;
  font-size: 0.8rem;
  font-weight: 850;
}

.ex-portal-days-picker [data-push-days] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.ex-portal-days-picker label {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(112, 113, 172, 0.18);
  border-radius: 14px;
  background: #fff;
}

.ex-portal-time-field {
  display: block;
  margin-top: 16px;
}

.ex-portal-time-field input {
  display: block;
  width: min(190px, 100%);
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(112, 113, 172, 0.22);
  border-radius: 14px;
  background: #fff;
  color: #192350;
  font: inherit;
}

.ex-portal-checkin-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.ex-portal-empty-section {
  padding: 8px 0 0;
}

.ex-portal-empty-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px;
}

.ex-portal-today-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(30, 44, 92, 0.1);
}

.ex-portal-today-banner .today-banner-btn {
  min-width: 0;
  border-radius: 999px;
}

.ex-portal-complete-card {
  margin: 0 0 18px;
  padding: 20px;
}

.ex-portal-complete-card h3 {
  color: #168650;
}

.ex-portal-program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  align-items: start;
  gap: 18px;
}

.ex-portal-day-panel,
.ex-portal-day-strip-card {
  min-width: 0;
}

.ex-portal-day-panel {
  padding: 0;
}

.ex-portal-routine-card {
  padding: clamp(20px, 3vw, 30px);
}

.ex-portal-routine-head {
  align-items: center;
  gap: 16px;
}

.ex-portal-routine-head > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.ex-portal-routine-card .day-detail-title {
  color: #101a3d;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.ex-portal-routine-card .day-detail-num-badge {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f6bdd7 0%, #aeb8ff 54%, #a9ddf4 100%);
  color: #101a3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76), 0 16px 34px rgba(99, 110, 165, 0.22);
}

.ex-portal-routine-card .day-detail-num-badge.done {
  background: rgba(42, 176, 111, 0.13);
  color: #168650;
}

.ex-portal-routine-card .day-purpose-block,
.ex-portal-routine-card .technique-tip,
.ex-portal-routine-card .day-safety,
.ex-portal-routine-card .motivation-msg {
  border-radius: 18px;
}

.ex-portal-routine-card .day-purpose-block {
  background: linear-gradient(135deg, #fff7fb, #f7f8ff);
}

.ex-portal-routine-card .day-section-title {
  margin-top: 20px;
  color: #192350;
  font-size: 0.78rem;
}

.ex-portal-routine-card .day-ex-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.ex-portal-routine-card .day-ex-list li {
  position: relative;
  padding: 11px 12px 11px 34px;
  border: 1px solid rgba(112, 113, 172, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.ex-portal-routine-card .day-ex-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7071ac;
}

.ex-portal-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}

.ex-portal-video-grid article {
  min-width: 0;
}

.ex-portal-video-grid p {
  margin: 0 0 7px;
  color: #192350;
  font-size: 0.84rem;
  font-weight: 800;
}

.ex-portal-page .ex-portal-video-grid article {
  overflow: hidden;
  border: 1px solid rgba(112, 113, 172, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 44, 92, 0.08);
}

.ex-portal-page .ex-portal-video-grid article > p {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(112, 113, 172, 0.12);
}

.ex-portal-page .ex-portal-video-placeholder {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed rgba(112, 113, 172, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7fb 0%, #f6f8ff 100%);
  color: #5c677d;
}

.ex-portal-page .ex-portal-video-placeholder strong {
  color: #192350;
  font-size: 0.95rem;
}

.ex-portal-page .ex-portal-video-placeholder span {
  font-size: 0.86rem;
  line-height: 1.5;
}

.ex-portal-routine-card .day-actions {
  gap: 10px;
  margin-top: 22px;
}

.ex-portal-routine-card .day-actions .btn-outline {
  align-self: flex-start;
}

.ex-portal-locked-card {
  min-height: 280px;
  display: grid;
  align-content: center;
}

.ex-portal-day-strip-card {
  position: sticky;
  top: 82px;
  padding: 20px;
}

.ex-portal-day-strip-card .day-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ex-portal-day-strip-card .day-dot {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 16px;
  font-size: 0.9rem;
  box-shadow: none;
}

.ex-portal-day-strip-card .day-dot--done {
  background: rgba(42, 176, 111, 0.12);
  color: #168650;
  border-color: rgba(42, 176, 111, 0.24);
}

.ex-portal-day-strip-card .day-dot--locked {
  background: #f2f3f7;
  color: #8a91a3;
  border-color: #dde1ea;
  opacity: 1;
}

.ex-portal-day-strip-card .day-dot--locked::after {
  content: "\1F512";
  font-size: 0.65rem;
  font-weight: 900;
}

.ex-portal-day-strip-card .day-dot--paywall {
  background: #fff4e5;
  color: #8a5200;
  border-color: #f0b66d;
}

.ex-portal-day-strip-card .day-dot--paywall::after {
  content: "Pro";
  font-size: 0.7rem;
  font-weight: 900;
}

.ex-portal-day-strip-card .day-dot--active {
  background: #192350;
  color: #fff;
  border-color: #192350;
  box-shadow: 0 0 0 4px rgba(25, 35, 80, 0.12);
}

.ex-portal-legend {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #68748a;
  font-size: 0.78rem;
}

.ex-portal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ex-portal-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c9ceda;
}

.ex-portal-legend .is-done { background: #168650; }
.ex-portal-legend .is-current { background: #192350; }
.ex-portal-legend .is-locked { background: #c9ceda; }
.ex-portal-legend .is-paywall { background: #f0b66d; }

.ex-portal-reset-row {
  margin-top: 18px;
  justify-content: flex-end;
}

.ex-portal-back {
  padding: 20px 0 0;
}

.ex-portal-modal .modal-box {
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(16, 26, 61, 0.22);
}

.ex-portal-modal .modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ex-portal-modal .modal-actions form {
  margin: 0;
}

.ex-portal-complete-modal {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ex-portal-complete-modal #confettiCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.ex-portal-complete-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: rgba(42, 176, 111, 0.13);
  color: #168650;
  font-size: 2rem;
}

.ex-portal-complete-modal h3 {
  color: #168650;
}

.ex-portal-complete-modal > p {
  color: #68748a;
  line-height: 1.55;
}

.ex-portal-calories {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 16px;
  background: #f7f8fc;
  color: #192350;
}

.ex-portal-calories p {
  margin: 6px 0 0;
  color: #68748a;
  font-size: 0.76rem;
  line-height: 1.5;
}

.ex-portal-modal-actions {
  display: grid;
  gap: 9px;
}

@media (max-width: 980px) {
  .ex-portal-program-grid {
    grid-template-columns: 1fr;
  }

  .ex-portal-day-strip-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .ex-portal-page {
    padding: 22px 12px 38px;
  }

  .ex-portal-hero {
    border-radius: 26px;
    padding: 22px 18px;
  }

  .ex-portal-hero-top,
  .ex-portal-card-head,
  .ex-portal-preferences-head,
  .ex-portal-routine-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ex-portal-hero .portal-change-btn {
    width: 100%;
    justify-content: center;
  }

  .ex-portal-routine-card {
    padding: 18px;
  }

  .ex-portal-routine-card .day-detail-num-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .ex-portal-day-strip-card .day-selector {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .ex-portal-day-strip-card .day-dot {
    height: 42px;
    border-radius: 14px;
  }

  .ex-portal-modal .modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ex-portal-day-strip-card .day-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-portal-page *,
  .ex-portal-page *::before,
  .ex-portal-page *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Exerina dashboard */
.ex-dashboard-page {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100vh - 58px);
  padding: clamp(18px, 2.8vw, 34px);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 14%, rgba(255, 214, 231, 0.72), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(202, 233, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff8fc 42%, #f3f8ff 100%);
}

.ex-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 24px;
  width: min(1420px, 100%);
  margin: 0 auto;
}

.ex-dashboard-profile-panel,
.ex-dashboard-welcome-card,
.ex-dashboard-card,
.ex-dashboard-routine-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 68px rgba(25, 35, 80, 0.12);
  backdrop-filter: blur(18px);
}

.ex-dashboard-profile-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 520px;
  padding: 34px 26px;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 236, 245, 0.9), rgba(255, 255, 255, 0.74) 46%),
    rgba(255, 255, 255, 0.82);
}

.ex-dashboard-avatar-wrap {
  width: clamp(104px, 12vw, 154px);
  height: clamp(104px, 12vw, 154px);
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd4e6, #ffffff 45%, #d9ecff);
  box-shadow: 0 22px 48px rgba(25, 35, 80, 0.16);
}

.ex-dashboard-avatar-img,
.ex-dashboard-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ex-dashboard-avatar-img {
  object-fit: cover;
}

.ex-dashboard-avatar-initials {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  background: linear-gradient(145deg, #192350, #7071ac 62%, #ff8fbd);
}

.ex-dashboard-profile-copy h1,
.ex-dashboard-welcome-card h2,
.ex-dashboard-routine-card h2,
.ex-dashboard-card h2 {
  color: #192350;
  letter-spacing: 0;
}

.ex-dashboard-profile-copy h1 {
  margin: 2px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.ex-dashboard-profile-copy p,
.ex-dashboard-welcome-card p,
.ex-dashboard-routine-card p,
.ex-dashboard-card p {
  color: #526078;
}

.ex-dashboard-profile-copy p {
  max-width: 230px;
  margin: 0 auto;
}

.ex-dashboard-kicker {
  margin: 0 0 6px;
  color: #7071ac;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ex-dashboard-access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #192350;
  background: rgba(210, 203, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.ex-dashboard-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: 15px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(112, 113, 172, 0.08);
}

.ex-dashboard-profile-stats div + div {
  border-left: 1px solid rgba(112, 113, 172, 0.18);
}

.ex-dashboard-profile-stats span,
.ex-dashboard-metrics strong {
  display: block;
  color: #192350;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.ex-dashboard-profile-stats small,
.ex-dashboard-metrics span {
  display: block;
  margin-top: 5px;
  color: #6a7288;
  font-size: 0.74rem;
  font-weight: 700;
}

.ex-dashboard-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 224, 237, 0.98), rgba(233, 240, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
  text-align: left;
}

.ex-dashboard-mini-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #192350;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 35, 80, 0.1);
}

.ex-dashboard-mini-icon::before,
.ex-dashboard-mini-icon::after {
  content: "";
  position: absolute;
}

.ex-dashboard-mini-icon::before {
  width: 17px;
  height: 20px;
  border: 2px solid #7071ac;
  border-radius: 9px 9px 6px 6px;
}

.ex-dashboard-mini-icon::after {
  width: 20px;
  height: 2px;
  bottom: 10px;
  border-radius: 99px;
  background: #ff9ec5;
}

.ex-dashboard-mini-card strong {
  display: block;
  color: #192350;
  font-size: 0.9rem;
}

.ex-dashboard-mini-card p {
  margin: 2px 0 0;
  color: #5d687d;
  font-size: 0.78rem;
  line-height: 1.4;
}

.ex-dashboard-main-panel {
  min-width: 0;
}

.ex-dashboard-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  align-items: center;
  min-height: 136px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(25, 35, 80, 0.1);
}

.ex-dashboard-welcome-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.08;
}

.ex-dashboard-welcome-card p {
  max-width: 620px;
  margin: 0;
  font-size: 0.98rem;
}

.ex-dashboard-wave {
  position: relative;
  min-height: 96px;
}

.ex-dashboard-wave::before,
.ex-dashboard-wave::after,
.ex-dashboard-wave span {
  content: "";
  position: absolute;
  left: 2%;
  right: -8%;
  bottom: 8px;
  height: 58px;
  border-radius: 55% 45% 0 0;
  transform: skewX(-10deg);
}

.ex-dashboard-wave::before {
  background: rgba(255, 160, 198, 0.38);
}

.ex-dashboard-wave::after {
  bottom: -2px;
  left: 20%;
  background: rgba(133, 209, 255, 0.36);
}

.ex-dashboard-wave span {
  bottom: 18px;
  left: 35%;
  background: rgba(112, 113, 172, 0.34);
}

.ex-dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.ex-dashboard-primary-column,
.ex-dashboard-side-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ex-dashboard-routine-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  gap: 16px;
  min-height: 292px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(112, 113, 172, 0.52), transparent 34%),
    linear-gradient(135deg, #0f1a3a 0%, #192350 56%, #24376f 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ex-dashboard-routine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(ellipse at 82% 72%, rgba(255, 194, 219, 0.22), transparent 48%);
  pointer-events: none;
}

.ex-dashboard-routine-card:hover,
.ex-dashboard-routine-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 30px 76px rgba(25, 35, 80, 0.22);
}

.ex-dashboard-routine-card--locked {
  color: #192350;
  background: rgba(255, 255, 255, 0.76);
}

.ex-dashboard-routine-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
  margin: 12px 0 12px;
  color: inherit;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.ex-dashboard-routine-card .ex-dashboard-routine-copy p {
  max-width: 430px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.ex-dashboard-routine-card--locked .ex-dashboard-routine-copy p {
  color: #526078;
}

.ex-dashboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #192350;
  background: #ffd1e4;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ex-dashboard-pill--muted {
  color: #5f6b7f;
  background: #eef0f7;
}

.ex-dashboard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 14px;
  color: #192350;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.ex-dashboard-cta::after {
  content: "›";
  margin-left: 14px;
  font-size: 1.5rem;
  line-height: 0;
}

.ex-dashboard-routine-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 232px;
  overflow: hidden;
}

.ex-dashboard-routine-visual::before {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -20px;
  width: min(92%, 380px);
  aspect-ratio: 1 / 0.62;
  border-radius: 48% 52% 0 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 211, 229, 0.48), transparent 44%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(137, 211, 255, 0.18));
  filter: blur(1px);
}

.ex-dashboard-routine-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: 270px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.28));
  transform: translate(18px, 12px);
}

.ex-dashboard-card {
  padding: 22px;
  border-radius: 22px;
}

.ex-dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ex-dashboard-section-head h2,
.ex-dashboard-resource-list h2 {
  margin: 0;
  font-size: 1.15rem;
}

.ex-dashboard-section-head a {
  color: #7071ac;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ex-dashboard-profile-list {
  display: grid;
  gap: 10px;
}

.ex-dashboard-profile-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(112, 113, 172, 0.14);
  border-radius: 16px;
  color: #192350;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ex-dashboard-profile-row:hover,
.ex-dashboard-profile-row:focus-visible {
  outline: none;
  border-color: rgba(112, 113, 172, 0.42);
  transform: translateY(-1px);
}

.ex-dashboard-row-avatar,
.ex-dashboard-resource-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #192350;
  background: linear-gradient(135deg, #ffd1e4, #dcecff);
  font-family: var(--font-head);
  font-weight: 800;
}

.ex-dashboard-row-copy {
  display: grid;
  min-width: 0;
}

.ex-dashboard-row-copy strong {
  overflow-wrap: anywhere;
}

.ex-dashboard-row-copy small {
  color: #667085;
  font-size: 0.78rem;
}

.ex-dashboard-row-action {
  margin-left: auto;
  color: #7071ac;
  font-size: 1.8rem;
  line-height: 1;
}

.ex-dashboard-progress-card {
  text-align: center;
}

.ex-dashboard-progress-ring {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 10px auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 54%, transparent 56%),
    conic-gradient(#756df4 0 72%, #f0edff 72% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(112, 113, 172, 0.08),
    0 16px 34px rgba(112, 113, 172, 0.14);
}

.ex-dashboard-progress-ring span {
  color: #192350;
  font-family: var(--font-head);
  font-weight: 800;
}

.ex-dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ex-dashboard-metrics div {
  padding: 13px;
  border-radius: 16px;
  background: rgba(245, 247, 255, 0.86);
}

.ex-dashboard-resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #192350;
  text-decoration: none;
}

.ex-dashboard-resource-card div {
  flex: 1;
  min-width: 0;
}

.ex-dashboard-resource-card h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.ex-dashboard-resource-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ex-dashboard-resource-list {
  display: grid;
  gap: 12px;
}

.ex-dashboard-resource-list div {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border: 1px solid rgba(112, 113, 172, 0.1);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 255, 0.78));
}

.ex-dashboard-resource-list span {
  color: #192350;
  font-weight: 800;
}

.ex-dashboard-resource-list small {
  color: #667085;
}

.ex-dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 18px;
}

.ex-dashboard-real-progress-card,
.ex-dashboard-weight-card {
  min-width: 0;
}

.ex-dashboard-progress-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #192350;
  background: #ebe8ff;
  font-family: var(--font-head);
  font-size: 1rem;
}

.ex-dashboard-linear-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeaf8;
  box-shadow: inset 0 0 0 1px rgba(112, 113, 172, 0.08);
}

.ex-dashboard-linear-progress span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8378f4, #92d7ff);
}

.ex-dashboard-day-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ex-dashboard-day-strip::-webkit-scrollbar {
  display: none;
}

.ex-dashboard-day-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(112, 113, 172, 0.18);
  border-radius: 50%;
  color: #667085;
  background: #f7f8fc;
  font-size: 0.82rem;
  font-weight: 900;
}

.ex-dashboard-day-dot--completed {
  color: #168650;
  border-color: rgba(42, 176, 111, 0.24);
  background: #d8f4e4;
}

.ex-dashboard-day-dot--today {
  color: #fff;
  border-color: #192350;
  background: #192350;
  box-shadow: 0 0 0 5px rgba(25, 35, 80, 0.1);
}

.ex-dashboard-day-dot--locked {
  color: #8a91a3;
  background: #f2f3f7;
}

.ex-dashboard-strip-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 15px;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 800;
}

.ex-dashboard-strip-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ex-dashboard-strip-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ex-dashboard-strip-legend .is-completed { background: #52c887; }
.ex-dashboard-strip-legend .is-today { background: #192350; }
.ex-dashboard-strip-legend .is-locked { background: #c9ceda; }

.ex-dashboard-weight-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 209, 228, 0.44), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.ex-dashboard-weight-value {
  margin: 10px 0 8px;
  color: #192350;
  font-family: var(--font-head);
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.ex-dashboard-weight-value span {
  font-size: 1rem;
  color: #7071ac;
}

.ex-dashboard-weight-placeholder {
  margin: 13px 0 8px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #667085;
  background: rgba(245, 247, 255, 0.86);
  font-weight: 800;
}

.ex-dashboard-footer-actions {
  padding: 18px 0 0;
  text-align: center;
}

@media (max-width: 980px) {
  .ex-dashboard-shell,
  .ex-dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-profile-panel {
    position: static;
    min-height: 0;
  }

  .ex-dashboard-profile-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    text-align: left;
  }

  .ex-dashboard-profile-stats {
    width: 170px;
  }

  .ex-dashboard-mini-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .ex-dashboard-page {
    padding: 16px 12px 28px;
  }

  .ex-dashboard-shell,
  .ex-dashboard-content-grid,
  .ex-dashboard-primary-column,
  .ex-dashboard-side-column {
    gap: 14px;
  }

  .ex-dashboard-profile-panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .ex-dashboard-avatar-wrap {
    width: 92px;
    height: 92px;
  }

  .ex-dashboard-profile-copy h1 {
    font-size: 1.65rem;
  }

  .ex-dashboard-profile-copy p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .ex-dashboard-profile-stats,
  .ex-dashboard-mini-card {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ex-dashboard-welcome-card,
  .ex-dashboard-routine-card {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-welcome-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .ex-dashboard-wave {
    display: none;
  }

  .ex-dashboard-routine-card {
    min-height: 420px;
    padding: 24px 20px;
  }

  .ex-dashboard-routine-card .ex-dashboard-routine-copy {
    justify-content: flex-start;
  }

  .ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
    font-size: 2.25rem;
  }

  .ex-dashboard-routine-visual {
    min-height: 164px;
    margin-top: -18px;
    justify-content: center;
  }

  .ex-dashboard-routine-visual::before {
    right: 50%;
    bottom: -16px;
    width: min(92%, 310px);
    transform: translateX(50%);
  }

  .ex-dashboard-routine-visual img {
    width: min(100%, 320px);
    max-height: 180px;
    object-position: center bottom;
    transform: translateY(12px);
  }

  .ex-dashboard-card {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .ex-dashboard-routine-card {
    min-height: 392px;
  }

  .ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
    font-size: 2rem;
  }

  .ex-dashboard-cta {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-dashboard-routine-card,
  .ex-dashboard-profile-row {
    transition: none;
  }
}

/* Dashboard wide polish */
.ex-dashboard-page {
  padding: clamp(22px, 3.2vw, 44px);
}

.ex-dashboard-app-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(1560px, 100%);
  margin: 0 auto 22px;
}

.ex-dashboard-app-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(112, 113, 172, 0.18);
  border-radius: 14px;
  color: #263550;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(25, 35, 80, 0.08);
}

.ex-dashboard-app-nav a.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #192350, #2d3d78);
}

.ex-dashboard-shell {
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 2.4vw, 34px);
  width: min(1560px, 100%);
}

.ex-dashboard-profile-panel {
  gap: 20px;
  min-height: 620px;
  padding: 40px 30px;
  border-radius: 30px;
}

.ex-dashboard-avatar-wrap {
  width: clamp(128px, 11vw, 176px);
  height: clamp(128px, 11vw, 176px);
  padding: 7px;
}

.ex-dashboard-profile-copy h1 {
  font-size: clamp(2rem, 2.5vw, 2.55rem);
}

.ex-dashboard-profile-copy p {
  max-width: 270px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.ex-dashboard-profile-stats {
  padding: 18px 0;
}

.ex-dashboard-profile-stats span,
.ex-dashboard-metrics strong {
  font-size: 1.45rem;
}

.ex-dashboard-mini-card {
  padding: 17px;
}

.ex-dashboard-welcome-card {
  min-height: 164px;
  margin-bottom: 22px;
  padding: 34px 38px;
  border-radius: 28px;
}

.ex-dashboard-welcome-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.ex-dashboard-content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.68fr);
  gap: 22px;
}

.ex-dashboard-primary-column,
.ex-dashboard-side-column {
  gap: 22px;
}

.ex-dashboard-routine-card {
  grid-template-columns: minmax(360px, 0.92fr) minmax(390px, 1.08fr);
  gap: 26px;
  min-height: 410px;
  padding: clamp(32px, 3.4vw, 48px);
  border-radius: 30px;
}

.ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.98;
}

.ex-dashboard-routine-card .ex-dashboard-routine-copy p {
  max-width: 480px;
  margin-bottom: 30px;
  font-size: 1.06rem;
}

.ex-dashboard-cta {
  min-width: 240px;
  min-height: 58px;
  padding: 16px 28px;
  border-radius: 16px;
}

.ex-dashboard-cta::after {
  content: "\203A";
}

.ex-dashboard-routine-visual {
  min-height: 328px;
  overflow: visible;
}

.ex-dashboard-routine-visual::before {
  right: -40px;
  bottom: -34px;
  width: min(108%, 560px);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 211, 229, 0.42), transparent 44%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(137, 211, 255, 0.14));
  filter: blur(2px);
}

.ex-dashboard-routine-visual img {
  width: min(116%, 610px);
  max-height: 390px;
  filter:
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 34px rgba(255, 209, 228, 0.22));
  transform: translate(30px, 22px);
}

.ex-dashboard-card {
  padding: 26px;
  border-radius: 24px;
}

.ex-dashboard-row-avatar {
  overflow: hidden;
}

.ex-dashboard-row-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.ex-dashboard-resource-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7071ac, #ff9ec5);
}

@media (max-width: 1100px) {
  .ex-dashboard-routine-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  }
}

@media (max-width: 700px) {
  .ex-dashboard-page {
    padding: 16px 12px 28px;
  }

  .ex-dashboard-app-nav {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ex-dashboard-app-nav::-webkit-scrollbar {
    display: none;
  }

  .ex-dashboard-app-nav a {
    min-height: 40px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .ex-dashboard-profile-panel {
    min-height: 0;
    padding: 22px 18px;
  }

  .ex-dashboard-avatar-wrap {
    width: 96px;
    height: 96px;
  }

  .ex-dashboard-welcome-card {
    padding: 22px 18px;
  }

  .ex-dashboard-routine-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 20px 0;
  }

  .ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
    font-size: 2.18rem;
  }

  .ex-dashboard-routine-visual {
    min-height: 188px;
    margin-top: -6px;
    justify-content: center;
    overflow: hidden;
  }

  .ex-dashboard-routine-visual::before {
    right: 50%;
    bottom: -18px;
    width: min(96%, 340px);
    transform: translateX(50%);
  }

  .ex-dashboard-routine-visual img {
    width: min(100%, 360px);
    max-height: 208px;
    object-position: center bottom;
    transform: translateY(14px);
  }
}

@media (max-width: 430px) {
  .ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
    font-size: 1.95rem;
  }
}

/* Dashboard final fit fixes */
.ex-dashboard-avatar-fallback {
  display: none;
}

.ex-dashboard-row-avatar {
  position: relative;
}

.ex-dashboard-row-fallback {
  display: none;
  place-items: center;
  position: absolute;
  inset: 0;
}

.ex-dashboard-row-avatar[data-fallback="1"] .ex-dashboard-row-fallback {
  display: grid;
}

.ex-dashboard-app-nav {
  justify-content: flex-start;
}

.ex-dashboard-routine-card {
  grid-template-columns: minmax(360px, 0.96fr) minmax(360px, 0.92fr);
  align-items: stretch;
  min-height: 392px;
}

.ex-dashboard-routine-visual {
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
}

.ex-dashboard-routine-visual::before {
  right: 50%;
  bottom: 8px;
  width: min(96%, 500px);
  transform: translateX(50%);
  border-radius: 999px;
}

.ex-dashboard-routine-visual img {
  width: min(100%, 500px);
  max-height: 360px;
  object-position: center;
  transform: none;
}

.ex-dashboard-routine-copy {
  padding-right: 8px;
}

@media (max-width: 1180px) {
  .ex-dashboard-shell {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  }

  .ex-dashboard-routine-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }

  .ex-dashboard-routine-visual img {
    width: min(100%, 390px);
    max-height: 310px;
  }
}

@media (max-width: 700px) {
  .ex-dashboard-app-nav {
    justify-content: flex-start;
  }

  .ex-dashboard-routine-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ex-dashboard-insights-grid {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-routine-copy {
    padding-right: 0;
  }

  .ex-dashboard-routine-visual {
    min-height: 178px;
    margin-top: 0;
    border-radius: 18px;
  }

  .ex-dashboard-routine-visual::before {
    bottom: -14px;
    width: min(96%, 320px);
  }

  .ex-dashboard-routine-visual img {
    width: min(100%, 330px);
    max-height: 188px;
    transform: translateY(4px);
  }
}

/* Dashboard visual alignment */
.ex-dashboard-page {
  padding: 20px clamp(18px, 2.8vw, 42px) 38px;
}

.ex-dashboard-app-nav {
  width: min(1600px, 100%);
  margin: 0 auto 16px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 48px rgba(31, 39, 82, 0.08);
  backdrop-filter: blur(16px);
}

.ex-dashboard-app-nav a {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 13px;
  box-shadow: none;
}

.ex-dashboard-app-nav a.is-active {
  background: #13213f;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(19, 33, 63, 0.2);
}

.ex-dashboard-shell {
  width: min(1600px, 100%);
  grid-template-columns: minmax(315px, 372px) minmax(0, 1fr);
  gap: 26px;
}

.ex-dashboard-profile-panel {
  min-height: calc(100vh - 172px);
  padding: 34px 28px;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(47, 54, 102, 0.14);
}

.ex-dashboard-profile-panel .ex-dashboard-avatar-wrap {
  width: 146px;
  height: 146px;
  margin-bottom: 24px;
}

.ex-dashboard-profile-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 2.4vw, 2.72rem);
}

.ex-dashboard-profile-panel > p {
  max-width: 290px;
}

.ex-dashboard-profile-actions {
  gap: 12px;
}

.ex-dashboard-profile-action,
.ex-dashboard-reminder-card {
  border-radius: 20px;
}

.ex-dashboard-welcome-card {
  min-height: 150px;
  margin-bottom: 20px;
  padding: 30px 36px;
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(91, 82, 130, 0.12);
}

.ex-dashboard-content-grid {
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.62fr);
  gap: 20px;
  align-items: start;
}

.ex-dashboard-routine-card {
  grid-template-columns: minmax(330px, 0.83fr) minmax(440px, 1.17fr);
  min-height: 460px;
  padding: 44px 48px 0;
  align-items: end;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 78px rgba(14, 22, 48, 0.22);
}

.ex-dashboard-routine-card::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -58px;
  z-index: 0;
  width: 58%;
  height: 44%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 210, 229, 0.42), rgba(137, 211, 255, 0.18) 48%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.ex-dashboard-routine-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 510px;
  padding: 0 10px 42px 0;
}

.ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
  max-width: 470px;
  font-size: clamp(2.85rem, 4vw, 4.45rem);
}

.ex-dashboard-routine-card .ex-dashboard-routine-copy p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
}

.ex-dashboard-cta {
  min-width: 238px;
  border-radius: 18px;
}

.ex-dashboard-routine-visual {
  position: relative;
  z-index: 1;
  align-self: end;
  display: flex;
  min-height: 430px;
  width: 100%;
  overflow: visible;
  border-radius: 0;
}

.ex-dashboard-routine-visual::before {
  content: "";
  position: absolute;
  right: 49%;
  bottom: 22px;
  z-index: 0;
  width: min(118%, 680px);
  height: 58%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), rgba(255, 210, 230, 0.22) 42%, rgba(137, 211, 255, 0.08) 64%, transparent 76%);
  filter: blur(5px);
  transform: translateX(50%);
}

.ex-dashboard-routine-visual::after {
  content: "";
  position: absolute;
  right: 44%;
  bottom: 14px;
  z-index: 1;
  width: min(82%, 520px);
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(6, 13, 30, 0.34), rgba(6, 13, 30, 0.08) 58%, transparent 74%);
  filter: blur(12px);
  transform: translateX(50%);
}

.ex-dashboard-routine-visual img {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: min(118%, 700px);
  max-height: 470px;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 34px 48px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 38px rgba(255, 211, 229, 0.24));
  transform: translate(18px, 18px);
}

.ex-dashboard-insights-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 20px;
  align-items: stretch;
}

.ex-dashboard-real-progress-card,
.ex-dashboard-weight-card,
.ex-dashboard-side-column .ex-dashboard-card {
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(63, 67, 119, 0.12);
}

.ex-dashboard-real-progress-card {
  padding: 30px;
}

.ex-dashboard-real-progress-card .ex-dashboard-section-head {
  margin-bottom: 20px;
}

.ex-dashboard-real-progress-card h2 {
  font-size: clamp(1.45rem, 1.8vw, 1.82rem);
}

.ex-dashboard-progress-percent {
  display: grid;
  min-width: 76px;
  min-height: 54px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 222, 234, 0.95), rgba(215, 238, 255, 0.95));
  color: #13213f;
  font-size: 1.18rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.ex-dashboard-linear-progress {
  height: 14px;
  border-radius: 999px;
  background: #eef1f8;
}

.ex-dashboard-day-strip {
  gap: 12px;
  margin-top: 22px;
}

.ex-dashboard-day-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 0.92rem;
}

.ex-dashboard-strip-legend {
  margin-top: 18px;
  gap: 16px;
}

.ex-dashboard-weight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 30px;
}

.ex-dashboard-weight-value {
  margin-top: 10px;
  font-size: clamp(2.8rem, 4vw, 3.7rem);
}

.ex-dashboard-side-column {
  gap: 20px;
}

.ex-dashboard-side-column .ex-dashboard-card {
  padding: 26px;
}

.ex-dashboard-progress-card {
  text-align: left;
}

.ex-dashboard-progress-ring {
  width: 150px;
  height: 150px;
  margin: 18px auto 24px;
  box-shadow:
    inset 0 0 0 13px #eef1f8,
    inset 0 0 0 23px rgba(255, 255, 255, 0.68),
    0 18px 44px rgba(116, 106, 166, 0.16);
}

.ex-dashboard-status-list {
  display: grid;
  gap: 12px;
}

.ex-dashboard-status-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(221, 226, 241, 0.88);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.92));
}

.ex-dashboard-status-icon {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd8e8, #dbeeff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.ex-dashboard-status-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #13213f;
}

.ex-dashboard-status-icon--order {
  background: linear-gradient(135deg, #e7ddff, #d8f0ff);
}

.ex-dashboard-status-icon--order::after {
  inset: 10px 9px 12px;
  border-radius: 7px;
}

.ex-dashboard-status-row strong {
  display: block;
  color: #13213f;
  font-size: 0.95rem;
}

.ex-dashboard-status-row small {
  display: block;
  margin-top: 2px;
  color: #68728a;
  line-height: 1.35;
}

.ex-dashboard-resource-list {
  gap: 14px;
}

.ex-dashboard-resource-list h2 {
  margin-bottom: 4px;
}

.ex-dashboard-resource-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f7f9ff);
}

.ex-dashboard-resource-list div::before {
  content: "";
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, #13213f, #8f88df);
  box-shadow: 0 12px 26px rgba(82, 77, 142, 0.18);
}

.ex-dashboard-resource-list span,
.ex-dashboard-resource-list small {
  grid-column: 2;
}

@media (max-width: 1280px) {
  .ex-dashboard-shell {
    grid-template-columns: minmax(290px, 342px) minmax(0, 1fr);
    gap: 20px;
  }

  .ex-dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ex-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-profile-panel {
    min-height: 0;
  }

  .ex-dashboard-routine-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  }
}

@media (max-width: 760px) {
  .ex-dashboard-page {
    padding: 14px 12px 30px;
  }

  .ex-dashboard-app-nav {
    width: 100%;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ex-dashboard-app-nav::-webkit-scrollbar {
    display: none;
  }

  .ex-dashboard-app-nav a {
    white-space: nowrap;
  }

  .ex-dashboard-welcome-card {
    padding: 24px 20px;
  }

  .ex-dashboard-routine-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 22px 0;
    border-radius: 26px;
  }

  .ex-dashboard-routine-copy {
    max-width: none;
    padding: 0;
  }

  .ex-dashboard-routine-card .ex-dashboard-routine-copy h2 {
    font-size: clamp(2.05rem, 12vw, 2.65rem);
  }

  .ex-dashboard-routine-visual {
    min-height: 244px;
    margin-top: 4px;
    overflow: hidden;
  }

  .ex-dashboard-routine-visual::before {
    bottom: 6px;
    width: min(112%, 420px);
  }

  .ex-dashboard-routine-visual::after {
    bottom: 6px;
    width: min(78%, 320px);
  }

  .ex-dashboard-routine-visual img {
    width: min(112%, 430px);
    max-height: 260px;
    transform: translateY(10px);
  }

  .ex-dashboard-insights-grid,
  .ex-dashboard-side-column {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-day-strip {
    gap: 9px;
  }

  .ex-dashboard-day-dot {
    width: 40px;
    height: 40px;
  }
}

/* Dashboard photo UX */
.ex-dashboard-avatar-button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ex-dashboard-avatar-button:hover,
.ex-dashboard-avatar-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 24px 58px rgba(47, 54, 102, 0.24),
    0 0 0 5px rgba(255, 255, 255, 0.72);
  outline: none;
}

.ex-dashboard-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #13213f;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(19, 33, 63, 0.26);
}

.ex-dashboard-follow-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 20px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 239, 255, 0.78), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fbf7ff 56%, #f5fbff 100%);
}

.ex-dashboard-start-photo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  border-color: rgba(112, 113, 172, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.88));
}

.ex-dashboard-start-photo-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
}

.ex-dashboard-start-photo-card p {
  max-width: 560px;
  margin: 0 0 8px;
}

.ex-dashboard-start-photo-card small {
  color: #68728a;
  font-size: 0.9rem;
  font-weight: 700;
}

.ex-dashboard-start-photo-card .ex-dashboard-soft-button {
  flex: 0 0 auto;
  margin-top: 0;
}

.ex-dashboard-follow-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.ex-dashboard-follow-copy h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
}

.ex-dashboard-follow-copy p {
  max-width: 480px;
  margin: 0 0 12px;
}

.ex-dashboard-photo-trust {
  color: #68728a;
  font-size: 0.9rem;
}

.ex-dashboard-soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 20px;
  border: 1px solid rgba(19, 33, 63, 0.12);
  border-radius: 16px;
  background: #13213f;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(19, 33, 63, 0.16);
}

.ex-dashboard-follow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ex-dashboard-soft-button--light {
  background: #ffffff;
  color: #13213f;
}

.ex-dashboard-follow-stack {
  display: grid;
  gap: 14px;
}

.ex-dashboard-checkpoint-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(221, 226, 241, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.ex-dashboard-checkpoint-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ex-dashboard-checkpoint-summary span {
  color: #68728a;
  font-size: 0.82rem;
  font-weight: 800;
}

.ex-dashboard-checkpoint-summary strong {
  color: #13213f;
  font-size: 0.95rem;
  text-align: right;
}

.ex-dashboard-checkpoint-summary p {
  margin: 4px 0 0;
  color: #5c6780;
  font-size: 0.9rem;
}

.ex-dashboard-follow-preview {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 226, 241, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 213, 231, 0.72), transparent 34%),
    linear-gradient(135deg, #f7f9ff, #ffffff);
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.ex-dashboard-follow-preview:hover,
.ex-dashboard-follow-preview:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 18px 40px rgba(86, 91, 145, 0.14);
}

.ex-dashboard-follow-preview img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.ex-dashboard-follow-preview > span:not(.ex-dashboard-follow-empty) {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 33, 63, 0.82);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ex-dashboard-follow-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  align-content: center;
  min-height: 210px;
  padding: 28px;
  text-align: center;
}

.ex-dashboard-follow-empty strong {
  color: #13213f;
  font-size: 1rem;
}

.ex-dashboard-follow-empty small {
  color: #707a92;
  font-weight: 700;
}

.ex-dashboard-modal[hidden] {
  display: none;
}

.ex-dashboard-modal-open,
.ex-dashboard-modal-open body {
  overflow: hidden;
}

.ex-dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ex-dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 18, 38, 0.46);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.ex-dashboard-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(760px, calc(100dvh - 36px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(215, 238, 255, 0.9), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 247, 255, 0.96));
  box-shadow: 0 34px 90px rgba(10, 18, 38, 0.28);
}

.ex-dashboard-modal-card h2 {
  margin: 4px 0 10px;
  color: #13213f;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.ex-dashboard-modal-card p {
  margin: 0 0 12px;
  color: #5c6780;
  line-height: 1.55;
}

.ex-dashboard-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 33, 63, 0.08);
  color: #13213f;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.ex-dashboard-modal-preview {
  display: grid;
  width: min(100%, 230px);
  aspect-ratio: 1;
  place-items: center;
  margin: 18px auto;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffd7e8, #dcefff);
  box-shadow: 0 22px 52px rgba(79, 82, 137, 0.18);
}

.ex-dashboard-modal-preview--wide {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.ex-dashboard-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-dashboard-modal-preview .ex-dashboard-avatar-initials {
  width: 100%;
  height: 100%;
  font-size: 4rem;
}

.ex-dashboard-photo-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ex-dashboard-file-control {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(19, 33, 63, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #13213f;
  font-weight: 800;
}

.ex-dashboard-file-control input {
  width: 100%;
  color: #526078;
  font: inherit;
  font-size: 0.9rem;
}

.ex-dashboard-modal-card .btn-full {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .ex-dashboard-follow-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .ex-dashboard-follow-preview,
  .ex-dashboard-follow-preview img,
  .ex-dashboard-follow-empty {
    min-height: 180px;
  }

  .ex-dashboard-modal {
    align-items: center;
    justify-items: center;
    padding: 14px;
  }

  .ex-dashboard-modal-card {
    width: 100%;
    max-height: calc(100dvh - 28px);
    padding: 24px 20px;
    border-radius: 24px;
  }

  .ex-dashboard-avatar-edit {
    right: 50%;
    bottom: -12px;
    transform: translateX(50%);
  }
}

/* Dashboard cleanup: overflow, compact profile panel, tracking tiles */
html,
body {
  overflow-x: hidden;
}

.ex-dashboard-page,
.ex-dashboard-shell,
.ex-dashboard-main-panel,
.ex-dashboard-content-grid,
.ex-dashboard-primary-column,
.ex-dashboard-side-column {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ex-dashboard-page {
  width: 100vw;
  max-width: 100vw;
  overflow-x: clip;
}

.ex-dashboard-app-nav {
  width: min(1600px, calc(100vw - 36px));
  max-width: min(1600px, calc(100vw - 36px));
  overflow-x: hidden;
  flex-wrap: wrap;
}

.ex-dashboard-shell {
  width: min(1540px, calc(100vw - clamp(36px, 5.6vw, 84px)));
  max-width: min(1540px, calc(100vw - clamp(36px, 5.6vw, 84px)));
  align-items: start;
}

.ex-dashboard-profile-panel {
  min-height: auto;
  align-self: start;
  padding: 28px 24px;
}

.ex-dashboard-profile-panel .ex-dashboard-avatar-wrap {
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
}

.ex-dashboard-profile-panel h1 {
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
}

.ex-dashboard-profile-stats {
  margin-top: 20px;
}

.ex-dashboard-profile-snapshot {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.ex-dashboard-profile-snapshot div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ex-dashboard-profile-snapshot span {
  color: #68728a;
  font-size: 0.78rem;
  font-weight: 800;
}

.ex-dashboard-profile-snapshot strong {
  color: #13213f;
  font-size: 0.9rem;
  text-align: right;
}

.ex-dashboard-mini-card {
  margin-top: 14px;
}

.ex-dashboard-routine-card {
  max-width: 100%;
}

.ex-dashboard-routine-visual {
  min-width: 0;
  overflow: hidden;
}

.ex-dashboard-routine-visual::before {
  width: min(100%, 620px);
}

.ex-dashboard-routine-visual img {
  width: min(100%, 620px);
  max-width: 100%;
  transform: translateY(14px);
}

.ex-dashboard-day-strip {
  overflow-x: visible;
  flex-wrap: wrap;
}

.ex-dashboard-follow-card {
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  gap: 24px;
  padding: 30px;
}

.ex-dashboard-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.ex-dashboard-photo-tile {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 226, 241, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 213, 231, 0.72), transparent 34%),
    linear-gradient(135deg, #f7f9ff, #ffffff);
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.ex-dashboard-photo-tile--checkpoint {
  background:
    radial-gradient(circle at 74% 20%, rgba(216, 239, 255, 0.8), transparent 36%),
    linear-gradient(135deg, #ffffff, #fbf7ff);
}

.ex-dashboard-photo-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.ex-dashboard-photo-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 33, 63, 0.84);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ex-dashboard-photo-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  align-content: center;
  min-height: 230px;
  padding: 24px;
  text-align: center;
}

.ex-dashboard-photo-placeholder strong {
  max-width: 220px;
  color: #13213f;
  font-size: 1rem;
  line-height: 1.35;
}

.ex-dashboard-photo-placeholder small {
  color: #707a92;
  font-weight: 800;
}

.ex-dashboard-checkpoint-summary {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.ex-dashboard-checkpoint-summary > span {
  grid-column: 1;
}

.ex-dashboard-checkpoint-summary > strong {
  grid-column: 2;
}

.ex-dashboard-checkpoint-summary > p {
  grid-column: 1 / -1;
}

@media (max-width: 1280px) {
  .ex-dashboard-shell {
    max-width: min(100%, calc(100vw - 32px));
  }

  .ex-dashboard-follow-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ex-dashboard-start-photo-card {
    align-items: stretch;
    flex-direction: column;
  }

  .ex-dashboard-start-photo-card .ex-dashboard-soft-button {
    width: 100%;
  }

  .ex-dashboard-app-nav {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ex-dashboard-shell {
    max-width: 100%;
  }

  .ex-dashboard-routine-visual img {
    width: min(100%, 360px);
    transform: translateY(8px);
  }

  .ex-dashboard-photo-pair {
    grid-template-columns: 1fr;
  }

  .ex-dashboard-photo-tile,
  .ex-dashboard-photo-tile img,
  .ex-dashboard-photo-placeholder {
    min-height: 188px;
  }
}

/* Emergency portal usability isolation */
.ex-portal-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  overflow-x: clip;
}

.ex-portal-page .ex-portal-shell {
  width: min(1240px, calc(100vw - clamp(28px, 5vw, 72px)));
  max-width: 100%;
}

.ex-portal-page .ex-portal-hero {
  width: 100%;
  max-width: 100%;
}

.ex-portal-page .ex-portal-hero::after {
  display: none;
}

.ex-portal-page .ex-portal-hero-top {
  align-items: flex-start;
}

.ex-portal-page .portal-change-btn {
  align-self: flex-start;
  flex: 0 0 auto;
}

.ex-portal-page .ex-portal-progress {
  width: min(680px, 100%);
}

.ex-portal-page .ex-portal-program-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

.ex-portal-page .ex-portal-day-panel,
.ex-portal-page .ex-portal-routine-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ex-portal-page .ex-portal-routine-card {
  padding: clamp(24px, 3vw, 34px);
}

.ex-portal-page .ex-portal-routine-card .day-detail-title {
  max-width: 860px;
}

.ex-portal-page .ex-portal-routine-card .day-purpose-block,
.ex-portal-page .ex-portal-routine-card .technique-tip,
.ex-portal-page .ex-portal-routine-card .day-safety,
.ex-portal-page .ex-portal-routine-card .motivation-msg {
  max-width: 920px;
}

.ex-portal-page .ex-portal-routine-card .day-ex-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ex-portal-page .ex-portal-day-strip-card {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.ex-portal-page .ex-portal-day-strip-card .day-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ex-portal-page .ex-portal-reminder-card {
  margin: 0;
  padding: 18px;
}

.ex-portal-page .ex-portal-reminder-card .ex-portal-card-head {
  flex-direction: column;
}

.ex-portal-page .ex-portal-reminder-card .ex-portal-status-pill {
  align-self: flex-start;
}

.ex-portal-page .ex-portal-reset-row {
  margin: 0;
  justify-content: stretch;
}

.ex-portal-page .ex-portal-reset-row .btn {
  width: 100%;
}

@media (max-width: 980px) {
  .ex-portal-page .ex-portal-program-grid {
    grid-template-columns: 1fr;
  }

  .ex-portal-page .ex-portal-day-strip-card {
    position: static;
    order: 0;
  }

  .ex-portal-page .ex-portal-routine-card .day-ex-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ex-portal-page {
    padding: 20px 12px 36px;
  }

  .ex-portal-page .ex-portal-shell {
    width: 100%;
  }

  .ex-portal-page .ex-portal-hero,
  .ex-portal-page .ex-portal-routine-card,
  .ex-portal-page .ex-portal-day-strip-card,
  .ex-portal-page .ex-portal-card {
    border-radius: 24px;
  }

  .ex-portal-page .ex-portal-day-strip-card .day-selector {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .ex-portal-page .ex-portal-day-strip-card .day-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Portal video-first polish */
.ex-portal-page .ex-portal-shell {
  width: min(1280px, calc(100vw - clamp(28px, 5vw, 76px)));
}

.ex-portal-page .ex-portal-hero {
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 92% 14%, rgba(210, 230, 255, 0.72), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff8fc 46%, #eef5ff 100%);
  box-shadow: 0 22px 60px rgba(34, 45, 88, 0.1);
}

.ex-portal-page .ex-portal-hero-copy {
  max-width: 760px;
}

.ex-portal-page .ex-portal-program-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}

.ex-portal-page .ex-portal-routine-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(22, 30, 68, 0.12);
}

.ex-portal-page .ex-portal-routine-head {
  align-items: flex-start;
  gap: 16px;
}

.ex-portal-page .ex-portal-video-first-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(112, 113, 172, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 214, 232, 0.45), transparent 32%),
    linear-gradient(145deg, #f8faff 0%, #fff 56%, #fff6fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ex-portal-page .ex-portal-video-copy {
  display: grid;
  gap: 6px;
}

.ex-portal-page .ex-portal-video-copy h3 {
  margin: 0;
  color: #101a3d;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: 0;
}

.ex-portal-page .ex-portal-video-copy p:last-child {
  margin: 0;
  color: #5d6680;
  line-height: 1.6;
}

.ex-portal-page .ex-portal-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #101a3d;
  box-shadow: 0 22px 48px rgba(16, 26, 61, 0.24);
}

.ex-portal-page .ex-portal-video-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ex-portal-page .ex-portal-video-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-portal-page .ex-portal-video-chips span,
.ex-portal-page .ex-portal-video-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26, 38, 85, 0.08);
  color: #263263;
  font-size: 0.74rem;
  font-weight: 800;
}

.ex-portal-page .ex-portal-video-placeholder {
  min-height: 210px;
  margin: 0;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-radius: 24px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(239, 245, 255, 0.95), rgba(255, 246, 251, 0.95));
}

.ex-portal-page .ex-portal-exercise-section {
  display: grid;
  gap: 12px;
}

.ex-portal-page .ex-portal-exercise-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ex-portal-page .ex-portal-exercise-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(112, 113, 172, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 12px 28px rgba(26, 38, 85, 0.06);
}

.ex-portal-page .ex-portal-exercise-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #101a3d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.ex-portal-page .ex-portal-exercise-item strong {
  display: block;
  color: #101a3d;
  font-size: 0.96rem;
  line-height: 1.35;
}

.ex-portal-page .ex-portal-exercise-item small,
.ex-portal-page .ex-portal-exercise-item em {
  display: block;
  margin-top: 4px;
  color: #66708c;
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.45;
}

.ex-portal-page .ex-portal-exercise-item em {
  color: #8a6590;
}

.ex-portal-page .ex-portal-video-badge {
  align-self: center;
  background: rgba(236, 133, 177, 0.14);
  color: #8a3d68;
}

.ex-portal-page .ex-portal-day-strip-card {
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(22, 30, 68, 0.1);
}

.ex-portal-page .ex-portal-day-strip-card .day-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.ex-portal-page .ex-portal-day-strip-card .day-dot {
  min-height: 46px;
  height: auto;
  padding: 7px 4px;
  border-radius: 15px;
}

@media (max-width: 980px) {
  .ex-portal-page .ex-portal-program-grid {
    grid-template-columns: 1fr;
  }

  .ex-portal-page .ex-portal-day-panel {
    order: 1;
  }

  .ex-portal-page .ex-portal-day-strip-card {
    position: static;
    order: 2;
  }
}

@media (max-width: 680px) {
  .ex-portal-page .ex-portal-shell {
    width: 100%;
  }

  .ex-portal-page .ex-portal-routine-card,
  .ex-portal-page .ex-portal-video-first-card {
    border-radius: 24px;
  }

  .ex-portal-page .ex-portal-routine-head {
    grid-template-columns: 1fr;
  }

  .ex-portal-page .ex-portal-exercise-cards,
  .ex-portal-page .ex-portal-exercise-item {
    grid-template-columns: 1fr;
  }

  .ex-portal-page .ex-portal-video-badge {
    justify-self: start;
  }

  .ex-portal-page .ex-portal-video-placeholder {
    min-height: 170px;
  }
}

/* Portal movement-guide polish */
.ex-portal-page .ex-portal-hero {
  background:
    radial-gradient(circle at 92% 18%, rgba(207, 224, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #111a3f 0%, #1f2c62 58%, #6360a8 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 24px 70px rgba(17, 26, 63, 0.22);
}

.ex-portal-page .ex-portal-hero .welcome-eyebrow,
.ex-portal-page .ex-portal-hero .welcome-name,
.ex-portal-page .ex-portal-hero .ex-portal-hero-text {
  color: #fff;
}

.ex-portal-page .ex-portal-hero .ex-portal-hero-text {
  color: rgba(255, 255, 255, 0.78);
}

.ex-portal-page .ex-portal-hero .ex-portal-meta-row span,
.ex-portal-page .ex-portal-hero .welcome-plan-badge {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ex-portal-page .ex-portal-hero .portal-change-btn,
.ex-portal-page .ex-portal-hero .portal-recreate-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.ex-portal-page .ex-portal-hero .ex-portal-progress {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ex-portal-page .ex-portal-hero .progress-bar-header,
.ex-portal-page .ex-portal-hero .progress-pct {
  color: rgba(255, 255, 255, 0.9);
}

.ex-portal-page .ex-portal-hero .progress-bar-outer {
  background: rgba(255, 255, 255, 0.2);
}

.ex-portal-page .ex-portal-hero .progress-bar-fill {
  background: linear-gradient(90deg, #f6bdd7, #a9ddf4);
}

.ex-portal-page .ex-portal-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 2px;
}

.ex-portal-page .ex-portal-section-heading h3 {
  margin: 3px 0 0;
  color: #101a3d;
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  letter-spacing: 0;
}

.ex-portal-page .ex-portal-section-heading > span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f3f6ff;
  color: #596587;
  font-size: 0.78rem;
  font-weight: 850;
}

.ex-portal-page .ex-portal-movements-section {
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid rgba(112, 113, 172, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.ex-portal-page .ex-portal-movements-section .ex-portal-exercise-cards {
  grid-template-columns: 1fr;
}

.ex-portal-page .ex-portal-movements-section .ex-portal-exercise-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  box-shadow: none;
}

.ex-portal-page .ex-portal-guide-btn {
  align-self: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #101a3d;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(16, 26, 61, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ex-portal-page .ex-portal-guide-btn:hover,
.ex-portal-page .ex-portal-guide-btn:focus-visible {
  background: #25316a;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(16, 26, 61, 0.22);
  outline: none;
}

.ex-portal-page .ex-portal-guide-pending {
  align-self: center;
  padding: 9px 11px;
  border-radius: 999px;
  background: #f5f6fa;
  color: #7a8296;
  font-size: 0.76rem;
  font-weight: 850;
}

.ex-portal-page .ex-portal-weekly-card {
  margin-top: clamp(18px, 2.6vw, 28px);
  opacity: 0.94;
}

.ex-portal-page .ex-portal-day-strip-card .day-dot--locked::after {
  content: "\1F512";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.ex-movement-modal .ex-movement-modal-box {
  width: min(760px, calc(100vw - 32px));
  max-width: 100%;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 28px;
  background: #fff;
  position: relative;
}

.ex-movement-modal .ex-movement-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f5fb;
  color: #101a3d;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ex-movement-modal h3 {
  margin: 4px 44px 6px 0;
  color: #101a3d;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: 0;
}

.ex-movement-modal .ex-movement-detail {
  margin: 0 0 16px;
  color: #66708c;
  line-height: 1.55;
}

.ex-movement-modal .ex-movement-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #101a3d;
  box-shadow: 0 20px 48px rgba(16, 26, 61, 0.2);
}

.ex-movement-modal .ex-movement-video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 680px) {
  .ex-portal-page .ex-portal-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ex-portal-page .ex-portal-movements-section .ex-portal-exercise-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ex-portal-page .ex-portal-guide-btn,
  .ex-portal-page .ex-portal-guide-pending {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

/* Exerina quiz refresh */
.ex-quiz-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 34px 18px 48px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 14% 8%, rgba(222, 207, 255, 0.62), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(205, 237, 255, 0.68), transparent 28%),
    linear-gradient(135deg, #fbf7ff 0%, #fff7fb 42%, #f4fbff 100%);
}

.ex-quiz-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.ex-quiz-brand {
  justify-content: center;
  margin-bottom: 2px;
}

.ex-quiz-hero {
  text-align: center;
  padding: 14px 10px 4px;
}

.ex-quiz-hero h1 {
  margin: 0;
  color: #13213f;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: 0;
}

.ex-quiz-hero p {
  width: min(620px, 100%);
  margin: 12px auto 0;
  color: #657087;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.6;
}

.ex-quiz-progress {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(45, 57, 101, 0.1);
  backdrop-filter: blur(18px);
}

.ex-quiz-page .quiz-prog-bar-outer {
  height: 8px;
  background: #edf1fb;
}

.ex-quiz-page .quiz-prog-bar-fill {
  background: linear-gradient(90deg, #7071ac, #ec9fbe);
}

.ex-quiz-percent {
  min-width: 38px;
  color: #657087;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.ex-quiz-alert,
.ex-quiz-consent,
.ex-quiz-page .quiz-slide-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(45, 57, 101, 0.13);
}

.ex-quiz-consent {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
}

.ex-quiz-page .consent-text,
.ex-quiz-page .consent-checkbox-row {
  color: #5f6a80;
}

.ex-quiz-slides {
  overflow: visible;
}

.ex-quiz-page .quiz-slide-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 42px);
}

.ex-quiz-page .q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef0fb;
  color: #7071ac;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-quiz-page .q-title {
  margin: 0 0 22px;
  color: #13213f;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-align: center;
}

.ex-quiz-page .q-title span {
  color: #7c879b;
  font-size: 0.72em;
  font-weight: 700;
}

.ex-quiz-page .q-options-v2 {
  gap: 12px;
}

.ex-quiz-page .q-btn {
  min-height: 62px;
  padding: 16px 18px;
  border: 1px solid #e6e9f4;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.94));
  color: #24304d;
  box-shadow: 0 14px 34px rgba(31, 42, 79, 0.06);
}

.ex-quiz-page .q-btn:hover,
.ex-quiz-page .q-btn:focus-visible {
  border-color: rgba(112, 113, 172, 0.6);
  box-shadow: 0 18px 42px rgba(112, 113, 172, 0.16);
  transform: translateY(-1px);
}

.ex-quiz-page .q-btn.selected {
  border-color: rgba(112, 113, 172, 0.9);
  background:
    radial-gradient(circle at 92% 8%, rgba(236, 159, 190, 0.22), transparent 36%),
    linear-gradient(135deg, #ffffff, #f4f5ff);
}

.ex-quiz-page .q-btn small {
  display: inline-block;
  margin-top: 4px;
  color: #6d778d;
  line-height: 1.45;
}

.ex-quiz-weight {
  width: min(240px, 100%);
  margin: 0 auto;
  text-align: center;
}

.ex-quiz-help,
.ex-quiz-warning,
.ex-quiz-disclaimer {
  width: min(560px, 100%);
  margin: 12px auto 0;
  color: #69758b;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.ex-quiz-warning {
  color: var(--danger);
  font-weight: 800;
}

.ex-quiz-page .quiz-nav {
  width: min(760px, 100%);
  margin: 2px auto 0;
  gap: 12px;
}

.ex-quiz-page .quiz-nav .btn-prev,
.ex-quiz-page .quiz-nav .btn-next {
  min-height: 52px;
  border-radius: 999px;
}

.ex-quiz-page .quiz-nav .btn-next {
  background: linear-gradient(135deg, #172554, #7071ac);
  box-shadow: 0 18px 36px rgba(23, 37, 84, 0.22);
}

@media (max-width: 640px) {
  .ex-quiz-page {
    padding: 22px 12px 34px;
  }

  .ex-quiz-shell {
    gap: 14px;
  }

  .ex-quiz-consent,
  .ex-quiz-page .quiz-slide-card {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .ex-quiz-page .quiz-nav {
    flex-direction: column-reverse;
  }

  .ex-quiz-page .quiz-nav .btn-prev,
  .ex-quiz-page .quiz-nav .btn-next {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-quiz-page .quiz-slide {
    animation: none;
  }

  .ex-quiz-page .q-btn {
    transition: none;
  }
}

/* Shared authenticated Exerina app header */
.customer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-logout-form {
  margin: 0;
}

.customer-logout-btn {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.customer-logout-btn:hover,
.customer-logout-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.ex-app-header {
  position: sticky;
  top: 0;
  z-index: 900;
  min-height: 72px;
  padding: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(112, 113, 172, 0.42), transparent 30%),
    linear-gradient(135deg, #101a3d, #172554 64%, #26376e);
  box-shadow: 0 18px 42px rgba(17, 27, 61, 0.18);
}

.ex-app-header + .main-content {
  position: relative;
}

.ex-app-header-inner {
  position: relative;
  width: min(1540px, calc(100vw - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) auto minmax(210px, 0.65fr);
  align-items: center;
  gap: 18px;
}

.ex-app-wordmark {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}

.ex-app-wordmark:hover,
.ex-app-wordmark:focus-visible {
  color: #fff;
  opacity: 0.92;
}

.ex-app-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.ex-app-nav a,
.ex-mobile-menu a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.ex-app-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.ex-app-nav a:hover,
.ex-app-nav a:focus-visible,
.ex-app-nav a.is-active {
  color: #172554;
  background: #fff;
}

.ex-app-user {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ex-app-avatar-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.ex-app-avatar-link:hover,
.ex-app-avatar-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.ex-app-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7c8dc, #dbeeff);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.58);
  color: #172554;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.ex-app-avatar img,
.ex-app-avatar > span {
  grid-area: 1 / 1;
}

.ex-app-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-app-avatar img[hidden],
.ex-app-avatar > span[hidden] {
  display: none !important;
}

.ex-app-avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.ex-app-user-name {
  max-width: 130px;
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-app-logout-btn {
  border-radius: 999px;
  padding: 9px 13px;
}

.ex-mobile-menu-toggle,
.ex-mobile-menu-button,
.ex-mobile-menu {
  display: none;
}

@media (max-width: 820px) {
  .ex-app-header-inner {
    width: min(100%, calc(100vw - 24px));
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .ex-app-nav,
  .ex-app-user-name,
  .ex-app-user .ex-app-logout-form {
    display: none;
  }

  .ex-app-user {
    grid-column: 2;
    justify-self: end;
    gap: 0;
    align-items: center;
  }

  .ex-app-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .ex-mobile-menu-button {
    grid-column: 3;
    justify-self: end;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
  }

  .ex-mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .ex-mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(18, 28, 64, 0.98);
    box-shadow: 0 26px 70px rgba(17, 27, 61, 0.32);
  }

  .ex-mobile-menu-toggle:checked ~ .ex-mobile-menu {
    display: grid;
    gap: 12px;
  }

  .ex-mobile-menu nav {
    display: grid;
    gap: 6px;
  }

  .ex-mobile-menu a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
  }

  .ex-mobile-menu a:hover,
  .ex-mobile-menu a:focus-visible,
  .ex-mobile-menu a.is-active {
    color: #172554;
    background: #fff;
  }

  .ex-mobile-menu .customer-logout-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
  }
}
