/* FieldSync — AI Coach Page Styles */

/* ── Shared Nav (same as athlete page) ── */
.homeNav {
  background: var(--card);
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  z-index: 100;
}
.homeNavInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.homeNavLogo {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.homeNavLogo .navLogoImg {
  height: 108px;
  width: auto;
  display: block;
  margin: -38px 0;
}
.homeNavLinks {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* .homeNavLink removed — nav simplified */
.homeNavBtn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
}
.homeNavBtn:hover { background: #6d28d9; }
.homeNavUserPill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 200px;
  transition: border-color 0.15s;
}
.homeNavUserPill:hover { border-color: rgba(124,58,237, 0.35); }
.homeNavAvatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(124,58,237, 0.10);
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.homeNavAvatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.homeNavAvatar.hasInitials {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.homeFooter { border-top: 1px solid var(--bd); }
.homeFooterInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.homeFooterBrand { font-weight: 900; font-size: 14px; color: var(--text); }
.homeFooterMuted { font-size: 13px; color: var(--muted); }

/* ── Loading / Gate / Spinner ── */
.coachLoading, .coachGate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--muted);
  padding: 40px 24px;
}
.coachSpinner {
  width: 36px; height: 36px;
  border: 3px solid var(--bd);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: coachSpin 0.7s linear infinite;
  margin-bottom: 14px;
}
@keyframes coachSpin { to { transform: rotate(360deg); } }

.coachGateInner {
  text-align: center;
  max-width: 420px;
}
.coachGateIcon { font-size: 48px; margin-bottom: 12px; }
.coachGateInner h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}
.coachGateInner p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.coachGateBtn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.coachGateBtn:hover { background: #6d28d9; }
.coachGateLink {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Hero ── */
.coachHero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 36px 24px 32px;
}
.coachHeroInner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.coachHeroIcon {
  font-size: 40px;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237, 0.25);
  border-radius: 16px;
  flex-shrink: 0;
}
.coachTitle {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 2px;
}
.coachSubtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ── Supported Events ── */
.coachEvents {
  background: var(--card);
  border-bottom: 1px solid var(--bd);
  padding: 16px 24px;
}
.coachEventsInner {
  max-width: 900px;
  margin: 0 auto;
}
.coachEventsTitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.coachEventTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coachEventTag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(124,58,237, 0.08);
  color: var(--accent);
  border: 1px solid rgba(124,58,237, 0.18);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.coachEventTag.disabled {
  background: rgba(0,0,0,0.03);
  color: var(--muted);
  border-color: var(--bd);
  opacity: 0.6;
}

/* ── Tabs ── */
.coachTabs {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 4px;
  border-bottom: 2px solid var(--bd);
}
.coachTab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.coachTab:hover { color: var(--text); }
.coachTab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.coachTabIcon { font-size: 16px; }
.coachTabCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--bd);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.coachTab.active .coachTabCount {
  background: rgba(124,58,237, 0.12);
  color: var(--accent);
}

