/* ═══════════════════════════════════════════════════════════
   COACHR — Modern SaaS Design System 2025
   Dark-first · GitHub-inspired · Clean + Indigo
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* GitHub-inspired Dark */
  --bg:       #0d1117;
  --bg-2:     #161b22;
  --bg-3:     #1c2128;
  --bg-grad:  #0d1117;

  --ink:      #e6edf3;
  --ink-2:    #8b949e;
  --ink-3:    #6e7681;
  --ink-4:    #484f58;
  --ink-5:    #30363d;

  /* Primary accent — Indigo / Purple */
  --accent:        #818cf8;
  --accent-hover:  #6366f1;
  --accent-glow:   rgba(129,140,248,0.15);
  --accent-subtle: rgba(129,140,248,0.08);

  /* Semantic */
  --accent-green:  #3fb950;
  --accent-red:    #f85149;
  --accent-orange: #d29922;

  /* Surfaces */
  --surface:   #161b22;
  --surface-2: #1c2128;
  --surface-3: #21262d;
  --border:    #30363d;
  --border-2:  #3d444d;

  /* Legacy compat */
  --paper:       var(--bg);
  --paper-2:     var(--surface);
  --paper-3:     var(--border);
  --blue:        var(--accent);
  --blue-light:  var(--accent-subtle);
  --green:       var(--accent-green);
  --green-light: rgba(63,185,80,0.10);
  --accent-light:var(--accent-subtle);
  --red-light:   rgba(248,81,73,0.10);

  /* Radius — rounded, modern */
  --r-xs:  6px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* Motion */
  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ios:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light mode */
html.light {
  --bg:       #ffffff;
  --bg-2:     #f6f8fa;
  --bg-3:     #eef1f5;
  --bg-grad:  #ffffff;

  --ink:      #1f2328;
  --ink-2:    #59636e;
  --ink-3:    #818b98;
  --ink-4:    #afb8c1;
  --ink-5:    #d1d9e0;

  --accent:        #6366f1;
  --accent-hover:  #4f46e5;
  --accent-glow:   rgba(99,102,241,0.10);
  --accent-subtle: rgba(99,102,241,0.06);

  --accent-green:  #1f883d;
  --accent-red:    #cf222e;
  --accent-orange: #9a6700;

  --surface:   #f6f8fa;
  --surface-2: #eef1f5;
  --surface-3: #d1d9e0;
  --border:    #d1d9e0;
  --border-2:  #afb8c1;

  --paper:   var(--bg);
  --paper-2: var(--surface);
  --paper-3: var(--border);
}

/* ════════════════════════════════════
   BASE RESET
════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* No ambient orbs, no noise grain — pure clean */
body::before { display: none; }
body::after { display: none; }
body > * { position: relative; z-index: 1; }

/* ════════════════════════════════════
   LOADING SCREEN
════════════════════════════════════ */
#loadingScreen {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
#loadingScreen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-logo {
  font-size: 4rem; font-weight: 200; letter-spacing: -4px;
  display: flex; align-items: baseline; gap: 2px;
  animation: logoIn 0.8s var(--ease-out) forwards;
  color: var(--ink);
}
.loading-logo em { font-style: italic; color: var(--accent); font-weight: 300; }
@keyframes logoIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.loading-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 6px;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.loading-bar-track {
  width: 100px; height: 1px;
  background: var(--border);
  overflow: hidden;
  opacity: 0; animation: fadeIn 0.3s ease 0.4s forwards;
}
.loading-bar-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  animation: loadFill 1.4s var(--ease-out) 0.5s forwards;
}
@keyframes loadFill { 0%{width:0%} 50%{width:70%} 85%{width:92%} 100%{width:100%} }

.loading-sub {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--ink-4); opacity: 0;
  animation: fadeIn 0.4s ease 0.5s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ════════════════════════════════════
   AUTH
════════════════════════════════════ */
.auth-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  animation: cardIn 0.5s var(--ease-out);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.auth-logo {
  font-size: 2.5rem; font-weight: 200; letter-spacing: -2px;
  margin-bottom: 4px;
  display: flex; align-items: baseline; gap: 4px;
}
.auth-logo em { font-style: italic; color: var(--accent); font-weight: 300; }
.auth-sub { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 36px; font-weight: 400; }

.auth-invite-banner {
  background: var(--accent-subtle);
  border: 1px solid rgba(129,140,248,0.15);
  border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 20px;
  font-size: 0.8rem; color: var(--accent);
}

.field { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.field-input {
  font-family: inherit; font-size: 0.88rem; font-weight: 400;
  width: 100%; padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink); outline: none;
  transition: border-color 0.2s var(--ease);
}
.field-input:focus {
  border-color: var(--accent);
}
.field-input::placeholder { color: var(--ink-4); }

