/* Viper Baseball Academy · v2.10 polish layer.
   Loaded last on every page so the portal and Motion Lab share one look.
   Delete this file's <link> tags to return to the v2.9.1 appearance. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{
  --vba-gold:#e5b55e;
  --vba-red:#c73542;
  --vba-ink:#0d1219;
  --vba-panel:#161d27;
  --vba-line:#2b3541;
  --vba-text:#f1f4f8;
  --vba-muted:#94a2b3;
  --vba-display:'Barlow Condensed','Arial Narrow',system-ui,sans-serif;
  --vba-body:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ---------- Portal: typography and accents shared with Motion Lab ---------- */
body.vba-portal{--red:var(--vba-red);font-family:var(--vba-body)}
body.vba-portal h1,
body.vba-portal h2,
body.vba-portal .section-title,
body.vba-portal .metric-card .big{font-family:var(--vba-display);font-weight:700;letter-spacing:.01em}
body.vba-portal .hero h1{font-size:clamp(32px,5vw,48px);line-height:1.05;font-weight:800}
body.vba-portal .login h1{font-size:36px;line-height:1.05;font-weight:800}
body.vba-portal .panel h2{font-size:23px;line-height:1.15}
body.vba-portal .section-title{font-size:25px}
body.vba-portal .metric-card .big{font-size:36px;font-weight:800}
body.vba-portal .kicker,
body.vba-portal #portalApp .vba-nav-overline,
body.vba-portal .vba-install-home-eyebrow{color:var(--vba-gold)}
body.vba-portal .wordmark strong{color:var(--vba-gold)}
body.vba-portal a:focus-visible,
body.vba-portal button:focus-visible,
body.vba-portal input:focus-visible,
body.vba-portal select:focus-visible,
body.vba-portal textarea:focus-visible{outline:2px solid var(--vba-gold);outline-offset:2px}

body.vba-portal .site-actions button{color:var(--vba-text)}

/* Calmer header on phones: logo row, then compact actions */
@media (max-width:620px){
  body.vba-portal .sitebar{height:auto;flex-wrap:wrap;row-gap:8px;padding-top:10px;padding-bottom:10px}
  body.vba-portal .site-actions{flex-wrap:wrap;gap:8px}
  body.vba-portal .identity{display:none}
}

/* Friendlier empty states */
body.vba-portal .empty{border-style:solid;border-color:var(--vba-line);background:rgba(255,255,255,.02);padding:26px 20px;line-height:1.5}

/* Hide the install promo once the app is already installed */
@media (display-mode:standalone){body.vba-portal .vba-install-home{display:none}}