/* ── Panels ── */
.coachPanel {
  padding: 0 24px 40px;
}
.coachPanelInner {
  max-width: 900px;
  margin: 0 auto;
}
.coachPanelHeader {
  padding: 24px 0 16px;
}
.coachPanelHeader h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.coachPanelDesc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ── Empty state ── */
.coachEmpty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.coachEmptyIcon {
  font-size: 36px;
  margin-bottom: 10px;
}
.coachEmpty p {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.coachEmptySub {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

/* ── Video List ── */
.coachVideoList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coachVideoCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.coachVideoCard:hover {
  border-color: rgba(124,58,237, 0.3);
  box-shadow: 0 2px 8px rgba(124,58,237, 0.08);
}
.coachVideoIcon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
}
.coachVideoIcon.competition {
  background: rgba(16,185,129,0.1);
}
.coachVideoIcon.practice {
  background: rgba(124,58,237,0.1);
}

.coachVideoInfo {
  flex: 1;
  min-width: 0;
}
.coachVideoName {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coachVideoMeta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.coachVideoActions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.coachVideoScore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}
.coachVideoScore:hover { transform: scale(1.08); }
.coachVideoScore.scoreHigh {
  background: rgba(16,185,129,0.12);
  color: #059669;
}
.coachVideoScore.scoreMid {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}
.coachVideoScore.scoreLow {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
}
.coachAnalyzeBtn {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  background: rgba(124,58,237,0.06);
  color: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.coachAnalyzeBtn:hover {
  background: var(--accent);
  color: #fff;
}
.coachAnalyzeBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.coachAnalyzeBtn.processing {
  background: rgba(245,158,11,0.08);
  border-color: #d97706;
  color: #d97706;
  cursor: default;
}
.coachDeleteBtn {
  padding: 6px 8px;
  border: 1px solid var(--bd);
  background: none;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.coachDeleteBtn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239,68,68,0.06);
}

.coachVideoNotes {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coachPracticeTag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f3e8ff;
  color: #7c3aed;
  margin-top: 4px;
  white-space: nowrap;
}

/* ── Upload type toggle ── */
.coachUploadTypeToggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}
.coachTypeBtn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.coachTypeBtn:hover {
  background: rgba(124,58,237,0.04);
}
.coachTypeBtn.active {
  background: rgba(124,58,237,0.1);
  color: var(--accent);
}
.coachTypeBtnIcon { font-size: 15px; }
.coachTypeHint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: center;
}

/* ── Visibility button ── */
.coachVisBtn {
  padding: 6px 8px;
  border: 1px solid var(--bd);
  background: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.coachVisBtn.public {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.06);
}
.coachVisBtn.private {
  color: var(--muted);
}
.coachVisBtn:hover {
  border-color: var(--accent);
  background: rgba(124,58,237,0.06);
}
.coachVisBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Video type tags ── */
.coachVideoTypeTag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
}
.coachVideoTypeTag.ai {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}
.coachVideoTypeTag.regular {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
}