.auth-error {
  font-size: 0.78rem; color: var(--accent-red);
  background: var(--red-light);
  border: 1px solid rgba(248,81,73,0.2);
  border-radius: var(--r-sm);
  padding: 10px 14px; margin-bottom: 14px; display: none;
}
.auth-error.show { display: block; animation: shake 0.3s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.back-to-login {
  font-size: 0.78rem; color: var(--accent);
  text-align: center; margin-top: 16px;
  cursor: pointer; transition: opacity 0.2s;
}
.back-to-login:hover { opacity: 0.7; }

/* ════════════════════════════════════
   THEME TOGGLE
════════════════════════════════════ */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all 0.2s var(--ease); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.btn {
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; letter-spacing: 0.2px;
  position: relative;
}
.btn::after { display: none; }
.btn:disabled { opacity: 0.35; pointer-events: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-3);
}
.btn-ghost:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ink {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ink:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
}

.btn-blue {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-blue:hover { background: var(--accent-hover); }

.btn-green {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}
.btn-green:hover { opacity: 0.85; }

.btn-danger {
  background: transparent;
  border-color: rgba(248,81,73,0.3);
  color: var(--accent-red);
}
.btn-danger:hover { background: var(--red-light); border-color: var(--accent-red); }

.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 0.85rem; }
.btn-sm { padding: 5px 12px; font-size: 0.70rem; }

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
header {
  padding: 28px 40px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo {
  font-size: 1.6rem; font-weight: 200; letter-spacing: -2px;
  display: flex; align-items: baseline; gap: 3px;
}
.logo em { font-style: italic; color: var(--accent); font-weight: 300; }
.logo-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%; margin-bottom: 3px;
  animation: dotPulse 3s ease-in-out infinite;
}

.header-right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.user-chip {
  font-size: 0.72rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 7px;
}

.user-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-green { background: var(--accent-green); }
.dot-blue  { background: var(--accent); }
.dot-accent{ background: var(--accent-orange); }

.role-badge {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.role-admin  { background: rgba(248,81,73,0.10);  color: var(--accent-red);   border-color: rgba(248,81,73,0.18); }
.role-coach  { background: var(--accent-subtle);   color: var(--accent);       border-color: rgba(129,140,248,0.18); }
.role-client { background: rgba(63,185,80,0.10);   color: var(--accent-green); border-color: rgba(63,185,80,0.18); }

.sync-badge {
  font-size: 0.65rem; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.sync-ok      { background: rgba(63,185,80,0.10);   color: var(--accent-green); border-color: rgba(63,185,80,0.18); }
.sync-pending { background: rgba(129,140,248,0.10); color: var(--accent);       border-color: rgba(129,140,248,0.18); }
.sync-err     { background: rgba(248,81,73,0.10);   color: var(--accent-red);   border-color: rgba(248,81,73,0.18); }

/* ════════════════════════════════════
   LAYOUT
════════════════════════════════════ */
.app { max-width: 960px; margin: 0 auto; padding: 32px 40px 120px; }
.section-title {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 14px;
}

/* ════════════════════════════════════
   ADMIN / COACH DASHBOARD
════════════════════════════════════ */
.dashboard-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 24px; align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.2px; }
.panel-body { padding: 0; }

.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s var(--ease);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-2); }
.list-item.active {
  background: var(--accent-subtle);
  border-left: 2px solid var(--accent);
}

.list-item-avatar {
  width: 36px; height: 36px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; flex-shrink: 0;
}
.avatar-coach  { background: var(--accent-subtle); color: var(--accent); }
.avatar-client { background: rgba(63,185,80,0.10); color: var(--accent-green); }

.list-item-info { flex: 1; min-width: 0; }
.list-item-name {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-item-meta { font-size: 0.68rem; color: var(--ink-3); margin-top: 2px; }
.list-item-actions { display: flex; gap: 5px; opacity: 0; transition: opacity 0.15s; }
.list-item:hover .list-item-actions { opacity: 1; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 20px 22px;
}
.stat-card::before { display: none; }
.stat-card-val { font-size: 2.2rem; font-weight: 200; display: block; margin-bottom: 2px; letter-spacing: -2px; color: var(--ink); }
.stat-card-lbl { font-size: 0.62rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); }

/* Right panel */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
}
.detail-empty { text-align: center; padding: 60px 24px; color: var(--ink-4); }
.detail-empty-icon { font-size: 2rem; opacity: 0.15; display: block; margin-bottom: 12px; }
.detail-title { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.5px; margin-bottom: 6px; }
.detail-meta { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 24px; }
.detail-section { margin-bottom: 28px; }
.detail-section-title { font-size: 0.62rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

/* Quota bar */
.quota-bar { height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.quota-fill { height: 100%; border-radius: 99px; transition: width 0.5s var(--ease-out); }
.quota-ok   { background: var(--accent-green); }
.quota-warn { background: var(--accent); }
.quota-full { background: var(--accent-red); }

/* Invite link */
.invite-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.invite-url { font-size: 0.72rem; color: var(--ink-2); flex: 1; word-break: break-all; font-family: 'SF Mono', 'Fira Code', monospace; }
.invite-used { opacity: 0.4; text-decoration: line-through; }
.invite-status { font-size: 0.62rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.invite-pending    { background: var(--accent-subtle); color: var(--accent); }
.invite-used-badge { background: rgba(63,185,80,0.10); color: var(--accent-green); }

/* ════════════════════════════════════
   CLIENT SELECTOR
════════════════════════════════════ */
.client-selector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 18px;
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.client-selector-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); }
.client-chip {
  font-size: 0.75rem; font-weight: 500;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3); cursor: pointer; transition: all 0.2s var(--ease);
}
.client-chip:hover { border-color: var(--accent); color: var(--accent); }
.client-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ════════════════════════════════════
   WEEK NAV
