/* =========================================================
   TRYTRACK PAGES.CSS
   Production page layer
   Chrome design as source of truth + Safari-safe rules
========================================================= */
 
/* =========================================================
   SHARED PAGE DETAILS
========================================================= */
 
.elite-card {
  border: 1px solid rgba(56,189,248,0.10);
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(2,6,23,0.82));
}
 
.section-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
 
.section-title {
  max-width: 780px;
  margin-bottom: 26px;
}
 
.section-title h2 {
  margin-top: 10px;
}
 
.team-filter-select {
  min-width: 240px;
}
 
/* =========================================================
   DASHBOARD HERO
========================================================= */
 
.elite-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 420px;
  gap: 28px;
  margin-bottom: 34px;
}
 
.elite-hero-main,
.elite-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(2,6,23,0.84));
  border: 1px solid rgba(56,189,248,0.12);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
 
.elite-hero-main {
  padding: 42px;
}
 
.elite-hero-main h1 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
 
.elite-hero-main p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
 
.elite-hero-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
 
.hero-panel-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.elite-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
 
.elite-hero-metrics div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(2,6,23,0.42);
  border: 1px solid rgba(148,163,184,0.14);
}
 
.elite-hero-metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.elite-hero-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
 
/* =========================================================
   CHARTS
========================================================= */
 
.dashboard-chart-grid,
.charts-grid {
  align-items: stretch;
}
 
.chart-card,
.dashboard-chart-card,
.analytics-card {
  min-height: auto;
}
 
.chart-card canvas,
.dashboard-chart-card canvas,
.analytics-card canvas {
  width: 100% !important;
  max-width: 100%;
  height: 240px !important;
  max-height: 240px;
}
 
/* =========================================================
   PREMIUM CARDS CREATED BY PAGES / JS
========================================================= */
 
.elite-match-card,
.match-card,
.training-card,
.report-row,
.player-profile-card,
.attendance-card,
.wellness-card,
.injury-card,
.notification-item,
.elite-readiness-row,
.squad-player-card,
.team-sheet-player,
.recent-activity-item,
.insight-card,
.trend-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(2,6,23,0.82));
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow:
    0 22px 55px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.03);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
 
.elite-match-card:hover,
.match-card:hover,
.training-card:hover,
.report-row:hover,
.player-profile-card:hover,
.attendance-card:hover,
.wellness-card:hover,
.injury-card:hover,
.notification-item:hover,
.elite-readiness-row:hover,
.squad-player-card:hover,
.team-sheet-player:hover,
.recent-activity-item:hover,
.insight-card:hover,
.trend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.28);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.38),
    0 0 30px rgba(56,189,248,0.10);
}
 
/* =========================================================
   CARD HEADERS / FOOTERS
========================================================= */
 
.elite-match-header,
.elite-match-footer,
.team-card-header,
.team-card-footer,
.training-session-header,
.training-attendance-header,
.training-attendance-footer,
.wellness-card-header,
.notification-header,
.report-row-header,
.report-row-main,
.squad-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
 
.elite-match-header,
.report-row-header,
.training-session-header,
.wellness-card-header {
  margin-bottom: 20px;
}
 
.elite-match-footer,
.team-card-footer,
.training-attendance-footer {
  margin-top: 24px;
}
 
.elite-match-header h3,
.match-card h3,
.training-card h3,
.report-row h3,
.player-profile-card h3,
.attendance-card h3,
.wellness-card h3,
.injury-card h3,
.notification-item h3 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
 
.elite-match-header h3 span,
.match-card h3 span,
.training-card h3 span,
.report-row h3 span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
 
.elite-match-header p,
.match-card p,
.training-card p,
.report-row p,
.player-profile-card p,
.attendance-card p,
.wellness-card p,
.injury-card p,
.notification-item p {
  color: var(--text-soft);
  line-height: 1.55;
}
 
/* =========================================================
   METRIC / SUMMARY GRIDS
========================================================= */
 
.match-report-summary,
.report-summary-grid,
.performance-metrics-grid,
.report-metrics-grid,
.team-metrics-grid,
.training-attendance-grid,
.elite-match-meta-grid,
.wellness-score-grid,
.elite-trend-grid,
.readiness-metrics,
.match-readiness-grid,
.readiness-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
 
.match-report-summary > div,
.report-summary-grid > div,
.performance-metrics-grid > div,
.report-metrics-grid > div,
.team-metrics-grid > div,
.training-attendance-grid > div,
.elite-match-meta-grid > div,
.wellness-score-grid > div,
.elite-trend-grid > div,
.readiness-metrics > div,
.match-readiness-grid > div,
.readiness-summary-grid > div {
  min-height: 120px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.10), transparent 42%),
    rgba(15,23,42,0.82);
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 16px 38px rgba(0,0,0,0.26);
}
 
.match-report-summary span,
.report-summary-grid span,
.performance-metrics-grid span,
.report-metrics-grid span,
.team-metrics-grid span,
.training-attendance-grid span,
.elite-match-meta-grid span,
.wellness-score-grid span,
.elite-trend-grid span,
.readiness-metrics span,
.match-readiness-grid span,
.readiness-summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
 
.match-report-summary strong,
.report-summary-grid strong,
.performance-metrics-grid strong,
.report-metrics-grid strong,
.team-metrics-grid strong,
.training-attendance-grid strong,
.elite-match-meta-grid strong,
.wellness-score-grid strong,
.elite-trend-grid strong,
.readiness-metrics strong,
.match-readiness-grid strong,
.readiness-summary-grid strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
 
/* =========================================================
   REPORTS PAGE
========================================================= */
 
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
 
.report-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 26px;
}
 
.report-card h3 {
  margin-bottom: 10px;
}
 
/* =========================================================
   MATCH READINESS
========================================================= */
 
.elite-readiness-grid {
  display: grid;
  gap: 18px;
}
 
.elite-readiness-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  gap: 20px;
  align-items: center;
}
 
.elite-readiness-row > div:first-child {
  min-width: 0;
}
 
.elite-readiness-row > div:first-child h3 {
  margin-bottom: 8px;
}
 
.elite-readiness-row > div:first-child p {
  color: var(--muted);
}
 
.elite-readiness-row .report-metrics {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
 
.elite-readiness-row .report-metrics > span:not(.report-pill) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(2,6,23,0.40);
  border: 1px solid rgba(148,163,184,0.12);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
 
.elite-readiness-row .report-pill {
  min-height: 38px;
}
 
.elite-readiness-row .select-player-btn {
  min-height: 42px;
}

/* =========================================================
   TEAM CARD — COMPACT META + STAFF BADGES
========================================================= */

.team-card .elite-match-meta-grid {
  gap: 12px;
  margin: 16px 0 0;
}

.team-card .elite-match-meta-grid > div {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
}

.team-card .elite-match-meta-grid strong {
  font-size: 20px;
}

.team-staff-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.team-staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
}

.team-staff-role {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   TEAM PERFORMANCE — COMPACT LAYOUT
========================================================= */

/* Tighter stat cards on team performance page */
.team-performance-page .stat-card,
.page-team-performance .stat-card {
  min-height: 110px;
  padding: 16px 18px;
}

.team-performance-page .stat-card h2,
.page-team-performance .stat-card h2 {
  font-size: clamp(22px, 2vw, 34px);
  margin: 6px 0;
}

.team-performance-page .stats-grid,
.page-team-performance .stats-grid {
  gap: 12px;
  margin-bottom: 18px;
}

/* =========================================================
   TEAM PERFORMANCE — CHART GRID
========================================================= */

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.trend-card {
  padding: 20px;
  border-radius: 20px;
}

.trend-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trend-card canvas {
  max-height: 220px;
  width: 100% !important;
}

@media (max-width: 700px) {
  .trend-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SQUAD BUILDER
========================================================= */
 
.squad-builder-card {
  margin-top: 22px;
}
 
.elite-squad-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
 
.squad-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(2,6,23,0.36);
  border: 1px solid rgba(148,163,184,0.13);
}
 
.squad-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
 
.squad-counter strong {
  color: #ffffff;
  font-size: 28px;
}
 
.squad-counter span {
  color: var(--muted);
  font-weight: 800;
}
 
.elite-squad-list {
  display: grid;
  gap: 14px;
}
 
.squad-player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
}
 
.squad-player-card strong {
  display: block;
  color: #ffffff;
}
 
.squad-player-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
 
.selection-notes-block {
  margin-top: 24px;
}
 
.squad-action-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
 
/* =========================================================
   AUTH PAGES
========================================================= */
 
.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
}
 
.auth-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
 
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 42px;
  border-radius: 32px;
}
 
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
 
.auth-logo {
  width: 170px;
  max-width: 170px;
  height: auto;
  object-fit: contain;
}
 
.auth-card h1 {
  font-size: 42px;
  line-height: 1.05;
}
 
.auth-card p {
  font-size: 16px;
  line-height: 1.6;
}
 
.auth-form-group {
  margin-bottom: 18px;
}
 
/* =========================================================
   ACTION GROUPS
========================================================= */
 
.record-actions,
.player-card-actions,
.page-actions,
.hero-actions,
.match-controls,
.squad-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
 
.record-actions a,
.record-actions button,
.player-card-actions a,
.player-card-actions button,
.page-actions a,
.page-actions button,
.hero-actions a,
.hero-actions button,
.match-controls a,
.match-controls button,
.squad-action-row a,
.squad-action-row button {
  width: auto;
}
 
/* =========================================================
   RESPONSIVE
========================================================= */
 
@media (max-width: 1200px) {
  .elite-dashboard-hero,
  .landing-hero {
    grid-template-columns: 1fr;
  }
 
  .landing-preview-card {
    max-width: 100%;
    justify-self: stretch;
  }
 
  .elite-squad-layout {
    grid-template-columns: 1fr;
  }
}
 
@media (max-width: 1100px) {
  .landing-card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 980px) {
  .elite-readiness-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
 
  .elite-readiness-row .report-metrics {
    justify-content: flex-start;
  }
 
  .landing-header {
    padding: 22px 24px;
  }
 
  .header-logo {
    width: 130px;
    max-width: 130px;
  }
 
  .landing-nav {
    gap: 18px;
  }
}
 
@media (max-width: 900px) {
  .elite-match-header,
  .elite-match-footer,
  .team-card-header,
  .team-card-footer,
  .training-session-header,
  .training-attendance-header,
  .training-attendance-footer,
  .wellness-card-header,
  .notification-header,
  .report-row-header,
  .report-row-main,
  .squad-panel-header {
    flex-direction: column;
    align-items: stretch;
  }
}
 
@media (max-width: 768px) {
  .chart-card canvas,
  .dashboard-chart-card canvas,
  .analytics-card canvas {
    height: 200px !important;
    max-height: 200px;
  }
}
 
@media (max-width: 720px) {
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
  }
 
  .landing-nav {
    width: 100%;
  }
 
  .landing-card-grid,
  .landing-card-grid.three,
  .landing-card-grid.four {
    grid-template-columns: 1fr;
  }
 
  .landing-cta {
    padding: 42px 24px;
  }
}
 
@media (max-width: 700px) {
  .match-report-summary,
  .report-summary-grid,
  .performance-metrics-grid,
  .report-metrics-grid,
  .team-metrics-grid,
  .training-attendance-grid,
  .elite-match-meta-grid,
  .wellness-score-grid,
  .elite-trend-grid,
  .readiness-metrics,
  .match-readiness-grid,
  .readiness-summary-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }
 
  .record-actions,
  .player-card-actions,
  .page-actions,
  .hero-actions,
  .match-controls,
  .squad-action-row {
    width: 100%;
  }
 
  .record-actions a,
  .record-actions button,
  .player-card-actions a,
  .player-card-actions button,
  .page-actions a,
  .page-actions button,
  .hero-actions a,
  .hero-actions button,
  .match-controls a,
  .match-controls button,
  .squad-action-row a,
  .squad-action-row button {
    width: 100%;
  }
 
  .elite-match-card,
  .match-card,
  .training-card,
  .report-row,
  .player-profile-card,
  .attendance-card,
  .wellness-card,
  .injury-card,
  .notification-item,
  .elite-readiness-row {
    padding: 22px;
  }
 
  .elite-readiness-row .report-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }
 
  .elite-readiness-row .report-metrics > span,
  .elite-readiness-row .select-player-btn {
    width: 100%;
  }
}
 
@media (max-width: 560px) {
  .auth-card {
    max-width: 100%;
    padding: 32px 22px;
  }
 
  .auth-card h1 {
    font-size: 36px;
  }
 
  .auth-logo {
    width: 140px;
    max-width: 140px;
  }
}
 
@media (max-width: 480px) {
  .elite-hero-main,
  .elite-hero-panel {
    padding: 24px;
  }
 
  .elite-hero-main h1 {
    font-size: 38px;
  }
 
  .preview-grid {
    grid-template-columns: 1fr;
  }
}
 
/* =========================================================
   DASHBOARD TEAM STATUS BAR FIX
========================================================= */
 
.team-status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
 
.team-status-item {
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 42%),
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(2,6,23,0.82));
 
  border: 1px solid rgba(148,163,184,0.16);
 
  box-shadow:
    0 20px 50px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
 
.team-status-item .status-label {
  display: block;
  margin-bottom: 14px;
 
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.team-status-item strong {
  display: block;
 
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
 
@media (max-width: 1100px) {
  .team-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 640px) {
  .team-status-bar {
    grid-template-columns: 1fr;
  }
}
 
/* =========================================================
   DASHBOARD HERO GRID TEXTURE
========================================================= */
 
.elite-hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
 
  background-image:
    linear-gradient(rgba(56,189,248,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.055) 1px, transparent 1px);
 
  background-size: 42px 42px;
  opacity: 0.28;
 
  mask-image: radial-gradient(circle at top right, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at top right, black, transparent 72%);
}
 
.elite-hero-main > * {
  position: relative;
  z-index: 1;
}
 
/* =========================================================
   REPORTS HUB CARD COMPACT FIX
========================================================= */
 
.reports-grid .report-card {
  min-height: 190px;
  padding: 26px 28px;
  border-radius: 28px;
}
 
.reports-grid .report-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
 
.reports-grid .report-card p {
  max-width: 92%;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
 
.reports-grid .section-eyebrow,
.reports-grid .report-card .section-eyebrow {
  margin-bottom: 12px;
}
 
/* Only compact stat cards when they appear below report tiles */
.reports-grid + .stats-grid,
.report-summary-grid,
.reports-summary-grid {
  margin-top: 28px;
}
 
.reports-grid + .stats-grid .stat-card,
.report-summary-grid .stat-card,
.reports-summary-grid .stat-card {
  min-height: 150px;
  padding: 24px 28px;
}
 
.reports-grid + .stats-grid .stat-card h2,
.report-summary-grid .stat-card h2,
.reports-summary-grid .stat-card h2 {
  font-size: 42px;
  margin: 10px 0 8px;
}
 
@media (max-width: 1200px) {
  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 700px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
 
  .reports-grid .report-card h3 {
    font-size: 28px;
  }
}
 
/* =========================================================
   MATCHES SUMMARY BUTTON CARD FIX
========================================================= */
 
.match-report-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
}
 
.match-report-summary .report-summary-card {
  min-height: 132px;
  width: 100%;
  padding: 22px 18px;
  border-radius: 24px;
 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
 
  text-align: left;
 
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 42%),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(2,6,23,0.84));
 
  background-size:
    28px 28px,
    28px 28px,
    auto,
    auto;
 
  border: 1px solid rgba(148,163,184,0.16);
 
  box-shadow:
    0 18px 45px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.03);
 
  color: inherit;
  cursor: pointer;
}
 