/* ── Play button (for regular videos) ── */
.coachPlayBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}
.coachPlayBtn:hover { background: #6d28d9; }

/* ── Upload area ── */
.coachUpload {
  margin-bottom: 20px;
}
.coachUploadDrop {
  border: 2px dashed var(--bd);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.coachUploadDrop:hover,
.coachUploadDrop.dragover {
  border-color: var(--accent);
  background: rgba(124,58,237, 0.03);
}
.coachUploadIcon { font-size: 32px; margin-bottom: 8px; }
.coachUploadText {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 4px;
}
.coachUploadBrowse {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
}
.coachUploadHint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.coachFileHidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Upload form */
.coachUploadForm {
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 20px;
  background: var(--card);
}
.coachUploadPreview {
  position: relative;
  margin-bottom: 16px;
}
.coachUploadVideoEl {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  background: #000;
  object-fit: contain;
}
.coachUploadRemove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.coachUploadRemove:hover { background: rgba(239,68,68,0.8); }

.coachUploadFields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.coachFieldLabel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.coachRequired { color: #ef4444; font-weight: 400; }
.coachOptional { color: var(--muted); font-weight: 400; font-size: 12px; }

.coachSelect, .coachInput {
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.coachSelect:focus, .coachInput:focus {
  border-color: var(--accent);
}

.coachUploadActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.coachBtnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.coachBtnPrimary:hover { background: #6d28d9; }
.coachBtnPrimary:disabled { opacity: 0.6; cursor: not-allowed; }

.coachBtnSecondary {
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--bd);
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.coachBtnSecondary:hover { background: rgba(0,0,0,0.03); }

.coachBtnDanger {
  padding: 10px 22px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.coachBtnDanger:hover { background: #dc2626; }

.coachUploadProgress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.coachProgressBar {
  flex: 1;
  height: 6px;
  background: var(--bd);
  border-radius: 3px;
  overflow: hidden;
}
.coachProgressFill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
.coachProgressText {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.coachUploadBtnSpinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: coachSpin 0.6s linear infinite;
}

/* ── Analysis Modal ── */
.coachOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.coachModal {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.coachModalClose {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  z-index: 1;
}
.coachModalClose:hover { color: var(--text); }

.coachModalHeader {
  padding: 24px 24px 0;
}
.coachModalTitle {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  padding-right: 32px;
}
.coachModalMeta {
  font-size: 13px;
  color: var(--muted);
}
.coachModalBody {
  padding: 20px 24px 24px;
}

.coachAnalysisLoading {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
}

/* Video player in modal */
.coachAnalysisVideo {
  margin-bottom: 20px;
}
.coachAnalysisPlayerEl {
  width: 100%;
  max-height: 360px;
  border-radius: 10px;
  background: #000;
  display: block;
  object-fit: contain;
}

/* Score ring */
.coachScoreSection {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.coachScoreRing {
  width: 120px;
  position: relative;
  text-align: center;
}
.coachScoreRing svg {
  width: 120px;
  height: 120px;
}
.coachScoreValue {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
}
.coachScoreLabel {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Category scores */
.coachScoreCategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.coachCategoryCard {
  background: rgba(124,58,237, 0.04);
  border: 1px solid rgba(124,58,237, 0.1);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.coachCategoryName {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.coachCategoryScore {
  font-size: 22px;
  font-weight: 800;
}
.coachCategoryScore.scoreHigh { color: #059669; }
.coachCategoryScore.scoreMid { color: #d97706; }
.coachCategoryScore.scoreLow { color: #dc2626; }

/* Feedback */
.coachFeedback {
  margin-bottom: 24px;
}
.coachFeedbackTitle, .coachMetricsTitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bd);
}
.coachFeedbackList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coachFeedbackItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.coachFeedbackItem.strength {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
}
.coachFeedbackItem.improvement {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
}
.coachFeedbackItem.critical {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.coachFeedbackIcon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.coachFeedbackBody {
  flex: 1;
  min-width: 0;
}
.coachFeedbackLabel {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}
.coachFeedbackScore {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.coachFeedbackScore.scoreHigh { background: rgba(5,150,105,0.12); color: #059669; }
.coachFeedbackScore.scoreMid  { background: rgba(217,119,6,0.12); color: #d97706; }
.coachFeedbackScore.scoreLow  { background: rgba(220,38,38,0.12); color: #dc2626; }
.coachFeedbackTip {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.coachFeedbackMeta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* Metrics grid */
.coachMetricsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.coachMetricCard {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 12px;
}
.coachMetricName {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.coachMetricInfo {
  font-size: 13px;
  cursor: help;
  position: relative;
  line-height: 1;
  flex-shrink: 0;
}
.coachMetricInfo:hover::after,
.coachMetricInfo:focus::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: normal;
  width: 220px;
  max-width: 80vw;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  pointer-events: none;
}
.coachMetricValue {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.coachMetricUnit {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}

/* Analysis error */
.coachAnalysisError {
  text-align: center;
  padding: 24px;
}
.coachAnalysisError p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Delete modal */
.coachDeleteModal {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.coachDeleteModal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.coachDeleteModal p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.coachDeleteActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .coachHeroInner { flex-direction: column; text-align: center; }
  .coachHeroIcon { margin: 0 auto; }
  .coachTabs { padding: 0 12px; }
  .coachTab { padding: 10px 12px; font-size: 13px; }
  .coachPanel { padding: 0 12px 32px; }
  .coachVideoCard { flex-wrap: wrap; gap: 10px; }
  .coachVideoActions { width: 100%; justify-content: flex-end; }
  .coachUploadForm { padding: 14px; }
  .coachScoreCategories { grid-template-columns: repeat(2, 1fr); }
  .coachMetricsGrid { grid-template-columns: 1fr; }
  .homeNavLinks { gap: 4px; }
  .homeNavBtn { padding: 4px 10px; font-size: 12px; }
  .mobileHide { display: none; }
  #navAccountName { display: none; }
  .homeNavUserPill { padding: 4px; gap: 0; }
}

/* ── Dark-mode overrides ── */
[data-theme="dark"] .coachPracticeTag { background: rgba(124,58,237,.15); color: var(--accent) }
[data-theme="dark"] .coachBtnSecondary:hover { background: rgba(255,255,255,.06) }