════════════════════════════════════ */
.week-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.week-label { font-size: 0.78rem; font-weight: 500; color: var(--ink-3); flex: 1; text-align: center; letter-spacing: 0.5px; }
.week-btn {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-3); border-radius: var(--r-xs); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.2s var(--ease);
}
.week-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════
   DAY STRIP
════════════════════════════════════ */
.day-strip {
  display: flex; gap: 2px; margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px; border-radius: var(--r-sm);
  position: relative;
}
.day-pill {
  flex: 1; font-family: inherit; font-size: 0.68rem; font-weight: 600;
  padding: 10px 4px; border-radius: var(--r-xs); border: none;
  background: transparent; color: var(--ink-4);
  cursor: pointer; transition: color 0.2s var(--ease); position: relative; z-index: 1;
}
.day-pill.active { color: var(--ink); }
.day-pill.today::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent);
}
.day-pill.has-data::before {
  content: ''; position: absolute; top: 4px; right: 6px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent-green);
}
.day-slider {
  position: absolute; top: 4px; bottom: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
}

/* ════════════════════════════════════
   SESSION ROW
════════════════════════════════════ */
.session-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; align-items: center; }
.session-pill {
  font-family: inherit; font-size: 0.73rem; font-weight: 500;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3); cursor: pointer; transition: all 0.2s var(--ease);
}
.session-pill:hover { border-color: var(--accent); color: var(--accent); }
.session-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.session-pill-wrap { position: relative; display: inline-flex; }
.session-pill-del {
  position: absolute; top: -5px; right: -5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink-3); color: var(--bg); border: none;
  cursor: pointer; font-size: 9px; display: none;
  align-items: center; justify-content: center; transition: background 0.15s;
}
.session-pill-wrap:hover .session-pill-del { display: flex; }
.session-pill-del:hover { background: var(--accent-red); }

/* ════════════════════════════════════
   STATS ROW
════════════════════════════════════ */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 28px; }
.stat-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 16px 18px;
  transition: border-color 0.2s var(--ease);
}
.stat-block::before { display: none; }
.stat-block:hover { border-color: var(--border-2); }
.stat-val {
  font-size: 1.8rem; font-weight: 200; display: block;
  letter-spacing: -1px;
  transition: transform 0.2s var(--ease-out);
}
.stat-val.pop { animation: statPop 0.3s var(--ease-out); }
@keyframes statPop { 0%{transform:scale(1)} 50%{transform:scale(1.08)} 100%{transform:scale(1)} }
.stat-lbl { font-size: 0.58rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); margin-top: 4px; }

/* ════════════════════════════════════
   MUSCLE RECAP
════════════════════════════════════ */
.muscle-recap { margin-bottom: 28px; }
.muscle-recap-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.muscle-recap-toggle { font-size: 0.65rem; font-weight: 500; color: var(--ink-4); background: none; border: none; cursor: pointer; transition: color 0.2s; }
.muscle-recap-toggle:hover { color: var(--ink-2); }
.muscle-bars { display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: max-height 0.4s var(--ease-out), opacity 0.3s; max-height: 400px; opacity: 1; }
.muscle-bars.collapsed { max-height: 0 !important; opacity: 0; }
.muscle-bar-row { display: flex; align-items: center; gap: 12px; animation: slideUp 0.3s var(--ease-out) backwards; }
.muscle-bar-label { font-size: 0.68rem; font-weight: 500; width: 80px; flex-shrink: 0; color: var(--ink-2); }
.muscle-bar-track {
  flex: 1; height: 3px;
  background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.muscle-bar-fill { height: 100%; border-radius: 99px; transition: width 0.6s var(--ease-out); background: var(--accent) !important; }
.muscle-bar-count { font-size: 0.68rem; font-weight: 600; width: 56px; text-align: right; flex-shrink: 0; color: var(--accent); }

/* ════════════════════════════════════
   EXERCISE CARDS
════════════════════════════════════ */
.ex-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.exercises-list { display: flex; flex-direction: column; gap: 6px; }

.ex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden; position: relative;
  transition: border-color 0.2s var(--ease);
  animation: slideUp 0.3s var(--ease-out) backwards;
}
.ex-card::before { display: none; }
.ex-card.dragging { opacity: 0.4; transform: scale(0.98); }
.ex-card.drag-over { border-color: var(--accent); border-style: dashed; }
.ex-card:hover { border-color: var(--border-2); }
.ex-card.done { border-left: 2px solid var(--accent-green); }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ex-drag-handle {
  display: flex; align-items: center; justify-content: center;
  width: 24px; flex-shrink: 0; cursor: grab;
  color: var(--ink-4); font-size: 14px; padding: 4px 0;
  transition: color 0.2s; touch-action: none;
}
.ex-drag-handle:hover { color: var(--ink-2); }
.ex-drag-handle:active { cursor: grabbing; }

.ex-move-btns { display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.ex-card:hover .ex-move-btns { opacity: 1; }
.ex-move-btn {
  width: 22px; height: 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-4); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; transition: all 0.15s; border-radius: 4px;
}
.ex-move-btn:hover { border-color: var(--accent); color: var(--accent); }

