:root,
[data-theme="dark"] {
  --bg: #0A0C10;
  --bg-elevated: #0F141B;
  --card: #141A22;
  --surface: #141A22;
  --surface-hi: #1A222C;
  --card-border: #232C38;
  --border-strong: #2D3845;
  --red: #C8232C;
  --red-bright: #D93540;
  --logo-performance-red: #C8232C;
  --red-glow: rgba(200, 35, 44, 0.18);
  --g7-red-soft: rgba(200, 35, 44, 0.14);
  --g7-red-line: rgba(200, 35, 44, 0.45);
  --silver: #B6BEC9;
  --silver-bright: #E8ECF2;
  --gold: #D9B36A;
  --gold-dim: rgba(217, 179, 106, 0.35);
  --muted: #7C8696;
  --green: #2BB673;
  --danger: #D44A4A;
  --text: #E8ECF2;
  --body-gradient: radial-gradient(60% 40% at 50% -10%, rgba(200, 35, 44, 0.10), transparent 60%),
    radial-gradient(40% 30% at 100% 0%, rgba(90, 141, 238, 0.05), transparent 60%),
    linear-gradient(180deg, #0A0C10 0%, #07090C 100%);
  --header-bg: linear-gradient(180deg, #0d0d0d 0%, var(--bg) 100%);
  --nav-bg: linear-gradient(0deg, #000 0%, #0d0d0d 100%);
  --radius: 16px;
  --nav-top-h: 58px;
  --nav-bottom-h: 72px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
  --ring-focus: 0 0 0 3px rgba(200, 35, 44, 0.25);
  --logo-shadow: 0 2px 10px rgba(200, 35, 44, 0.35);
  --logo-shadow-lg: 0 8px 32px rgba(200, 35, 44, 0.28), 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-hi: #eef1f6;
  --card-border: #d5dbe4;
  --border-strong: #bcc4d0;
  --red: #C8232C;
  --red-bright: #b81e27;
  --logo-performance-red: #C8232C;
  --red-glow: rgba(200, 35, 44, 0.12);
  --g7-red-soft: rgba(200, 35, 44, 0.08);
  --g7-red-line: rgba(200, 35, 44, 0.35);
  --silver: #4a5568;
  --silver-bright: #1a202c;
  --gold: #9a7428;
  --gold-dim: rgba(154, 116, 40, 0.35);
  --muted: #64748b;
  --green: #1f9d55;
  --danger: #c53030;
  --text: #1a202c;
  --body-gradient: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  --header-bg: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  --nav-bg: linear-gradient(0deg, #e8ecf2 0%, #f4f6f9 100%);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 14px rgba(15, 23, 42, 0.08);
  --ring-focus: 0 0 0 3px rgba(200, 35, 44, 0.2);
  --logo-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  --logo-shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(200, 35, 44, 0.12);
}

[data-theme="charcoal"] {
  --bg: #36454F;
  --bg-elevated: #3d505c;
  --card: #425563;
  --surface: #425563;
  --surface-hi: #4a5f6e;
  --card-border: #526878;
  --border-strong: #5e7585;
  --red: #E04550;
  --red-bright: #F05A64;
  --logo-performance-red: #E04550;
  --red-glow: rgba(224, 69, 80, 0.22);
  --g7-red-soft: rgba(224, 69, 80, 0.16);
  --g7-red-line: rgba(224, 69, 80, 0.45);
  --silver: #c8d0d8;
  --silver-bright: #f0f4f8;
  --gold: #E8C88A;
  --gold-dim: rgba(232, 200, 138, 0.35);
  --muted: #9aa8b4;
  --green: #3ecf8e;
  --danger: #f07178;
  --text: #f0f4f8;
  --body-gradient: radial-gradient(60% 40% at 50% -10%, rgba(224, 69, 80, 0.12), transparent 60%),
    linear-gradient(180deg, #36454F 0%, #2f3d47 100%);
  --header-bg: linear-gradient(180deg, #3d505c 0%, #36454F 100%);
  --nav-bg: linear-gradient(0deg, #2f3d47 0%, #36454F 100%);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 18px rgba(0, 0, 0, 0.25);
  --ring-focus: 0 0 0 3px rgba(224, 69, 80, 0.25);
  --logo-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
  --logo-shadow-lg: 0 10px 36px rgba(0, 0, 0, 0.38), 0 2px 10px rgba(200, 35, 44, 0.22);
}

* { box-sizing: border-box; }

html {
  font-size: 106.25%;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: calc(var(--nav-top-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--nav-bottom-h) + env(safe-area-inset-bottom));
  background: var(--body-gradient);
}

/* ── Header ── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 10px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--card-border);
  background: var(--header-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-select {
  background: var(--surface-hi);
  color: var(--silver);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 7px 8px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  max-width: 92px;
  cursor: pointer;
}

.theme-select:focus {
  outline: none;
  box-shadow: var(--ring-focus);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 44px;
  max-width: 88px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(var(--logo-shadow));
}

.brand-text { min-width: 0; }

.top h1 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-bright);
  line-height: 1.2;
}

.top .brand-tagline {
  margin: 2px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--red-bright);
}

.lang-btn {
  display: none;
}

/* ── Dual navigation (top + bottom) ── */
.nav-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 6px 8px;
  background: var(--nav-bg);
  border-color: var(--card-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.nav-top {
  top: 0;
  padding-top: max(6px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.nav-bottom {
  bottom: 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--card-border);
}

.nav-bar .nav {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-1);
}

.nav-bar .nav span {
  display: block;
  width: 100%;
  font-size: clamp(0.52rem, 1.65vw, 0.68rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-bar .nav.active {
  color: var(--silver-bright);
  background: var(--g7-red-soft);
  border-color: var(--red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--g7-red-line);
}

.nav-bodyweight span {
  font-size: clamp(0.4rem, 1.25vw, 0.56rem);
  white-space: normal;
  line-height: 1.08;
  hyphens: auto;
}

@media (max-width: 380px) {
  .nav-bodyweight span {
    font-size: 0.4rem;
    line-height: 1.06;
  }
}

.lang-switch {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  min-width: 72px;
}

.lang-opt {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--muted);
  padding: 4px 8px;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-opt.active {
  color: var(--silver-bright);
  background: var(--g7-red-soft);
  border-color: var(--red);
}

@media (max-width: 380px) {
  .nav-bar .nav span {
    font-size: 0.48rem;
  }
  .lang-opt {
    font-size: 0.54rem;
    padding: 3px 6px;
  }
  .lang-switch {
    min-width: 62px;
  }
}

/* ── Home splash (logo grande) ── */
body[data-screen="home"] {
  background: var(--bg);
}

body[data-screen="home"],
body[data-screen="home"] .panel-home,
body[data-screen="home"] .splash {
  background: var(--bg);
}

body[data-screen="home"] .top {
  position: relative;
  z-index: 10;
  background: transparent;
  border: none;
  justify-content: flex-end;
  padding: 4px 12px 0;
}

body[data-screen="home"] .header-bar {
  display: none;
}

body[data-screen="home"] main {
  padding: 0;
  margin-top: -8px;
}

.panel-home {
  min-height: calc(100dvh - var(--nav-top-h) - var(--nav-bottom-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.splash {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--nav-top-h) - var(--nav-bottom-h) - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--bg);
}

.splash-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 4px 0;
  min-height: 0;
}

.splash-logo {
  width: min(92vw, 720px);
  max-height: min(60dvh, 460px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(var(--logo-shadow-lg));
}

.splash-copy {
  flex-shrink: 0;
  z-index: 2;
  width: min(94%, 440px);
  margin: 0 auto 12px;
  text-align: center;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.splash-tagline {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo-performance-red);
  line-height: 1.25;
  width: 100%;
  text-shadow: 0 2px 12px rgba(230, 57, 57, 0.35);
}

.splash-sub {
  margin: 0 0 16px;
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  font-weight: 700;
  color: var(--silver-bright);
  letter-spacing: 0.03em;
  line-height: 1.35;
  width: 100%;
}

.splash-cta {
  width: 100%;
  margin-top: 0;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  font-weight: 900;
  padding: 15px 16px;
  letter-spacing: 0.08em;
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px 10px 12px;
  border-top: 1px solid #1a1a1a;
  background: linear-gradient(0deg, #050505, #000);
}

.home-strip button {
  font-size: 0.65rem;
  padding: 10px 4px;
}

.home-strip button {
  background: #111;
  border: 1px solid var(--card-border);
  color: var(--silver);
  border-radius: 8px;
  padding: 12px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-strip button:active {
  border-color: var(--red);
  color: #fff;
  background: #1a0808;
}

/* legacy hero (other pages) */
.hero-logo-wrap {
  text-align: center;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.hero-logo {
  width: min(280px, 88vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px var(--red-glow));
}

/* ── Layout ── */
main { padding: 12px 12px 0; }
.panel { display: none; }
.panel.active { display: block; }

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-1);
}

.card h2, .card h3 {
  margin: 0 0 8px;
  color: var(--silver-bright);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.card h2 {
  border-left: 3px solid var(--red);
  padding-left: 10px;
}

.muted { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; }

.hero h2 {
  color: #fff;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: none;
  padding: 0;
  text-transform: none;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn.primary {
  background: var(--red);
  color: #fff;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px var(--red-glow);
}

.btn.primary:hover { background: var(--red-bright); }
.btn.primary:active { transform: scale(0.99); }
.btn.primary:focus-visible { box-shadow: var(--ring-focus); }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }

.chips button {
  background: var(--surface-hi);
  color: var(--silver);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.82rem;
}

.chips button.active {
  border-color: var(--g7-red-line);
  color: #fff;
  background: var(--g7-red-soft);
  box-shadow: 0 0 12px var(--red-glow);
}

/* ── Schedule ── */
.day-block { margin-bottom: 14px; }
.day-block h4 {
  margin: 0 0 8px;
  color: var(--red-bright);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slot-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
}

.slot-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.slot-row .open { color: var(--green); font-weight: 800; }
.slot-row .booked { color: var(--muted); font-weight: 700; }

.waitlist-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-hi);
  color: var(--silver-bright);
  border: 1px solid var(--g7-red-line);
}

.waitlist-btn:active {
  background: var(--g7-red-soft);
}

.waitlist-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-hi);
  border: 1px solid var(--g7-red-line);
}

.waitlist-panel[hidden] {
  display: none;
}

.waitlist-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--silver);
}

.waitlist-panel input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--silver-bright);
  font-size: 0.95rem;
}

.waitlist-selected {
  margin: 0;
  font-size: 0.84rem;
  color: var(--silver);
  line-height: 1.4;
}

.waitlist-selected strong {
  color: var(--red-bright);
}

.waitlist-submit {
  margin-top: 2px;
}

.week-label {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--silver);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* ── Bio (About George) ── */
.bio-panel {
  margin-bottom: 12px;
}

.bio-panel h2 {
  margin-bottom: 12px;
}

.bio-intro {
  margin: 0 0 16px;
  color: var(--silver-bright);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

.bio-subtitle {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--red-bright);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bio-list {
  margin: 0 0 16px;
  padding-left: 1.15rem;
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bio-list li {
  margin-bottom: 8px;
}

.bio-list li::marker {
  color: var(--red);
}

.bio-closing {
  margin: 0;
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-top: 4px;
  border-top: 1px solid var(--card-border);
}

.bio-text {
  margin: 0;
  color: var(--silver);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
}

/* ── Prices ── */
.price-panel { padding-bottom: 8px; }

.price-day-chips {
  margin: 12px 0 16px;
}

.price-list {
  margin-bottom: 12px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #1a1a1a;
}

.price-item-featured {
  padding: 16px 12px;
  margin: 0 -12px;
  border-bottom: none;
  border-radius: 12px;
  background: rgba(200, 35, 44, 0.08);
  border: 1px solid var(--g7-red-line);
  margin-bottom: 8px;
}

.price-item-main {
  flex: 1;
  min-width: 0;
}

.price-item strong {
  display: block;
  color: var(--silver-bright);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-sessions {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.price-note {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.price-per {
  display: block;
  margin-top: 6px;
  color: var(--silver);
  font-weight: 600;
}

.price-badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--g7-red-soft);
  color: var(--red-bright);
  border: 1px solid var(--g7-red-line);
}

.price-amount {
  color: var(--red-bright);
  font-weight: 900;
  font-size: 1.35rem;
  text-shadow: 0 0 20px var(--red-glow);
  white-space: nowrap;
}

.price-foot {
  font-size: 0.82rem;
  margin: 8px 0 14px;
}

.price-cta {
  width: 100%;
}

.price-empty {
  text-align: center;
  padding: 20px 8px;
}

/* ── Exercises library ── */
.exercise-library { padding-bottom: 8px; }

.exercise-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.exercise-search {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
}

.exercise-search:focus {
  outline: none;
  border-color: var(--logo-performance-red);
  box-shadow: 0 0 0 2px rgba(230, 57, 57, 0.25);
}

.exercise-filters {
  display: flex;
  gap: 8px;
}

.filter-pill {
  flex: 1;
  background: #141414;
  border: 1px solid var(--card-border);
  color: var(--silver);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-pill.active {
  border-color: var(--logo-performance-red);
  color: #fff;
  background: linear-gradient(180deg, #3a1010, #1a0808);
  box-shadow: 0 0 14px rgba(230, 57, 57, 0.2);
}

.muscle-primary { margin-bottom: 8px; }
.muscle-sub { margin-bottom: 12px; }

.muscle-sub button {
  font-size: 0.76rem;
  padding: 7px 12px;
}

.exercise-count {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.exercise-grid { display: flex; flex-direction: column; gap: 18px; }

.exercise-section-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--logo-performance-red);
  border-left: 3px solid var(--logo-performance-red);
  padding-left: 10px;
}

.exercise-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.exercise-card {
  background: var(--surface-hi);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s;
}

.exercise-card h4 {
  margin: 0 0 10px;
  color: var(--silver-bright);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.ex-num {
  color: var(--gold);
  font-weight: 800;
}

.exercise-card .links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exercise-card a {
  color: var(--silver);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
}

.exercise-card a.yt {
  border-color: var(--red);
  color: #fff;
  background: linear-gradient(180deg, #2a1010, #1a0808);
}

.exercise-card a.g7 {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: linear-gradient(180deg, #1a1608, #12100a);
}

.exercise-empty { text-align: center; padding: 24px 8px; }

@media (min-width: 640px) {
  .exercise-section-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .exercise-section-grid { grid-template-columns: repeat(3, 1fr); }
}

/* legacy exercise list */
.exercise-item { padding: 12px 0; border-bottom: 1px solid #1a1a1a; }
.exercise-item h4 { margin: 0 0 8px; color: var(--silver-bright); font-weight: 700; }
.exercise-item .links { display: flex; gap: 8px; flex-wrap: wrap; }

.exercise-item a {
  color: var(--silver);
  background: #1a1a1a;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--card-border);
  letter-spacing: 0.04em;
}

.exercise-item a.yt {
  border-color: var(--red);
  color: #fff;
  background: linear-gradient(180deg, #2a1010, #1a0808);
}

/* ── Exercises (old block replaced above) ── */

/* ── Forms ── */
form label { display: block; margin-bottom: 12px; }
form span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

form input, form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #10151C;
  color: var(--text);
  font-size: 1rem;
}

form input:focus, form select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: var(--ring-focus);
}

.msg { margin-top: 10px; padding: 12px; border-radius: 8px; font-weight: 600; }
.msg.ok { background: #0a1f12; color: var(--green); border: 1px solid #1a3d28; }
.msg.err { background: #1f0a0a; color: var(--red-bright); border: 1px solid #3d1a1a; }

/* ── Timer ── */
.timer-card { text-align: center; }

.timer-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.timer-mode {
  background: #141414;
  border: 1px solid var(--card-border);
  color: var(--silver);
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.timer-mode.active {
  border-color: var(--logo-performance-red);
  color: #fff;
  background: linear-gradient(180deg, #3a1010, #1a0808);
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.timer-preset {
  background: #111;
  border: 1px solid var(--card-border);
  color: var(--silver);
  border-radius: 8px;
  padding: 12px 6px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.timer-preset.active {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: #1a1608;
}

.timer-custom-label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.timer-custom-label input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
}

.timer-session-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.timer-display-wrap {
  margin: 20px 0 16px;
  padding: 20px 12px;
  background: radial-gradient(circle at center, #1a0808 0%, #0a0a0a 70%);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

.timer-display {
  font-size: clamp(3rem, 16vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--silver-bright);
  line-height: 1;
}

.timer-display.timer-done-flash {
  color: var(--logo-performance-red);
  animation: timerPulse 0.8s ease-in-out 3;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.timer-status {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn.timer-secondary {
  background: #1a1a1a;
  color: var(--silver-bright);
  border: 1px solid var(--card-border);
  width: 100%;
  text-align: center;
}

/* ── Bodyweight Exercise ── */
.bodyweight-panel { padding-bottom: 12px; }

.bodyweight-hero {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--card-border);
}

.bodyweight-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0a0c10;
}

.bodyweight-section {
  margin-top: 20px;
}

.bodyweight-section-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo-performance-red);
  border-left: 3px solid var(--logo-performance-red);
  padding-left: 10px;
}

.bodyweight-section-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
}

.bodyweight-desc {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.bodyweight-card h4 {
  margin-bottom: 6px;
}

.bodyweight-card {
  padding: 0;
  overflow: hidden;
}

.bodyweight-card h4,
.bodyweight-card .bodyweight-desc,
.bodyweight-card .links {
  padding-left: 14px;
  padding-right: 14px;
}

.bodyweight-card h4 {
  padding-top: 12px;
  margin-top: 0;
}

.bodyweight-card .links {
  padding-bottom: 14px;
}

.yt-lazy,
.yt-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
}

.yt-facade {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  color: inherit;
}

.yt-facade:focus-visible {
  outline: 2px solid var(--logo-performance-red);
  outline-offset: -2px;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  transition: background 0.2s ease;
}

.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  background: rgba(0, 0, 0, 0.48);
}

.yt-play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--logo-performance-red);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play-icon::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.yt-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Muscle Groups grid ── */
.muscle-panel { padding-bottom: 12px; }

.muscle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 720px) {
  .muscle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .muscle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.muscle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #14181f);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}

.muscle-card:hover,
.muscle-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(30, 144, 255, 0.35);
  outline: none;
}

.muscle-card:active { transform: translateY(0); }

.muscle-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0a0c10;
}

.muscle-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.muscle-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--silver-bright);
  line-height: 1.2;
}

.muscle-card-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Supplements ── */
.supplement-panel { padding-bottom: 8px; }

.supp-store-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
}

.supp-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.supp-section-tabs button {
  background: var(--surface-hi);
  border: 1px solid var(--card-border);
  color: var(--silver);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.supp-section-tabs button.active {
  border-color: var(--gold-dim);
  background: rgba(217, 179, 106, 0.12);
  color: var(--gold);
}

.supp-george-picks {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gold-dim);
  background: rgba(217, 179, 106, 0.06);
}

.supp-george-picks h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  padding: 0;
}

.supp-picks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supp-pick-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-hi);
  border: 1px solid var(--gold-dim);
  color: var(--silver-bright);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.supp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.supp-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.supp-badge.pick {
  background: rgba(217, 179, 106, 0.2);
  color: var(--gold);
}

.supp-badge.nsf {
  background: rgba(200, 35, 44, 0.15);
  color: #e8a0a4;
}

.supp-badge.out {
  background: rgba(120, 120, 120, 0.25);
  color: var(--muted);
}

.supp-card-out {
  opacity: 0.72;
}

.supp-card-out .supp-buy.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.supp-when {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.supp-when strong {
  color: var(--silver);
}

.supp-bot-block {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #10151C;
}

.supp-bot-block h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--silver-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  padding: 0;
}

.supp-bot-hint { margin: 0 0 10px; font-size: 0.8rem; }

.supp-bot-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supp-bot-btn {
  text-align: left;
  background: var(--surface-hi);
  border: 1px solid var(--card-border);
  color: var(--silver);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.35;
}

.supp-bot-btn.active {
  border-color: var(--g7-red-line);
  background: var(--g7-red-soft);
  color: var(--silver-bright);
}

.supp-bot-answer {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--g7-red-line);
  background: var(--g7-red-soft);
}

.supp-bot-answer-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--silver-bright);
}

.supp-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supp-card {
  background: #10151C;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
}

.supp-card-head { margin-bottom: 8px; }

.supp-cat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 179, 106, 0.12);
  color: var(--gold);
  margin-bottom: 6px;
}

.supp-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--silver-bright);
}