.match-report-summary .report-summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.30);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.38),
    0 0 28px rgba(56,189,248,0.10);
}
 
.match-report-summary .report-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
 
.match-report-summary .report-summary-card strong {
  display: block;
  margin-top: 14px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}
 
@media (max-width: 1300px) {
  .match-report-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
 
@media (max-width: 700px) {
  .match-report-summary {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   POST MATCH REPORT - STAT CARD TEXT FIX
========================================================= */

#reportStatus,
#reportResult,
#reportMatchGrade,
#reportAverageRating,
#reportBestRating {
  display: block;

  font-size: clamp(34px, 3vw, 54px);
  line-height: 1;
  letter-spacing: -0.06em;

  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

#reportStatus {
  font-size: clamp(30px, 2.6vw, 46px);
}
 
/* =========================================================
   POST MATCH REPORT - PLAYER OF MATCH CARDS
========================================================= */
 
.potm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
 
.player-of-match-card {
  min-height: 260px;
  padding: 30px;
  border-radius: 30px;
 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(56,189,248,0.14), transparent 42%),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(2,6,23,0.84));
 
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto;
 
  border: 1px solid rgba(148,163,184,0.16);
 
  box-shadow:
    0 22px 55px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
 
.player-of-match-badge {
  width: fit-content;
  margin-bottom: 20px;
  padding: 9px 14px;
  border-radius: 999px;
 
  background: rgba(56,189,248,0.16);
  color: #7dd3fc;
 
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.player-of-match-card h1 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
 
.player-of-match-card p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}
 
.player-of-match-rating {
  margin-top: 26px;
  padding-top: 20px;
 
  border-top: 1px solid rgba(148,163,184,0.16);
 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
 
.player-of-match-rating span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
 
.player-of-match-rating strong {
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
 
@media (max-width: 900px) {
  .potm-grid {
    grid-template-columns: 1fr;
  }
}
 
/* =========================================================
   TRAINING ATTENDANCE SESSION CARD FIX
========================================================= */
 
#attendanceSessionTitle {
  display: block;
  max-width: 100%;
 
  font-size: clamp(24px, 2.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
 
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
 
#attendanceSessionTitle.stat-card-title {
  overflow: visible;
}
 
/* =========================================================
   PLAYER PROFILE LIST SPACING FIX
========================================================= */
 
.player-profile-card {
  padding: 28px 30px;
  border-radius: 28px;
}
 
.player-profile-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
}
 
.player-profile-card > p {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
 
.player-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}
 
.player-card-grid div {
  min-height: 92px;
  padding: 20px;
  border-radius: 20px;
}
 
.player-card-grid span {
  margin-bottom: 10px;
  font-size: 13px;
}
 
.player-card-grid strong {
  font-size: 18px;
}
 
.player-profile-card .record-actions,
.player-profile-card .player-card-actions {
  margin-top: 24px;
}
 
@media (max-width: 1100px) {
  .player-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 700px) {
  .player-profile-card {
    padding: 24px;
  }
 
  .player-card-grid {
    grid-template-columns: 1fr;
  }
}
 
/* =========================================================
   PLAYER FORM FIELD CONSISTENCY
========================================================= */
 
.player-form-grid input,
.player-form-grid select {
  width: 100%;
  min-width: 0;
}
 
.player-form-grid > div {
  display: flex;
  flex-direction: column;
}
 
/* =========================================================
   WELLNESS RECORD CARD POLISH
========================================================= */
 
.elite-wellness-card {
  position: relative;
  overflow: hidden;
 
  padding: 32px;
  border-radius: 30px;
 
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 42%),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(2,6,23,0.84));
 
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto;
 
  border: 1px solid rgba(148,163,184,0.16);
 
  box-shadow:
    0 22px 55px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
 
.elite-wellness-card .elite-injury-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
 
.elite-wellness-card h3 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
 
.elite-wellness-card .elite-injury-player p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}
 
.elite-wellness-card .elite-injury-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
 
.elite-wellness-card .elite-injury-stat {
  min-height: 112px;
  padding: 20px;
  border-radius: 22px;
 
  background: rgba(2,6,23,0.44);
  border: 1px solid rgba(148,163,184,0.14);
}
 
.elite-wellness-card .elite-injury-stat span {
  display: block;
  margin-bottom: 12px;
 
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
 
.elite-wellness-card .elite-injury-stat strong {
  display: block;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
 
.elite-wellness-card .elite-injury-footer {
  padding-top: 22px;
  border-top: 1px solid rgba(148,163,184,0.14);
 
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
 
.elite-wellness-card .elite-injury-meta {
  color: var(--muted);
  font-size: 15px;
}
 
 
@media (max-width: 700px) {
  .elite-wellness-card {
    padding: 24px;
  }
 
  .elite-wellness-card .elite-injury-header {
    flex-direction: column;
  }
 
 
  .elite-wellness-card .elite-injury-footer {
    align-items: stretch;
  }
}
 
/* =========================================================
   INJURY RECORD CARD POLISH
========================================================= */
 
.elite-injury-card {
  padding: 32px;
  border-radius: 30px;
 
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(239,68,68,0.10), transparent 42%),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(2,6,23,0.84));
 
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto;
 
  border: 1px solid rgba(148,163,184,0.16);
 
  box-shadow:
    0 22px 55px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
 
.elite-injury-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
 
.elite-injury-player h3 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
 
.elite-injury-player p {
  color: var(--text-soft);
  font-size: 16px;
}
 
.elite-injury-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
 
.elite-injury-stat {
  min-height: 110px;
  min-width: 0;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(2,6,23,0.44);
  border: 1px solid rgba(148,163,184,0.14);
}
 
.elite-injury-stat span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
 
.elite-injury-stat strong {
  display: block;
  color: #ffffff;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  word-break: break-word;
}
 
.elite-injury-footer {
  padding-top: 22px;
  border-top: 1px solid rgba(148,163,184,0.14);
 
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
 
.elite-injury-meta {
  color: var(--muted);
  font-size: 15px;
}
 
 
@media (max-width: 700px) {
  .elite-injury-card {
    padding: 24px;
  }
 
  .elite-injury-header {
    flex-direction: column;
  }
 
 
  .elite-injury-footer {
    align-items: stretch;
  }
}
 
/* =========================================================
   NOTIFICATIONS CARD POLISH
========================================================= */
 
.notification-item {
  padding: 22px 26px;
  border-radius: 24px;
 
  display: block;
 
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(56,189,248,0.10), transparent 42%),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(2,6,23,0.84));
 
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto;
 
  border: 1px solid rgba(148,163,184,0.16);
 
  box-shadow:
    0 22px 55px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
 
.notification-item h3 {
  margin: 6px 0 6px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
 
.notification-item p {
  max-width: 860px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}
 
.notification-item small,
.notification-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
 
.notification-item .record-actions {
  margin-top: 18px;
}

/* Dashboard notification summary cards (use .app-card) */
.app-card strong {
  display: block;
  margin-bottom: 6px;
}

.app-card small {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-card .record-actions {
  margin-top: 14px;
  gap: 12px;
}

 
.notification-status,
.notification-item > span:last-child {
  justify-self: end;
  align-self: start;
 
  padding: 8px 12px;
  border-radius: 999px;
 
  background: rgba(56,189,248,0.12);
  color: #ffffff;
 
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
@media (max-width: 800px) {
  .notification-item {
    grid-template-columns: 1fr;
    padding: 24px;
  }
 
  .notification-status,
  .notification-item > span:last-child {
    justify-self: start;
  }
}
 
/* =========================================================
   USER MANAGEMENT ASSIGNMENT FIX
========================================================= */
 
.assignment-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148,163,184,0.14);
}
 
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
 
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
 
  padding: 16px 18px;
  border-radius: 18px;
 
  background: rgba(2,6,23,0.42);
  border: 1px solid rgba(148,163,184,0.14);
}
 
.checkbox-row input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  flex: 0 0 22px;
 
  accent-color: var(--primary);
  cursor: pointer;
}
 
.checkbox-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.checkbox-row strong {
  font-size: 15px;
  color: #ffffff;
}
 
.checkbox-row small {
  font-size: 13px;
  color: var(--muted);
}

/* Ineligible team checkbox */
.checkbox-row-ineligible {
  opacity: 0.42;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.07);
  background: rgba(2, 6, 23, 0.25);
}
.checkbox-row-ineligible input[type="checkbox"] {
  cursor: not-allowed;
}
.checkbox-row-ineligible strong::after {
  content: " • Not eligible";
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.02em;
}

/* =========================================================
   PAGE STABILITY
========================================================= */
 
.elite-dashboard-hero,
.elite-hero-main,
.elite-hero-panel,
.elite-squad-layout,
.squad-panel,
.match-report-summary,
.reports-grid,
.potm-grid,
.player-card-grid,
.elite-injury-grid,
.elite-readiness-row,
.notification-item,
.assignment-grid {
  min-width: 0;
}
 
/* =========================================================
   MOBILE HERO FIXES
========================================================= */
 
@media (max-width: 768px) {
 
  .elite-dashboard-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
 
  .elite-hero-main,
  .elite-hero-panel {
    padding: 24px;
    border-radius: 28px;
  }
 
  .elite-hero-main h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.05em;
 
    max-width: 100%;
    overflow-wrap: break-word;
  }
 
  .elite-hero-main p {
    font-size: 15px;
    line-height: 1.6;
  }
 
  .elite-hero-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }
 
  .elite-hero-metrics div {
    min-width: 0;
  }
 
  .elite-hero-metrics strong {
    font-size: 24px;
  }
 
  .main-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
 
}
 
/* =========================================================
   PREMIUM TRYTRACK LANDING PAGE UPGRADE
========================================================= */
 
.landing-body {
  min-height: 100vh;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(38, 166, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(43, 100, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #08131f 45%, #030712 100%);
  overflow-x: hidden;
}
 
.landing-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
 
  display: flex;
  align-items: center;
  justify-content: space-between;
 
  position: relative;
  z-index: 10;
}
 
.header-logo {
  width: 118px;
  height: auto;
  display: block;
}
 
.landing-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
 
.landing-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
 
.landing-nav a:hover {
  color: #ffffff;
}
 
.landing-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
 
  min-height: 640px;
  padding: 120px 0 90px;
 
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 80px;
}
 
.landing-hero-content {
  max-width: 720px;
}
 
.eyebrow {
  display: inline-flex;
  align-items: center;
 
  margin-bottom: 16px;
  padding: 8px 14px;
 
  border: 1px solid rgba(64, 190, 255, 0.22);
  border-radius: 999px;
 
  background: rgba(45, 169, 255, 0.12);
  color: #4cc9ff;
 
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
.landing-hero h1 {
  margin: 0 0 18px;
 
  color: #ffffff;
 
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.065em;
}
 
.landing-hero p {
  max-width: 690px;
  margin: 0 0 28px;
 
  color: rgba(255, 255, 255, 0.78);
 
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}
 
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
 
.landing-preview-card {
  padding: 30px;
 
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
 
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
 
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
 
  backdrop-filter: blur(22px);
}
 
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
 
  margin-bottom: 22px;
}
 
.preview-top span,
.preview-grid span {
  color: rgba(255, 255, 255, 0.58);
 
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
.preview-top strong {
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
}
 
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
 
.preview-grid div {
  min-height: 86px;
  padding: 18px;
 
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
 
  background: rgba(3, 7, 18, 0.46);
}
 
.preview-grid strong {
  display: block;
  margin-top: 8px;
 
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}
 
.landing-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 110px;
 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
 
.strip-item {
  padding: 12px 18px;
 
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
 
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
 
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
 
  backdrop-filter: blur(16px);
}
 
.landing-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0;
}
 
.section-title {
  max-width: 780px;
  margin-bottom: 38px;
}
 
.section-title h2 {
  margin: 0;
 
  color: #ffffff;
 
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
 
.landing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
 
.landing-card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
 
.landing-card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
 
.landing-card {
  min-height: 230px;
  padding: 28px;
 
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
 
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
 
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
 
  backdrop-filter: blur(18px);
 
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
 
.landing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(64, 190, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(64, 190, 255, 0.10), rgba(255, 255, 255, 0.035));
}
 
.landing-card h3 {
  margin: 0 0 12px;
 
  color: #ffffff;
 
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
 
.landing-card p {
  margin: 0;
 
  color: rgba(255, 255, 255, 0.70);
 
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}
 
.landing-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 90px auto 70px;
  padding: 70px;
 
  text-align: center;
 
  border: 1px solid rgba(64, 190, 255, 0.18);
  border-radius: 34px;
 
  background:
    radial-gradient(circle at top left, rgba(64, 190, 255, 0.18), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
 
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
 
  backdrop-filter: blur(22px);
}
 
.landing-cta h2 {
  max-width: 760px;
  margin: 0 auto 16px;
 
  color: #ffffff;
 
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;
}
 
.landing-cta p {
  max-width: 700px;
  margin: 0 auto 28px;
 
  color: rgba(255, 255, 255, 0.74);
 
  font-size: 17px;
  line-height: 1.7;
}
 
.landing-cta .hero-actions {
  justify-content: center;
}
 
/* =========================================================
   LANDING RESPONSIVE
========================================================= */
 
@media (max-width: 980px) {
  .landing-header {
    flex-direction: column;
    gap: 24px;
  }
 
  .landing-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }
 
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 80px 0 70px;
    gap: 40px;
  }
 
  .landing-card-grid,
  .landing-card-grid.three,
  .landing-card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 680px) {
  .landing-header,
  .landing-hero,
  .landing-section,
  .landing-strip,
  .landing-cta {
    width: min(100% - 28px, 1180px);
  }
 
  .landing-nav {
    gap: 14px;
  }
 
  .landing-nav a:not(.btn-small) {
    font-size: 13px;
  }
 
  .landing-hero h1 {
    font-size: 42px;
  }
 
  .landing-card-grid,
  .landing-card-grid.three,
  .landing-card-grid.four,
  .preview-grid {
    grid-template-columns: 1fr;
  }
 
  .landing-cta {
    padding: 42px 24px;
  }
}
 
/* =========================================================
   CONTACT PAGE
========================================================= */
 
.page-hero {
  padding-top: 110px;
}
 
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}
 
.contact-form {
  padding: 32px;
 
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
 
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
 
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
 
  backdrop-filter: blur(18px);
}
 
.form-row {
  margin-bottom: 18px;
}
 
.form-row label {
  display: block;
  margin-bottom: 8px;
 
  color: rgba(255, 255, 255, 0.82);
 
  font-size: 13px;
  font-weight: 800;
}
 
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
 
  padding: 15px 16px;
 
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
 
  background: rgba(3, 7, 18, 0.48);
  color: #ffffff;
 
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
 
  outline: none;
}
 
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(64, 190, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(64, 190, 255, 0.10);
}
 
.form-row textarea {
  resize: vertical;
}
 
