/* ============================================================
   STRIDE — Hevy-inspired aesthetic
   Pure dark mode · vibrant blue accent · Inter typography
   ============================================================ */

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

:root {
  /* Surface scale — dark mode */
  --bg:        #0D1117;
  --surface:   #161B22;
  --surface-2: #1F252E;
  --surface-3: #2A313C;
  --border:    rgba(255, 255, 255, 0.07);
  --border-2:  rgba(255, 255, 255, 0.12);

  /* Text */
  --text:      #FFFFFF;
  --text-2:    #9DA5B4;
  --text-3:    #6E7681;
  --text-4:    #4B5563;

  /* Accents */
  --blue:      #2F81F7;
  --blue-2:    #1F6FE5;
  --blue-tint: rgba(47, 129, 247, 0.14);
  --blue-tint2:rgba(47, 129, 247, 0.22);
  --green:     #3FB950;
  --green-tint:rgba(63, 185, 80, 0.14);
  --orange:    #F0883E;
  --red:       #F85149;
  --yellow:    #F0B72F;

  /* Layout */
  --tabbar-h: 78px;
  --header-h: 52px;
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============ TYPE ============ */
.h-display {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h-num {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.h-mono { font-family: var(--mono); font-weight: 500; }
.h-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.h-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
}

/* ============ LAYOUT ============ */
.app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
.app--full { padding-bottom: 0; }

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}
.appbar__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.appbar__back, .appbar__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.appbar__back:hover, .appbar__icon:hover {
  background: var(--surface-2);
  color: var(--text);
}
.appbar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6F4DDB);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
}

.page {
  padding: 16px 18px 24px;
}

/* ============ BOTTOM TAB BAR (Hevy-style flat) ============ */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar__inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-3);
  transition: color 0.15s;
  position: relative;
}
.tabbar__item svg { width: 24px; height: 24px; stroke-width: 2; }
.tabbar__item.is-active { color: var(--blue); }
.tabbar__item.is-active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 28px; height: 2px;
  background: var(--blue);
  border-radius: 0 0 2px 2px;
  transform: translateX(-50%);
}
.tabbar__item:active { transform: scale(0.96); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.1s, background 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-2); }
.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--secondary:hover { background: var(--surface-3); }
.btn--ghost {
  background: transparent;
  color: var(--text-2);
}
.btn--ghost:hover { color: var(--text); background: var(--surface); }
.btn--danger { background: transparent; color: var(--red); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 22px; font-size: 16px; border-radius: 14px; }

/* ============ FORMS ============ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.input {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.input:focus {
  border-color: var(--blue);
  background: var(--surface-2);
}
.input::placeholder { color: var(--text-3); }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card--flat {
  background: transparent;
  border: 1px solid var(--border);
}

/* ============ HERO (landing) ============ */
.hero {
  min-height: 100vh;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-tint) 0%, transparent 60%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.hero__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.hero__brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.hero__chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
}
.hero__title {
  font-size: clamp(44px, 12vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  position: relative; z-index: 1;
}
.hero__title-accent { color: var(--blue); }
.hero__sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-2);
  max-width: 32ch;
  position: relative; z-index: 1;
}
.hero__art {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 28px 0;
  position: relative;
  min-height: 220px;
}
.hero__cta {
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1;
}
.hero__foot {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.hero__foot a { color: var(--blue); font-weight: 600; }

/* Card stack hero illustration */
.cardstack {
  width: min(86vw, 320px);
  position: relative;
  perspective: 1000px;
}
.cardstack__card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  transform-origin: left center;
}
.cardstack__card:nth-child(1) { transform: translateX(0) rotate(-1.5deg); }
.cardstack__card:nth-child(2) { transform: translateX(20px) rotate(1deg); }
.cardstack__card:nth-child(3) { transform: translateX(8px) rotate(-0.5deg); background: var(--surface-2); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue-tint); }
.cardstack__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-tint);
  display: grid; place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.cardstack__main { flex: 1; }
.cardstack__name { font-weight: 700; font-size: 14px; }
.cardstack__sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cardstack__num {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--blue);
}

/* ============ HOME / DASHBOARD ============ */
.greet { padding: 4px 0 14px; }
.greet__hello {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.greet__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 2px 0 0;
}