.supp-purpose {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.4;
}

.supp-dosage, .supp-note {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.supp-dosage strong, .supp-note strong {
  color: var(--silver);
}

.supp-buy {
  margin-top: 10px;
  font-size: 0.82rem;
  padding: 12px;
}

.supp-empty { text-align: center; padding: 20px 8px; }

/* ── Admin v2 ── */
body.admin-page {
  padding-bottom: 32px;
  background: var(--body-gradient);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-1);
  background: var(--header-bg);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-brand img {
  width: auto;
  height: 52px;
  max-width: 100px;
  object-fit: contain;
  border-bottom: 2px solid var(--g7-red-line);
  padding-bottom: 4px;
  filter: drop-shadow(var(--logo-shadow));
}

.admin-brand-text h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--silver-bright);
}

.admin-brand-text p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-chip {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--surface-hi);
  color: var(--silver);
}

.admin-wrap { max-width: 560px; margin: 0 auto; padding: 16px; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-1);
}

.admin-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--silver-bright);
  text-transform: none;
  letter-spacing: 0;
  border: none;
  padding: 0;
}

.admin-card .card-sub {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-card input,
.admin-card select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #10151C;
  color: var(--text);
  font-size: 1rem;
}

.admin-card input:focus,
.admin-card select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: var(--ring-focus);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
}