.ex-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px; cursor: pointer; user-select: none;
}
.ex-left { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ex-left-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ex-num { font-size: 0.82rem; font-weight: 200; color: var(--ink-4); width: 22px; flex-shrink: 0; letter-spacing: -0.5px; }
.ex-name { font-size: 0.88rem; font-weight: 500; color: var(--ink); transition: color 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card.expanded .ex-name { white-space: normal; overflow: visible; text-overflow: unset; }
.ex-card.done .ex-name { color: var(--accent-green); }
.ex-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ex-summary { font-size: 0.68rem; color: var(--ink-3); white-space: nowrap; }

.cat-badge {
  display: inline-flex; align-items: center;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); white-space: nowrap; flex-shrink: 0;
  background: transparent; color: var(--ink-3);
}

.ex-toggle {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s var(--ease); flex-shrink: 0;
  color: var(--ink-3); font-size: 13px;
}
.ex-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.ex-card.expanded .ex-toggle {
  background: var(--accent); border-color: var(--accent);
  color: #ffffff; transform: rotate(45deg);
}

.ex-del-top {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
  color: var(--ink-4); font-size: 11px;
}
.ex-del-top:hover { border-color: var(--accent-red); color: var(--accent-red); }

.ex-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0;
  border-top: 0px solid var(--border);
}
.ex-card.expanded .ex-body { max-height: 600px; opacity: 1; border-top-width: 1px; }

.sets-inner { padding: 14px 18px 14px; }
.sets-col-headers { display: grid; grid-template-columns: 28px 1fr 1fr 32px; gap: 8px; margin-bottom: 8px; }
.sets-col-lbl { font-size: 0.58rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); text-align: center; }

.set-row {
  display: grid; grid-template-columns: 28px 1fr 1fr 32px;
  gap: 8px; align-items: center; margin-bottom: 6px;
  animation: setIn 0.2s var(--ease-out) backwards;
}
@keyframes setIn { from{opacity:0;transform:translateX(-6px)} to{opacity:1;transform:translateX(0)} }
.set-idx { font-size: 0.68rem; font-weight: 600; color: var(--ink-4); text-align: center; }

.set-input {
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  width: 100%; padding: 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink); text-align: center;
  transition: border-color 0.2s; outline: none;
  -moz-appearance: textfield;
}
.set-input::-webkit-outer-spin-button,
.set-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.set-input:focus { border-color: var(--accent); }
.set-input.filled {
  border-color: rgba(107,191,122,0.3);
  color: var(--accent-green);
}

.set-del {
  width: 28px; height: 28px; border: none; background: transparent;
  color: var(--ink-4); cursor: pointer; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: color 0.15s;
}
.set-del:hover { color: var(--accent-red); }

.set-complete-flash {
  position: fixed; pointer-events: none; z-index: 10000;
  font-size: 1.4rem;
  animation: burstUp 0.8s var(--ease-out) forwards;
}
@keyframes burstUp { 0%{opacity:1;transform:translateY(0) scale(0.5)} 40%{opacity:1;transform:translateY(-30px) scale(1.2)} 100%{opacity:0;transform:translateY(-70px) scale(0.8)} }

.add-set-btn {
  width: 100%; margin-top: 10px; padding: 8px;
  border: 1px dashed var(--border);
  border-radius: var(--r-xs);
  background: transparent; color: var(--ink-4);
  font-family: inherit; font-size: 0.72rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.add-set-btn:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }

.ex-foot { padding: 0 18px 14px; display: flex; gap: 8px; justify-content: flex-end; }

/* ════════════════════════════════════
   FOCUS OVERLAY
════════════════════════════════════ */
.focus-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.85);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.focus-overlay.active { opacity: 1; pointer-events: all; }

.focus-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 40px;
  width: 100%; max-width: 440px;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease-out);
}
.focus-panel::before { display: none; }
.focus-overlay.active .focus-panel { transform: translateY(0); }

.focus-ex-num { font-size: 0.62rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.focus-ex-name { font-size: 2rem; font-weight: 300; letter-spacing: -1px; color: var(--ink); margin-bottom: 28px; line-height: 1.15; }

.focus-sets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.focus-set-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); transition: border-color 0.2s;
}
.focus-set-row:focus-within {
  border-color: var(--accent);
}
.focus-set-lbl { font-size: 0.68rem; font-weight: 600; color: var(--ink-4); letter-spacing: 1.5px; width: 34px; flex-shrink: 0; text-transform: uppercase; }
.focus-in {
  font-size: 1.5rem; font-weight: 300;
  background: transparent; border: none; outline: none;
  color: var(--ink); width: 0; flex: 1; text-align: center;
  -moz-appearance: textfield;
}
.focus-in::-webkit-outer-spin-button,
.focus-in::-webkit-inner-spin-button { -webkit-appearance: none; }
.focus-in:not(:placeholder-shown) { color: var(--accent); }
.focus-unit { font-size: 0.65rem; font-weight: 500; color: var(--ink-4); width: 24px; text-align: right; }
.focus-sep { font-size: 0.75rem; color: var(--ink-4); }
.focus-foot { display: flex; gap: 8px; }
.focus-foot .btn { flex: 1; justify-content: center; padding: 13px; font-size: 0.8rem; }