/* Quick stat strip */
.statrow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 6px;
  margin: 8px 0 18px;
}
.statrow__cell {
  text-align: center;
  position: relative;
  padding: 0 6px;
}
.statrow__cell + .statrow__cell::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--border);
}
.statrow__num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
}
.statrow__num--blue { color: var(--blue); }
.statrow__num--green { color: var(--green); }
.statrow__num--orange { color: var(--orange); }
.statrow__lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 2px;
  letter-spacing: 0;
}

/* Today's workout big card */
.todaycard {
  background: linear-gradient(160deg, var(--blue) 0%, #1463CC 100%);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.todaycard::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -60px; right: -80px;
}
.todaycard::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -40px; right: 40px;
}
.todaycard__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.todaycard__chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.todaycard__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 14px 0 4px;
  position: relative; z-index: 1;
}
.todaycard__meta {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.todaycard__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  position: relative; z-index: 1;
}

/* Sections */
.section {
  margin-top: 24px;
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* Routine list (Hevy-style routine cards) */
.routine-list { display: flex; flex-direction: column; gap: 10px; }
.routine {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.routine:hover { border-color: var(--border-2); background: var(--surface-2); }
.routine__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.routine__main { flex: 1; min-width: 0; }
.routine__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
}
.routine__meta {
  font-size: 12.5px;
  color: var(--text-3);
}
.routine__arrow { color: var(--text-3); flex-shrink: 0; }
.routine.is-today {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.routine.is-today .routine__icon {
  background: var(--blue); color: #fff;
}

/* Week strip */
.weekstrip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.day__d {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.day__n {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.day__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--surface-3);
  margin-top: 4px;
}
.day.is-done .day__dot { background: var(--blue); }
.day.is-today {
  background: var(--blue-tint);
  border-color: var(--blue);
}
.day.is-today .day__d { color: var(--blue); }
.day.is-today .day__dot { background: var(--blue); }

/* CTA banner (book call) */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cta-card__main { flex: 1; }
.cta-card__title { font-size: 14px; font-weight: 700; }
.cta-card__sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.cta-card__btn {
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
}

/* ============ EXERCISE LIST (Hevy-style) ============ */
.exwrap { display: flex; flex-direction: column; gap: 14px; }
.exblock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.exblock__head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.exblock__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.exblock__main { flex: 1; min-width: 0; }
.exblock__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
.exblock__meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.exblock__video {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.exblock__video:hover { background: var(--blue-tint); color: var(--blue); }

/* Hevy-style sets table */
.sets {
  border-top: 1px solid var(--border);
  padding: 0;
}
.sets__head {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr 36px;
  gap: 8px;
  padding: 10px 16px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.sets__head > :first-child { text-align: left; }
.set-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr 36px;
  gap: 8px;
  padding: 6px 16px;
  align-items: center;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.set-row.is-done { background: var(--green-tint); }
.set-row__num {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
}
.set-row.is-done .set-row__num { color: var(--green); }
.set-row__prev {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  font-feature-settings: 'tnum';
}
.set-row__input {
  width: 100%;
  padding: 8px 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-feature-settings: 'tnum';
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.set-row__input:focus {
  border-color: var(--blue);
  background: var(--surface-2);
}
.set-row.is-done .set-row__input {
  border-color: transparent;
  background: transparent;
  color: var(--green);
}
.set-row__input:disabled { color: var(--text-3); cursor: not-allowed; }
.set-row__check {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--text-3);
  transition: all 0.15s;
}
.set-row.is-done .set-row__check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Workout header (above exercises) */
.workout-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.workout-header__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.workout-header__meta {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.workout-header__timer {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  min-width: 78px;
}
.workout-header__time {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  font-family: var(--mono);
}
.workout-header__time-lbl {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.finish-bar {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
  margin-top: 18px;
  padding: 0;
}

/* ============ HISTORY ============ */
.empty {
  text-align: center;
  padding: 48px 24px;
}
.empty__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--blue-tint);
  color: var(--blue);
  display: grid; place-items: center;
}
.empty__title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.empty__sub { font-size: 13.5px; color: var(--text-3); margin: 0 0 18px; }

.histweek { margin-top: 22px; }
.histweek:first-child { margin-top: 0; }
.histweek__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.histweek__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0;
}
.histweek__count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}
.histcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.histcard__date {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.histcard__date-d {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.histcard__date-n {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}
.histcard__main { flex: 1; min-width: 0; }
.histcard__name { font-weight: 700; font-size: 14.5px; }
.histcard__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.histcard__sets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  font-feature-settings: 'tnum';
}

/* ============ ONBOARDING ============ */
.onb {
  min-height: 100vh;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}
.onb__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.onb__progress span {
  flex: 1;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  transition: background 0.3s;
}
.onb__progress span.is-active { background: var(--blue); }
.onb__heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.onb__sub {
  color: var(--text-2);
  font-size: 14.5px;
  margin: 0 0 24px;
}
.onb__main { flex: 1; }
.onb__foot { margin-top: 20px; }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all 0.15s;
}
.choice:hover { border-color: var(--border-2); }
.choice.is-selected {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.choice__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.choice.is-selected .choice__icon {
  background: var(--blue); color: #fff;
}
.choice__main { flex: 1; }
.choice__name { font-weight: 700; font-size: 15px; }
.choice__desc { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.choice__radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  flex-shrink: 0;
  display: grid; place-items: center;
  transition: all 0.15s;
}
.choice.is-selected .choice__radio {
  border-color: var(--blue);
  background: var(--blue);
}
.choice.is-selected .choice__radio::after {
  content: '';
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* ============ PROFILE ============ */
.profile-head {
  text-align: center;
  padding: 12px 0 24px;
}
.profile-head__avatar {
  width: 80px; height: 80px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), #6F4DDB);
  color: #fff;
  display: grid; place-items: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-head__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.profile-head__goal {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 0;
  margin-bottom: 18px;
}
.profile-stats__cell {
  text-align: center;
  position: relative;
}
.profile-stats__cell + .profile-stats__cell::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.profile-stats__num {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.profile-stats__lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 2px;
}

.menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.menu__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}
.menu__row:last-child { border-bottom: none; }
.menu__row:hover { background: var(--surface-2); }
.menu__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--text-2);
}
.menu__icon--blue { background: var(--blue-tint); color: var(--blue); }
.menu__icon--green { background: var(--green-tint); color: var(--green); }
.menu__icon--red { background: rgba(248,81,73,0.14); color: var(--red); }
.menu__main { flex: 1; min-width: 0; }
.menu__title { font-weight: 600; font-size: 14.5px; }
.menu__sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.menu__chev { color: var(--text-3); flex-shrink: 0; }

/* ============ SUBSCRIPTION ============ */
.plan {
  background: linear-gradient(160deg, #1F252E 0%, #161B22 100%);
  border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.plan::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--blue-tint);
  top: -80px; right: -80px;
  filter: blur(20px);
}
.plan__ribbon {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.plan__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.plan__price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 4px;
  font-feature-settings: 'tnum';
  position: relative; z-index: 1;
}
.plan__price-sym { font-size: 28px; color: var(--text-2); font-weight: 700; vertical-align: top; }
.plan__per { font-size: 13px; color: var(--text-3); position: relative; z-index: 1; }
.plan__features {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative; z-index: 1;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.plan__features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 50%;
  padding: 3px;
  width: 20px; height: 20px;
  box-sizing: border-box;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.faq__q {
  width: 100%;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.faq__q svg { flex-shrink: 0; transition: transform 0.25s ease; }
.faq.is-open .faq__q { color: var(--blue); }
.faq.is-open .faq__q svg { transform: rotate(180deg); }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq.is-open .faq__panel {
  grid-template-rows: 1fr;
}
.faq__panel-inner { overflow: hidden; }
.faq__body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  padding: 0 16px 14px;
}

/* ============ BOOK MEETING ============ */
.book-hero {
  text-align: center;
  padding: 24px 0 18px;
}
.book-hero__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--green-tint);
  color: var(--green);
  display: grid; place-items: center;
}
.book-hero__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}
.book-hero__sub {
  margin: 6px auto 0;
  max-width: 30ch;
  color: var(--text-2);
  font-size: 14px;
}

