/* ============================================================
   ROOT & BASE
   ============================================================ */
:root {
  --bg: #0a0a0d;
  --panel: rgba(19, 19, 25, 0.86);
  --red: #d71920;
  --red-hot: #ff2831;
  --silver: #d8d8df;
  --muted: #9da0ab;
  --line: rgba(255, 255, 255, .13);
  --glow: 0 0 34px rgba(215, 25, 32, .34);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }

body {
  margin: 0; min-height: 100vh; color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, .28), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, .12), transparent 28rem),
    linear-gradient(135deg, #060607 0%, #111118 44%, #09090d 100%);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
a:hover { color: #d71920; }
a:visited { color: #d8d8df; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-bar { position: sticky; top: 0; z-index: 100; background: rgba(10,10,13,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 20px; height: 64px; display: flex; align-items: center; }
.nav-inner { max-width: 1180px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.3rem; }
.nav-logo-img { height: 32px; width: auto; }
.logo-text { color: #d71920; }
.logo-text-light { color: #ffffff; }
.nav-coach-link { color: #9da0ab; font-size: 0.75rem; font-weight: 600; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; transition: all 0.2s; white-space: nowrap; }
.nav-coach-link:hover { color: #ffffff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
body.logged-in .nav-coach-link { display: none; }
.nav-desktop { display: none; }
.nav-user-mobile { display: none; }
body.logged-in .nav-desktop { display: block; }
body.logged-in .nav-user-mobile { display: flex; align-items: center; gap: 8px; }

.menu-btn { appearance: none; border: 2px solid #ff2831; background: linear-gradient(135deg, #d71920, #a01116); color: #ffffff; padding: 10px 22px; border-radius: 14px; cursor: pointer; font: 900 0.95rem 'Inter', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: all 0.2s; box-shadow: 0 0 24px rgba(215,25,32,0.5), inset 0 1px 0 rgba(255,255,255,0.15); animation: menuGlow 2s ease-in-out infinite; position: relative; }
.menu-btn::after { content: ''; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid rgba(255,40,49,0.4); animation: menuRing 2s ease-in-out infinite; pointer-events: none; }
.menu-btn:hover { background: linear-gradient(135deg, #ff2831, #d71920); box-shadow: 0 0 40px rgba(255,40,49,0.7), inset 0 1px 0 rgba(255,255,255,0.2); transform: translateY(-2px) scale(1.03); border-color: #ff5c62; }
.menu-btn:active { transform: scale(0.94); }
.menu-label { font-size: 0.85rem; }
@keyframes menuGlow { 0%,100%{box-shadow:0 0 24px rgba(215,25,32,0.5),inset 0 1px 0 rgba(255,255,255,0.15)} 50%{box-shadow:0 0 38px rgba(255,40,49,0.7),inset 0 1px 0 rgba(255,255,255,0.25)} }
@keyframes menuRing { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:0.15;transform:scale(1.06)} }

.nav-dropdown { position: absolute; top: calc(100% + 12px); right: 0; background: rgba(14,14,22,0.98); backdrop-filter: blur(24px); border: 2px solid rgba(215,25,32,0.3); border-radius: 18px; padding: 10px 6px; min-width: 260px; max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 20px 55px rgba(0,0,0,0.7), 0 0 40px rgba(215,25,32,0.2); z-index: 200; animation: dropdownIn 0.2s ease-out; }
@keyframes dropdownIn { from{opacity:0;transform:translateY(-10px) scale(0.96)} to{opacity:1;transform:translateY(0) scale(1)} }
.nav-dropdown a { display: flex; align-items: center; gap: 8px; padding: 11px 18px; color: #c8c8d0; text-decoration: none; font-size: 0.85rem; font-weight: 600; border-radius: 10px; transition: all 0.15s; }
.nav-dropdown a:hover { background: rgba(215,25,32,0.18); color: #fff; }
.nav-dropdown a.active { background: rgba(215,25,32,0.22); color: #fff; border-left: 3px solid #d71920; padding-left: 15px; }
.nav-dropdown a.workout-link { font-weight: 800; color: #fff; background: rgba(215,25,32,0.13); font-size: 0.88rem; }
.nav-dropdown a.workout-link:hover { background: rgba(215,25,32,0.28); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 6px 10px; }
.nav-dropdown-user { display: flex; align-items: center; gap: 8px; padding: 10px 18px; flex-wrap: wrap; }
.nav-user-name { color: #d8d8df; font-size: 0.85rem; font-weight: 500; }
.btn.small { padding: 6px 14px; font-size: 0.75rem; }

/* ============================================================
   SHELL & PANELS
   ============================================================ */
.shell { width: min(1180px, calc(100vw - 28px)); margin: 0 auto; padding: 22px 0 50px; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 28px; box-shadow: 0 18px 55px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(14px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 360px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: center; padding: clamp(24px,4vw,52px); position: relative; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; }
.hero-logo { max-width: 220px; height: auto; display: block; margin-top: 6px; }
.hero-image-wrapper { display: flex; flex-direction: column; align-items: center; }
.hero-1982-img { width: 100%; max-width: 500px; height: auto; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.north-never-forgets { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.8rem,4vw,3.5rem); color: #d8d8df; text-shadow: 3px 3px 0 #000; letter-spacing: 0.08em; margin-top: 8px; }
.eyebrow { color: var(--red-hot); text-transform: uppercase; font-weight: 900; margin: 0 0 8px; font-size: .9rem; letter-spacing: .18em; }
h2 { margin: 16px 0 0; font-size: clamp(1.45rem,4vw,3.9rem); color: var(--silver); text-shadow: 3px 3px 0 #000; }
h3 { margin: 0; font-size: clamp(1.6rem,3vw,2.5rem); line-height: 1; }
h4 { margin: 20px 0 8px; color: var(--silver); font-size: 1rem; letter-spacing: .13em; text-transform: uppercase; }
.hero-text { max-width: 620px; font-size: 1.08rem; color: var(--muted); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-panel, .player-strip { margin-top: 18px; padding: 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: center; }
.auth-form { display: grid; gap: 12px; }
#signupFields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { color: var(--silver); font-weight: 700; font-size: .88rem; }
input, select { width: 100%; margin-top: 6px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.45); color: #fff; padding: 14px; outline: none; font: 700 1rem 'Inter', system-ui, sans-serif; }
input:focus, select:focus { border-color: var(--red-hot); box-shadow: 0 0 0 4px rgba(215,25,32,.16); }
.btn { appearance: none; border: 0; border-radius: 999px; padding: 14px 18px; color: white; cursor: pointer; text-transform: uppercase; font: 900 .9rem 'Inter', system-ui, sans-serif; letter-spacing: .1em; }
.btn.primary { background: linear-gradient(135deg, var(--red), #8b0b10); box-shadow: var(--glow); }
.btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.btn:hover { transform: translateY(-1px); }
.message { min-height: 20px; color: var(--muted); margin: 4px 0 0; }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 48px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); appearance: none; border: none; background: rgba(255,255,255,0.06); color: #9da0ab; font-size: 1.2rem; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: all 0.2s; line-height: 1; margin-top: 3px; }
.password-toggle:hover { background: rgba(255,255,255,0.14); color: #fff; }
.password-toggle:active { transform: translateY(-50%) scale(0.9); }
.password-toggle.showing { color: #d71920; background: rgba(215,25,32,0.15); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard { margin-top: 18px; }
.player-strip { grid-template-columns: 1fr auto; }
.quick-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 18px 0; }
.quick-stats .stat-card { padding: 16px; text-align: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; }
.quick-stats .stat-number { font-size: 2.2rem; font-weight: 900; color: var(--red-hot); display: block; }
.quick-stats small { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

.weather-widget { padding: 20px 24px; margin: 18px 0; }
.weather-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.weather-header h4 { margin: 0; }
.weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.weather-city { background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.city-name { font-weight: 600; color: #d8d8df; }
.city-temp { font-size: 1.6rem; font-weight: 700; }
.city-status { font-size: 0.85rem; color: var(--muted); }
.city-status.hot { color: #ff6b6b; }
.city-status.ok { color: #6bcb77; }
.weather-safety { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); font-size: 0.85rem; color: var(--muted); }
.weather-disclaimer { font-size: 0.75rem; color: #ff6b6b; margin-top: 4px; }

.tier-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0 20px; }
.tier-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px 16px; text-align: center; transition: all 0.3s; }
.tier-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.tier-card-icon { font-size: 2.2rem; margin-bottom: 6px; }
.tier-card h3 { font-size: 1.2rem; font-weight: 700; }
.tier-card-desc { color: #9da0ab; font-size: 0.85rem; margin: 6px 0 4px; }
.tier-card .btn { width: 100%; font-size: 0.75rem; padding: 10px 12px; }

/* ============================================================
   WORKOUTS
   ============================================================ */
.workout-page-content { padding: 24px; }
.tier-nav-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.tier-nav-buttons.bottom { margin-top: 24px; margin-bottom: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }
.workout-header { margin-bottom: 16px; }
.workout-week-display { display: flex; gap: 12px; margin-bottom: 16px; }
.week-badge { background: rgba(215,25,32,.15); color: #d71920; padding: 4px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.workout-cards { display: grid; gap: 12px; margin: 16px 0; }
.workout-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px; transition: all 0.2s; }
.workout-card.completed { border-color: rgba(107,203,119,0.3); background: rgba(107,203,119,0.05); }
.workout-card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workout-card-header h4 { margin: 0; font-size: 0.95rem; text-transform: none; letter-spacing: normal; color: #fff; }
.workout-toggles { display: flex; gap: 16px; align-items: center; }
.workout-check-wrapper { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.workout-check, .nightly-check { width: 28px; height: 28px; border-radius: 6px; border: 2px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; color: transparent; font-size: 1.1rem; font-weight: 700; }
.workout-check:hover, .nightly-check:hover { border-color: #d71920; }
.workout-check.checked, .nightly-check.checked { background: #6bcb77; border-color: #6bcb77; color: #fff; }
.workout-check-label { font-size: 0.6rem; color: #9da0ab; text-transform: uppercase; }
.workout-card-body ul { margin: 0; padding-left: 1.2rem; color: #fff; font-size: 0.9rem; }
.workout-card-body ul li { margin: 4px 0; }
/* Pulse glow on unchecked workout / nightly buttons */
.workout-check:not(.checked),
.nightly-check:not(.checked) {
  animation: pulseRed 1.8s ease-in-out infinite;
  border-color: rgba(215, 25, 32, 0.6);
  box-shadow: 0 0 12px rgba(215, 25, 32, 0.4);
}

@keyframes pulseRed {
  0%   { box-shadow: 0 0 8px rgba(215, 25, 32, 0.4); }
  50%  { box-shadow: 0 0 22px rgba(255, 40, 49, 0.8); }
  100% { box-shadow: 0 0 8px rgba(215, 25, 32, 0.4); }
}

/* Once checked, the glow stops – the green background takes over */

.conditioning-card { margin: 20px 0; padding: 16px; background: rgba(255,255,255,.02); border-radius: 12px; border: 1px solid rgba(255,255,255,.06); }
.conditioning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.cond-day { display: flex; flex-direction: column; gap: 4px; }
.cond-day label { font-size: 0.75rem; font-weight: 600; color: #9da0ab; text-transform: uppercase; }
.cond-day select, .cond-day input { padding: 6px 10px; font-size: 0.85rem; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.conditioning-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); font-weight: 700; color: #d71920; font-size: 1.1rem; text-align: right; }

.week-dropdown { margin: 20px 0; padding: 16px; background: rgba(255,255,255,.02); border-radius: 12px; border: 1px solid rgba(255,255,255,.06); }
.week-dropdown label { font-size: 0.8rem; font-weight: 600; color: #9da0ab; text-transform: uppercase; display: block; margin-bottom: 8px; }
.week-dropdown select { padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #fff; width: 100%; margin-bottom: 8px; }
.workout-preview { margin-top: 10px; padding: 12px; background: rgba(0,0,0,.2); border-radius: 8px; }
.workout-preview ul { margin: 0; padding-left: 1.2rem; color: #fff; font-size: 0.85rem; }
.workout-preview ul li { margin: 4px 0; }

/* ============================================================
   TIER INFO
   ============================================================ */
.tier-info-page .tier-page-content { padding: 32px 40px; }
.tier-page-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 20px; }
.tier-page-icon { font-size: 3.2rem; }
.tier-section { margin-bottom: 20px; }
.tier-section h4 { color: #d71920; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }
.tier-section p { color: #d8d8df; font-size: 0.95rem; line-height: 1.6; margin: 0; }
.tier-vault-note { color: #9da0ab; font-size: 0.85rem; font-style: italic; margin-bottom: 12px; }
.tier-links { display: flex; flex-direction: column; gap: 6px; }
.tier-link { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.tier-link a { color: #d8d8df; text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 0; transition: color 0.2s; }
.tier-link a:hover { color: #fff; }
.tier-link-current a { font-size: 1.05rem; font-weight: 600; }
.tier-link-other a { font-size: 0.9rem; opacity: 0.6; }
.tier-link-other a:hover { opacity: 1; }
.tier-link-type { font-size: 0.65rem; background: rgba(255,255,255,.06); padding: 2px 10px; border-radius: 12px; color: #9da0ab; white-space: nowrap; }
.tier-page-actions { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.tier-page-actions .btn { min-width: 160px; }
.tier-videos { margin: 24px 0; padding: 20px; background: rgba(255,255,255,.03); border-radius: 16px; border: 1px solid rgba(255,255,255,.06); }
.tier-videos h4 { margin: 0 0 16px; color: #d71920; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.video-card { background: rgba(0,0,0,.3); border-radius: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.06); }
.video-card h5 { margin: 0 0 8px; font-size: 0.9rem; color: #d8d8df; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-links { margin-top: 12px; font-size: 0.85rem; color: #9da0ab; text-align: center; }
.video-links a { color: #d8d8df; text-decoration: underline; }
.video-links a:hover { color: #d71920; }

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-youtube-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #ff0000; color: #fff; text-decoration: none; border-radius: 10px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; transition: all 0.2s; box-shadow: 0 4px 18px rgba(255,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); }
.glossary-youtube-btn:hover { background: #ff1a1a; box-shadow: 0 8px 28px rgba(255,0,0,0.6); transform: translateY(-3px) scale(1.04); color: #fff; }
.glossary-youtube-btn:active { transform: scale(0.93); }

/* ============================================================
   BRICK WALL PREVIEW
   ============================================================ */
.brick-wall { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 18px 0 22px; }
.brick { min-height: 42px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.05); display: grid; place-items: center; color: rgba(255,255,255,0.15); font: 900 .65rem 'Inter', system-ui, sans-serif; text-align: center; padding: 2px; transition: all 0.3s; }
.brick.done { background: linear-gradient(135deg, var(--red), #79070b); color: #fff; box-shadow: var(--glow); }
.brick.fortified { background: linear-gradient(135deg, var(--red), #79070b); color: #fff; box-shadow: var(--glow); border: 3px solid #c0c0c0; }
.brick.nwdstrong { background: linear-gradient(135deg, #d71920, #8b0b10); color: #000; font-weight: 900; font-size: 0.6rem; border-color: #ffd700; box-shadow: 0 0 20px rgba(255,215,0,0.15); }

/* ============================================================
   SUMMER WALL – EXACT PDF COORDINATES & DUST FIXED
   ============================================================ */
.wall-page {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 864;
  background: #0a0a0a;
  border-radius: 28px;
  overflow: hidden;
  min-height: 400px;
}
.wall-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wall-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 28px;
  background: transparent;
}
.wall-animation-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: 28px;
}
.wall-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

/* GRID – x: 497-1032, y: 166-554 */
.wall-grid {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: 32.3568%;
  top: -70%;
  width: 34.8307%;
  height: 44.9074%;
  opacity: 0;
  object-fit: fill;
  transition: all 3.5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
.wall-grid.visible { opacity: 0.6; }
.wall-grid.lowering { opacity: 0.8; }
.wall-grid.placed {
  top: 19.2130%;
  opacity: 0.5;
}

/* BRICK – x: 497-1032, y: 554-628 */
.wall-brick {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 32.3568%;
  top: -30%;
  width: 34.8307%;
  height: 8.5648%;
  opacity: 0;
  object-fit: fill;
  transition: none;
  filter: drop-shadow(0 0 30px rgba(139, 0, 0, 0.3));
}
.wall-brick.appear {
  opacity: 0.9;
  top: -30%;
  transition: none;
}
.wall-brick.falling {
  opacity: 1;
  top: 64.1204%;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 60px rgba(139, 0, 0, 0.6));
}
.wall-brick.placed {
  opacity: 1;
  top: 64.1204%;
  filter: drop-shadow(0 0 60px rgba(139, 0, 0, 0.6));
  transition: none;
}

/* DUST – erupts from brick bottom (grass contact) */
.wall-dust {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  left: 32.3568%;
  top: 70%;
  width: 40%;
  height: 18%;
  opacity: 0;
  object-fit: contain;
  transition: all 0.3s ease;
  background: radial-gradient(ellipse at bottom, rgba(200, 180, 150, 0.7) 0%, rgba(180, 160, 130, 0.4) 30%, transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  transform: translateX(0);
}
.wall-dust.active {
  opacity: 1;
  animation: dustErupt 2s ease-out forwards;
}
@keyframes dustErupt {
  0% { transform: scale(0.5) translateY(0); opacity: 1; filter: blur(10px); }
  30% { transform: scale(1.5) translateY(-5%); opacity: 0.9; filter: blur(15px); }
  70% { transform: scale(2.5) translateY(-10%); opacity: 0.5; filter: blur(20px); }
  100% { transform: scale(3.5) translateY(-15%); opacity: 0; filter: blur(30px); }
}

/* RED RECTANGLES */
.red-rectangle {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: calc((34.8307% - 8px) / 5);
  height: calc((44.9074% - 8px) / 9);
  opacity: 0;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.red-rectangle.visible {
  opacity: 1;
  animation: rectAppear 0.5s ease forwards;
}
@keyframes rectAppear {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* CHROME OUTLINES */
.chrome-outline {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: calc((34.8307% - 8px) / 5);
  height: calc((44.9074% - 8px) / 9);
  opacity: 0;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.chrome-outline.visible {
  opacity: 1;
  animation: chromeAppear 0.6s ease forwards;
}
@keyframes chromeAppear {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* EMPTY SIGN */
.empty-sign {
  position: absolute;
  z-index: 6;
  left: 32.3568%;
  top: 19.2130%;
  width: 34.8307%;
  height: 44.9074%;
  background: rgba(0,0,0,0.85);
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.empty-sign.visible { display: flex; }
.empty-sign-content {
  text-align: center;
  color: #ffd700;
  padding: 20px;
}
.empty-sign-content p {
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0;
}
.empty-sign-content .empty-sign-sub {
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 400;
  color: #9da0ab;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* CONTROLS – bottom-right */
.wall-status { display: none !important; }
.wall-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #d71920;
  flex-wrap: wrap;
  justify-content: center;
}
.wall-controls button {
  padding: 6px 14px;
  font-size: clamp(10px, 1vw, 13px);
  min-width: 60px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}
.wall-controls button:disabled { opacity: 0.5; cursor: not-allowed; }
#wallPlayBtn { background: linear-gradient(135deg, #d71920, #8b0b10); color: #fff; }
#wallSkipBtn { background: rgba(255,255,255,0.08); color: #9da0ab; border: 1px solid rgba(255,255,255,0.1); }
#wallSkipBtn:hover:not(:disabled) { background: rgba(255,255,255,0.15); color: #fff; }
#wallReplayBtn { background: rgba(255,215,0,0.1); color: #ffd700; border: 1px solid rgba(255,215,0,0.2); }
#wallReplayBtn:hover:not(:disabled) { background: rgba(255,215,0,0.2); }
#wallCloseBtn { background: rgba(255,255,255,0.05); color: #ff6b6b; border: 1px solid rgba(255,255,255,0.08); }
#wallCloseBtn:hover:not(:disabled) { background: rgba(255,255,255,0.1); }

/* COMPLETE VIDEO OVERLAY */
.wall-complete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 28px;
}
.wall-complete-overlay.active { display: flex; }
.wall-complete-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}
.wall-complete-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  max-width: 80%;
}
.wall-complete-text h2 {
  font-size: clamp(32px, 5vw, 64px);
  color: #ffd700;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}
.wall-complete-text p {
  font-size: clamp(18px, 2.5vw, 32px);
  color: #fff;
  margin: 8px 0;
}
.wall-complete-text button {
  margin-top: 24px;
  padding: 12px 40px;
  font-size: 18px;
}

/* ============================================================
   COACH COMMAND CENTER
   ============================================================ */
.coach-panel { padding: 24px; }
.coach-tabs { display: flex; gap: 4px; margin: 16px 0; background: rgba(255,255,255,0.03); border-radius: 14px; padding: 4px; flex-wrap: wrap; }
.coach-tab { appearance: none; border: none; background: transparent; color: #9da0ab; padding: 10px 20px; border-radius: 10px; cursor: pointer; font: 700 0.8rem 'Inter', system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; }
.coach-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.coach-tab.active { background: rgba(215,25,32,0.2); color: #fff; box-shadow: 0 0 12px rgba(215,25,32,0.2); }
.coach-tab-content.hidden { display: none; }
.coach-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; margin-bottom: 20px; }
.coach-stats .stat-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px; text-align: center; }
.coach-stats .stat-number { display: block; font-size: 2.4rem; font-weight: 900; color: var(--red-hot); }
.coach-stats .stat-card small { color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.chart-section { margin: 20px 0; padding: 16px; background: rgba(255,255,255,0.02); border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); }
.chart-section h4 { margin: 0 0 14px; font-size: 0.85rem; color: #d71920; text-transform: uppercase; letter-spacing: 0.06em; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0 4px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 30px; }
.bar-fill { width: 100%; max-width: 50px; background: linear-gradient(180deg, #d71920, #8b0b10); border-radius: 6px 6px 0 0; transition: height 0.6s ease; min-height: 4px; }
.bar-fill:hover { background: linear-gradient(180deg, #ff2831, #d71920); box-shadow: 0 0 16px rgba(215,25,32,0.4); }
.bar-label { font-size: 0.6rem; color: #9da0ab; text-transform: uppercase; }
.bar-value { font-size: 0.65rem; color: #d8d8df; font-weight: 700; }
.tier-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.tier-label { color: #fff; font-weight: 600; }
.tier-count { color: var(--red-hot); font-weight: 900; }
.player-table-wrapper { overflow-x: auto; margin-top: 10px; }
.player-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.player-table th { text-align: left; padding: 10px 14px; color: #9da0ab; font-weight: 700; text-transform: uppercase; font-size: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; user-select: none; white-space: nowrap; }
.player-table th:hover { color: #fff; }
.player-table th.sorted { color: #d71920; }
.player-table td { padding: 10px 14px; color: #d8d8df; border-bottom: 1px solid rgba(255,255,255,0.03); white-space: nowrap; }
.player-table tr:hover td { background: rgba(255,255,255,0.02); }
.player-table .cold-row td { color: #ff6b6b; opacity: 0.7; }
.player-table .hot-row td { color: #6bcb77; }
.streak-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.streak-badge.hot { background: rgba(107,203,119,0.2); color: #6bcb77; }
.streak-badge.warm { background: rgba(255,217,61,0.2); color: #ffd93d; }
.streak-badge.cold { background: rgba(255,107,107,0.2); color: #ff6b6b; }
.alert-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 8px; margin: 4px 0; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); }
.alert-item.cold { border-left: 3px solid #ff6b6b; }
.alert-item.new { border-left: 3px solid #6bcb77; }
.alert-item.milestone { border-left: 3px solid #ffd700; }
.engagement-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.engagement-bar-bg { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; margin: 0 12px; overflow: hidden; }
.engagement-bar-fill { height: 100%; background: linear-gradient(90deg, #d71920, #ff2831); border-radius: 4px; transition: width 0.6s ease; }

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.schedule-item .event-date { color: #d8d8df; font-weight: 600; }
.schedule-item .event-name { color: #9da0ab; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #1a1a20; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 32px; max-width: 460px; width: 90%; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.modal-box h3 { font-size: 1.4rem; margin-bottom: 12px; color: #fff; }
.modal-box p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.modal-actions .btn { font-size: 0.85rem; padding: 12px 24px; }
.challenge-gate-box { max-width: 520px; text-align: center; }
.challenge-gate-box h3 { font-size: 1.6rem; }
.challenge-actions { justify-content: center; gap: 16px; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #c0c0c0; border-top: 2px solid #d71920; padding: 4px 0; min-height: 34px; display: flex; align-items: center; overflow: hidden; box-shadow: 0 -2px 10px rgba(0,0,0,0.3); }
.ticker-content { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.ticker-inner { display: inline-block; animation: tickerScroll 35s linear infinite; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; color: #1a1a1a; padding-left: 100%; }
.ticker-bar:hover .ticker-inner { animation-play-state: paused; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }
.ticker-item { display: inline-block; margin: 0 18px; }
.ticker-brand { display: inline-block; background: #d71920; padding: 2px 12px; border-radius: 4px; font-weight: 900; font-size: 1rem; letter-spacing: 0.08em; color: #fff; text-transform: uppercase; box-shadow: 0 1px 4px rgba(0,0,0,0.2); margin: 0 18px; }
.ticker-label { color: rgba(0,0,0,0.5); font-weight: 600; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.ticker-value { color: #1a1a1a; font-weight: 700; }
.ticker-event .ticker-value { color: #d71920; font-weight: 800; }
.ticker-countdown { color: #d71920; font-weight: 700; margin-left: 6px; font-size: 0.65rem; background: rgba(215,25,32,0.1); padding: 1px 8px; border-radius: 12px; }
.ticker-divider { color: rgba(0,0,0,0.15); font-weight: 300; margin: 0 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.legal-footer { text-align: center; padding: 20px 16px 24px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.04); }
.legal-text { font-size: 0.6rem; color: rgba(255,255,255,0.25); margin: 0; line-height: 1.4; }
.legal-text.small { font-size: 0.5rem; color: rgba(255,255,255,0.15); margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .nav-user-mobile { display: flex !important; }
  .menu-label { display: none; }
  .menu-btn { padding: 10px 16px; font-size: 1.2rem; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { order: 1; } .hero-image-wrapper { order: 2; }
  .hero-1982-img { max-width: 100%; }
  .tier-cards { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .weather-grid, .conditioning-grid { grid-template-columns: 1fr; }
  .tier-page-content, .wall-page, .speed-ladder-page, .nutrition-page { padding: 20px; }
  .wall-opening { width: 75%; }
  .video-grid { grid-template-columns: 1fr; }
  .coach-stats { grid-template-columns: 1fr 1fr; }
  .bar-chart { height: 100px; }
}
@media (max-width: 520px) {
  .shell { width: min(100vw - 18px, 1180px); padding-top: 9px; }
  .hero, .auth-panel, .player-strip { border-radius: 20px; padding: 18px; }
  .hero-logo { max-width: 130px; }
  .tier-page-content, .workout-page-content { padding: 16px; }
  .quick-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-stats .stat-number { font-size: 1.6rem; }
  .wall-page { min-height: 350px; }
  .wall-opening { width: 85%; }
  .coach-tabs { gap: 2px; }
  .coach-tab { padding: 8px 14px; font-size: 0.7rem; }
}
@media (max-width: 420px) {
  .ticker-bar { min-height: 28px; }
  .ticker-inner { font-size: 0.6rem; animation-duration: 25s; }
  .ticker-item { margin: 0 10px; }
  .ticker-brand { font-size: 0.7rem; padding: 1px 8px; margin: 0 10px; }
}