/* ════════════════════════════════════
   MODAL
════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.8);
  z-index: 600; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
/* Confirm delete always on top of other modals */
#confirmDeleteModal { z-index: 1100; }
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  width: 100%; max-width: 400px;
  transform: translateY(12px);
  transition: transform 0.3s var(--ease-out);
}
.modal::before { display: none; }
.modal-wide { max-width: 520px; }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ════════════════════════════════════
   LIBRARY / EXERCISE LIST
════════════════════════════════════ */
.cat-filter-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.cat-filter-btn {
  font-family: inherit; font-size: 0.65rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer; transition: all 0.15s;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3);
}
.cat-filter-btn:hover { border-color: var(--ink-3); color: var(--ink-2); }

.exo-list {
  max-height: 280px; overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-sm); margin-bottom: 16px;
  background: var(--bg);
}
.exo-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s; gap: 10px;
}
.exo-list-item:last-child { border-bottom: none; }
.exo-list-item:hover { background: var(--surface-2); }
.exo-list-item.already-added { opacity: 0.35; pointer-events: none; }
.exo-item-name { font-size: 0.82rem; font-weight: 500; color: var(--ink); flex: 1; }
.exo-item-add {
  width: 26px; height: 26px; border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent; color: var(--ink-3); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.exo-list-item:hover .exo-item-add { border-color: var(--accent); color: var(--accent); }
.exo-list-empty { padding: 24px; text-align: center; font-size: 0.78rem; color: var(--ink-4); }
.cat-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-option {
  font-family: inherit; font-size: 0.72rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3); cursor: pointer; transition: all 0.15s;
}

/* New session */
.selected-exos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.selected-count {
  font-size: 0.68rem; font-weight: 700;
  background: var(--accent); color: #ffffff;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.selected-exos-list {
  min-height: 42px; display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px; padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.selected-exo-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  animation: tagIn 0.2s var(--ease-out);
}
@keyframes tagIn { from{opacity:0;transform:scale(0.8)} to{opacity:1;transform:scale(1)} }
.selected-exo-tag button { border: none; background: none; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; opacity: 0.5; transition: opacity 0.15s; color: var(--ink-3); }
.selected-exo-tag button:hover { opacity: 1; }
.selected-exos-empty { font-size: 0.72rem; color: var(--ink-4); align-self: center; padding: 4px; }

/* ════════════════════════════════════
   AUTH TABS
════════════════════════════════════ */
.auth-tabs {
  display: flex; gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 3px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; font-family: inherit; font-size: 0.75rem; font-weight: 500;
  padding: 8px; border: none; border-radius: var(--r-xs);
  background: transparent; color: var(--ink-3); cursor: pointer; transition: all 0.2s;
}
.auth-tab.active {
  background: var(--surface-2);
  color: var(--ink);
}

/* ════════════════════════════════════
   HISTORY PANEL
════════════════════════════════════ */
.history-panel {
  position: fixed; top: 0; right: -420px; bottom: 0; width: 400px; max-width: 95vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 700;
  transition: right 0.4s var(--ease-out);
  display: flex; flex-direction: column;
}
.history-panel.open { right: 0; }
.history-header {
  padding: 28px 24px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.history-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.3px; }
.history-list { flex: 1; overflow-y: auto; padding: 16px; }
.history-item {
  padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px; cursor: pointer; transition: all 0.2s var(--ease);
}
.history-item:hover { border-color: var(--accent); }
.history-week { font-size: 0.62rem; font-weight: 600; color: var(--ink-4); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
.history-day { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.history-meta { font-size: 0.7rem; color: var(--ink-3); margin-top: 2px; }
.history-empty { text-align: center; padding: 40px 20px; color: var(--ink-4); font-size: 0.82rem; }

/* ════════════════════════════════════
   EMPTY STATE
════════════════════════════════════ */
.empty { text-align: center; padding: 60px 24px; color: var(--ink-4); }
.empty-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.15; }
.empty p { font-size: 0.82rem; margin-bottom: 20px; }

/* ════════════════════════════════════
   TOAST
════════════════════════════════════ */
.toast {
  position: fixed; bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.78rem; font-weight: 500;
  padding: 12px 24px; border-radius: 999px;
  white-space: nowrap; opacity: 0;
  transition: all 0.3s var(--ease-out);
  pointer-events: none; z-index: 9000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════
   COACH SESSIONS ZONE
════════════════════════════════════ */
#coachSessionsZone {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

/* ════════════════════════════════════
   EXERCISE INFO
════════════════════════════════════ */
.ex-info-btn {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent; color: var(--ink-4); font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s; font-style: normal; line-height: 1;
}
.ex-info-btn:hover { border-color: var(--accent); color: var(--accent); }
.ex-card.has-info .ex-info-btn { color: var(--accent); border-color: rgba(232,165,75,0.3); }

.ex-info-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.ex-info-modal-header .modal-title { margin-bottom: 0; }

.ex-info-iframe-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--r-sm); overflow: hidden; background: #000; margin-bottom: 16px;
}
.ex-info-iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.ex-info-no-video {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm); padding: 32px 20px; margin-bottom: 16px;
  text-align: center; gap: 8px;
}
.ex-info-no-video span { font-size: 2rem; opacity: 0.2; }
.ex-info-no-video p { font-size: 0.78rem; color: var(--ink-4); line-height: 1.5; max-width: 260px; }

