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

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:14px;-webkit-tap-highlight-color:transparent;text-size-adjust:100%;}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:14px;line-height:1.5;letter-spacing:-0.1px;
  color:var(--text);background:var(--surface);
  -webkit-font-smoothing:antialiased;
}
[x-cloak]{display:none!important;}
a{text-decoration:none;color:inherit;}
button,input,select,textarea{font-family:inherit;}

/* ── Tokens ── */
:root{
  --black:#000000;
  --near:#111111;
  --ink:#1c1c1c;
  --mid:#444444;
  --subtle:#717171;
  --muted:#a0a0a0;
  --border:#ebebeb;
  --border-strong:#c8c8c8;
  --surface:#f5f5f0;
  --card:#ffffff;
  --white:#ffffff;
  --text:#1c1c1c;
  --text-2:#717171;
  /* Accent */
  --accent:#D4F040;
  --accent-dk:#8fb827;
  --accent-mid:#b5d132;
  --accent-bg:rgba(212,240,64,.10);
  --accent-border:rgba(212,240,64,.45);
  /* Semantic */
  --green:#16a34a;
  --green-bg:#f0fdf4;
  --red:#dc2626;
  --red-bg:#fef2f2;
  --amber:#d97706;
  --amber-bg:#fffbeb;
  --blue:#2563eb;
  /* Layout */
  --max-w:430px;
  --nav-h:64px;
  --header-h:54px;
  /* Radii */
  --r-xs:6px;
  --r-sm:10px;
  --r-md:14px;
  --r-lg:18px;
  --r-xl:22px;
  --r-pill:9999px;
  /* Shadows */
  --sh-xs:0 1px 3px rgba(0,0,0,.04);
  --sh-sm:0 2px 12px rgba(0,0,0,.06);
  --sh-md:0 4px 24px rgba(0,0,0,.08);
  --sh-lg:0 8px 40px rgba(0,0,0,.10);
}

/* ── Shell ── */
.app-wrapper{min-height:100vh;background:var(--surface);display:flex;justify-content:center;}
.app-container{width:100%;max-width:var(--max-w);min-height:100vh;background:var(--card);position:relative;overflow-x:hidden;box-shadow:0 0 60px rgba(0,0,0,.08);}

/* ── Page header ── */
.page-header{
  height:var(--header-h);display:flex;align-items:center;
  justify-content:space-between;padding:0 18px;
  background:rgba(255,255,255,.95);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:100;
}
.header-brand{
  font-size:17px;font-weight:800;color:var(--ink);letter-spacing:-.5px;
}
.header-brand span{color:var(--accent-dk);}
.btn-icon-hd{
  width:36px;height:36px;border-radius:var(--r-sm);border:none;
  background:transparent;color:var(--mid);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;transition:background .12s;flex-shrink:0;
}
.btn-icon-hd:hover{background:var(--surface);}

/* ── Bottom nav (Uber style) ── */
.bottom-nav{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:var(--max-w);height:var(--nav-h);
  background:rgba(255,255,255,.97);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-top:1px solid var(--border);
  display:flex;align-items:center;padding:0 4px;
  padding-bottom:env(safe-area-inset-bottom);z-index:150;
}
.nav-item{
  flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:3px;padding:6px 2px;
  color:var(--muted);font-size:10px;font-weight:600;
  letter-spacing:.02em;text-decoration:none;transition:color .12s;
  text-transform:uppercase;
}
.nav-item i{font-size:21px;line-height:1;transition:color .12s;}
.nav-item.active{color:var(--ink);}
.nav-center{
  width:52px;height:52px;border-radius:50%;
  background:var(--ink);color:var(--white)!important;
  font-size:20px;margin-top:-16px;
  border:3px solid var(--card);
  flex-shrink:0;flex:0 0 52px;
  box-shadow:var(--sh-md);
  transition:transform .15s,background .15s;
}
.nav-center:hover{transform:scale(1.06);background:var(--near)!important;}
.nav-center i{font-size:20px;color:var(--white)!important;}
.nav-badge{
  position:absolute;top:5px;right:calc(50% - 22px);
  background:var(--red);color:#fff;font-size:9px;font-weight:700;
  min-width:14px;height:14px;border-radius:var(--r-pill);
  display:flex;align-items:center;justify-content:center;padding:0 3px;
  border:1.5px solid var(--white);
}

/* ── Auth (dark standalone) ── */
.auth-wrap{
  min-height:100vh;background:var(--near);
  display:flex;flex-direction:column;padding:28px 20px 40px;
  max-width:var(--max-w);margin:0 auto;
}
.auth-logo{
  font-size:2rem;font-weight:900;color:#fff;
  letter-spacing:-.05em;margin-bottom:6px;
}
.auth-logo span{color:var(--accent);}
.auth-tag{font-size:13px;color:rgba(255,255,255,.4);margin-bottom:36px;}

/* ── Input (light) ── */
.field{margin-bottom:16px;}
.field-label{display:block;font-size:11px;font-weight:600;color:var(--subtle);
             text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px;}