.contact-info-card {
  min-height: auto;
}
 
.contact-details {
  margin-top: 24px;
}
 
.contact-details p {
  margin-bottom: 14px;
}
 
/* =========================================================
   PRICING PAGE
========================================================= */
 
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
 
.pricing-card {
  padding: 32px;
 
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
 
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
 
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
 
  backdrop-filter: blur(18px);
}
 
.pricing-card.featured {
  border-color: rgba(64, 190, 255, 0.35);
 
  background:
    radial-gradient(circle at top, rgba(64, 190, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
}
 
.pricing-label {
  display: inline-flex;
 
  margin-bottom: 18px;
  padding: 8px 12px;
 
  border-radius: 999px;
 
  background: rgba(64, 190, 255, 0.13);
  color: #4cc9ff;
 
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
 
.pricing-card h3 {
  margin: 0 0 12px;
 
  color: #ffffff;
 
  font-size: 26px;
  font-weight: 950;
}
 
.price {
  margin: 0 0 14px;
 
  color: #ffffff;
 
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.04em;
}
 
.price span {
  color: rgba(255, 255, 255, 0.58);
 
  font-size: 15px;
  font-weight: 700;
}
 
.pricing-desc {
  margin-bottom: 24px;
 
  color: rgba(255, 255, 255, 0.70);
 
  font-size: 15px;
  line-height: 1.7;
}
 
.pricing-card ul {
  margin: 0 0 28px;
  padding: 0;
 
  list-style: none;
}
 
.pricing-card li {
  padding: 10px 0;
 
  color: rgba(255, 255, 255, 0.76);
 
  font-size: 14px;
  font-weight: 600;
 
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
 
.pricing-card li::before {
  content: "✓";
  margin-right: 10px;
  color: #4cc9ff;
  font-weight: 900;
}
 
/* =========================================================
   CONTACT + PRICING RESPONSIVE
========================================================= */
 
@media (max-width: 980px) {
  .contact-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
 
.annual-price {
  margin: -6px 0 18px;
 
  color: #4cc9ff;
 
  font-size: 15px;
  font-weight: 900;
}
 
/* =========================================================
   FOOTER
========================================================= */
 
.site-footer {
  width: 100%;
 
  margin-top: 120px;
  padding: 70px 0 30px;
 
  border-top: 1px solid rgba(255,255,255,0.08);
 
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.02)
    );
}
 
.footer-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
 
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
 
.footer-logo {
  width: 130px;
  height: auto;
 
  margin-bottom: 18px;
}
 
.footer-description {
  max-width: 320px;
 
  color: rgba(255,255,255,0.66);
 
  font-size: 14px;
  line-height: 1.8;
}
 
.footer-column h4 {
  margin: 0 0 18px;
 
  color: #ffffff;
 
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.footer-column a,
.footer-column span {
  color: rgba(255,255,255,0.68);
 
  font-size: 14px;
  font-weight: 600;
 
  text-decoration: none;
 
  transition: color 0.2s ease;
}
 
.footer-column a:hover {
  color: #4cc9ff;
}
 
.footer-bottom {
  width: min(1180px, calc(100% - 48px));
 
  margin: 60px auto 0;
  padding-top: 24px;
 
  border-top: 1px solid rgba(255,255,255,0.06);
 
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.footer-bottom span {
  color: rgba(255,255,255,0.48);
 
  font-size: 13px;
  font-weight: 600;
}
 
/* =========================================================
   FOOTER RESPONSIVE
========================================================= */
 
@media (max-width: 980px) {
 
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
 
}
 
@media (max-width: 680px) {
 
  .footer-grid {
    grid-template-columns: 1fr;
  }
 
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
 
    text-align: center;
  }
 
}
 
/* =========================================================
   SOCIAL ICONS
========================================================= */
 
.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
 
.footer-column .social-icon {
  width: 46px;
  height: 46px;
 
  flex: 0 0 46px;
 
  display: inline-flex;
  align-items: center;
  justify-content: center;
 
  padding: 0;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
 
  background: rgba(255,255,255,0.03);
 
  color: rgba(255,255,255,0.72);
  text-decoration: none;
}
 
.footer-column .social-icon svg {
  width: 22px !important;
  height: 22px !important;
 
  max-width: 22px !important;
  max-height: 22px !important;
 
  display: block;
}
 
.footer-column .social-icon:hover {
  transform: translateY(-3px);
 
  border-color: rgba(64,190,255,0.28);
 
  background: rgba(64,190,255,0.08);
 
  color: #4cc9ff;
}
 
/* =========================================================
   SUBSCRIPTION PAGE
========================================================= */
 
.plan-btn {
  width: 100%;
  margin-top: 18px;
}
 
#subscriptionStatus,
#trialEndDate,
#currentPeriodEnds {
  display: block;
  margin-top: 6px;
}
 
.subscription-page .stat-card {
  min-width: 0;
}
 
.subscription-page .stats-grid {
  align-items: stretch;
}
 
/* =========================================================
   AUTH LINKS
========================================================= */
 
.auth-links-row {
  margin-top: 22px;
 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
 
.auth-link {
  position: relative;
 
  font-size: 14px;
  font-weight: 700;
 
  text-decoration: none;
 
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
 
.auth-link:hover {
  transform: translateY(-1px);
}
 
.auth-link-muted {
  color: rgba(226,232,240,0.72);
}
 
.auth-link-muted:hover {
  color: #ffffff;
}
 
.auth-link-primary {
  color: var(--primary);
}
 
.auth-link-primary:hover {
  color: #7dd3fc;
}
 
.auth-divider {
  margin-top: 24px;
  padding-top: 20px;
 
  border-top: 1px solid rgba(148,163,184,0.12);
}
 
/* =========================================================
   LEGAL ACCEPTANCE PAGE
========================================================= */
 
.legal-acceptance-card {
  max-width: 620px;
}
 
.legal-summary-box {
  margin: 24px 0;
  padding: 22px;
 
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
 
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.10), transparent 42%),
    rgba(2,6,23,0.42);
}
 
.legal-summary-box h3 {
  margin-bottom: 14px;
 
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}
 
.legal-summary-box ul {
  margin: 0;
  padding-left: 20px;
}
 
.legal-summary-box li {
  margin-bottom: 10px;
 
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
 
.legal-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
 
  margin-bottom: 16px;
  padding: 16px;
 
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
 
  background: rgba(2,6,23,0.36);
 
  cursor: pointer;
}
 
.legal-checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
 
  accent-color: var(--primary);
  cursor: pointer;
}
 
.legal-checkbox-row span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
 
.legal-version-text {
  margin-top: 18px;
  text-align: center;
}
 
/* =========================================================
   AUTH LINK CARDS
========================================================= */
 
.auth-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
 
.auth-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
 
  padding: 15px 16px;
 
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
 
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 42%),
    rgba(2,6,23,0.36);
 
  color: #ffffff;
  text-decoration: none;
 
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
 
.auth-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.32);
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.14), transparent 42%),
    rgba(2,6,23,0.52);
}
 
.auth-link-icon {
  width: 38px;
  height: 38px;
 
  flex: 0 0 38px;
 
  display: inline-flex;
  align-items: center;
  justify-content: center;
 
  border-radius: 14px;
 
  background: rgba(56,189,248,0.14);
  color: var(--primary);
 
  font-size: 18px;
  font-weight: 900;
}
 
.auth-link-card strong {
  display: block;
 
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}
 
.auth-link-card small {
  display: block;
  margin-top: 3px;
 
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
 
@media (max-width: 480px) {
  .auth-link-card {
    align-items: flex-start;
  }
}
 
/* =========================================================
   PROFILE PAGE EMAIL FIX
========================================================= */
 
#profileEmail {
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
 
#profileEmail.stat-card-title {
  overflow: visible;
}
 
@media (max-width: 900px) {
  #profileEmail {
    font-size: 24px;
  }
}
 
/* =========================================================
   PROFILE PAGE
========================================================= */
 
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
 
.profile-detail-card {
  min-height: 120px;
  padding: 22px;
  border-radius: 22px;
 
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.10), transparent 42%),
    rgba(2,6,23,0.42);
 
  border: 1px solid rgba(148,163,184,0.14);
}
 
.profile-detail-card span {
  display: block;
  margin-bottom: 10px;
 
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
 
.profile-detail-card strong {
  display: block;
 
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
 
 
 
/* =========================================================
   PROFILE QUALIFICATIONS FORM FIX
========================================================= */
 
#qualificationSection .grid-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  align-items: end;
  margin-top: 26px;
}
 
#qualificationSection .grid-form > div {
  min-width: 0;
}
 
#qualificationSection .grid-form input,
#qualificationSection .grid-form select {
  width: 100%;
  min-width: 0;
}
 
#qualificationSection .grid-form button {
  width: 100%;
  min-height: 56px;
}
 
#qualificationList {
  margin-top: 26px;
}
 
@media (max-width: 1100px) {
  #qualificationSection .grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 700px) {
  #qualificationSection .grid-form {
    grid-template-columns: 1fr;
  }
}
 
/* =========================================================
   PLAYER DETAIL STAT CARD TEXT FIX
========================================================= */
 
.player-detail-page .stat-card {
  min-width: 0;
  overflow: hidden;
}
 
.player-detail-page .stat-card h2 {
  margin: 10px 0 12px;
 
  font-size: clamp(34px, 3vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.06em;
 
  overflow-wrap: anywhere;
  word-break: break-word;
 
  max-width: 100%;
}
 
.player-detail-page .stats-grid {
  align-items: stretch;
}
 
@media (max-width: 1200px) {
  .player-detail-page .stat-card h2 {
    font-size: clamp(28px, 4vw, 52px);
  }
}
 
@media (max-width: 700px) {
  .player-detail-page .stat-card h2 {
    font-size: clamp(24px, 8vw, 42px);
  }
}
 
/* =========================================================
   PLAYER DETAIL VALUE FIX - FINAL
========================================================= */
 
.player-detail-page #playerReadiness,
.player-detail-page #playerStatus,
.player-detail-page #playerAttendance,
.player-detail-page #playerWellness,
.player-detail-page #playerInjuries {
  display: block;
 
  font-size: clamp(34px, 2.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
 
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
 
  background: transparent;
  box-shadow: none;
}
 
.player-detail-page #playerStatus {
  font-size: clamp(30px, 2vw, 42px);
  text-transform: capitalize;
}
 
.player-detail-page #playerReadiness {
  font-size: clamp(32px, 2.2vw, 46px);
}
 
.player-detail-page .stats-grid .stat-card {
  min-width: 0;
  padding: 26px;
}
 
@media (max-width: 1400px) {
  .player-detail-page .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}
 
/* =========================================================
   MATCH CENTRE PLAYER STATS
========================================================= */
 
#playerMatchStatsForm {
  margin-top: 10px;
}
 
#playerMatchStatsForm .btn-primary {
  margin-top: 10px;
}
 
#playerMatchStatsForm input,
#playerMatchStatsForm select {
  width: 100%;
}
 
@media (max-width: 700px) {
 
  #playerMatchStatsForm {
    grid-template-columns: 1fr;
  }
 
}
 
/* =========================================================
   LANDING IMAGE HERO + SHOWCASE
========================================================= */
 
.landing-hero-image {
  position: relative;
  isolation: isolate;
 
  width: 100%;
  max-width: none;
 
  min-height: 760px;
  margin-top: -110px;
  padding: 190px max(24px, calc((100vw - 1180px) / 2)) 110px;
 
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 18, 0.96) 0%,
      rgba(3, 7, 18, 0.82) 42%,
      rgba(3, 7, 18, 0.46) 72%,
      rgba(3, 7, 18, 0.76) 100%
    ),
    url("../assets/rugby-hero.jpeg");
 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
 
.landing-hero-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
 
  background: linear-gradient(
    180deg,
    transparent,
    #030712
  );
}
 
.landing-hero-image .landing-hero-content {
  position: relative;
  z-index: 2;
}
 
.landing-preview-image-card {
  position: relative;
  z-index: 2;
 
  overflow: hidden;
  border-radius: 30px;
 
  border: 1px solid rgba(255, 255, 255, 0.12);
 
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.48),
    0 0 40px rgba(64, 190, 255, 0.12);
}
 
.landing-preview-image-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
 
  display: block;
  object-fit: cover;
}
 
.landing-showcase {
  width: min(1180px, calc(100% - 48px));
  margin: 20px auto 90px;
 
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
 
.showcase-image {
  overflow: hidden;
  border-radius: 34px;
 
  border: 1px solid rgba(255, 255, 255, 0.12);
 
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.42),
    0 0 50px rgba(64, 190, 255, 0.12);
}
 
.showcase-image img {
  width: 100%;
  height: 100%;
 
  display: block;
  object-fit: cover;
}
 
.showcase-content h2 {
  margin: 0 0 18px;
 
  color: #ffffff;
 
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
 
.showcase-content p {
  margin: 0 0 28px;
 
  color: rgba(255, 255, 255, 0.74);
 
  font-size: 17px;
  line-height: 1.75;
}
 
/* =========================================================
   IMAGE SECTION RESPONSIVE
========================================================= */
 
@media (max-width: 980px) {
  .landing-hero-image {
    margin-top: -150px;
    padding-top: 230px;
    grid-template-columns: 1fr;
  }
 
  .landing-showcase {
    grid-template-columns: 1fr;
  }
}
 
@media (max-width: 680px) {
  .landing-hero-image {
    min-height: auto;
    padding-top: 220px;
    padding-bottom: 70px;
 
    background-position: center;
  }
 
  .landing-preview-image-card img {
    min-height: 240px;
  }
 
  .landing-showcase {
    width: min(100% - 28px, 1180px);
  }
}
 
/* =========================================================
   TRYTRACK ELITE LANDING PAGE
========================================================= */
 
.tt-body {
  margin: 0;
  padding: 0;
 
  overflow-x: hidden;
 
  font-family: "Inter", sans-serif;
 
  color: #ffffff;
 
  background:
    radial-gradient(circle at top left,
      rgba(38,166,255,0.16),
      transparent 30%),
 
    linear-gradient(
      135deg,
      #050b16 0%,
      #07111f 50%,
      #020611 100%
    );
}
 
/* =========================================================
   NAVIGATION
========================================================= */
 
.tt-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 
  z-index: 100;
}
 
.tt-nav-container {
  width: min(1280px, calc(100% - 48px));
 
  margin: 24px auto 0;
  padding: 18px 24px;
 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
 
  background: rgba(7,17,31,0.72);
 
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
 
  box-shadow:
    0 20px 60px rgba(0,0,0,0.34);
}
 
.tt-logo {
  width: 130px;
  height: auto;
}
 
.tt-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
 
.tt-nav a {
  color: rgba(255,255,255,0.72);
 
  font-size: 15px;
  font-weight: 700;
 
  text-decoration: none;
 
  transition: color 0.2s ease;
}
 
.tt-nav a:hover {
  color: #ffffff;
}
 
.tt-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
 
/* =========================================================
   HERO
========================================================= */
 
.tt-hero {
  position: relative;
 
  min-height: 100vh;
 
  overflow: hidden;
 
  display: flex;
  align-items: center;
}
 