.ex-info-loading {
  padding: 32px; text-align: center; color: var(--ink-4); font-size: 0.8rem;
  animation: fadeInOut 1s ease-in-out infinite;
}
@keyframes fadeInOut { 0%,100%{opacity:0.4} 50%{opacity:1} }

.ex-info-instructions {
  font-size: 0.85rem; color: var(--ink-2); line-height: 1.7;
  white-space: pre-wrap; margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px;
}

.ex-info-edit-zone { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 4px; }
.ex-info-edit-zone textarea { min-height: 72px; }

.ex-info-svg-wrap {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 24px; margin-bottom: 16px;
}
.ex-info-svg { width: 160px; height: auto; max-height: 140px; object-fit: contain; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 768px) {
  header { padding: 20px 20px 0; }
  .app { padding: 24px 20px 80px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .ex-move-btns { display: none !important; }
  .ex-drag-handle { opacity: 1 !important; color: var(--ink-3); }
  .auth-card { padding: 36px 24px; }
  .focus-panel { padding: 28px 24px; }
  .modal { padding: 24px; }
}

/* ════════════════════════════════════
   SCROLLBAR
════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* Placeholders */
#exInfoUrlInput::placeholder,
#exInfoInstrInput::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

/* Fix scroll modal */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
.modal-overlay.active {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#invitesList {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ════════════════════════════════════
   MEASUREMENTS MODAL
════════════════════════════════════ */
.measure-modal {
  max-width: 640px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.measure-modal > div[id$="Section"],
.measure-modal > #nutriMainSection,
.measure-modal > #nutriAddSection,
.measure-modal > #nutriGoalsSection {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.measure-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
  flex-shrink: 0;
}

#measureViewSection {
  overflow-y: auto;
  flex: 1; min-height: 0;
}

#measureDetailSection {
  overflow-y: auto;
  flex: 1; min-height: 0;
}

#measureList { }

/* Empty state */
.measure-empty {
  text-align: center; padding: 40px 20px; color: var(--ink-4);
}
.measure-empty-icon { font-size: 2.5rem; opacity: 0.15; display: block; margin-bottom: 12px; }
.measure-empty p { font-size: 0.82rem; margin-bottom: 20px; }

/* Latest measurement summary */
.measure-latest { margin-bottom: 8px; }
.measure-date-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 14px;
}

.measure-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}

.measure-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.measure-card:hover { border-color: var(--border-2); }
.measure-card.active { border-color: var(--accent); }

.measure-card-val {
  font-size: 1.6rem; font-weight: 200; letter-spacing: -1px;
  margin-bottom: 2px;
}
.measure-card-unit {
  font-size: 0.7rem; font-weight: 500; color: var(--ink-3); margin-left: 2px;
}
.measure-card-label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-4); display: flex; align-items: center; gap: 6px;
}

.measure-diff {
  font-size: 0.62rem; font-weight: 600; padding: 1px 5px; border-radius: 4px;
  letter-spacing: 0;
}
.measure-diff.up { color: var(--accent-green); background: rgba(107,191,122,0.10); }
.measure-diff.down { color: var(--accent-red); background: rgba(212,91,91,0.10); }

.measure-notes {
  grid-column: 1 / -1;
  font-size: 0.78rem; color: var(--ink-3); line-height: 1.5;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px;
  white-space: pre-wrap; margin-top: 4px;
}

/* History items */
.measure-history { display: flex; flex-direction: column; gap: 6px; }

.measure-history-item {
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease);
}
.measure-history-item:hover { border-color: var(--border-2); }

.measure-history-date {
  font-size: 0.68rem; font-weight: 600; color: var(--ink-2); margin-bottom: 3px;
}
.measure-history-summary {
  font-size: 0.72rem; color: var(--ink-3); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.measure-history-actions {
  display: flex; gap: 4px; margin-top: 6px;
}

/* Form section */
#measureFormSection {
  overflow-y: auto;
  flex: 1; min-height: 0;
}
.measure-form-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 16px;
}
.measure-form-scroll {
  padding-right: 4px;
}
.measure-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
  margin-bottom: 14px;
}
.measure-form-grid .field { margin-bottom: 0; }
.measure-form-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* Detail view */
.measure-detail-date {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 16px;
}
.measure-detail-grid {
  display: flex; flex-direction: column; gap: 0;
}
.measure-detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.measure-detail-row:last-child { border-bottom: none; }
.measure-detail-label {
  font-size: 0.82rem; font-weight: 500; color: var(--ink-3);
}
.measure-detail-value {
  font-size: 1.1rem; font-weight: 300; color: var(--ink); letter-spacing: -0.5px;
}
.measure-detail-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* History item clickable */
.measure-history-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.measure-history-item.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* Checkbox (select mode) */
.measure-cb {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--ink-4);
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.measure-cb.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.measure-cb.checked::after {
  content: '✓';
  font-size: 0.7rem;
  color: #000;
  font-weight: 700;
}