/* Getting-started card for new athletes and parents */
.vba-welcome{margin:18px 0;padding:22px;border:1px solid #4a4130;border-radius:16px;background:linear-gradient(120deg,#231f17,#161d27 70%)}
.vba-welcome h2{margin:6px 0 4px;font-family:var(--vba-display);font-size:28px;font-weight:800;line-height:1.1}
.vba-welcome>p{margin:0 0 14px;color:var(--vba-muted)}
.vba-welcome ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.vba-welcome li{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px 14px;padding:13px 14px;border:1px solid var(--vba-line);border-radius:12px;background:rgba(13,18,25,.55)}
.vba-welcome .vba-step-no{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--vba-gold);color:#1a1408;font:800 18px var(--vba-display)}
.vba-welcome .vba-step-text{min-width:0}
.vba-welcome .vba-step-text strong{display:block;font-size:15px}
.vba-welcome .vba-step-text span{display:block;color:var(--vba-muted);font-size:13px}
.vba-welcome .btn{white-space:nowrap}
@media (max-width:560px){.vba-welcome li{grid-template-columns:34px minmax(0,1fr)}.vba-welcome .btn{grid-column:2;justify-self:start}}

/* ---------- Shared: drawn icons in place of text symbols ---------- */
.vba-ico{width:1.15em;height:1.15em;flex:0 0 auto;vertical-align:-.2em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn .vba-ico,button .vba-ico{margin-right:.35em}
.btn:has(>.vba-ico){gap:8px}
.btn:has(>.vba-ico)>.vba-ico{margin-right:0}
.mobile-nav button .vba-ico{width:22px;height:22px;margin:0 0 3px}
.nav button span .vba-ico{margin:0}
.figure-batter .vba-ico{width:54px;height:54px;stroke-width:1.5;margin:0}
.upload-icon .vba-ico{width:34px;height:34px;margin:0}
.message-thread-empty-icon .vba-ico{width:34px;height:34px}

/* ---------- Motion Lab: bottom menu must not show page text through it ---------- */
.mobile-nav{background:#0f1924 !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;box-shadow:0 -8px 20px rgba(0,0,0,.35)}
@media (max-width:900px){body:has(.mobile-nav) .page{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}}

/* ---------- Shared: in-app dialogs ---------- */
dialog.vba-dialog{width:min(440px,calc(100vw - 32px));padding:0;border:1px solid #3a4758;border-radius:16px;background:#161d27;color:#f1f4f8;font:15px/1.55 var(--vba-body);box-shadow:0 24px 70px rgba(0,0,0,.6)}
dialog.vba-dialog::backdrop{background:rgba(5,8,13,.72)}
dialog.vba-dialog form{margin:0;padding:22px}
dialog.vba-dialog h2{margin:0 0 8px;font:800 26px/1.1 var(--vba-display);letter-spacing:.01em;color:#fff}
dialog.vba-dialog .vba-dialog-body{margin:0;color:#c3ccd8;white-space:pre-line;overflow-wrap:anywhere;max-height:50vh;overflow:auto}
dialog.vba-dialog .vba-dialog-input{display:block;width:100%;margin-top:14px;padding:11px 12px;border:1px solid #3a4758;border-radius:10px;background:#0d1219;color:#fff;font:inherit}
dialog.vba-dialog .vba-dialog-input:focus-visible{outline:2px solid var(--vba-gold);outline-offset:1px}
dialog.vba-dialog .vba-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
dialog.vba-dialog button{min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid #3a4758;background:#1d2733;color:#f1f4f8;font:600 14px var(--vba-body);cursor:pointer}
dialog.vba-dialog button:focus-visible{outline:2px solid var(--vba-gold);outline-offset:2px}
dialog.vba-dialog .vba-dialog-ok{background:var(--vba-gold);border-color:var(--vba-gold);color:#1a1408}
dialog.vba-dialog .vba-dialog-ok.danger{background:var(--vba-red);border-color:var(--vba-red);color:#fff}

/* Report option beside the PDF download link */
.report-detail{display:inline-flex;align-items:center;gap:6px;margin-right:12px;font-size:12px;color:var(--vba-muted);cursor:pointer}
.report-detail input{width:16px;height:16px;accent-color:var(--vba-gold)}

/* ---------- Branded loading state ---------- */
body.vba-portal .loading.vba-loader{display:grid;justify-items:center;gap:16px;padding:90px 0;color:var(--vba-muted);font-size:14px}
body.vba-portal .vba-loader img{width:150px;height:auto;opacity:.95}
body.vba-portal .vba-loader::after{content:"";width:150px;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,var(--vba-gold),transparent) 0 0/60% 100% no-repeat,#253040;animation:vba-load 1.2s ease-in-out infinite}
@keyframes vba-load{from{background-position:-90px 0,0 0}to{background-position:150px 0,0 0}}
@media (prefers-reduced-motion:reduce){body.vba-portal .vba-loader::after{animation:none;background:var(--vba-gold)}}

/* ---------- Privacy page and footer links ---------- */
.vba-policy{max-width:780px;margin:0 auto;padding:30px}
.vba-policy h1{margin:6px 0 8px}
.vba-policy h2{margin:28px 0 8px;font-size:24px}
.vba-policy p,.vba-policy li{color:#c3ccd8;line-height:1.65}
.vba-policy ul{margin:8px 0 12px;padding-left:20px}
.vba-policy li{margin-bottom:6px}
.vba-policy strong{color:#fff}
.foot a,.app-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}
body.vba-doc .sitebar .btn{text-decoration:none;border:1px solid var(--vba-line);border-radius:9px;padding:8px 12px;font-size:12px;font-weight:600}

/* ---------- Retired tool: kept in the code, hidden from the screen ---------- */
#openShareReview{display:none !important}

/* Checklist: note when a checkpoint needs a different camera view */
.cue-meta .cue-view{display:block;margin-top:5px;color:var(--vba-gold);font-size:10px;font-style:normal;font-weight:600}

/* ---------- Notifications (v2.13) ---------- */
#vbaPushBtn{display:inline-flex;align-items:center;gap:6px}
#vbaPushBtn[hidden]{display:none}
#vbaPushBtn .vba-ico{margin:0}
#vbaPushBtn.is-on .vba-ico{color:var(--vba-gold)}
@media (max-width:620px){#vbaPushBtn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
.vba-push-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px 16px;margin:18px 0;padding:16px 18px;border:1px solid var(--vba-line);border-radius:16px;background:var(--vba-panel)}
.vba-push-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:rgba(229,181,94,.12);color:var(--vba-gold)}
.vba-push-icon .vba-ico{width:24px;height:24px;margin:0}
.vba-push-text strong{display:block;font-size:15px}
.vba-push-text span{display:block;color:var(--vba-muted);font-size:13px;line-height:1.45}
.vba-push-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:620px){.vba-push-card{grid-template-columns:44px minmax(0,1fr)}.vba-push-actions{grid-column:1/-1;justify-content:flex-start}}


/* ---------- Billing (v2.16) ---------- */
.vba-business{margin:18px 0}
.vba-business>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.vba-business>summary::-webkit-details-marker{display:none}
.vba-business>summary h2{margin:0}
.vba-export-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 4px}
.vba-howtopay{margin:12px 0 0;padding:12px 14px;border:1px solid #4a4130;border-radius:12px;background:rgba(229,181,94,.07)}
.vba-howtopay>b{display:block;margin-bottom:6px;color:var(--vba-gold)}
.vba-howtopay div{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:3px 0}
.vba-howtopay div span{color:var(--vba-muted)}
.vba-howtopay strong{overflow-wrap:anywhere;text-align:right}
.vba-reversed{text-decoration:line-through;opacity:.55}
.vba-void-note{margin:10px 0 0;color:#ff9aa4;font-weight:600}
.finance-lines .minibtn{margin-left:8px;padding:2px 8px;font-size:11px}

/* ---------- v2.17: coach week, progress, parents' review view, invite checkbox ---------- */
.vba-week{margin:18px 0}
.vba-week-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.vba-week-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px;border:1px solid var(--vba-line);border-radius:12px;background:rgba(255,255,255,.02);color:var(--vba-text);text-align:left;font:inherit;cursor:pointer}
div.vba-week-tile{cursor:default}
.vba-week-tile strong{font:800 30px/1 var(--vba-display)}
.vba-week-tile span{font-size:13px;color:var(--vba-muted)}
.vba-week-tile small{font-size:12px;color:var(--vba-gold)}
.vba-week-tile.warn{border-color:#5a3a3e;background:rgba(199,53,66,.08)}
.vba-week-tile.warn strong{color:#ff9aa4}
.vba-week-list{margin-top:10px;padding-top:10px;border-top:1px solid var(--vba-line)}
.vba-week-list>b{display:block;margin-bottom:6px;font-size:13px;color:var(--vba-gold);letter-spacing:.04em}
.vba-week-list div{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:14px}
.vba-week-list small{color:var(--vba-muted);text-align:right}
.vba-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:12px 0}
.vba-result{padding:12px 14px;border:1px solid var(--vba-line);border-radius:12px}
.vba-result span{display:block;font-size:13px;color:var(--vba-muted)}
.vba-result strong{display:block;font:800 24px/1.2 var(--vba-display)}
.vba-up{color:#6fd39a}.vba-down{color:#ff9aa4}
.review-grid.vba-parent-view{grid-template-columns:1fr}
.review-grid>[hidden]{display:none !important}
.vba-check span{display:flex;align-items:center;gap:8px;min-height:44px}
.vba-check input{width:18px;height:18px;accent-color:var(--vba-gold)}
#reportCompanion{max-width:220px;margin-left:4px;padding:4px 6px;border-radius:8px;background:#0d1219;color:var(--vba-text);border:1px solid var(--vba-line);font-size:12px}
@media (max-width:760px){.vba-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.19 enrolment & consent */
.vba-enrol{max-width:860px;margin:18px auto 40px}
.vba-enrol h2{display:flex;align-items:center;gap:10px;margin:30px 0 8px;font-size:1.25rem}
.vba-enrol h2:first-child{margin-top:4px}
.vba-enrol h2 span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--vba-red,#c8303c);color:#fff;font-size:.85rem;flex:none}
.vba-enrol .muted{margin:0 0 12px}
.vba-enrol-contacts{grid-template-columns:repeat(3,minmax(0,1fr))}
.vba-check-row{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:10px;margin:10px 0;cursor:pointer;line-height:1.45}
.vba-check-row input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:#d6a84a}
.vba-check-row:has(input:checked){border-color:rgba(214,168,74,.7);background:rgba(214,168,74,.07)}
.vba-check-row b{color:#e05a63}
.vba-enrol-terms{border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:12px 14px;margin:10px 0}
.vba-enrol-terms summary{cursor:pointer;font-weight:700}
.vba-enrol-terms ul{margin:10px 0 2px;padding-left:20px;line-height:1.55}
.vba-enrol-terms li+li{margin-top:6px}
.vba-enrol-sign{margin-top:16px}
.vba-enrol .form-actions{justify-content:space-between;margin-top:18px}
.vba-enrol-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:18px 0}
.vba-enrol-banner span{flex:1 1 260px}
.vba-enrol-status{margin-bottom:18px}
.vba-enrol-status .row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.vba-enrol-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:14px}
.vba-enrol-grid p{margin:6px 0}
.vba-pre{white-space:pre-line}
.vba-consents{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.vba-consent{display:inline-block;font-size:.85rem;font-weight:600;padding:3px 9px;border-radius:999px;width:max-content}
.vba-consent.yes{background:rgba(60,170,100,.16);color:#7ad69c}
.vba-consent.no{background:rgba(220,70,80,.16);color:#f08a92}
@media(max-width:760px){.vba-enrol-contacts,.vba-enrol-grid{grid-template-columns:1fr}.vba-enrol .form-actions{flex-direction:column-reverse}.vba-enrol .form-actions .btn{width:100%}}

/* v2.20 LIGA coach view */
.liga-coach .liga-filter{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 16px}
.liga-card .liga-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:#aab3bf;font-size:.9rem;margin:4px 0 10px}
.liga-card .liga-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:8px 0}
.liga-card .liga-cols b{display:block;font-size:.8rem;letter-spacing:.06em;color:#e9be4e;margin-bottom:4px}
.liga-card .liga-pre{white-space:pre-line;margin:0}
.liga-card .liga-videos{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
@media(max-width:760px){.liga-card .liga-cols{grid-template-columns:1fr}}
.liga-filter .minibtn.active{background:#c8303c;border-color:#c8303c;color:#fff}