.tt-hero-bg {
  position: absolute;
  inset: 0;
 
  width: 100%;
  height: 100%;
 
  object-fit: cover;
 
  z-index: 0;
}
 
.tt-hero-overlay {
  position: absolute;
  inset: 0;
 
  z-index: 1;
 
  background:
    linear-gradient(
      90deg,
      rgba(2,6,23,0.96) 0%,
      rgba(2,6,23,0.86) 40%,
      rgba(2,6,23,0.46) 72%,
      rgba(2,6,23,0.86) 100%
    );
}
 
.tt-hero-content {
  position: relative;
  z-index: 2;
 
  width: min(1280px, calc(100% - 48px));
 
  margin: 0 auto;
  padding-top: 120px;
 
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
 
.tt-hero-left {
  max-width: 720px;
}
 
.tt-badge {
  display: inline-flex;
  align-items: center;
 
  margin-bottom: 20px;
  padding: 10px 14px;
 
  border: 1px solid rgba(64,190,255,0.22);
  border-radius: 999px;
 
  background: rgba(64,190,255,0.12);
 
  color: #4cc9ff;
 
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
 
.tt-hero-left h1 {
  margin: 0 0 22px;
 
  color: #ffffff;
 
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.07em;
}
 
.tt-hero-left p {
  max-width: 650px;
 
  margin: 0 0 32px;
 
  color: rgba(255,255,255,0.74);
 
  font-size: 18px;
  line-height: 1.8;
}
 
.tt-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
 
/* =========================================================
   HERO PANEL
========================================================= */
 
.tt-hero-panel {
  padding: 32px;
 
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 32px;
 
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
 
  backdrop-filter: blur(24px);
 
  box-shadow:
    0 30px 80px rgba(0,0,0,0.42);
}
 
.tt-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
 
  margin-bottom: 24px;
}
 
.tt-panel-top span {
  color: rgba(255,255,255,0.62);
 
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
.tt-panel-top strong {
  color: #ffffff;
 
  font-size: 42px;
  font-weight: 950;
}
 
.tt-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
 
.tt-stat-card {
  min-height: 110px;
 
  padding: 22px;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
 
  background: rgba(2,6,23,0.52);
}
 
.tt-stat-card span {
  display: block;
 
  margin-bottom: 12px;
 
  color: rgba(255,255,255,0.58);
 
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
.tt-stat-card strong {
  color: #ffffff;
 
  font-size: 30px;
  font-weight: 950;
}
 
/* =========================================================
   STRIP
========================================================= */
 
.tt-strip {
  width: min(1280px, calc(100% - 48px));
 
  margin: 50px auto 110px;
 
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
 
.tt-strip-item {
  padding: 14px 18px;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
 
  background: rgba(255,255,255,0.04);
 
  color: rgba(255,255,255,0.72);
 
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
/* =========================================================
   SHOWCASE
========================================================= */
 
.tt-showcase,
.tt-mobile-showcase {
  width: min(1280px, calc(100% - 48px));
 
  margin: 0 auto 120px;
 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
 
.tt-showcase-image,
.tt-mobile-image {
  overflow: hidden;
 
  border-radius: 36px;
 
  border: 1px solid rgba(255,255,255,0.10);
 
  box-shadow:
    0 32px 90px rgba(0,0,0,0.42);
}
 
.tt-showcase-image img,
.tt-mobile-image img {
  width: 100%;
  height: 100%;
 
  display: block;
 
  object-fit: cover;
}
 
.tt-showcase-content h2,
.tt-mobile-content h2,
.tt-section-heading h2,
.tt-cta h2 {
  margin: 0 0 18px;
 
  color: #ffffff;
 
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
 
.tt-showcase-content p,
.tt-mobile-content p,
.tt-cta p {
  margin: 0 0 28px;
 
  color: rgba(255,255,255,0.74);
 
  font-size: 17px;
  line-height: 1.8;
}
 
.tt-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
 
.tt-feature-item {
  padding: 12px 16px;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
 
  background: rgba(255,255,255,0.04);
 
  font-size: 13px;
  font-weight: 800;
}
 
/* =========================================================
   SECTIONS
========================================================= */
 
.tt-section {
  width: min(1280px, calc(100% - 48px));
 
  margin: 0 auto 120px;
}
 
.tt-section-heading {
  max-width: 820px;
 
  margin-bottom: 40px;
}
 
.tt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
 
.tt-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
 
.tt-card {
  min-height: 240px;
 
  padding: 30px;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
 
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
 
  box-shadow:
    0 24px 60px rgba(0,0,0,0.22);
 
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
 
.tt-card:hover {
  transform: translateY(-6px);
 
  border-color: rgba(64,190,255,0.26);
}
 
.tt-card h3 {
  margin: 0 0 14px;
 
  color: #ffffff;
 
  font-size: 24px;
  font-weight: 900;
}
 
.tt-card p {
  color: rgba(255,255,255,0.72);
 
  font-size: 15px;
  line-height: 1.8;
}
 
/* =========================================================
   CTA
========================================================= */
 
.tt-cta {
  width: min(1280px, calc(100% - 48px));
 
  margin: 0 auto 100px;
  padding: 80px;
 
  text-align: center;
 
  border: 1px solid rgba(64,190,255,0.18);
  border-radius: 40px;
 
  background:
    radial-gradient(circle at top left,
      rgba(64,190,255,0.18),
      transparent 34%),
 
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
 
  box-shadow:
    0 34px 90px rgba(0,0,0,0.34);
}
 
.tt-cta p {
  max-width: 760px;
  margin-inline: auto;
}
 
/* =========================================================
   FOOTER
========================================================= */
 
.tt-footer {
  width: 100%;
 
  padding: 80px 0 30px;
 
  border-top: 1px solid rgba(255,255,255,0.08);
}
 
.tt-footer-grid {
  width: min(1280px, calc(100% - 48px));
 
  margin: 0 auto;
 
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
 
.tt-footer-logo {
  width: 130px;
  margin-bottom: 18px;
}
 
.tt-footer-text {
  max-width: 320px;
 
  color: rgba(255,255,255,0.66);
 
  line-height: 1.8;
}
 
.tt-footer h4 {
  margin: 0 0 18px;
 
  color: #ffffff;
 
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
.tt-footer a {
  display: block;
 
  margin-bottom: 12px;
 
  color: rgba(255,255,255,0.68);
 
  text-decoration: none;
}
 
 
 
.tt-footer-bottom {
  width: min(1280px, calc(100% - 48px));
 
  margin: 60px auto 0;
  padding-top: 24px;
 
  border-top: 1px solid rgba(255,255,255,0.06);
 
  color: rgba(255,255,255,0.46);
 
  font-size: 13px;
}
 
/* =========================================================
   RESPONSIVE
========================================================= */
 
@media (max-width: 1100px) {
 
  .tt-hero-content,
  .tt-showcase,
  .tt-mobile-showcase {
    grid-template-columns: 1fr;
  }
 
  .tt-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
 
  .tt-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
 
}
 
@media (max-width: 780px) {
 
  .tt-nav {
    display: none;
  }
 
  .tt-grid,
  .tt-grid-4,
  .tt-panel-grid,
  .tt-footer-grid {
    grid-template-columns: 1fr;
  }
 
  .tt-hero-left h1 {
    font-size: 52px;
  }
 
  .tt-cta {
    padding: 42px 24px;
  }
 
}
 
@media (max-width: 580px) {
 
  .tt-nav-container {
    width: min(100% - 20px, 1280px);
 
    padding: 14px 16px;
  }
 
  .tt-hero-content,
  .tt-strip,
  .tt-showcase,
  .tt-mobile-showcase,
  .tt-section,
  .tt-cta,
  .tt-footer-grid,
  .tt-footer-bottom {
    width: min(100% - 20px, 1280px);
  }
 
  .tt-hero-left h1 {
    font-size: 42px;
  }
 
}
 
.tt-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tt-social {
  width: 52px;
  height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(15,23,42,0.95),
      rgba(2,6,23,0.92)
    );

  border: 1px solid rgba(148,163,184,0.18);

  color: #e5e7eb;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.tt-social i,
.tt-social svg {
  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;
}

.tt-social:hover {
  transform: translateY(-3px);

  border-color: rgba(64,190,255,0.42);

  background:
    linear-gradient(
      145deg,
      rgba(64,190,255,0.14),
      rgba(255,255,255,0.04)
    );

  color: #4cc9ff;

  box-shadow:
    0 12px 24px rgba(56,189,248,0.15);
}
 
/* =========================================================
   TT CONTACT PAGE
========================================================= */
 
.tt-page-hero {
  position: relative;
  overflow: hidden;
 
  min-height: 640px;
 
  display: flex;
  align-items: center;
 
  padding-top: 160px;
  padding-bottom: 80px;
}
 
.tt-page-hero-bg {
  position: absolute;
  inset: 0;
 
  background:
    linear-gradient(
      90deg,
      rgba(2,6,23,0.96) 0%,
      rgba(2,6,23,0.84) 42%,
      rgba(2,6,23,0.58) 100%
    ),
    url("../assets/rugby-hero.jpeg");
 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 
  z-index: 0;
}
 
.tt-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
 
  background: linear-gradient(180deg, transparent, #020611);
  z-index: 1;
}
 
.tt-page-hero-content {
  position: relative;
  z-index: 2;
 
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  max-width: 850px;
}
 
.tt-page-hero h1 {
  margin: 0 0 22px;
 
  color: #ffffff;
 
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
 
.tt-page-hero p {
  max-width: 700px;
 
  color: rgba(255,255,255,0.76);
 
  font-size: 18px;
  line-height: 1.8;
}
 
.tt-contact-section {
  width: min(1280px, calc(100% - 48px));
  margin: 40px auto 120px;
 
  position: relative;
  z-index: 3;
}
 
.tt-contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}
 
.tt-contact-form,
.tt-contact-card {
  padding: 34px;
 
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 32px;
 
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
 
  box-shadow:
    0 28px 80px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05);
 
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
 
.tt-contact-form .form-row {
  margin-bottom: 18px;
}
 
.tt-contact-form label {
  display: block;
  margin-bottom: 8px;
 
  color: rgba(255,255,255,0.82);
 
  font-size: 13px;
  font-weight: 900;
}
 
.tt-contact-form input,
.tt-contact-form select,
.tt-contact-form textarea {
  width: 100%;
 
  padding: 15px 16px;
 
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
 
  background: rgba(2,6,23,0.54);
 
  color: #ffffff;
 
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
 
  outline: none;
}
 
.tt-contact-form input:focus,
.tt-contact-form select:focus,
.tt-contact-form textarea:focus {
  border-color: rgba(64,190,255,0.52);
  box-shadow: 0 0 0 4px rgba(64,190,255,0.10);
}
 
.tt-contact-form textarea {
  resize: vertical;
}
 
.tt-contact-card h2 {
  margin: 0 0 18px;
 
  color: #ffffff;
 
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
}
 
.tt-contact-card p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.8;
}
 
.tt-contact-detail-list {
  display: grid;
  gap: 16px;
 
  margin-top: 28px;
}
 
.tt-contact-detail-list div {
  padding: 18px;
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
 
  background: rgba(2,6,23,0.38);
}
 
.tt-contact-detail-list strong {
  display: block;
  margin-bottom: 6px;
 
  color: #4cc9ff;
 
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
.tt-contact-detail-list a,
.tt-contact-detail-list span {
  color: rgba(255,255,255,0.78);
 
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
 
/* =========================================================
   TT CONTACT RESPONSIVE
========================================================= */
 
@media (max-width: 980px) {
  .tt-contact-layout {
    grid-template-columns: 1fr;
  }
 
  .tt-contact-section {
    margin-top: -20px;
  }
}
 
@media (max-width: 580px) {
  .tt-page-hero-content,
  .tt-contact-section {
    width: min(100% - 20px, 1280px);
  }
 
  .tt-contact-form,
  .tt-contact-card {
    padding: 24px;
  }
}
 
/* =========================================================
   TT PRICING PAGE
========================================================= */
 
.tt-pricing-section {
  width: min(1280px, calc(100% - 48px));
  margin: 40px auto 120px;
  position: relative;
  z-index: 3;
}
 
.tt-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
 
.tt-pricing-card {
  padding: 34px;
 
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 32px;
 
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.03)
    );
 
  box-shadow:
    0 28px 80px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05);
 
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
 
  display: flex;
  flex-direction: column;
}
 
.tt-pricing-card.featured {
  border-color: rgba(64,190,255,0.36);
 
  background:
    radial-gradient(circle at top, rgba(64,190,255,0.18), transparent 38%),
    linear-gradient(
      145deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.035)
    );
 
  transform: translateY(-18px);
}
 
.tt-pricing-label {
  width: fit-content;
 
  margin-bottom: 18px;
  padding: 9px 13px;
 
  border-radius: 999px;
 
  background: rgba(64,190,255,0.13);
  color: #4cc9ff;
 
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
 
.tt-pricing-card h3 {
  margin: 0 0 14px;
 
  color: #ffffff;
 
  font-size: 28px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
 
.tt-price {
  margin: 0 0 8px;
 
  color: #ffffff;
 
  font-size: 46px;
  font-weight: 950;
  letter-spacing: -0.055em;
}
 
.tt-price span {
  color: rgba(255,255,255,0.58);
 
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
 
.tt-annual-price {
  margin: 0 0 22px;
 
  color: #4cc9ff;
 
  font-size: 15px;
  font-weight: 900;
}
 
.tt-pricing-desc {
  min-height: 80px;
  margin: 0 0 24px;
 
  color: rgba(255,255,255,0.70);
 
  font-size: 15px;
  line-height: 1.7;
}
 
.tt-pricing-card ul {
  margin: 0 0 28px;
  padding: 0;
 
  list-style: none;
 
  flex: 1;
}
 
.tt-pricing-card li {
  padding: 11px 0;
 
  color: rgba(255,255,255,0.76);
 
  font-size: 14px;
  font-weight: 700;
 
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
 
.tt-pricing-card li::before {
  content: "✓";
  margin-right: 10px;
 
  color: #4cc9ff;
 
  font-weight: 900;
}
 
.tt-pricing-card .btn-primary,
.tt-pricing-card .btn-secondary {
  width: 100%;
}
 
/* =========================================================
   TT PRICING RESPONSIVE
========================================================= */
 
@media (max-width: 1100px) {
  .tt-pricing-grid {
    grid-template-columns: 1fr;
  }
 
  .tt-pricing-card.featured {
    transform: none;
  }
}
 
@media (max-width: 580px) {
  .tt-pricing-section {
    width: min(100% - 20px, 1280px);
  }
 
  .tt-pricing-card {
    padding: 24px;
  }
 
  .tt-price {
    font-size: 38px;
  }
}
 
/* =========================================================
   FEATURE BAR STRIP
========================================================= */
 
.tt-feature-bar {
  width: 100%;
  min-height: 120px;
 
  margin: 0 0 120px;
 
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
 
  border-top: none;
  border-bottom: none;
 
  background:
    linear-gradient(
      90deg,
      rgba(2,6,23,0.96) 0%,
      rgba(2,6,23,0.90) 58%,
      rgba(10,95,220,0.72) 100%
    );
}
 
.tt-feature-bar-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
 
  padding-left: max(24px, calc((100vw - 1280px) / 2));
}
 
.tt-feature-bar-item {
  min-height: 120px;
 
  display: flex;
  align-items: center;
  gap: 14px;
 
  padding: 18px 20px;
 
  border-right: none;
}
 
.tt-feature-bar-item i {
  flex: 0 0 auto;
 
  color: #147dff;
 
  font-size: 30px;
  line-height: 1;
 
  filter: drop-shadow(0 0 14px rgba(20,125,255,0.35));
}
 
.tt-feature-bar-item span {
  color: rgba(255,255,255,0.88);
 
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
 
.tt-feature-bar-slogan {
  position: relative;
 
  min-height: 120px;
 
  display: flex;
  flex-direction: column;
  justify-content: center;
 
  padding: 18px 26px 18px 56px;
 
  background:
    linear-gradient(
      135deg,
      rgba(28,120,255,0.96),
      rgba(6,52,145,0.96)
    );
 
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}
 
.tt-feature-bar-slogan strong {
  display: block;
 
  color: #ffffff;
 
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: italic;
}
 
.tt-feature-bar-slogan span {
  color: #4cc9ff;
}
 
/* =========================================================
   FEATURE BAR RESPONSIVE
========================================================= */
 
@media (max-width: 1200px) {
  .tt-feature-bar {
    grid-template-columns: 1fr;
  }
 
  .tt-feature-bar-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
  }
 
  .tt-feature-bar-slogan {
    clip-path: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2));
  }
}
 
@media (max-width: 700px) {
  .tt-feature-bar-items {
    grid-template-columns: 1fr;
  }
 
  .tt-feature-bar-item {
    min-height: 110px;
  }
 
  .tt-feature-bar-slogan strong {
  display: block;
 
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
 
  color: #ffffff;
 
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 0.02em;
 
  white-space: nowrap;
}
}
 
.bio-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
 
.bio-metric-card {
  min-height: 260px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(2, 10, 24, 0.96), rgba(8, 20, 42, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
}
 
.bio-metric-card p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
 
.bio-ring {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 18px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#0ea5ff var(--value), rgba(15, 23, 42, 0.95) 0);
  box-shadow:
    0 0 32px rgba(14, 165, 255, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
}
 
.bio-ring::before {
  content: "";
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #020617;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.55);
}
 
.bio-ring div {
  position: relative;
  z-index: 1;
  text-align: center;
}
 
.bio-ring h2 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.08em;
}
 
.bio-ring span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}
 
.bio-metric-card strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
 
.bio-metric-danger .bio-ring {
  background: conic-gradient(#ef4444 var(--value), rgba(15, 23, 42, 0.95) 0);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.24);
}
 
.bio-metric-warning .bio-ring {
  background: conic-gradient(#f59e0b var(--value), rgba(15, 23, 42, 0.95) 0);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.24);
}
 
.bio-metric-ready .bio-ring {
  background: conic-gradient(#22c55e var(--value), rgba(15, 23, 42, 0.95) 0);
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.24);
}
 
.bio-metric-monitor .bio-ring {
  background: conic-gradient(#38bdf8 var(--value), rgba(15, 23, 42, 0.95) 0);
}
 
@media (max-width: 1100px) {
  .bio-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 640px) {
  .bio-analytics-grid {
    grid-template-columns: 1fr;
  }
 
  .bio-metric-card {
    min-height: 230px;
  }
}
 
/* =========================================================
   PREMIUM DIRECTOR / COACH DASHBOARD STATS - FINAL
========================================================= */
 
.premium-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
 
.premium-stat-card {
  position: relative;
  isolation: isolate;
 
  min-height: 205px;
  padding: 20px;
  border-radius: 30px;
 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 
  overflow: hidden;
 
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 38%),
    linear-gradient(
      160deg,
      rgba(1, 8, 20, 0.98) 0%,
      rgba(5, 15, 35, 0.96) 45%,
      rgba(2, 8, 18, 0.98) 100%
    );
 
  border: 1px solid rgba(56, 189, 248, 0.14);
 
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
 
.premium-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 20% -80px 20%;
  height: 120px;
  z-index: -1;
 
  background: rgba(56, 189, 248, 0.08);
  filter: blur(55px);
}
 
.premium-stat-card p {
  margin: 0;
 
  display: flex;
  align-items: center;
  gap: 8px;
 
  color: #ffffff;
 
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
 
.premium-ring {
  position: relative;
  overflow: hidden;
 
  width: 118px;
  height: 118px;
  margin: 6px auto 0;
 
  border-radius: 50%;
  display: grid;
  place-items: center;
 
  background:
    conic-gradient(
      #0ea5ff var(--value),
      rgba(15, 23, 42, 0.88) 0
    );
 
  box-shadow: 0 0 18px rgba(14, 165, 255, 0.14);
 
  transition:
    background 0.9s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
 
.premium-ring::before {
  content: "";
  position: absolute;
 
  width: 104px;
  height: 104px;
 
  border-radius: 50%;
 
  background:
    radial-gradient(
      circle at top,
      rgba(8, 15, 30, 1),
      rgba(2, 6, 23, 1)
    );
 
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.38);
}
 
.premium-ring::after {
  content: "";
  position: absolute;
  inset: 0;
 
  border-radius: 50%;
 
  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.14),
      transparent 60%
    );
}
 
.premium-ring div {
  position: relative;
  z-index: 2;
  text-align: center;
}
 
.premium-ring h2,
.premium-big-number h2,
.premium-stat-value h2 {
  margin: 0;
 
  color: #ffffff;
 
  font-size: 34px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
}
 
.premium-ring span,
.premium-big-number span,
.premium-stat-value span {
  display: block;
  margin-top: 5px;
 
  color: #94a3b8;
 
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
 
.premium-stat-card strong {
  margin-top: 4px;
 
  color: #ffffff;
 
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
 
.premium-big-number {
  margin-top: 18px;
}
 
.premium-stat-value {
  margin-top: 18px;
}
 
.premium-stat-value h2 {
  font-size: 38px;
}
 
.premium-big-number h2 {
  font-size: 40px;
}
 
.premium-dashboard-grid .stat-trend {
  display: none;
}
 
/* Ring colours */
 
/* Card accent borders */
.premium-neutral,
.premium-overview,
.premium-load {
  border-color: rgba(56, 189, 248, 0.14);
}
 
.premium-ready {
  border-color: rgba(34, 197, 94, 0.22);
}
 
.premium-monitor,
.premium-warning {
  border-color: rgba(245, 158, 11, 0.22);
}
 
.premium-danger {
  border-color: rgba(239, 68, 68, 0.24);
}
 
/* Card accent glows */
.premium-ready::after {
  background: rgba(34, 197, 94, 0.09);
}
 
.premium-monitor::after,
.premium-warning::after {
  background: rgba(245, 158, 11, 0.09);
}
 
.premium-danger::after {
  background: rgba(239, 68, 68, 0.09);
}
 
/* Responsive */
@media (max-width: 1200px) {
  .premium-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 640px) {
  .premium-dashboard-grid {
    grid-template-columns: 1fr;
  }
 
  .premium-stat-card {
    min-height: 200px;
  }
}
 
.premium-wellness .premium-ring {
  background:
    conic-gradient(
      #0ea5ff var(--value),
      rgba(15, 23, 42, 0.88) 0
    );
}
 
.premium-wellness {
  border-color: rgba(14, 165, 255, 0.22);
}
 
.team-overview-meta {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
 
.team-overview-meta strong {
  color: #38bdf8;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
 
.team-overview-meta small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
 
/* =========================================================
   PREMIUM RING LOAD ANIMATION
========================================================= */
 
 
 
.premium-ring.is-loading {
  animation: premiumRingPulse 1.1s ease-in-out infinite;
}
 
.premium-ring.is-loaded {
  animation: premiumRingSettle 0.65s ease-out;
}
 
@keyframes premiumRingPulse {
  0% {
    transform: scale(0.96);
    filter: brightness(0.85);
  }
 
  50% {
    transform: scale(1.04);
    filter: brightness(1.25);
  }
 
  100% {
    transform: scale(0.96);
    filter: brightness(0.85);
  }
}
 
@keyframes premiumRingSettle {
  0% {
    transform: scale(1.08);
  }
 
  100% {
    transform: scale(1);
  }
}
 
/* =========================================================
   DASHBOARD CHART LAYOUT UPGRADE
========================================================= */
 
.elite-dashboard-intelligence {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  margin-bottom: 30px;
}
 
.elite-readiness-card {
  min-height: 430px;
}
 
.large-chart-wrap {
  min-height: 330px;
}
 
.large-chart-wrap canvas {
  height: 330px !important;
  max-height: 330px !important;
}
 
.insights-panel {
  min-height: 430px;
}
 
.chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}
 
.chart-wrap canvas {
  height: 260px !important;
  max-height: 260px !important;
}
 
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
 
.bio-dashboard-priority-section {
  grid-template-columns: 1fr;
}
 
@media (max-width: 1200px) {
  .elite-dashboard-intelligence {
    grid-template-columns: 1fr;
  }
 
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}
 
@media (max-width: 700px) {
  .large-chart-wrap {
    min-height: 260px;
  }
 
  .large-chart-wrap canvas {
    height: 260px !important;
    max-height: 260px !important;
  }
 
  .chart-wrap {
    height: 220px;
  }
 
  .chart-wrap canvas {
    height: 220px !important;
    max-height: 220px !important;
  }
}
 
.dashboard-view-label {
  display: inline-flex;
  width: fit-content;
 
  margin-top: 4px;
  margin-bottom: 12px;
 
  padding: 8px 12px;
 
  border-radius: 999px;
 
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.22);
 
  color: #7dd3fc;
 
  font-size: 11px;
  font-weight: 900;
 
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
/* =========================================================
   DASHBOARD HERO LIVE EFFECT
========================================================= */
 
.elite-dashboard-hero {
  position: relative;
  overflow: hidden;
}
 
.elite-dashboard-hero::before {
  content: "";
 
  position: absolute;
  inset: -30%;
 
  background:
    radial-gradient(
      circle at top right,
      rgba(56,189,248,0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(34,197,94,0.12),
      transparent 40%
    );
 
  animation: dashboardHeroPulse 8s ease-in-out infinite;
  pointer-events: none;
}
 
@keyframes dashboardHeroPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
 
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
 
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}
 
.mini-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}
 
.mini-analytics-card {
  min-height: 260px;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 42%),
    linear-gradient(145deg, rgba(2,6,23,0.96), rgba(15,23,42,0.92));
  border: 1px solid rgba(56,189,248,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}
 
.mini-analytics-card h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
 
.mini-chart-wrap {
  position: relative;
  height: 170px;
}
 
.mini-chart-wrap canvas {
  height: 170px !important;
  max-height: 170px !important;
}
 
@media (max-width: 1100px) {
  .mini-analytics-grid {
    grid-template-columns: 1fr;
  }
}
 
.director-comparison-section {
  margin-bottom: 30px;
}
 
.director-comparison-chart-wrap {
  height: 340px;
  margin-top: 22px;
}
 
.director-comparison-chart-wrap canvas {
  height: 340px !important;
  max-height: 340px !important;
}
 
.team-comparison-table {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
 
.comparison-table-header,
.comparison-table-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 12px;
  align-items: center;
}
 
.comparison-table-header {
  padding: 0 18px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.comparison-table-row {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(2,6,23,0.42);
  border: 1px solid rgba(148,163,184,0.14);
  color: #ffffff;
}
 
.comparison-table-row strong {
  color: #ffffff;
}
 
.risk-pill {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
 
.risk-low {
  background: rgba(34,197,94,0.14);
  color: #86efac;
}
 
.risk-moderate {
  background: rgba(245,158,11,0.14);
  color: #fcd34d;
}
 
.risk-high {
  background: rgba(239,68,68,0.14);
  color: #fca5a5;
}
 
@media (max-width: 900px) {
  .comparison-table-header {
    display: none;
  }
 
  .comparison-table-row {
    grid-template-columns: 1fr 1fr;
  }
}
 
.director-risk-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
 
.director-risk-card {
  min-height: 140px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.10), transparent 42%),
    rgba(2,6,23,0.46);
  border: 1px solid rgba(148,163,184,0.14);
}
 
.director-risk-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.director-risk-card strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
 
.director-risk-card p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}
 
@media (max-width: 1100px) {
  .director-risk-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 
@media (max-width: 640px) {
  .director-risk-insights {
    grid-template-columns: 1fr;
  }
}
 
.player-risk-section {
  margin-bottom: 30px;
}
 
.player-risk-leaderboard {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
 
.player-risk-header,
.player-risk-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr repeat(4, 0.8fr);
  gap: 12px;
  align-items: center;
}
 
.player-risk-header {
  padding: 0 18px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.player-risk-row {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(2,6,23,0.42);
  border: 1px solid rgba(148,163,184,0.14);
  color: #ffffff;
}
 
.player-risk-row strong {
  color: #ffffff;
}
 
@media (max-width: 900px) {
  .player-risk-header {
    display: none;
  }
 
  .player-risk-row {
    grid-template-columns: 1fr 1fr;
  }
}
 
.dashboard-account-badge {
  margin-top: 20px;
  padding: 18px 20px;
 
  border-radius: 18px;
 
  background: rgba(15, 23, 42, 0.72);
 
  border: 1px solid rgba(56, 189, 248, 0.14);
 
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.dashboard-account-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
 
  color: #38bdf8;
}
 
.dashboard-account-badge strong {
  font-size: 28px;
  font-weight: 900;
 
  color: #ffffff;
}
 
.dashboard-account-badge small {
  font-size: 13px;
  color: #94a3b8;
}
 
/* =========================================================
   PLAYER TRAINING SCHEDULE
========================================================= */
 
.training-session-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
 
  padding: 18px;
  border-radius: 22px;
 
  background: rgba(255,255,255,0.04);
 
  border: 1px solid rgba(255,255,255,0.06);
 
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
 
.training-session-card:hover {
  transform: translateY(-3px);
 
  border-color: rgba(56,189,248,0.35);
 
  background: rgba(255,255,255,0.06);
}
 
.training-session-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
 
.training-session-header h3 {
  margin: 0;
 
  font-size: 17px;
  font-weight: 800;
 
  color: #ffffff;
}
 
.training-session-header p {
  margin-top: 6px;
 
  color: #94a3b8;
 
  font-size: 13px;
}
 
.training-session-badge {
  padding: 8px 12px;
 
  border-radius: 999px;
 
  background: rgba(56,189,248,0.16);
 
  color: #38bdf8;
 
  font-size: 12px;
  font-weight: 700;
 
  white-space: nowrap;
}
 
.training-session-grid {
  display: grid;
 
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
 
  gap: 12px;
}
 
.training-session-stat {
  padding: 12px;
 
  border-radius: 16px;
 
  background: rgba(255,255,255,0.03);
}
 
.training-session-stat span {
  display: block;
 
  margin-bottom: 6px;
 
  color: #94a3b8;
 
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.training-session-stat strong {
  color: #ffffff;
 
  font-size: 14px;
  font-weight: 700;
}
 
.player-selected-btn {
  background: linear-gradient(
    135deg,
    rgba(34,197,94,0.95),
    rgba(22,163,74,0.95)
  ) !important;
 
  border: 1px solid rgba(74,222,128,0.5);
 
  color: #ffffff !important;
 
  cursor: not-allowed;
 
  opacity: 0.95;
 
  box-shadow:
    0 0 0 1px rgba(74,222,128,0.2),
    0 10px 30px rgba(34,197,94,0.25);
}
 
.player-selected-btn:hover {
  transform: none !important;
}
 
/* =========================================================
   TEAM SHEET PRINT LAYOUT
========================================================= */
 
@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
 
  .sidebar,
  .mobile-menu-btn,
  .sidebar-overlay,
  #globalLoader,
  #toastContainer,
  .hero-actions,
  #printTeamSheetBtn,
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    display: none !important;
  }
 
  .app-layout,
  .main-content {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
 
  .page-header,
  .content-card,
  .elite-card {
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    border: none !important;
  }
 
  .page-header {
    text-align: center;
    padding: 0 0 16px 0 !important;
    border-bottom: 2px solid #111827 !important;
    margin-bottom: 18px !important;
  }
 
  #teamSheetTitle {
    font-size: 18px !important;
    color: #111827 !important;
    margin-bottom: 2px !important;
  }
 
  #teamSheetMeta {
    font-size: 13px !important;
    color: #374151 !important;
  }
 
  .team-sheet-print-grid,
  .dashboard-bottom-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }
 
  .section-header {
    margin-bottom: 8px !important;
  }
 
  .section-eyebrow,
  .section-subtitle {
    display: none !important;
  }
 
  h2 {
    color: #111827 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }
 
  .team-sheet-player {
    display: grid !important;
    grid-template-columns: 24px 1fr !important;
    gap: 6px !important;
    align-items: center !important;

    padding: 3px 0 !important;
    margin: 0 !important;

    border-bottom: 1px solid #e5e7eb !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
 
  .team-sheet-number {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #111827 !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 10px !important;
    font-weight: 800 !important;
  }
 
  .team-sheet-info h3 {
    color: #111827 !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }
 
  .team-sheet-info p {
    color: #374151 !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    margin: 1px 0 0 0 !important;
  }
 
  .team-sheet-info small {
    display: none !important;
  }
 
  #teamSheetNotes {
    color: #111827 !important;
    border-top: 1px solid #d1d5db !important;
    padding-top: 8px !important;
    font-size: 12px !important;
  }
 
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
}
 
/* =========================================================
   TEAM SHEET PRINT BRANDING
========================================================= */
 
.team-sheet-print-header {
  display: none;
}
 
@media print {
 
  .team-sheet-print-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 18px;
 
    padding-bottom: 18px;
    margin-bottom: 20px;
 
    border-bottom: 2px solid #111827;
  }
 
  .team-sheet-print-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
  }
 
  .team-sheet-print-brand h1 {
    margin: 0;
    font-size: 24px;
    color: #111827 !important;
    font-weight: 900;
  }
 
  .team-sheet-print-brand p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #4b5563 !important;
  }
}
 
/* =========================================================
   PLAYER DASHBOARD CHART FIXES
========================================================= */
 
.player-chart-grid {
  align-items: stretch;
}
 
.player-chart-card {
  height: 330px;
  min-height: 330px;
  max-height: 330px;
  overflow: hidden;
}
 
.player-chart-wrap {
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
}
 
.player-chart-wrap canvas {
  width: 100% !important;
  height: 190px !important;
  max-height: 190px !important;
  display: block;
}
 
/* =========================================================
   PLAYER MATCH CENTRE
========================================================= */
 
.match-centre-hero {
  margin-bottom: 28px;
}
 
/* =========================================================
   HERO METRICS
========================================================= */
 
.elite-hero-metrics div {
  min-width: 120px;
}
 
.elite-hero-metrics strong {
  font-size: 24px;
  font-weight: 900;
}
 
/* =========================================================
   MATCH COUNTDOWN
========================================================= */
 
.match-countdown {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}
 
/* =========================================================
   FIXTURE CARDS
========================================================= */
 
.fixture-card {
  padding: 20px;
 
  border-radius: 18px;
 
  background:
    radial-gradient(
      circle at top right,
      rgba(56,189,248,0.08),
      transparent 40%
    ),
    rgba(15,23,42,0.85);
 
  border: 1px solid rgba(56,189,248,0.10);
}
 
/* =========================================================
   MATCH DETAILS
========================================================= */
 
.match-detail-list {
  display: grid;
  gap: 14px;
}
 
.match-detail-item {
  padding: 16px;
 
  border-radius: 16px;
 
  background: rgba(255,255,255,0.03);
 
  border: 1px solid rgba(255,255,255,0.06);
 
  transition: all 0.25s ease;
}
 
.match-detail-item:hover {
  transform: translateY(-2px);
 
  border-color: rgba(56,189,248,0.18);
 
  background: rgba(255,255,255,0.05);
}
 
.match-detail-item strong {
  display: block;
 
  margin-bottom: 6px;
 
  color: #ffffff;
}
 
.match-detail-item p {
  margin: 0;
 
  color: var(--text-secondary);
}
 
/* =========================================================
   MATCH CHECKLIST
========================================================= */
 
.match-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.match-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
 
  padding: 14px 16px;
 
  border-radius: 14px;
 
  background: rgba(34,197,94,0.08);
 
  border: 1px solid rgba(34,197,94,0.15);
}
 
.match-check-item.completed {
  background: rgba(34,197,94,0.12);
 
  border-color: rgba(34,197,94,0.30);
}
 
.match-check-item.pending {
  background: rgba(245,158,11,0.08);
 
  border-color: rgba(245,158,11,0.20);
}
 
/* =========================================================
   COACH NOTES
========================================================= */
 
.match-notes-card {
  padding: 18px;
 
  border-radius: 16px;
 
  background: rgba(255,255,255,0.03);
 
  border: 1px solid rgba(255,255,255,0.06);
}
 
.match-notes-card p {
  margin: 0;
 
  line-height: 1.7;
}
 
/* =========================================================
   MOBILE
========================================================= */
 
@media (max-width: 768px) {
 
  .elite-hero-metrics {
    grid-template-columns: 1fr;
  }
 
  .match-countdown {
    font-size: 32px;
  }
 
  .match-detail-list {
    grid-template-columns: 1fr;
  }
}
 
.notification-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
 
  min-width: 24px;
  height: 24px;
 
  padding: 0 8px;
  margin-left: 8px;
 
  border-radius: 999px;
 
  background: #ef4444;
  color: white;
 
  font-size: 12px;
  font-weight: 900;
}
 
/* =========================================================
   MATCH CENTRE - COACH ANNOUNCEMENT FORM FIX
========================================================= */
 
.coach-announcement-form {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) minmax(320px, 1.4fr) auto;
  align-items: end;
  gap: 22px;
  margin-top: 26px;
}
 
.coach-announcement-form > div {
  min-width: 0;
}
 
.coach-announcement-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
}
 
.coach-announcement-form input,
.coach-announcement-form select,
.coach-announcement-form textarea {
  width: 100%;
}
 
.coach-announcement-form textarea {
  min-height: 88px;
  resize: vertical;
}
 
.coach-announcement-form button {
  min-height: 56px;
  align-self: end;
  white-space: nowrap;
}
 
@media (max-width: 1100px) {
  .coach-announcement-form {
    grid-template-columns: 1fr 1fr;
  }
 
  .coach-announcement-message,
  .coach-announcement-form button {
    grid-column: 1 / -1;
  }
}
 
@media (max-width: 700px) {
  .coach-announcement-form {
    grid-template-columns: 1fr;
  }
}
 
.bio-priority-card {
  overflow: hidden;
}
 
.bio-priority-card .elite-injury-header {
  align-items: flex-start;
  gap: 18px;
}
 
.bio-priority-card .status-pill {
  max-width: 160px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
 
.bio-priority-card .elite-injury-player {
  min-width: 0;
}
 
.bio-priority-card .elite-injury-player h3,
.bio-priority-card .elite-injury-player p {
  overflow-wrap: anywhere;
}
 
#bioPriorityList .elite-injury-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
 
#bioPriorityList .elite-injury-stat {
  min-width: 0;
  padding: 22px 24px;
}
 
#bioPriorityList .elite-injury-stat strong {
  font-size: clamp(22px, 2.2vw, 36px);
  overflow-wrap: break-word;
  word-break: break-word;
}
 
@media (max-width: 700px) {
  #bioPriorityList .elite-injury-grid {
    grid-template-columns: 1fr;
  }
}
 
.bio-compact-injury-card {
  padding: 28px;
}
 
.bio-compact-injury-card .elite-injury-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
 
.bio-compact-injury-card .elite-injury-stat {
  min-height: 120px;
  padding: 22px;
}
 
.bio-compact-injury-card .elite-injury-stat strong {
  font-size: clamp(24px, 2vw, 34px);
}
 
.bio-compact-injury-card .elite-injury-footer {
  margin-top: 22px;
  padding-top: 18px;
}

.plan-btn + .plan-btn {
  margin-top: 10px;
}

/* Subscription plan button spacing */
.subscription-page .plan-btn + .plan-btn {
  margin-top: 10px;
}

/* =========================================================
   WELLNESS RECORD GRID
========================================================= */

.wellness-card .elite-injury-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wellness-card .elite-injury-stat {
  min-width: 0;
}

@media (max-width: 900px) {
  .wellness-card .elite-injury-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wellness-card .elite-injury-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

/* =========================================================
   PRICING LAYOUT
========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  padding: 36px 32px 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.pricing-card-featured {
  border-color: rgba(251, 191, 36, 0.45);
}

.pricing-card-elite {
  border-color: rgba(34, 197, 94, 0.45);
}

.pricing-card-enterprise {
  border-color: rgba(125, 211, 252, 0.28);
}

.pricing-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  
  box-shadow:
  0 0 0 1px rgba(255,255,255,0.10),
  0 10px 30px rgba(0,0,0,0.40),
  0 0 35px rgba(56,189,248,0.55),
  0 0 60px rgba(37,99,235,0.25);
}

.pricing-card-header {
  min-height: 150px;
}

.pricing-eyebrow {
  margin: 0 0 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pricing-card-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 3vw, 54px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.pricing-card-featured .pricing-card-header h2 {
  color: #facc15;
}

.pricing-card-elite .pricing-card-header h2 {
  color: #86efac;
}

.pricing-card-header span {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.pricing-description {
  min-height: 128px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

.pricing-save {
  min-height: 68px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.pricing-features {
  display: grid;
  gap: 0;
  min-height: 230px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.pricing-features li::before {
  content: "✓";
  flex-shrink: 0;
  color: #38bdf8;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 1px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
}

.pricing-card .btn-primary {
  margin-top: auto;
}

.pricing-card .btn-secondary {
  margin-top: 14px;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card-header,
  .pricing-description,
  .pricing-save,
  .pricing-features {
    min-height: auto;
  }
}

/* =========================================================
   LEGAL PAGES
========================================================= */

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-card {
  padding: 40px;
}

.legal-card-header {
  margin-bottom: 28px;
}

.legal-logo-image {
  height: 110px;
  width: auto;
  margin-bottom: 32px;
}

.legal-card h1 {
  margin-top: 10px;
}

.legal-card .btn-primary {
  margin-top: 24px;
}

.legal-card p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1.75;
}

.legal-card h2 {
  margin: 34px 0 14px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
}

.legal-card h2:first-of-type {
  margin-top: 26px;
}

.legal-card ul {
  margin: 10px 0 28px;
  padding-left: 22px;
}

.legal-card li {
  margin-bottom: 10px;
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1.55;
}

.legal-card a:not(.btn-primary) {
  color: #7dd3fc;
}

.legal-card h3 {
  margin: 24px 0 10px;
  color: #7dd3fc;
  font-size: 18px;
  font-weight: 800;
}

.legal-card strong {
  color: #ffffff;
}

/* =========================================================
   FOOTER SOCIAL ICON FIX
========================================================= */

.tt-footer .tt-socials {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}

.tt-footer .tt-social {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  border-radius: 14px !important;
}

.tt-footer .tt-social i {
  font-size: 18px !important;
  line-height: 1 !important;

  width: auto !important;
  height: auto !important;

  display: block !important;
}

/* =========================================================
   FOOTER COMPANY
========================================================= */

.tt-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 40px;
  padding-top: 24px;

  border-top: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.footer-company {
  color: rgba(255,255,255,0.45);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* =========================================================
   SELECT PLAYERS MODAL
========================================================= */

.sp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sp-modal-backdrop.hidden {
  display: none;
}

body.sp-modal-open {
  overflow: hidden;
}

.sp-modal {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  border-radius: 24px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.sp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sp-modal-title-block h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.sp-modal-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.sp-modal-score-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sp-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.sp-count-starting {
  background: rgba(34,197,94,0.18);
  color: #86efac;
}

.sp-count-bench {
  background: rgba(56,189,248,0.14);
  color: #7dd3fc;
}

.sp-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sp-close-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Table head */
.sp-modal-table-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  align-items: center;
}

.sp-col-player {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-col-readiness {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-col-action {
  width: 70px;
  text-align: center;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-col-toggle-group {
  display: flex;
  gap: 4px;
}

.sp-col-toggle-label {
  width: 56px;
  text-align: center;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Player list scroll area */
.sp-player-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sp-player-list::-webkit-scrollbar {
  width: 4px;
}

.sp-player-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Player row */
.sp-player-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.sp-player-row:hover {
  background: rgba(255,255,255,0.03);
}

.sp-player-name {
  display: block;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s;
}

.sp-player-pos {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
  transition: color 0.15s;
}

.sp-player-info {
  min-width: 0;
}

/* Ineligible rows */
.sp-player-ineligible {
  opacity: 0.45;
}

.sp-player-ineligible:hover {
  background: rgba(255,255,255,0.02);
  cursor: not-allowed;
}

.sp-player-ineligible:hover .sp-player-name {
  color: #f1f5f9;
}

.sp-player-ineligible:hover .sp-player-pos {
  color: #64748b;
}

/* Readiness badge */
.sp-readiness-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.sp-ready {
  background: rgba(34,197,94,0.15);
  color: #86efac;
}

.sp-monitor {
  background: rgba(251,191,36,0.15);
  color: #fde68a;
}

.sp-not-ready {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
}

/* Role toggle buttons (Out / Start / Bench) */
.sp-role-toggle {
  display: flex;
  gap: 4px;
}

.sp-role-btn {
  width: 56px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(255,255,255,0.04);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.sp-role-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
}

.sp-role-btn.sp-role-active.sp-role-out {
  background: rgba(100,116,139,0.25);
  border-color: rgba(100,116,139,0.5);
  color: #cbd5e1;
}

.sp-role-btn.sp-role-active.sp-role-start {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.45);
  color: #86efac;
}

.sp-role-btn.sp-role-active.sp-role-bench {
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.45);
  color: #7dd3fc;
}

/* Old radio buttons (kept for any remaining references) */
.sp-radio-label {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sp-radio-disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.sp-radio-label input[type="radio"] {
  display: none;
}

.sp-radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(148,163,184,0.3);
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.sp-radio-label input[type="radio"]:checked + .sp-radio-custom {
  border-color: #38bdf8;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56,189,248,0.4);
}

/* Footer */
.sp-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-footer-counts {
  color: #94a3b8;
  font-size: 13px;
}

.sp-footer-counts strong {
  color: #fff;
}

.sp-footer-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 500px) {
  .sp-modal-table-head,
  .sp-player-row {
    grid-template-columns: 1fr auto auto;
  }
  .sp-readiness-badge {
    display: none;
  }
  .sp-role-btn {
    width: 46px;
    font-size: 10px;
  }
  .sp-col-toggle-label {
    width: 46px;
  }
}
/* =========================================================
   MATCH TIMELINE — COMPACT CARD GRID
========================================================= */

.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.tl-card {
  position: relative;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(15,23,42,0.80);
  transition: border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.tl-card:hover {
  border-color: rgba(56,189,248,0.30);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* Left accent stripe by team */
.tl-home::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: #38bdf8;
}

.tl-away::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: #f97316;
}

/* Top row: minute · team · actions */
.tl-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.tl-min {
  font-size: 11px;
  font-weight: 800;
  color: #7dd3fc;
  min-width: 28px;
}

.tl-team {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Edit / Delete — hidden until hover */
.tl-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.tl-card:hover .tl-actions {
  opacity: 1;
}

.tl-btn-edit,
.tl-btn-del {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.tl-btn-edit {
  background: rgba(56,189,248,0.15);
  color: #7dd3fc;
}

.tl-btn-edit:hover {
  background: rgba(56,189,248,0.30);
}

.tl-btn-del {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
}

.tl-btn-del:hover {
  background: rgba(239,68,68,0.30);
}

/* Body: event type + player */
.tl-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tl-event-type {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tl-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.tl-player {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-note {
  color: #475569;
  font-size: 11px;
}

/* Event type colour accents */
.tl-type-try        { border-top: 2px solid rgba(34,197,94,0.35);  }
.tl-type-conversion { border-top: 2px solid rgba(56,189,248,0.35); }
.tl-type-penalty    { border-top: 2px solid rgba(251,191,36,0.40); }
.tl-type-dropgoal   { border-top: 2px solid rgba(167,139,250,0.40);}
.tl-type-card       { border-top: 2px solid rgba(239,68,68,0.40);  }
.tl-type-sub        { border-top: 2px solid rgba(148,163,184,0.25);}
.tl-type-injury     { border-top: 2px solid rgba(249,115,22,0.35); }
.tl-type-default    { border-top: 2px solid rgba(148,163,184,0.15);}

@media (max-width: 600px) {
  .tl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   STAT STEPPER CONTROL
========================================================= */

.stat-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.42);
}

.stepper-btn {
  width: 42px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}

.stepper-btn:hover {
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
}

.stepper-btn:active {
  background: rgba(56,189,248,0.22);
}

.stepper-dec {
  border-right: 1px solid rgba(148,163,184,0.12);
}

.stepper-inc {
  border-left: 1px solid rgba(148,163,184,0.12);
}

.stepper-input {
  flex: 1;
  min-width: 0;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.stat-stepper:focus-within {
  border-color: rgba(56,189,248,0.40);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
}

/* =========================================================
   TEAM STATS FORM — UNIFORM STEPPER GRID
========================================================= */

.team-stats-form {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px 12px;
  align-items: end;
}

/* All stepper controls same height */
.team-stats-form .stat-stepper {
  height: 48px;
}

.team-stats-form .stepper-btn {
  width: 38px;
  height: 48px;
  font-size: 18px;
}

.team-stats-form .stepper-input {
  font-size: 16px !important;
}

/* Save Team Stats button — spans full width, slightly taller */
.team-stats-form > button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 46px;
  padding: 0 28px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .team-stats-form {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .team-stats-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   COACH ANNOUNCEMENT — FIX BUTTON SIZE
========================================================= */

.coach-announcement-form button[type="submit"] {
  min-height: 46px !important;
  height: auto !important;
  padding: 0 22px !important;
  font-size: 14px !important;
  align-self: end !important;
  white-space: nowrap !important;
}

/* =========================================================
   ENHANCED PLAYER READINESS — SEARCH, FILTER, SORT, CARDS
========================================================= */

.readiness-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.readiness-summary-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.readiness-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.readiness-count-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255,255,255,0.1);
}

.pill-all {
  background: rgba(148,163,184,0.08);
  color: var(--muted-strong);
  border-color: rgba(148,163,184,0.18);
}
.pill-all.active, .pill-all:hover {
  background: rgba(148,163,184,0.18);
  border-color: rgba(148,163,184,0.35);
  color: #ffffff;
}

.pill-ready {
  background: var(--success-soft);
  color: #86efac;
  border-color: rgba(134,239,172,0.2);
}
.pill-ready.active, .pill-ready:hover {
  background: rgba(34,197,94,0.25);
  border-color: rgba(134,239,172,0.45);
}

.pill-monitor {
  background: var(--warning-soft);
  color: #fcd34d;
  border-color: rgba(252,211,77,0.2);
}
.pill-monitor.active, .pill-monitor:hover {
  background: rgba(245,158,11,0.25);
  border-color: rgba(252,211,77,0.45);
}

.pill-unavailable {
  background: var(--danger-soft);
  color: #fca5a5;
  border-color: rgba(252,165,165,0.2);
}
.pill-unavailable.active, .pill-unavailable:hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(252,165,165,0.45);
}

/* Controls row */
.readiness-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.readiness-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.readiness-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.readiness-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  background: rgba(2,6,23,0.5);
  border: 1px solid rgba(148,163,184,0.15);
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.readiness-search-input::placeholder { color: var(--muted); }

.readiness-search-input:focus {
  border-color: rgba(56,189,248,0.4);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08);
}

.readiness-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.readiness-sort-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.readiness-sort-select {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(2,6,23,0.5);
  border: 1px solid rgba(148,163,184,0.15);
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.readiness-sort-select:focus {
  border-color: rgba(56,189,248,0.4);
}

/* Enhanced row layout */
.elite-readiness-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.readiness-player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.readiness-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.readiness-ready-avatar {
  background: rgba(34,197,94,0.15);
  color: #86efac;
  border: 1px solid rgba(134,239,172,0.25);
}

.readiness-monitor-avatar {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border: 1px solid rgba(252,211,77,0.25);
}

.readiness-danger-avatar {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(252,165,165,0.25);
}

.readiness-player-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readiness-player-info p {
  font-size: 12px;
  color: var(--muted);
}

/* Metrics grid */
.readiness-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: center;
}

.readiness-metric-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.readiness-metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.readiness-metric-value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-good  { color: #86efac; }
.metric-warning { color: #fcd34d; }
.metric-danger  { color: #fca5a5; }

/* Attendance bar */
.readiness-bar-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148,163,184,0.1);
  overflow: hidden;
  margin-top: 2px;
}

.readiness-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.readiness-bar-fill.metric-good    { background: #86efac; }
.readiness-bar-fill.metric-warning { background: #fcd34d; }
.readiness-bar-fill.metric-danger  { background: #fca5a5; }

/* Empty state */
.readiness-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.readiness-empty svg {
  width: 52px;
  height: 52px;
  opacity: 0.5;
}

.readiness-empty.hidden { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .elite-readiness-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .readiness-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .readiness-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .readiness-section-header {
    flex-direction: column;
  }

  .readiness-controls {
    flex-direction: column;
  }

  .readiness-search-wrap {
    width: 100%;
  }

  .readiness-sort-wrap {
    width: 100%;
  }

  .readiness-sort-select {
    flex: 1;
  }
}


/* =========================================================
   WELLNESS FORM LAYOUT FIX
========================================================= */

#wellnessForm.wellness-form {
  display: grid;
  grid-template-columns:
    minmax(300px, 1.6fr)
    repeat(5, minmax(140px, 1fr));
  gap: 22px;
  align-items: end;
}

#wellnessForm.wellness-form > div {
  min-width: 0;
}

#wellnessForm.wellness-form label {
  display: block;
  margin-bottom: 10px;
}

#wellnessForm.wellness-form input {
  width: 100%;
  min-height: 58px;
}

#wellnessForm.wellness-form .btn-primary {
  grid-column: 1;
  justify-self: start;
  width: auto;
  min-width: 180px;
}

@media (max-width: 1200px) {
  #wellnessForm.wellness-form {
    grid-template-columns: repeat(3, 1fr);
  }

  #wellnessForm.wellness-form .btn-primary {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  #wellnessForm.wellness-form {
    grid-template-columns: 1fr;
  }

  #wellnessForm.wellness-form .btn-primary {
    grid-column: 1;
    width: 100%;
  }
}

/* =========================================================
   WELLNESS SCORE GUIDE
========================================================= */

.wellness-score-guide {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.wellness-score-guide-header {
  margin-bottom: 14px;
}

.wellness-score-guide-header p {
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.wellness-score-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.wellness-score-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.35);
}

.wellness-score-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.wellness-score-item span {
  display: block;
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .wellness-score-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wellness-score-guide-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   TEAM SHEET — old you-badge block (superseded by v2 below)
========================================================= */
/* (styles moved to v2 section at end of file) */

/* #startingTeamSheet / #benchTeamSheet scroll constraints removed — layout v2 handles this */

.notification-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 6px;
}

.pagination-info {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
}

.pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pagination-actions button {
  min-width: 110px;
}

@media (max-width: 640px) {
  .notification-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-actions {
    justify-content: flex-start;
  }
}

/* =========================================================
   SELECT PLAYERS MODAL — COMPACT GRID CARDS  (v2)
========================================================= */

/* Count pills in header */
.sp-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.sp-count-pill.sp-count-starting {
  background: rgba(34,197,94,0.14);
  color: #86efac;
}
.sp-count-pill.sp-count-bench {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
}
.sp-count-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sp-dot-start { background: #22c55e; }
.sp-dot-bench { background: #38bdf8; }

/* Scrollable grid wrapper */
.sp-player-grid-wrap {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 18px 4px;
}
.sp-player-grid-wrap::-webkit-scrollbar { width: 4px; }
.sp-player-grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 4px;
}

.sp-grid-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 10px;
}

/* The grid: 2 columns on wider modals, 1 on mobile */
.sp-player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 560px) {
  .sp-player-grid { grid-template-columns: 1fr; }
}

/* Individual player card */
.sp-player-card {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.1);
  transition: border-color 0.15s, background 0.15s;
}
.sp-player-card.sp-card-starting {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.07);
}
.sp-player-card.sp-card-bench {
  border-color: rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.06);
}
.sp-player-card:hover {
  background: rgba(255,255,255,0.07);
}