/* Select bar (bottom of modal) */
.measure-select-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  flex-shrink: 0;
}
.measure-select-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Coach client toolbar */
.coach-client-toolbar {
  display: flex; gap: 8px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  /* Full-screen measure modal on mobile */
  #measureModal {
    padding: 0;
  }
  .measure-modal {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    padding: 16px 20px;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .measure-modal .measure-latest { margin-bottom: 16px; }
  .measure-modal .measure-date-label { margin-bottom: 12px; }
  .measure-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .measure-card { padding: 10px 8px; }
  .measure-card-val { font-size: 1.25rem; }
  .measure-card-label { font-size: 0.58rem; letter-spacing: 1px; }
  .measure-modal .section-title { margin-top: 20px; margin-bottom: 10px; }
  .measure-history { gap: 8px; }
  .measure-history-item { padding: 14px 16px; }
  .measure-history-summary { white-space: normal; }
  .measure-form-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════
   BOTTOM NAV & PLUS SHEET
════════════════════════════════════ */
.bottom-nav { display: none; }
.mobile-sync-dot { display: none; }

/* Plus sheet overlay */
.plus-sheet-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: flex-end; justify-content: center;
}
.plus-sheet-overlay.active { display: flex; }
.plus-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 12px 0 env(safe-area-inset-bottom, 8px);
  width: 100%; max-width: 480px;
  animation: sheetUp 0.25s var(--ease-out);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.plus-sheet-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 24px;
  background: none; border: none;
  font-size: 0.88rem; font-weight: 500; color: var(--ink);
  cursor: pointer; text-align: left;
  font-family: 'Inter', sans-serif;
}
.plus-sheet-item:active { background: var(--surface-2); }
.plus-sheet-danger { color: var(--accent-red); }
.plus-sheet-icon { font-size: 1.1rem; width: 24px; text-align: center; }

/* Desktop-only helper */
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}

/* ════════════════════════════════════
   MOBILE — Bottom nav & simplified header
════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hide desktop-only elements in headers */
  .desktop-only { display: none !important; }

  /* Mobile sync dot */
  .mobile-sync-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    flex-shrink: 0;
  }
  .mobile-sync-dot.sync-pending { background: var(--accent); }
  .mobile-sync-dot.sync-err { background: var(--accent-red); }

  /* Bottom nav */
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    align-items: center;
  }
  .bnav-tab {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    background: none; border: none;
    padding: 6px 12px;
    color: var(--ink-3);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
    min-width: 0; flex: 1;
  }
  .bnav-tab.active { color: var(--accent); }
  .bnav-icon { width: 22px; height: 22px; }
  .bnav-label {
    font-size: 0.58rem; font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 72px;
  }

  /* Space for bottom nav */
  .app { padding-bottom: 100px !important; }

  /* Toast above bottom nav */
  .toast { bottom: 80px !important; }

  /* History panel above bottom nav */
  .history-panel { z-index: 950; }
}

/* ════════════════════════════════════
   GLASS COMPAT — legacy classes mapped
════════════════════════════════════ */
.glass, .glass-card, .glass-deep {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ════════════════════════════════════
   NUTRITION MODULE — Full page
════════════════════════════════════ */

:root { --accent-blue: #5B9BD4; }
html.light { --accent-blue: #4A8AC4; }

/* -- Full page container -- */
.nutri-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: none;
}

.nutri-page.active {
  display: block;
}

.nutri-page-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* -- Header -- */
.nutri-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
  gap: 8px;
}

.nutri-header-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.3px;
}

/* -- Date nav -- */
.nutri-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.nutri-date-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}

.nutri-date-btn:active { background: var(--surface-2); }

.nutri-date-label {
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 140px;
  text-align: center;
  text-transform: capitalize;
}

/* -- Scrollable body -- */
.nutri-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