.week-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.week-tab {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--silver);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.week-tab.active {
  border-color: var(--g7-red-line);
  background: var(--g7-red-soft);
  color: var(--silver-bright);
}

.week-hint {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.status-dot.open { background: var(--green); }
.status-dot.booked { background: var(--danger); }

.btn.secondary {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border-strong);
  width: 100%;
  margin-top: 8px;
}

.btn.danger {
  background: rgba(212, 74, 74, 0.10);
  border: 1px solid rgba(212, 74, 74, 0.35);
  color: #F2A0A0;
  width: 100%;
  margin-top: 8px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.btn-row .btn { margin-top: 0; font-size: 0.82rem; padding: 10px; }

.edit-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(217, 179, 106, 0.10);
  border: 1px solid rgba(217, 179, 106, 0.35);
  color: var(--gold);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.edit-banner.show { display: flex; }

.edit-banner button {
  background: none;
  border: none;
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.82rem;
}

.admin-search {
  width: 100%;
  padding: 12px 14px;
  background: #10151C;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 12px;
}

.admin-ex-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-ex-item {
  background: #10151C;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s, background 0.15s;
}

.admin-ex-item.editing {
  border-color: var(--g7-red-line);
  border-left: 3px solid var(--red);
  background: var(--g7-red-soft);
}

.admin-ex-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-bright);
}

.admin-ex-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-ex-badges { margin-bottom: 8px; }

.admin-ex-badges span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 6px;
  letter-spacing: 0.04em;
}

.badge-yt {
  background: rgba(200, 35, 44, 0.15);
  color: #f0a0a0;
}

.badge-g7 {
  background: rgba(217, 179, 106, 0.15);
  color: var(--gold);
}

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-subhead {
  margin: 4px 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--silver-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.waitlist-admin {
  margin-bottom: 20px;
}

.appt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #10151C;
}

.appt-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--silver-bright);
}

.appt-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.appt-item .btn.danger {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.9rem;
  color: var(--silver);
}

.admin-check input {
  width: auto;
  margin: 0;
}

.admin-footer {
  text-align: center;
  margin-top: 8px;
}

.admin-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.admin-footer a:hover { color: var(--red-bright); }

.msg {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
}

.msg.ok {
  background: rgba(43, 182, 115, 0.12);
  color: var(--green);
  border: 1px solid rgba(43, 182, 115, 0.35);
}

.msg.err {
  background: rgba(212, 74, 74, 0.12);
  color: #F2A0A0;
  border: 1px solid rgba(212, 74, 74, 0.35);
}