.input{
  width:100%;padding:13px 14px;
  border:1.5px solid var(--border);border-radius:var(--r-md);
  font-size:14px;color:var(--ink);background:var(--white);
  outline:none;font-family:inherit;transition:border-color .15s,box-shadow .15s;
}
.input:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(0,0,0,.06);}
.input::placeholder{color:var(--muted);}
/* Dark inputs for auth */
.input-dark{
  width:100%;padding:14px 16px;
  background:rgba(255,255,255,.07);border:1.5px solid rgba(255,255,255,.12);
  border-radius:var(--r-md);color:#fff;font-size:14px;font-family:inherit;outline:none;
  transition:border-color .2s,box-shadow .2s;
  -webkit-appearance:none;appearance:none;
  height:52px;
}
.input-dark:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(212,240,64,.12);
  background:rgba(255,255,255,.10);
}
.input-dark::placeholder{color:rgba(255,255,255,.28);}
.input-dark:-webkit-autofill,
.input-dark:-webkit-autofill:focus{
  -webkit-text-fill-color:#fff;
  -webkit-box-shadow:0 0 0 1000px rgba(30,30,30,.95) inset;
  caret-color:#fff;
}

/* ── Auth field with leading icon + trailing password toggle ── */
.field-dark{position:relative;display:block;}
.field-dark .field-icon{
  position:absolute;left:15px;top:50%;transform:translateY(-50%);
  color:rgba(255,255,255,.32);font-size:15px;line-height:1;
  pointer-events:none;z-index:2;
}
/* leave room for the icons */
.field-dark .input-dark{padding-left:44px;}
.field-dark.has-toggle .input-dark{padding-right:48px;}

/* the eye/see-password button */
.pw-toggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  background:none;border:none;border-radius:50%;cursor:pointer;padding:0;
  color:rgba(255,255,255,.35);font-size:16px;line-height:1;z-index:3;
  transition:color .15s,background .15s;
  -webkit-tap-highlight-color:transparent;
}
.pw-toggle:hover{color:rgba(255,255,255,.7);background:rgba(255,255,255,.06);}
.pw-toggle:active{background:rgba(255,255,255,.12);}
.pw-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.pw-toggle.is-on{color:var(--accent);}

/* ── Social sign-in ── */
.btn-google{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  height:52px;padding:0 18px;border-radius:var(--r-md);cursor:pointer;
  background:#fff;color:#1f1f1f;border:1.5px solid rgba(255,255,255,.14);
  font-family:inherit;font-size:14px;font-weight:600;text-decoration:none;
  transition:filter .15s,transform .05s;
}
.btn-google:hover{filter:brightness(.96);}
.btn-google:active{transform:translateY(1px);}
.btn-google .g-mark{width:18px;height:18px;flex-shrink:0;}
.auth-divider{
  display:flex;align-items:center;gap:12px;
  margin:18px 0;color:rgba(255,255,255,.3);font-size:11px;
  text-transform:uppercase;letter-spacing:.1em;font-weight:600;
}
.auth-divider::before,.auth-divider::after{
  content:"";flex:1;height:1px;background:rgba(255,255,255,.12);
}

/* ── Buttons ── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:13px 22px;border-radius:var(--r-pill);
  font-size:14px;font-weight:700;cursor:pointer;border:none;
  font-family:inherit;letter-spacing:-.2px;transition:all .15s;
  text-decoration:none;white-space:nowrap;
}
.btn-primary{background:var(--ink);color:#fff;}
.btn-primary:hover{background:var(--near);}
.btn-primary:active{transform:scale(.98);}
.btn-accent{background:var(--accent);color:var(--ink);}
.btn-accent:hover{background:var(--accent-mid);}
.btn-accent:active{transform:scale(.98);}
.btn-white{background:var(--white);color:var(--ink);border:1.5px solid var(--border);}
.btn-white:hover{border-color:var(--border-strong);}
.btn-ghost-dark{background:rgba(255,255,255,.08);color:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.12);}
.btn-ghost-dark:hover{background:rgba(255,255,255,.13);}
.btn-danger{background:var(--red-bg);color:var(--red);border:1px solid var(--red);}
.btn-block{width:100%;}
.btn-lg{padding:15px 26px;font-size:15px;}
.btn-sm{padding:8px 15px;font-size:12px;}
.btn-xs{padding:5px 11px;font-size:11px;font-weight:600;}

/* ── OTP ── */
.otp-row{display:flex;gap:10px;justify-content:center;}
.otp-box{
  width:58px;height:62px;
  background:rgba(255,255,255,.06);border:2px solid rgba(255,255,255,.14);
  border-radius:var(--r-md);text-align:center;
  font-size:1.5rem;font-weight:800;color:#fff;
  outline:none;font-family:inherit;transition:border-color .15s;
}
.otp-box:focus{border-color:var(--accent);}