/* -- Overview: ring + macros -- */
.nutri-overview {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.nutri-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.nutri-ring { width: 100%; height: 100%; }

.nutri-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nutri-ring-val { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nutri-ring-unit { font-size: 0.65rem; color: var(--ink-3); }
.nutri-ring-remain { font-size: 0.6rem; color: var(--accent-green); margin-top: 2px; }
.nutri-ring-remain.over { color: var(--accent-red); }

/* -- Macro bars (vertical) -- */
.nutri-macros-row {
  display: flex;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.nutri-macro-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nutri-macro-bar-track {
  width: 10px;
  height: 60px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.nutri-macro-bar-fill {
  width: 100%;
  border-radius: 5px;
  transition: height 0.5s var(--ease);
  min-height: 2px;
}

.nutri-macro-bar-fill.over { background: var(--accent-red) !important; }

.nutri-macro-val { font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.nutri-macro-goal { color: var(--ink-4); font-weight: 400; }
.nutri-macro-label { font-size: 0.62rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.5px; }

/* -- Meal sections -- */
.nutri-meal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
}

.nutri-meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s var(--ease);
}
.nutri-meal-header:active {
  background: var(--surface-2, rgba(100,100,100,0.06));
}

.nutri-meal-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nutri-meal-meta { display: flex; align-items: center; gap: 10px; }
.nutri-meal-kcal { font-size: 0.75rem; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }

.nutri-meal-add-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
}

.nutri-meal-items { padding: 0 16px 12px; }

.nutri-food-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.nutri-food-item:first-child { border-top: none; }
.nutri-food-info { flex: 1; min-width: 0; }

.nutri-food-name {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nutri-food-macros {
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.nutri-food-del {
  background: none;
  border: none;
  color: var(--ink-4);
  font-size: 0.75rem;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--r-xs);
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}

.nutri-food-del:hover { color: var(--accent-red); }

/* -- Tabs -- */
.nutri-tabs {
  display: flex;
  gap: 4px;
  margin: 0 16px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.nutri-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 4px;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: 'Inter', sans-serif;
}

.nutri-tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* -- Search results list -- */
.nutri-results-list { overflow-y: auto; }

.nutri-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.nutri-result-item:active { background: var(--surface-2); }

.nutri-result-name {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.nutri-result-sub {
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.nutri-result-sub span { color: var(--ink-4); }

.nutri-hint {
  text-align: center;
  padding: 28px 16px;
  font-size: 0.82rem;
  color: var(--ink-4);
}

/* -- Scanner -- */
.nutri-scan-reader {
  width: 100%;
  min-height: 250px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-3);
}

/* -- Food detail page -- */
.nutri-detail-body { padding-top: 24px; }

.nutri-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.nutri-detail-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.nutri-detail-macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.nutri-detail-macro {
  text-align: center;
  padding: 12px 4px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

.nutri-detail-macro.cal { border-bottom: 2px solid var(--accent); }
.nutri-detail-macro.prot { border-bottom: 2px solid var(--accent-green); }
.nutri-detail-macro.carb { border-bottom: 2px solid var(--accent-blue); }
.nutri-detail-macro.lip { border-bottom: 2px solid var(--accent-red); }

.nutri-detail-macro span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nutri-detail-macro small {
  font-size: 0.62rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  display: block;
}

/* -- Quantity section -- */
.nutri-qty-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.nutri-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.nutri-qty-input {
  text-align: center;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  flex: 1;
}

.nutri-qty-presets {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.nutri-qty-presets .btn {
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

/* -- Detail actions -- */
.nutri-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -- Goals form -- */
.nutri-goals-form { padding-top: 6px; }

/* -- Desktop layout -- */
@media (min-width: 769px) {
  .nutri-page.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(4px);
  }

  .nutri-page-view {
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    border-radius: var(--r-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  }

  .nutri-header {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }

  .nutri-overview { padding: 20px 24px; }
  .nutri-ring-wrap { width: 130px; height: 130px; }
  .nutri-macro-bar-track { height: 80px; }
  .nutri-body { padding: 20px 24px; }
}

/* ════════════════════════════════════════════════════════════
   LANDING PAGE — SaaS
   ════════════════════════════════════════════════════════════ */

#landingPage {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── Nav ── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Hero ── */
.landing-hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(129,140,248,0.12) 0%, rgba(99,102,241,0.05) 40%, transparent 70%);
  pointer-events: none;
  opacity: 1;
}
/* ── Floating icons ── */
.landing-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing-float {
  position: absolute;
  width: var(--size, 40px);
  height: var(--size, 40px);
  opacity: 0.10;
  animation: floatY var(--d, 7s) ease-in-out var(--delay, 0s) infinite;
  filter: brightness(0) saturate(100%) invert(78%) sepia(30%) saturate(1000%) hue-rotate(200deg) brightness(100%) contrast(96%);
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
}

.landing-hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.landing-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.landing-h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--ink);
}
.landing-h1-accent {
  color: var(--accent);
}
.landing-p {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.landing-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-lg {
  padding: 14px 32px !important;
  font-size: 0.88rem !important;
  border-radius: var(--r) !important;
}

/* ── Sections ── */
.landing-section {
  padding: 80px 24px;
}
.landing-section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.landing-h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin: 0 0 48px;
  color: var(--ink);
}

/* ── Features grid ── */
.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.landing-feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.landing-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.landing-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.landing-feature-card p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ── Steps ── */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.landing-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.landing-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.landing-step p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA section ── */
.landing-cta-section {
  padding: 100px 24px;
}

/* ── Footer ── */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 0;
}
.landing-footer .landing-nav-inner {
  padding: 20px 24px;
}
.landing-footer-text {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .landing-hero { padding: 120px 20px 60px; }
  .landing-floats { display: none; }
  .landing-h1 { font-size: 2.2rem; letter-spacing: -1px; }
  .landing-p { font-size: 0.92rem; }
  .landing-section { padding: 60px 20px; }
  .landing-features { grid-template-columns: 1fr; gap: 14px; }
  .landing-feature-card { padding: 24px 20px; }
  .landing-steps { grid-template-columns: 1fr; gap: 24px; }
  .landing-h2 { font-size: 1.6rem; margin-bottom: 32px; }
  .landing-cta-section { padding: 60px 20px; }
  .btn-lg { padding: 13px 24px !important; width: 100%; justify-content: center; }
  .landing-cta-row { flex-direction: column; align-items: stretch; }
}

/* ── Coach signup specific ── */
#coachSignupScreen .btn-accent.btn-full {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
#coachSignupScreen .btn-accent.btn-full:hover {
  background: var(--accent-hover);
}