.book-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.book-divider::before, .book-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover { background: #1FB856; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  max-width: 80vw;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ============ MODAL (bottom sheet) ============ */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop.is-open { display: flex; animation: backdropIn 0.2s ease; }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 20px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--border);
  border-bottom: none;
  animation: sheetIn 0.25s ease;
}
@keyframes sheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet__handle {
  width: 36px; height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.sheet__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.anim-fade { animation: fadeUp 0.4s ease both; }
.anim-fade.d1 { animation-delay: 0.04s; }
.anim-fade.d2 { animation-delay: 0.08s; }
.anim-fade.d3 { animation-delay: 0.12s; }
.anim-fade.d4 { animation-delay: 0.16s; }
.anim-fade.d5 { animation-delay: 0.2s; }

/* ============ UTILS ============ */
.muted { color: var(--text-3); }
.center { text-align: center; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; }

/* ============================================================
   MARKETING SITE (public homepage) — wider than the .app shell
   ============================================================ */
.site { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.site-header__brand {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.site-header__brand-img {
    max-width: 150px;
}
.appbar__logo-img {
  height: 26px;
  width: auto;
  display: block;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 18px;
}
.admin-header__logo-img {
  height: 22px;
  max-height: 22px;
  width: auto;
  display: block;
}
.site-header__nav {
  display: none;
  gap: 28px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.site-header__nav a:hover { color: var(--text); }
.site-header__cta { display: flex; align-items: center; gap: 10px; }
.site-header__cta .btn { padding: 10px 16px; font-size: 13.5px; }
@media (min-width: 760px) {
  .site-header__nav { display: flex; }
}

/* Marketing hero */
.mhero {
  padding-top: 56px;
  padding-bottom: 40px;
  display: grid;
  gap: 32px;
}
.mhero__title {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 14px 0 0;
}
.mhero__sub {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 46ch;
}
.mhero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}
.mhero__cta .btn { width: auto; padding: 14px 22px; }
@media (min-width: 860px) {
  .mhero { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 56px; }
}

/* Transformation carousel */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 320px;
}
.carousel__slide {
  display: none;
  padding: 28px;
  min-height: 320px;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}
.carousel__slide.is-active { display: flex; }
.carousel__badge {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(0,0,0,0.35); color: #fff;
  padding: 5px 10px; border-radius: 999px; margin-bottom: auto;
}
.carousel__name { font-size: 16px; font-weight: 700; }
.carousel__result { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.carousel__dots {
  position: absolute; bottom: 14px; right: 18px;
  display: flex; gap: 6px;
}
.carousel__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.2s, transform 0.2s;
}
.carousel__dot.is-active { background: #fff; transform: scale(1.2); }
.carousel__note {
  margin-top: 10px; font-size: 11.5px; color: var(--text-3);
}

/* Generic marketing section */
.msection { padding-top: 44px; padding-bottom: 44px; border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.msection__head { max-width: 640px; margin: 0 0 28px; }
.msection__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.msection__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
}
.msection__sub { color: var(--text-2); font-size: 15px; margin-top: 10px; }

/* Coach about */
.coach-card {
  display: grid;
  gap: 20px;
  align-items: center;
}
.coach-card__photo {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  object-fit: cover;
}
.coach-card__body p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.coach-card__creds {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.coach-card__creds span {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 999px;
}
@media (min-width: 760px) {
  .coach-card { grid-template-columns: 0.85fr 1.15fr; }
}

/* Programs marketing grid */
.program-grid { display: grid; gap: 14px; }
.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.program-card__name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.program-card__blurb { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }
.program-card__meta {
  display: flex; gap: 14px; margin-top: 16px;
  font-size: 12.5px; color: var(--text-3); font-weight: 600;
}
@media (min-width: 760px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Funnel / assessment CTA card */
.funnel-card {
  background: linear-gradient(160deg, var(--blue) 0%, #1463CC 100%);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  color: #fff;
}
.funnel-card__title { font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.funnel-card__sub { opacity: 0.9; font-size: 14.5px; margin-top: 8px; max-width: 44ch; margin-left: auto; margin-right: auto; }
.funnel-card__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.funnel-card__cta .btn--secondary { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); color: #fff; width: auto; }
.funnel-card__cta .btn--primary { background: #fff; color: var(--blue); width: auto; }

/* Family trial banner */
.trial-banner {
  display: flex; align-items: center; gap: 16px;
  background: var(--green-tint);
  border: 1px solid rgba(63,185,80,0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.trial-banner__icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
}
.trial-banner__title { font-weight: 700; font-size: 15px; }
.trial-banner__sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Testimonials */
.testimonial-grid { display: grid; gap: 14px; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.testimonial-card__quote { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.testimonial-card__quote::before { content: '\201C'; color: var(--blue); font-weight: 800; }
.testimonial-card__quote::after { content: '\201D'; color: var(--blue); font-weight: 800; }
.testimonial-card__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testimonial-card__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.testimonial-card__name { font-size: 13px; font-weight: 700; }
.testimonial-card__result { font-size: 11.5px; color: var(--text-3); }
@media (min-width: 760px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer__links { display: flex; gap: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__copy { font-size: 12px; color: var(--text-3); text-align: center; }

/* ============ LEADERBOARD ============ */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.lb-row.is-you { border-color: var(--blue); background: var(--blue-tint); }
.lb-rank {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px; color: var(--text-2);
  flex-shrink: 0;
}
.lb-rank.is-top1 { background: var(--yellow); color: #1a1400; }
.lb-rank.is-top2 { background: #C9D2DB; color: #1a1400; }
.lb-rank.is-top3 { background: #D8935B; color: #1a1400; }
.lb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6F4DDB);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.lb-main { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.lb-you-tag { font-size: 10px; font-weight: 700; color: var(--blue); background: var(--blue-tint2); padding: 2px 6px; border-radius: 999px; }
.lb-meta { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.lb-streak { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--orange); flex-shrink: 0; }

/* ============ VIDEO LANGUAGE BADGES ============ */
.lang-badges { display: flex; gap: 4px; }
.lang-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 4px; line-height: 1.3;
}

/* Dashboard-return chip (for returning onboarded visitors) */
.dash-return {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-tint); color: var(--blue);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

/* ============================================================
   ADMIN DASHBOARD (mock, localStorage-backed)
   ============================================================ */
.admin-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.admin-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.admin-header__brand {
  font-size: 17px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none;
}
@media (max-width: 480px) {
  .admin-header__inner .row { gap: 6px; }
  .admin-header__inner .row .btn { padding: 7px 10px !important; font-size: 12px !important; }
}
.admin-header__demo {
  font-size: 11px; font-weight: 700; color: var(--orange);
  background: rgba(240,136,62,0.14); border: 1px solid rgba(240,136,62,0.3);
  padding: 4px 9px; border-radius: 999px;
}

.admin-tabs {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 12px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-2);
}
.admin-tab:hover { background: var(--surface); color: var(--text); }
.admin-tab.is-active { background: var(--blue-tint); color: var(--blue); }

.admin-view { display: none; padding: 20px 0 60px; }
.admin-view.is-active { display: block; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; justify-content: space-between; }
.admin-toolbar .input { max-width: 320px; }

.admin-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .admin-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .admin-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.arow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.arow__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #6F4DDB);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.arow__main { flex: 1; min-width: 160px; }
.arow__name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.arow__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.arow__you-tag { font-size: 10px; font-weight: 700; color: var(--blue); background: var(--blue-tint2); padding: 2px 6px; border-radius: 999px; }
.arow select.input, .arow .badge-select { width: auto; padding: 8px 10px; font-size: 12.5px; }

.badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge--green { background: var(--green-tint); color: var(--green); }
.badge--gray { background: var(--surface-2); color: var(--text-3); }
.badge--blue { background: var(--blue-tint); color: var(--blue); }
.badge--yellow { background: rgba(240,183,47,0.16); color: var(--yellow); }

.star-toggle { color: var(--text-3); transition: color 0.15s; }
.star-toggle.is-on { color: var(--yellow); }

/* Program editor */
.pe-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.pe-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.pe-day__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pe-day__title { font-weight: 700; font-size: 15px; border: none; background: transparent; color: var(--text); width: 100%; }
.pe-ex-row {
  display: grid;
  grid-template-columns: 1fr 60px 80px 70px 32px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.pe-ex-row input {
  padding: 8px 10px; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); outline: none; width: 100%;
}
.pe-ex-row input:focus { border-color: var(--blue); }
.pe-remove {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(248,81,73,0.12); color: var(--red);
  display: grid; place-items: center; flex-shrink: 0;
}
.pe-add-row { font-size: 12.5px; font-weight: 600; color: var(--blue); padding: 6px 0; }

/* Simple bar chart */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-row__label { width: 90px; font-size: 12.5px; color: var(--text-2); flex-shrink: 0; }
.bar-row__track { flex: 1; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-row__fill { height: 100%; background: var(--blue); border-radius: 999px; }
.bar-row__val { width: 34px; text-align: right; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}
.stat-card__num { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card__lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============ PRINT (workout history PDF export) ============ */
@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { position: absolute; left: 0; top: 0; width: 100%; }
  .tabbar, .appbar, .empty, #pdfBtn { display: none !important; }
}