/* ── Splash slides ── */
.splash-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.2);transition:all .2s;}
.splash-dot.on{width:22px;border-radius:4px;background:var(--accent);}
.splash-title{font-size:1.6rem;font-weight:800;color:#fff;letter-spacing:-.04em;line-height:1.2;margin-bottom:12px;}
.splash-desc{font-size:13px;color:rgba(255,255,255,.45);line-height:1.65;}

/* ── Wizard ── */
.wz-shell{min-height:100vh;background:var(--near);display:flex;flex-direction:column;padding-bottom:80px;}
.wz-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px;}
.wz-logo{font-size:15px;font-weight:800;color:#fff;letter-spacing:-.4px;}
.wz-logo span{color:var(--accent);}
.wz-counter{font-size:11px;color:rgba(255,255,255,.38);font-weight:700;}
.wz-progress-bar{height:2px;background:rgba(255,255,255,.1);margin:0 20px 0;}
.wz-progress-fill{height:100%;background:var(--accent);border-radius:2px;transition:width .4s ease;}
.wz-body{padding:28px 20px 0;}
.wz-title{font-size:1.5rem;font-weight:800;color:#fff;letter-spacing:-.04em;line-height:1.2;margin-bottom:8px;}
.wz-sub{font-size:13px;color:rgba(255,255,255,.4);line-height:1.55;margin-bottom:24px;}
/* Option cards */
.opt-grid{display:grid;gap:10px;}
.opt-grid-2{grid-template-columns:1fr 1fr;}
.opt-card{
  background:rgba(255,255,255,.06);border:2px solid transparent;
  border-radius:var(--r-lg);padding:16px;cursor:pointer;
  transition:border-color .15s,background .15s;
  display:flex;align-items:center;gap:12px;
}
.opt-card-vert{flex-direction:column;align-items:center;text-align:center;padding:18px 12px;}
.opt-card:hover{background:rgba(255,255,255,.09);}
.opt-card.sel{border-color:var(--accent)!important;background:rgba(212,240,64,.10)!important;}
.opt-icon{font-size:1.7rem;line-height:1;flex-shrink:0;}
.opt-icon-sm{font-size:1.3rem;line-height:1;flex-shrink:0;}
.opt-label{font-size:14px;font-weight:600;color:#fff;line-height:1.3;}
.opt-sub{font-size:11px;color:rgba(255,255,255,.38);margin-top:2px;}
.opt-check{
  width:20px;height:20px;border-radius:50%;border:2px solid rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;
  font-size:10px;color:transparent;margin-left:auto;flex-shrink:0;transition:all .15s;
}
.opt-card.sel .opt-check{background:var(--accent);border-color:var(--accent);color:var(--ink);}
/* Slider */
.wz-slider-wrap{margin:8px 0;}
.wz-slider-val{
  font-size:3.5rem;font-weight:900;color:var(--accent);letter-spacing:-.05em;
  text-align:center;line-height:1;margin-bottom:14px;
}
.wz-slider-unit{font-size:16px;color:rgba(255,255,255,.35);font-weight:400;margin-left:4px;}
input[type=range]{
  -webkit-appearance:none;width:100%;height:4px;
  border-radius:2px;background:rgba(255,255,255,.15);outline:none;cursor:pointer;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:26px;height:26px;border-radius:50%;
  background:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.4);cursor:pointer;
  transition:transform .12s;
}
input[type=range]::-webkit-slider-thumb:active{transform:scale(1.2);}
.unit-toggle{
  display:flex;gap:0;background:rgba(255,255,255,.08);border-radius:var(--r-pill);
  padding:3px;width:fit-content;margin:12px auto 0;
}
.unit-btn{
  padding:6px 16px;border-radius:var(--r-pill);font-size:12px;font-weight:700;
  color:rgba(255,255,255,.45);cursor:pointer;border:none;background:transparent;
  transition:all .15s;font-family:inherit;
}
.unit-btn.on{background:var(--accent);color:var(--ink);}
/* Review step */
.review-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:13px 0;border-bottom:1px solid rgba(255,255,255,.07);
}
.review-label{font-size:12px;color:rgba(255,255,255,.35);font-weight:500;}
.review-val{font-size:14px;font-weight:700;color:#fff;text-align:right;max-width:60%;}
.review-val-accent{color:var(--accent);}
/* Nav buttons */
.wz-nav{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:var(--max-w);padding:14px 20px;
  background:rgba(20,20,20,.95);backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.07);
  display:flex;gap:10px;z-index:100;
}

/* ── Section header ── */
.sec-hd{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px;}
.sec-title{font-size:17px;font-weight:800;color:var(--ink);letter-spacing:-.3px;}
.sec-link{font-size:13px;font-weight:600;color:var(--subtle);transition:color .12s;}
.sec-link:hover{color:var(--ink);}

/* ── Program card (Airbnb listing style) ── */
.prog-card{
  background:var(--white);border-radius:var(--r-lg);overflow:hidden;
  display:block;text-decoration:none;transition:transform .12s,box-shadow .15s;
  border:1px solid var(--border);
}
.prog-card:hover{transform:translateY(-2px);box-shadow:var(--sh-md);}
.prog-cover{width:100%;height:170px;object-fit:cover;display:block;background:var(--surface);}
.prog-cover-ph{
  height:170px;display:flex;align-items:center;justify-content:center;
  font-size:3rem;
}
.prog-cover-ph.c-strength {background:linear-gradient(135deg,#1c1c1c,#333);}
.prog-cover-ph.c-cardio   {background:linear-gradient(135deg,#f97316,#ea580c);}
.prog-cover-ph.c-mindful  {background:linear-gradient(135deg,#8b5cf6,#7c3aed);}
.prog-cover-ph.c-flex     {background:linear-gradient(135deg,#0ea5e9,#0284c7);}
.prog-body{padding:13px 14px 14px;}
.prog-level{
  display:inline-flex;align-items:center;gap:4px;
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;
  padding:3px 9px;border-radius:var(--r-pill);margin-bottom:7px;
}
.lvl-beginner    {background:#dcfce7;color:#14532d;}
.lvl-intermediate{background:#fef9c3;color:#713f12;}
.lvl-advanced    {background:#fee2e2;color:#7f1d1d;}
.prog-title{font-size:15px;font-weight:700;color:var(--ink);letter-spacing:-.2px;margin-bottom:6px;line-height:1.25;}
.prog-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--subtle);}
.prog-meta i{font-size:11px;}
.prog-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:10px;margin-top:8px;border-top:1px solid var(--border);
}
.xp-tag{
  display:inline-flex;align-items:center;gap:4px;
  background:var(--accent-bg);color:var(--accent-dk);
  font-size:11px;font-weight:700;padding:3px 9px;border-radius:var(--r-pill);
  border:1px solid rgba(143,184,39,.25);
}
/* Horizontal program card (search list) */
.prog-card-h{
  display:flex;gap:0;align-items:stretch;border-radius:var(--r-lg);
  overflow:hidden;border:1px solid var(--border);background:var(--white);
  text-decoration:none;transition:box-shadow .15s;
}
.prog-card-h:hover{box-shadow:var(--sh-sm);}
.prog-card-h .prog-thumb{width:88px;flex-shrink:0;object-fit:cover;background:var(--surface);}
.prog-card-h .prog-thumb-ph{width:88px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:2rem;}
.prog-card-h .prog-body{padding:11px 13px;display:flex;flex-direction:column;justify-content:center;}

/* ── Coach card ── */
.coach-card{
  background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:15px;display:flex;gap:12px;align-items:flex-start;
  text-decoration:none;transition:box-shadow .15s;
}
.coach-card:hover{box-shadow:var(--sh-sm);}
.coach-av{width:52px;height:52px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--surface);}
.coach-av-ph{
  width:52px;height:52px;border-radius:50%;flex-shrink:0;
  background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;color:var(--mid);
}
.coach-name{font-size:14px;font-weight:700;color:var(--ink);letter-spacing:-.1px;}
.coach-spec{font-size:12px;color:var(--subtle);margin-top:2px;}
.coach-stars{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--ink);margin-top:5px;}
.coach-stars i{font-size:11px;color:#f59e0b;}
.coach-stars span{color:var(--subtle);font-weight:400;margin-left:2px;}
.verified{
  display:inline-flex;align-items:center;gap:3px;
  background:#eff6ff;color:#1d4ed8;
  font-size:9px;font-weight:700;padding:2px 7px;border-radius:var(--r-pill);
  margin-left:5px;letter-spacing:.02em;
}
.match-tag{background:var(--accent-bg);color:var(--accent-dk);border:1px solid var(--accent-border);}

/* ── Level / XP / Gamification ── */
.xp-bar-track{height:6px;background:var(--border);border-radius:var(--r-pill);overflow:hidden;}
.xp-bar-fill{height:100%;background:var(--accent);border-radius:var(--r-pill);transition:width .6s ease;}
.level-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:var(--r-pill);font-size:11px;font-weight:700;letter-spacing:.02em;}
.lv-rookie    {background:#f1f5f9;color:#475569;}
.lv-challenger{background:#eff6ff;color:#1d4ed8;}
.lv-athlete   {background:#f0fdf4;color:#15803d;}
.lv-champion  {background:#fffbeb;color:#b45309;}
.lv-legend    {background:#faf5ff;color:#7e22ce;}
.streak-wrap{background:var(--ink);border-radius:var(--r-lg);padding:16px 18px;display:flex;align-items:center;gap:14px;}
.streak-num{font-size:2rem;font-weight:900;color:var(--accent);letter-spacing:-.05em;line-height:1;}
.streak-lbl{font-size:11px;color:rgba(255,255,255,.4);font-weight:500;margin-top:2px;}
.hearts-row{display:flex;gap:3px;}
.heart{font-size:17px;line-height:1;}
.heart.empty{opacity:.2;filter:grayscale(1);}
/* Today hero */
.today-hero{background:var(--ink);border-radius:var(--r-xl);padding:20px;position:relative;overflow:hidden;margin-bottom:22px;}
.today-hero::before{content:'';position:absolute;top:-40px;right:-40px;width:160px;height:160px;border-radius:50%;background:rgba(212,240,64,.06);pointer-events:none;}
.today-day{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--accent-dk);margin-bottom:5px;}
.today-title{font-size:17px;font-weight:800;color:#fff;letter-spacing:-.3px;margin-bottom:6px;}
.today-meta{font-size:12px;color:rgba(255,255,255,.38);margin-bottom:16px;}
.today-pbar{height:4px;background:rgba(255,255,255,.12);border-radius:2px;overflow:hidden;margin-bottom:5px;}
.today-pfill{height:100%;background:var(--accent);border-radius:2px;}
.today-pct{font-size:10px;color:rgba(255,255,255,.3);}

/* ── Session card ── */
.session-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-md);padding:13px;display:flex;align-items:center;gap:12px;}
.sess-num{width:34px;height:34px;border-radius:50%;background:var(--accent);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;flex-shrink:0;}
.sess-num.done{background:var(--green);color:#fff;}
.sess-num.locked{background:var(--surface);color:var(--muted);border:1px solid var(--border);}
.sess-title{font-size:13px;font-weight:700;color:var(--ink);}
.sess-meta{font-size:11px;color:var(--subtle);margin-top:2px;}

/* ── Quiz ── */
.quiz-pbar{height:3px;background:var(--border);border-radius:2px;margin:0 0 22px;}
.quiz-pfill{height:100%;background:var(--ink);border-radius:2px;transition:width .3s ease;}
.quiz-q{font-size:1.2rem;font-weight:800;color:var(--ink);letter-spacing:-.3px;line-height:1.25;margin-bottom:6px;}
.quiz-sub{font-size:13px;color:var(--subtle);margin-bottom:22px;}
.choice-card{
  background:var(--white);border:1.5px solid var(--border);border-radius:var(--r-lg);
  padding:14px 16px;cursor:pointer;display:flex;align-items:center;gap:11px;
  margin-bottom:9px;transition:all .12s;
}
.choice-card:hover{border-color:var(--border-strong);}
.choice-card.sel{background:rgba(212,240,64,.08);border-color:var(--accent);}
.choice-icon{font-size:1.3rem;flex-shrink:0;}
.choice-txt{font-size:13px;font-weight:600;color:var(--ink);}
.choice-check{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--border);margin-left:auto;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:10px;color:transparent;transition:all .12s;}
.choice-card.sel .choice-check{background:var(--accent);border-color:var(--accent);color:var(--ink);}

/* ── Settings row ── */
.srow{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s;}
.srow:hover{background:var(--surface);}
.srow-icon{width:36px;height:36px;border-radius:var(--r-sm);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:16px;}
.srow-label{flex:1;font-size:14px;font-weight:600;color:var(--ink);}
.srow-val{font-size:12px;color:var(--subtle);}
.srow-arr{color:var(--muted);font-size:12px;}

/* ── Toggle ── */
.toggle{position:relative;width:44px;height:24px;flex-shrink:0;}
.toggle input{opacity:0;width:0;height:0;position:absolute;}
.toggle-track{position:absolute;inset:0;background:var(--border);border-radius:var(--r-pill);cursor:pointer;transition:background .2s;}
.toggle input:checked + .toggle-track{background:var(--accent);}
.toggle-track::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s;}
.toggle input:checked + .toggle-track::after{transform:translateX(20px);}

/* ── Scroll row ── */
.scroll-row{display:flex;gap:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;scrollbar-width:none;}
.scroll-row::-webkit-scrollbar{display:none;}

/* ── Badges / Pills ── */
.pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--r-pill);font-size:10px;font-weight:700;letter-spacing:.03em;}
.pill-green  {background:#dcfce7;color:#14532d;}
.pill-yellow {background:#fef9c3;color:#713f12;}
.pill-red    {background:#fee2e2;color:#7f1d1d;}
.pill-blue   {background:#dbeafe;color:#1e40af;}
.pill-gray   {background:var(--surface);color:var(--mid);}
.pill-accent {background:var(--accent-bg);color:var(--accent-dk);border:1px solid var(--accent-border);}

/* ── Category chips ── */
.cat-chip{
  display:inline-flex;align-items:center;gap:5px;
  padding:7px 14px;border-radius:var(--r-pill);
  font-size:12px;font-weight:600;white-space:nowrap;
  border:1.5px solid var(--border);background:var(--white);color:var(--mid);
  cursor:pointer;transition:all .12s;text-decoration:none;flex-shrink:0;
}
.cat-chip:hover{border-color:var(--border-strong);}
.cat-chip.on{background:var(--ink);color:#fff;border-color:var(--ink);}

/* ── Notifications ── */
.notif{display:flex;gap:10px;padding:13px 16px;cursor:pointer;transition:background .1s;border-bottom:1px solid var(--border);}
.notif:hover{background:var(--surface);}
.notif.unread{background:#fffef5;}
.notif-ico{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;}
.ni-streak  {background:#fef3c7;color:#92400e;}
.ni-session {background:#dcfce7;color:#14532d;}
.ni-achieve {background:var(--accent-bg);color:var(--accent-dk);}
.ni-coach   {background:#dbeafe;color:#1e40af;}
.ni-system  {background:var(--surface);color:var(--mid);}
.notif-title{font-size:13px;font-weight:700;color:var(--ink);}
.notif-body {font-size:12px;color:var(--subtle);margin-top:2px;line-height:1.45;}
.notif-time {font-size:10px;color:var(--muted);margin-top:3px;}
.unread-dot{width:7px;height:7px;border-radius:50%;background:var(--accent-dk);flex-shrink:0;margin-top:6px;}

/* ── HTMX progress bar ── */
#htmx-progress{position:fixed;top:0;left:0;height:2px;width:0%;background:var(--ink);z-index:9999;transition:width .25s,opacity .3s;}

/* ── Page content ── */
.page-content{padding:18px 18px calc(var(--nav-h) + 18px);}

/* ── Card ── */
.card{background:var(--white);border-radius:var(--r-lg);border:1px solid var(--border);overflow:hidden;}
.card-body{padding:16px;}

/* ── Empty state ── */
.empty{text-align:center;padding:52px 24px;}
.empty-icon{font-size:2.8rem;display:block;margin-bottom:12px;opacity:.25;}
.empty-title{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:4px;}
.empty-sub  {font-size:13px;color:var(--subtle);}

/* ── Progress bars (profile) ── */
.prog-pbar{height:5px;background:var(--border);border-radius:2px;overflow:hidden;margin:5px 0 3px;}
.prog-pfill{height:100%;background:var(--ink);border-radius:2px;}

/* Responsive desktop frame */
@media(min-width:900px){
  .app-wrapper{background:#e5e5e0;}
  .app-container{border-radius:24px;margin:20px;min-height:calc(100vh - 40px);}
  .bottom-nav{border-radius:0 0 24px 24px;}
}


/* ═══════════════════════════════════════════════════
   COACH STUDIO — Design System Extension
   ═══════════════════════════════════════════════════ */
:root {
  --coach-bg:     #0a0a0a;
  --coach-card:   #141414;
  --coach-border: rgba(255,255,255,.09);
  --coach-text:   rgba(255,255,255,.9);
  --coach-muted:  rgba(255,255,255,.38);
  --g-green:      #D4F040;  /* same as --accent */
}

/* Studio shell */
.studio-shell{min-height:100vh;background:var(--coach-bg);color:var(--coach-text);}
.studio-header{
  height:54px;display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;background:rgba(20,20,20,.97);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--coach-border);position:sticky;top:0;z-index:80;
}
.studio-brand{font-size:15px;font-weight:800;color:#fff;letter-spacing:-.4px;}
.studio-brand span{color:var(--g-green);}

/* Sidebar (desktop) */
.studio-sidebar{
  width:220px;background:var(--coach-card);border-right:1px solid var(--coach-border);
  display:flex;flex-direction:column;
  position:fixed;top:54px;left:0;bottom:0;z-index:60;
}
.studio-sidebar a{
  display:flex;align-items:center;gap:10px;padding:12px 16px;
  font-size:13px;font-weight:600;color:var(--coach-muted);
  text-decoration:none;transition:all .12s;border-left:3px solid transparent;
}
.studio-sidebar a:hover{color:#fff;background:rgba(255,255,255,.04);}
.studio-sidebar a.active{color:#fff;border-left-color:var(--g-green);background:rgba(212,240,64,.06);}
.studio-main{margin-left:0;padding:16px;}
@media(min-width:700px){.studio-main{margin-left:220px;padding:24px;}}

/* Program card (dark) */
.prog-dark-card{
  background:var(--coach-card);border:1px solid var(--coach-border);
  border-radius:16px;padding:16px;display:flex;gap:12px;align-items:flex-start;
  cursor:pointer;transition:border-color .15s,background .12s;
}
.prog-dark-card:hover{border-color:rgba(255,255,255,.2);background:#1a1a1a;}
.prog-dark-card.selected{border-color:var(--g-green);}
.prog-level-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px;}
.dot-beginner{background:#4ade80;}
.dot-intermediate{background:#fbbf24;}
.dot-advanced{background:#f87171;}

/* Session row */
.session-row{
  display:flex;align-items:center;gap:10px;padding:12px 14px;
  background:rgba(255,255,255,.03);border:1px solid var(--coach-border);
  border-radius:10px;margin-bottom:8px;cursor:pointer;transition:all .12s;
}
.session-row:hover{background:rgba(255,255,255,.06);}
.session-row.expanded{background:rgba(212,240,64,.06);border-color:rgba(212,240,64,.25);}
.session-day-badge{
  width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;color:rgba(255,255,255,.5);flex-shrink:0;
}
.session-day-badge.has-video{background:rgba(212,240,64,.15);color:var(--g-green);}

/* Exercise card */
.ex-card{
  background:rgba(255,255,255,.04);border:1px solid var(--coach-border);
  border-radius:10px;padding:12px 14px;display:flex;gap:10px;align-items:center;
  margin-bottom:8px;transition:all .12s;
}
.ex-card:hover{background:rgba(255,255,255,.07);}
.ex-num{
  width:28px;height:28px;border-radius:50%;background:var(--g-green);
  color:#000;display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:900;flex-shrink:0;
}
.ex-has-video{
  width:28px;height:28px;border-radius:50%;background:rgba(34,197,94,.2);
  color:#4ade80;display:flex;align-items:center;justify-content:center;
  font-size:13px;flex-shrink:0;
}

/* Camera fullscreen */
.camera-shell{
  position:fixed;inset:0;background:#000;z-index:200;
  display:flex;flex-direction:column;max-width:430px;margin:0 auto;
}
.camera-video{width:100%;flex:1;object-fit:cover;background:#111;}
.camera-overlay-header{
  position:absolute;top:0;left:0;right:0;
  padding:16px;background:linear-gradient(to bottom,rgba(0,0,0,.8) 0%,transparent 100%);
  display:flex;align-items:center;justify-content:space-between;z-index:10;
}
.camera-overlay-footer{
  position:absolute;bottom:0;left:0;right:0;
  padding:20px 20px 32px;background:linear-gradient(to top,rgba(0,0,0,.9) 0%,transparent 100%);
  display:flex;align-items:center;justify-content:space-around;z-index:10;
}
/* Record button ring */
.record-ring{
  position:relative;width:80px;height:80px;
  display:flex;align-items:center;justify-content:center;
}
.record-btn-inner{
  width:62px;height:62px;border-radius:50%;background:#fff;
  border:none;cursor:pointer;transition:all .15s;display:flex;align-items:center;justify-content:center;
}
.record-btn-inner.recording{background:var(--g-green);}
.record-btn-inner:active{transform:scale(.94);}

/* Side tools (TikTok style) */
.side-tools-stack{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;gap:18px;align-items:center;z-index:10;
}
.side-tool-btn{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  border:none;background:none;cursor:pointer;
}
.side-tool-icon{
  width:42px;height:42px;border-radius:50%;
  background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;
}
.side-tool-label{font-size:9px;font-weight:700;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.05em;}

/* Music picker */
.music-sheet{
  background:#111;border-radius:20px 20px 0 0;padding:16px;
  max-height:75vh;overflow:hidden;display:flex;flex-direction:column;
}
.music-track-row{
  display:flex;align-items:center;gap:12px;padding:11px 12px;
  border-radius:10px;cursor:pointer;transition:background .12s;
}
.music-track-row:hover{background:rgba(255,255,255,.06);}
.music-track-row.playing{background:rgba(212,240,64,.1);}
.music-thumb{
  width:44px;height:44px;border-radius:8px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;
  overflow:hidden;
}
.music-thumb img{width:100%;height:100%;object-fit:cover;}
.music-title{font-size:13px;font-weight:700;color:#fff;}
.music-artist{font-size:11px;color:rgba(255,255,255,.4);margin-top:1px;}
.music-duration{font-size:11px;color:rgba(255,255,255,.3);margin-left:auto;flex-shrink:0;}
.music-playing-indicator{display:flex;gap:2px;align-items:flex-end;height:16px;flex-shrink:0;}
.music-bar{width:3px;border-radius:2px;background:var(--g-green);animation:musicBar .6s ease-in-out infinite alternate;}
.music-bar:nth-child(2){animation-delay:.15s;height:60%;}
.music-bar:nth-child(3){animation-delay:.3s;height:80%;}
.music-bar:nth-child(1){height:100%;}
@keyframes musicBar{from{transform:scaleY(.4)}to{transform:scaleY(1)}}

/* Editor timeline */
.timeline-wrap{
  background:var(--coach-card);border-radius:12px;overflow:hidden;
  border:1px solid var(--coach-border);
}
.timeline-ruler{
  height:24px;background:rgba(255,255,255,.04);
  display:flex;align-items:center;padding:0 8px;
  border-bottom:1px solid var(--coach-border);overflow:hidden;
}
.timeline-track{
  height:44px;position:relative;overflow:hidden;
  border-bottom:1px solid var(--coach-border);
}
.timeline-track-label{
  position:absolute;left:0;top:0;bottom:0;width:60px;
  background:var(--coach-card);z-index:5;
  display:flex;align-items:center;padding:0 8px;
  font-size:10px;font-weight:700;color:rgba(255,255,255,.3);
  text-transform:uppercase;letter-spacing:.06em;border-right:1px solid var(--coach-border);
}
.timeline-clip{
  position:absolute;left:60px;right:0;top:6px;bottom:6px;
  background:rgba(212,240,64,.2);border:1px solid rgba(212,240,64,.4);
  border-radius:4px;display:flex;align-items:center;padding:0 8px;
  font-size:11px;font-weight:600;color:var(--g-green);overflow:hidden;
  cursor:grab;
}
.timeline-clip.music{background:rgba(59,130,246,.2);border-color:rgba(59,130,246,.4);color:#60a5fa;}
.timeline-playhead{
  position:absolute;top:0;bottom:0;width:2px;background:var(--g-green);z-index:10;
  pointer-events:none;
}
.timeline-playhead::before{
  content:'';position:absolute;top:0;left:-5px;
  border:6px solid transparent;border-bottom-color:var(--g-green);
  border-top:none;transform:translateY(-100%);
}

/* Coach form */
.studio-input{
  width:100%;padding:11px 13px;background:rgba(255,255,255,.06);
  border:1.5px solid var(--coach-border);border-radius:10px;
  color:#fff;font-size:13px;font-family:inherit;outline:none;
  transition:border-color .15s;
}
.studio-input:focus{border-color:var(--g-green);}
.studio-input::placeholder{color:rgba(255,255,255,.25);}
.studio-label{display:block;font-size:10px;font-weight:700;color:rgba(255,255,255,.35);
               text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;}
.studio-select{
  width:100%;padding:11px 13px;background:rgba(255,255,255,.06);
  border:1.5px solid var(--coach-border);border-radius:10px;
  color:#fff;font-size:13px;font-family:inherit;outline:none;cursor:pointer;
  -webkit-appearance:none;
}
.studio-select option{background:#1a1a1a;color:#fff;}
.studio-select:focus{border-color:var(--g-green);}
.studio-textarea{
  width:100%;padding:11px 13px;background:rgba(255,255,255,.06);
  border:1.5px solid var(--coach-border);border-radius:10px;
  color:#fff;font-size:13px;font-family:inherit;outline:none;resize:vertical;min-height:72px;
  transition:border-color .15s;
}
.studio-textarea:focus{border-color:var(--g-green);}
.studio-textarea::placeholder{color:rgba(255,255,255,.25);}

/* Chips/tags */
.muscle-chip{
  display:inline-flex;align-items:center;gap:4px;padding:4px 10px;
  background:rgba(212,240,64,.1);border:1px solid rgba(212,240,64,.25);
  border-radius:var(--r-pill);font-size:11px;font-weight:700;color:var(--g-green);
  cursor:pointer;transition:all .12s;
}
.muscle-chip:hover{background:rgba(212,240,64,.2);}
.muscle-chip.sel{background:var(--g-green);color:#000;}

/* Stats bar */
.studio-stat{
  background:rgba(255,255,255,.04);border:1px solid var(--coach-border);
  border-radius:12px;padding:14px;text-align:center;
}
.studio-stat-num{font-size:1.6rem;font-weight:900;color:#fff;letter-spacing:-.04em;}
.studio-stat-label{font-size:10px;color:rgba(255,255,255,.35);text-transform:uppercase;letter-spacing:.08em;margin-top:2px;}

/* Empty state dark */
.empty-dark{text-align:center;padding:48px 24px;}
.empty-dark-icon{font-size:3rem;margin-bottom:12px;opacity:.2;}
.empty-dark-title{font-size:15px;font-weight:700;color:rgba(255,255,255,.6);}
.empty-dark-sub  {font-size:12px;color:rgba(255,255,255,.25);margin-top:4px;}


/* ═══════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════ */

/* Touch target minimum 44px for all interactive elements */
button, a, [role="button"] {
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent text selection on tap-heavy UI */
.camera-shell, #workoutRoot {
  -webkit-user-select: none;
  user-select: none;
}

/* Active press states for mobile (replaces :hover) */
.btn:active          { transform: scale(.97); opacity: .9; }
.btn-accent:active   { transform: scale(.97); }
.btn-primary:active  { transform: scale(.97); }

/* Fix btn rendering on iOS */
.btn {
  -webkit-appearance: none;
  appearance: none;
}

/* Bottom nav — safe area + proper height */
nav.bottom-nav, nav[style*="bottom:0"] {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
}

/* Input fields — prevent iOS zoom on focus (need font-size >= 16px) */
.input, .input-dark, .studio-input, .studio-select, .studio-textarea {
  font-size: max(16px, 14px);   /* iOS won't zoom if font-size >= 16px */
}

/* Session player specific */
#workoutRoot video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Right rail buttons — ensure tap area */
.side-tool-btn, #workoutRoot button {
  min-width: 44px;
  min-height: 44px;
}

/* Choice cards — bigger tap area on mobile */
.choice-card {
  min-height: 52px;
  padding: 13px 16px;
}

/* Program cards — proper spacing */
.prog-card {
  margin-bottom: 12px;
}

/* Scrollable containers — momentum scrolling */
.discover-scroll, .session-list, .drafts-list, [style*="overflow-y:auto"] {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* OTP boxes — proper mobile size */
.otp-box {
  min-width: 52px;
  min-height: 62px;
  font-size: 22px;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #D4F040;
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Prevent horizontal scroll globally */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════
   COACHMATCH V12 — Bodybuilding / Lookmaxxing / Medical
   Additive tokens only — nothing above is changed
   ═══════════════════════════════════════════════════ */

/* V12 category cover gradients */
.prog-cover-ph.c-bulk        { background: linear-gradient(135deg,#1a0a00,#7c2d12); }
.prog-cover-ph.c-cut         { background: linear-gradient(135deg,#450a0a,#991b1b); }
.prog-cover-ph.c-lookmaxxing { background: linear-gradient(135deg,#0d0019,#581c87); }
.prog-cover-ph.c-performance { background: linear-gradient(135deg,#0c1445,#1d4ed8); }
.prog-cover-ph.c-medical     { background: linear-gradient(135deg,#052e16,#14532d); }

/* V12 category pills */
.v12-cat-bulk        { background:#fff3e8; color:#c2410c; border:1px solid #fed7aa; }
.v12-cat-cut         { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.v12-cat-lookmaxxing { background:#faf5ff; color:#6d28d9; border:1px solid #e9d5ff; }
.v12-cat-performance { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.v12-cat-medical     { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }

/* V12 medical badge */
.badge-medical {
  display:inline-flex; align-items:center; gap:4px;
  background:#f0fdf4; color:#15803d;
  font-size:9px; font-weight:700; padding:2px 8px;
  border-radius:var(--r-pill); border:1px solid #bbf7d0;
  letter-spacing:.02em;
}

/* V12 product card grid */
.product-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:11px;
}
.product-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
  text-decoration:none; transition:box-shadow .15s;
}
.product-card:hover { box-shadow:var(--sh-sm); }
.product-card-img {
  height:120px; display:flex; align-items:center;
  justify-content:center; font-size:2.8rem;
  background:var(--surface); position:relative;
}
.product-card-body { padding:10px 12px 12px; }
.product-name { font-size:13px; font-weight:700; color:var(--ink); line-height:1.3; margin-bottom:5px; }
.product-price { font-size:16px; font-weight:900; color:var(--ink); }
.badge-18plus {
  position:absolute; top:7px; right:7px;
  background:#fffbeb; color:#92400e;
  font-size:8px; font-weight:800; padding:2px 6px;
  border-radius:var(--r-xs); border:1px solid #fde68a;
}
.badge-rx {
  position:absolute; top:7px; left:7px;
  background:#eff6ff; color:#1d4ed8;
  font-size:8px; font-weight:800; padding:2px 6px;
  border-radius:var(--r-xs); border:1px solid #bfdbfe;
}

/* V12 macro display */
.macro-ring {
  background:var(--surface); border-radius:var(--r-lg);
  padding:14px; text-align:center;
}
.macro-val { font-size:22px; font-weight:900; letter-spacing:-.04em; line-height:1; }
.macro-lbl { font-size:9px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-top:3px; }
.macro-protein { color:#ef4444; }
.macro-carbs   { color:#3b82f6; }
.macro-fats    { color:#f59e0b; }
.macro-kcal    { color:var(--accent-dk); }

/* V12 consultation card */
.consult-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:16px;
  display:flex; gap:13px; align-items:flex-start;
}
.doctor-av {
  width:52px; height:52px; border-radius:50%;
  background:var(--green-bg); border:2px solid #86efac;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}

/* V12 quiz score bar */
.score-bar-wrap { margin-bottom:9px; }
.score-bar-track { height:4px; background:var(--border); border-radius:2px; overflow:hidden; margin-top:5px; }
.score-bar-fill { height:100%; background:var(--accent); border-radius:2px; transition:width .6s ease; }

/* V12 goal badge (on profile) */
.goal-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 12px; border-radius:var(--r-pill);
  font-size:11px; font-weight:700; letter-spacing:.02em;
}
.goal-bulk        { background:#fff3e8; color:#c2410c; }
.goal-cut         { background:#fef2f2; color:#b91c1c; }
.goal-lookmax     { background:#faf5ff; color:#6d28d9; }
.goal-performance { background:#eff6ff; color:#1d4ed8; }
.goal-medical     { background:#f0fdf4; color:#15803d; }