.sp-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(56,189,248,0.15);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-card-body {
  min-width: 0;
}
.sp-card-name {
  display: block;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-card-pos {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tiny readiness dot (replaces full badge) */
.sp-readiness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sp-readiness-dot.sp-ready    { background: #22c55e; }
.sp-readiness-dot.sp-monitor  { background: #f59e0b; }
.sp-readiness-dot.sp-not-ready { background: #ef4444; }

/* Card role toggle (compact 3 mini buttons) */
.sp-card-roles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.sp-crole-btn {
  height: 22px;
  min-width: 46px;
  border-radius: 5px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.04);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.sp-crole-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
}
.sp-crole-btn.sp-role-active.sp-role-out {
  background: rgba(100,116,139,0.25);
  border-color: rgba(100,116,139,0.5);
  color: #cbd5e1;
}
.sp-crole-btn.sp-role-active.sp-role-start {
  background: rgba(34,197,94,0.22);
  border-color: rgba(34,197,94,0.55);
  color: #86efac;
}
.sp-crole-btn.sp-role-active.sp-role-bench {
  background: rgba(56,189,248,0.22);
  border-color: rgba(56,189,248,0.55);
  color: #7dd3fc;
}

.sp-empty-state {
  text-align: center;
  color: #64748b;
  padding: 40px 20px;
  font-size: 14px;
}

/* Footer counts styling update */
.sp-fc-item { color: #94a3b8; font-size: 13px; }
.sp-fc-item strong { color: #fff; }
.sp-fc-start strong { color: #86efac; }
.sp-fc-bench strong { color: #7dd3fc; }
.sp-fc-sep { color: #475569; margin: 0 6px; }

/* =========================================================
   TEAM SHEET v2 — TWO-COLUMN COMPACT LAYOUT
========================================================= */

.ts-main {
  max-width: 1100px;
}

/* Match banner */
.ts-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ts-banner-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: #fff;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}
.ts-banner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ts-banner-meta span {
  color: #94a3b8;
  font-size: 14px;
}
.ts-format-tag {
  display: inline-block;
  background: rgba(56,189,248,0.14);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.ts-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Two-column grid */
.ts-squad-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 768px) {
  .ts-squad-layout { grid-template-columns: 1fr; }
}

.ts-squad-col {
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.07), transparent 40%),
              linear-gradient(135deg, rgba(15,23,42,0.95), rgba(2,6,23,0.85));
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.ts-col-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ts-col-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.ts-col-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
}
.ts-col-header-start { border-left: 3px solid rgba(34,197,94,0.6); }
.ts-col-header-bench { border-left: 3px solid rgba(56,189,248,0.5); }

/* Player list inside columns */
.ts-player-list {
  padding: 8px 0;
}

.ts-player-row {
  display: grid;
  grid-template-columns: 32px 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.ts-player-row:last-child { border-bottom: none; }
.ts-player-row:hover { background: rgba(255,255,255,0.03); }

.ts-player-row.ts-you-row {
  background: rgba(56,189,248,0.07);
  border-left: 2px solid rgba(56,189,248,0.5);
}

.ts-player-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ts-col-header-start ~ .ts-player-list .ts-player-num {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.3);
  color: #86efac;
}
.ts-col-header-bench ~ .ts-player-list .ts-player-num {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.3);
  color: #7dd3fc;
}

.ts-player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-player-details {
  min-width: 0;
}
.ts-player-name {
  display: block;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-player-role {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-you-badge {
  display: inline-block;
  background: rgba(56,189,248,0.2);
  color: #38bdf8;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0.06em;
}

.ts-empty {
  padding: 24px 20px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}
.ts-loading {
  padding: 24px 20px;
  color: #475569;
  font-size: 13px;
}

/* Notes block */
.ts-notes-block {
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ts-notes-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin-bottom: 8px;
}
.ts-notes-body {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Print overrides for new layout ---- */
@media print {
  .ts-banner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 12px !important;
  }
  .ts-banner-title { color: #111827 !important; font-size: 20px !important; }
  .ts-banner-meta span { color: #374151 !important; }
  .ts-format-tag { background: #e5e7eb !important; color: #374151 !important; }
  .ts-banner-actions { display: none !important; }
  .ts-squad-layout { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .ts-squad-col { background: #fff !important; border: 1px solid #e5e7eb !important; box-shadow: none !important; }
  .ts-col-header { border-bottom: 1px solid #e5e7eb !important; }
  .ts-col-header h2 { color: #111827 !important; font-size: 14px !important; }
  .ts-col-eyebrow { color: #6b7280 !important; }
  .ts-player-row { border-bottom-color: #f3f4f6 !important; padding: 6px 12px !important; }
  .ts-player-num { background: #111827 !important; color: #fff !important; border: none !important; font-size: 10px !important; width: 22px !important; height: 22px !important; }
  .ts-player-avatar { display: none !important; }
  .ts-player-row { grid-template-columns: 26px 1fr !important; }
  .ts-player-name { color: #111827 !important; font-size: 12px !important; }
  .ts-player-role { color: #374151 !important; font-size: 10px !important; }
  .ts-notes-label { color: #6b7280 !important; }
  .ts-notes-body { color: #374151 !important; }
}


/* =========================================================
   PLAYER AVAILABILITY — CARD GRID v2
========================================================= */

.avail-section {
  padding: 0 !important;
  overflow: hidden;
}

/* Header bar */
.avail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.avail-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Summary pills row */
.avail-summary-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.avail-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avail-pill-available  { background: rgba(34,197,94,0.12); color: #86efac; }
.avail-pill-available .avail-pill-dot  { background: #22c55e; }
.avail-pill-unavailable { background: rgba(239,68,68,0.12); color: #fca5a5; }
.avail-pill-unavailable .avail-pill-dot { background: #ef4444; }
.avail-pill-pending    { background: rgba(148,163,184,0.1); color: #94a3b8; }
.avail-pill-pending .avail-pill-dot    { background: #64748b; }

/* Filter bar */
.avail-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}
.avail-filter-btn {
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.avail-filter-btn:hover {
  border-color: rgba(148,163,184,0.35);
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
}
.avail-filter-btn.active {
  background: rgba(56,189,248,0.14);
  border-color: rgba(56,189,248,0.4);
  color: #7dd3fc;
}
.avail-filter-btn span {
  display: inline-block;
  margin-left: 4px;
  font-weight: 800;
}

/* Card grid */
.avail-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 18px 22px 22px;
}

/* Individual availability card */
.avail-player-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.1);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.avail-player-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
}
.avail-available {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.06);
}
.avail-unavailable {
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.05);
}
.avail-pending {
  border-color: rgba(148,163,184,0.12);
}

/* Avatar circle */
.avail-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.avail-avatar-available   { background: rgba(34,197,94,0.18); color: #86efac; }
.avail-avatar-unavailable { background: rgba(239,68,68,0.18); color: #fca5a5; }
.avail-avatar-pending     { background: rgba(100,116,139,0.2); color: #94a3b8; }

/* Card text */
.avail-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.avail-card-name {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avail-card-pos {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avail-card-date {
  color: #475569;
  font-size: 10px;
  margin-top: 1px;
}

/* Status badge */
.avail-status-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
.avail-badge-available   { background: rgba(34,197,94,0.18); color: #86efac; }
.avail-badge-unavailable { background: rgba(239,68,68,0.18); color: #fca5a5; }
.avail-badge-pending     { background: rgba(100,116,139,0.18); color: #94a3b8; }

.avail-empty,
.avail-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  padding: 32px 20px;
}

@media (max-width: 600px) {
  .avail-card-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px 18px;
  }
  .avail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   PLAYER AVAILABILITY — POSITION COLUMNS v3
========================================================= */

/* Outer wrapping grid — columns auto-flow based on how many positions exist */
.avail-pos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px 24px;
  align-items: flex-start;
}

/* One column per position */
.avail-pos-col {
  flex: 1 1 160px;
  min-width: 150px;
  max-width: 220px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 14px;
  overflow: hidden;
}

/* Column header — position name */
.avail-pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px 9px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.avail-pos-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avail-pos-count {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  flex-shrink: 0;
}

/* Individual player row inside a position column */
.avail-pos-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}
.avail-pos-row:last-child {
  border-bottom: none;
}
.avail-pos-row:hover {
  background: rgba(255,255,255,0.04);
}

/* Highlight rows by status */
.avail-pos-row.avail-available {
  background: rgba(34,197,94,0.05);
}
.avail-pos-row.avail-unavailable {
  background: rgba(239,68,68,0.05);
}

/* Small avatar */
.avail-pos-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.avail-avatar-available   { background: rgba(34,197,94,0.18); color: #86efac; }
.avail-avatar-unavailable { background: rgba(239,68,68,0.18); color: #fca5a5; }
.avail-avatar-pending     { background: rgba(100,116,139,0.18); color: #94a3b8; }

/* Full player name — no truncation */
.avail-pos-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 0;
  line-height: 1.3;
}

/* Tiny status dot on the right — replaces heavy badge */
.avail-pos-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avail-dot-available   { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.avail-dot-unavailable { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.avail-dot-pending     { background: #334155; }

@media (max-width: 640px) {
  .avail-pos-grid {
    padding: 14px 14px 18px;
    gap: 10px;
  }
  .avail-pos-col {
    flex: 1 1 140px;
  }
}


/* =========================================================
   MOBILE & TABLET RESPONSIVE — ALL NEW COMPONENTS
   Breakpoints: 480px (phone), 640px (large phone),
                768px (tablet portrait), 980px (tablet landscape)
========================================================= */

/* ---- SELECT PLAYERS MODAL ---- */

/* Tablet: modal takes more screen, footer stacks */
@media (max-width: 768px) {
  .sp-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px;
    margin: 0 8px;
  }
  .sp-modal-header {
    padding: 16px 16px 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sp-modal-score-block {
    flex-wrap: wrap;
  }
  .sp-player-grid-wrap {
    padding: 10px 14px 4px;
  }
  .sp-modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sp-footer-actions {
    justify-content: stretch;
  }
  .sp-footer-actions .btn-secondary,
  .sp-footer-actions .btn-primary {
    flex: 1;
    text-align: center;
  }
}

/* Phone: single column grid, smaller cards */
@media (max-width: 480px) {
  .sp-modal {
    max-height: 95vh;
    border-radius: 16px;
    margin: 0 4px;
  }
  .sp-player-grid {
    grid-template-columns: 1fr;
  }
  .sp-modal-title-block h2 {
    font-size: 17px;
  }
  .sp-count-pill {
    font-size: 11px;
    padding: 3px 9px 3px 7px;
  }
  .sp-card-name { font-size: 12px; }
  .sp-card-pos  { font-size: 10px; }
}

/* ---- TEAM SHEET ---- */

/* Tablet portrait: stack to 1 column earlier */
@media (max-width: 900px) {
  .ts-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }
  .ts-banner-title {
    font-size: 22px;
  }
  .ts-banner-actions {
    width: 100%;
  }
  .ts-banner-actions .btn-primary,
  .ts-banner-actions .btn-secondary {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .ts-squad-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ts-squad-col {
    border-radius: 16px;
  }
  .ts-col-header {
    padding: 14px 16px 12px;
  }
  .ts-player-row {
    padding: 8px 14px;
    gap: 8px;
  }
  .ts-player-num {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .ts-player-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 11px;
  }
  .ts-player-name { font-size: 13px; }
  .ts-player-role { font-size: 11px; }
}

@media (max-width: 480px) {
  .ts-banner {
    padding: 14px 16px;
  }
  .ts-banner-title {
    font-size: 18px;
  }
  .ts-banner-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ts-squad-layout {
    gap: 10px;
  }
  /* Hide avatar on very small phones to save space */
  .ts-player-avatar {
    display: none;
  }
  .ts-player-row {
    grid-template-columns: 28px 1fr;
  }
}

/* ---- AVAILABILITY POSITION COLUMNS ---- */

/* Tablet: allow columns to be a bit narrower */
@media (max-width: 980px) {
  .avail-pos-col {
    flex: 1 1 140px;
    min-width: 130px;
  }
  .avail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 14px;
  }
  .avail-summary-pills {
    width: 100%;
  }
}

/* Phone: 2-column layout for position groups */
@media (max-width: 640px) {
  .avail-pos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px 16px;
  }
  .avail-pos-col {
    min-width: unset;
    max-width: unset;
    flex: unset;
  }
  .avail-filter-bar {
    padding: 10px 14px;
    gap: 5px;
  }
  .avail-filter-btn {
    font-size: 11px;
    padding: 4px 12px;
  }
  .avail-summary-pills {
    gap: 6px;
  }
  .avail-pill {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Tiny phones: single column */
@media (max-width: 380px) {
  .avail-pos-grid {
    grid-template-columns: 1fr;
  }
  .avail-pos-name {
    font-size: 12px;
  }
}

/* ---- MATCH CARD ACTIONS (record-actions) ---- */
/* Ensure the buttons on match cards wrap cleanly on phone */
@media (max-width: 640px) {
  .record-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .record-actions .btn-primary,
  .record-actions .btn-secondary,
  .record-actions .btn-danger {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
    justify-content: center;
  }
}

/* ---- GENERAL CONTENT-CARD PADDING ON MOBILE ---- */
@media (max-width: 480px) {
  .content-card,
  .elite-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }
  .section-header {
    margin-bottom: 14px;
  }
  .page-header h1 {
    font-size: clamp(22px, 6vw, 32px);
  }
}


/* =========================================================
   SQUAD SELECTION — LIMIT ENFORCEMENT STYLES
========================================================= */

/* Disabled/blocked role button */
.sp-crole-btn.sp-crole-blocked,
.sp-crole-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

/* Count pill turns amber when getting close, red when full */
.sp-count-pill.sp-count-full.sp-count-starting {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
}
.sp-count-pill.sp-count-full.sp-count-bench {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
}

/* Position limit hint in card subtitle */
.sp-card-pos {
  color: #64748b;
  font-size: 11px;
  margin-top: 1px;
}


/* =========================================================
   SELECTED SQUAD — TWO-PANEL LAYOUT
========================================================= */

.squad-section {
  padding: 0 !important;
  overflow: hidden;
}

.squad-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.squad-section-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.squad-counts {
  display: flex;
  gap: 8px;
}
.squad-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.squad-pill-start {
  background: rgba(34,197,94,0.14);
  color: #86efac;
}
.squad-pill-bench {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
}

/* Two panels */
.squad-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 860px) {
  .squad-panels { grid-template-columns: 1fr; }
}

.squad-panel {
  padding: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.squad-panel:last-child { border-right: none; }

/* Panel header */
.squad-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.squad-panel-header h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.squad-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.squad-dot-home { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.squad-dot-away { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.squad-panel-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  color: #86efac;
  flex-shrink: 0;
}
.squad-tag-away {
  background: rgba(245,158,11,0.14);
  color: #fde68a;
}

/* Sub-sections (Starting / Bench) */
.squad-subsection {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.squad-subsection:last-of-type { border-bottom: none; }
.squad-subsection-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  padding: 10px 20px 6px;
}

/* Player rows */
.squad-player-list {
  padding: 0 0 4px;
}
.squad-player-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.12s;
}
.squad-player-row:last-child { border-bottom: none; }
.squad-player-row:hover { background: rgba(255,255,255,0.03); }

.squad-player-num {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-align: center;
  flex-shrink: 0;
}
.squad-player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(56,189,248,0.14);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.squad-avatar-opp {
  background: rgba(245,158,11,0.14);
  color: #fde68a;
}
.squad-player-details {
  min-width: 0;
}
.squad-player-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.squad-player-pos {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Remove button (opponent only) */
.squad-remove-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  border: none;
  color: #f87171;
  font-size: 9px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
  opacity: 0;
}
.squad-player-row:hover .squad-remove-btn { opacity: 1; }
.squad-remove-btn:hover { background: rgba(239,68,68,0.25); }

/* Opponent entry form */
.squad-opponent-entry {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.squad-entry-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.squad-entry-input {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 13px;
  padding: 7px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.squad-entry-input:focus { border-color: rgba(56,189,248,0.5); }
.squad-entry-input::placeholder { color: #475569; }
.squad-entry-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 13px;
  padding: 7px 10px;
  cursor: pointer;
}
.squad-entry-btn {
  white-space: nowrap;
  padding: 7px 16px !important;
}
.squad-entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.squad-entry-actions .btn-secondary {
  font-size: 12px;
  padding: 6px 14px;
}

.squad-empty,
.squad-no-data,
.squad-loading {
  padding: 14px 20px;
  font-size: 13px;
  color: #475569;
  font-style: italic;
}

/* Our team rows: no auto column for remove btn */
.squad-player-row:not(.squad-opponent-row) {
  grid-template-columns: 28px 32px 1fr;
}

@media (max-width: 480px) {
  .squad-panel-header { padding: 12px 14px 10px; }
  .squad-subsection-label { padding: 8px 14px 4px; }
  .squad-player-row { padding: 7px 14px; gap: 6px; }
  .squad-opponent-entry { padding: 12px 14px 16px; }
  .squad-entry-row { flex-direction: column; }
  .squad-entry-input { min-width: unset; }
}


/* =========================================================
   RUGBY FORMATION — PITCH LAYOUT
========================================================= */

/* Dual panel: formation left, opponent right */
.squad-dual {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 900px) {
  .squad-dual { grid-template-columns: 1fr; }
}

/* Formation panel */
.squad-formation-panel {
  border-right: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 900px) {
  .squad-formation-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

.squad-formation-wrap {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The pitch background */
.rf-field {
  width: 100%;
  max-width: 420px;
  background:
    linear-gradient(180deg,
      rgba(21,128,61,0.30) 0%,
      rgba(20,83,45,0.22) 50%,
      rgba(21,128,61,0.30) 100%);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 16px;
  padding: 18px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Section labels inside the pitch */
.rf-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(134,239,172,0.7);
  margin: 6px 0 2px;
  width: 100%;
  text-align: center;
}

/* Each formation row */
.rf-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

/* Gap spacer */
.rf-gap {
  width: 60px;
  flex-shrink: 0;
}

/* The shirt */
.rf-shirt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 60px;
  flex-shrink: 0;
  cursor: default;
}
.rf-shirt-empty {
  opacity: 0.18;
  pointer-events: none;
}

.rf-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
  transition: transform 0.15s;
}
.rf-shirt:not(.rf-shirt-empty):hover .rf-svg {
  transform: translateY(-3px) scale(1.08);
}

/* Shirt body fill */
.rf-body {
  fill: #1d4ed8;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1.5;
}
.rf-shirt-bench .rf-body {
  fill: #475569;
}

/* Jersey number text */
.rf-num {
  font-size: 15px;
  font-weight: 900;
  fill: #ffffff;
  font-family: "Inter", sans-serif;
}

/* Player name below shirt */
.rf-name {
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62px;
  line-height: 1.2;
}

/* Bench separator */
.rf-bench-sep {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rf-bench-sep::before,
.rf-bench-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Bench row — horizontal scrollable if too wide */
.rf-bench-row {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 420px;
}

/* Specific row spacing */
.rf-row-frontrow  { margin-top: 2px; }
.rf-row-locks     { margin-top: 2px; }
.rf-row-eighthman { margin-top: 2px; }
.rf-row-scrum     { margin-top: 4px; justify-content: flex-start; padding-left: 8px; }
.rf-row-centres   { justify-content: center; padding-left: 28px; }
.rf-row-wings     { align-items: flex-end; }
.rf-row-fullback  { margin-top: 2px; }

/* Opponent panel */
.squad-panel-opponent {
  min-width: 0;
}

/* Mobile: smaller shirts */
@media (max-width: 500px) {
  .rf-shirt { width: 48px; }
  .rf-svg   { width: 38px; height: 38px; }
  .rf-num   { font-size: 12px; }
  .rf-name  { font-size: 9px; max-width: 50px; }
  .rf-gap   { width: 44px; }
  .rf-field { padding: 14px 6px 16px; gap: 4px; }
}
