/* ═══════════════════════════════════════════════════════
   SHUTTLESCORE — CSS STYLESHEET
   Base: Stitch Design System + App Components
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&display=swap');

:root {
  /* ShuttleScore Pro — Athletic Precision */
  --background: #F8F9FF;
  --surface: #F8F9FF;
  --surface-dim: #CBDBF5;
  --surface-bright: #F8F9FF;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #EFF4FF;
  --surface-container: #E5EEFF;
  --surface-container-high: #DCE9FF;
  --surface-container-highest: #D3E4FE;
  --surface-variant: #D3E4FE;

  --on-background: #0B1C30;
  --on-surface: #0B1C30;
  --on-surface-variant: #3E494B;

  --primary: #00616D;
  --primary-cont: #0D7B8A;
  --primary-container: #0D7B8A;
  --on-primary: #FFFFFF;
  --on-primary-container: #DFF9FF;
  --primary-fixed: #9EEFFF;
  --primary-fixed-dim: #7CD3E4;

  --secondary: #545F73;
  --secondary-container: #D5E0F8;
  --on-secondary-container: #586377;

  --outline: #6E797B;
  --outline-variant: #BEC8CB;
  --border: #BEC8CB;

  --error: #BA1A1A;
  --error-container: #FFDAD6;
  --on-error-container: #93000A;

  --success: #1B8C5A;
  --warning: #E07B00;
  --info: #0D7B8A;

  /* Legacy aliases */
  --bg: var(--background);
  --white: var(--surface-container-lowest);
  --s1: var(--surface-container-lowest);
  --s2: var(--surface-container-low);
  --s3: var(--surface-container);
  --text-main: var(--on-surface);
  --text-muted: var(--secondary);
  --text: var(--on-surface);
  --text2: var(--secondary);
  --muted: var(--secondary);
  --cyan: var(--primary-cont);
  --green: var(--success);
  --gold: var(--warning);
  --red: var(--error);
  --accent: var(--primary);
  --accent2: var(--primary-cont);
  --accent-light: rgba(0, 97, 109, .08);

  --font-heading: 'Lexend', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-family: var(--font-body);

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-stat: 48px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 48px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --radius: var(--radius-md);

  --shadow-sm: 0 1px 2px rgba(11, 28, 48, .06), 0 1px 3px rgba(11, 28, 48, .08);
  --shadow-md: 0 8px 24px rgba(11, 28, 48, .10);
  --shadow-lg: 0 18px 50px rgba(11, 28, 48, .16);
  --shadow: var(--shadow-sm);

  --input-height: 48px;
  --focus-ring: 0 0 0 3px rgba(0, 97, 109, .16);
}


/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */
* { box-sizing: border-box }
html { font-size: var(--fs-base) }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 20px 16px 80px;
  overflow-x: hidden;
}
.wrap { max-width: 900px; margin: 0 auto }
h1,h2,h3,h4 { margin: 0; font-weight: 700; color: var(--text-main); line-height: 1.2 }
h1 { font-size: clamp(1.4rem,5vw,2rem); font-weight: 800 }
h2 { font-size: var(--fs-lg) }
h3 { font-size: var(--fs-md) }
h4 { font-size: var(--fs-base) }
p  { color: var(--text-muted); line-height: 1.6; font-size: var(--fs-base); margin: 0 }
.sub { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 3px }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadein { from { opacity:0; transform:translateY(5px) } to { opacity:1; transform:none } }
@keyframes popin  { from { opacity:0; transform:scale(.98) } to { opacity:1; transform:scale(1) } }

.page { display: none; animation: fadein .2s ease }
.page.active { display: block }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.topbar { display:flex; gap:var(--sp-sm); align-items:center; justify-content:space-between; margin:var(--sp-lg) 0 }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:var(--sp-sm); margin-bottom:var(--sp-md) }
.section-head.compact { justify-content:flex-start }
.section-head h2, .dashboard-head h2 { display:flex; align-items:center; gap:8px }
.actions { display:flex; gap:var(--sp-sm); flex-wrap:wrap; margin-top:var(--sp-md) }
.list-divider { height:1px; background:var(--border); margin:var(--sp-xl) 0 }
.form-row { display:flex; gap:8px }
.empty { min-height:60vh; display:grid; place-items:center; text-align:center }
.empty .icon { font-size:3rem; margin-bottom:var(--sp-sm) }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px }

/* ═══════════════════════════════════════════════════════
   BUTTONS (from Stitch)
═══════════════════════════════════════════════════════ */
button, input, select { font-family: var(--font-family); font-size: var(--fs-base) }
button { cursor: pointer; border: 0 }

.btn, .ghost, .danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; font-family: var(--font-family);
  font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--radius-md); cursor: pointer;
  transition: all .2s ease; border: 1px solid transparent;
  gap: 8px; white-space: nowrap;
}
.btn { background-color: var(--primary); color: #fff; box-shadow: 0 2px 4px rgba(0,97,96,.2) }
.btn:hover { background-color: #004d4d; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,97,96,.3) }
.btn:active { transform: translateY(0) }
.ghost { background-color: transparent; border-color: var(--border); color: var(--secondary) }
.ghost:hover { border-color: var(--primary); color: var(--primary); background-color: rgba(0,97,96,.04) }
.danger { background-color: rgba(197,40,44,.08); color: var(--red); border-color: rgba(197,40,44,.2) }
.danger:hover { background-color: var(--red); color: #fff; border-color: var(--red) }

.tiny-btn {
  border-radius: var(--radius-sm); padding: 6px 11px;
  font-size: var(--fs-sm); font-weight: 600;
  background: var(--s2); color: var(--text-muted);
  border: 1px solid var(--border); transition: all .15s;
}
.tiny-btn:hover { color: var(--primary); border-color: rgba(0,97,96,.3) }
.tiny-btn.dangerish { color: var(--red); border-color: rgba(197,40,44,.15) }
.tiny-btn.dangerish:hover { border-color: rgba(197,40,44,.4); background: rgba(197,40,44,.05) }

/* ═══════════════════════════════════════════════════════
   BADGES (from Stitch)
═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.gold  { background: rgba(224,123,0,.1);   color: var(--gold);  border-color: rgba(224,123,0,.2) }
.badge.green { background: rgba(27,140,90,.1);   color: var(--green); border-color: rgba(27,140,90,.2) }
.badge.red   { background: rgba(197,40,44,.1);   color: var(--red);   border-color: rgba(197,40,44,.2) }
.badge.cyan  { background: rgba(13,123,138,.1);  color: var(--cyan);  border-color: rgba(13,123,138,.2) }

/* ═══════════════════════════════════════════════════════
   NAVIGATION (from Stitch)
═══════════════════════════════════════════════════════ */
.app-nav {
  display: flex; gap: 4px; overflow-x: auto;
  padding-bottom: 2px; margin-bottom: calc(var(--sp-md) + 10px);
  scrollbar-width: none;
}
.app-nav::-webkit-scrollbar { display: none }
.app-nav-btn {
  flex-shrink: 0; background: transparent; border: none;
  padding: 10px 14px; font-family: var(--font-family);
  font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-radius: var(--radius-md); transition: all .2s ease;
}
.app-nav-btn:hover { color: var(--primary); background-color: rgba(0,97,96,.05) }
.app-nav-btn.active {
  color: var(--primary); background-color: rgba(0,97,96,.08);
  box-shadow: inset 0 0 0 1px rgba(0,97,96,.1);
}

.tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-bottom: var(--sp-md);
  border-bottom: 2px solid var(--border);
}
.tab {
  background: transparent; border: none;
  padding: 10px 20px; font-family: var(--font-family);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  position: relative; transition: color .2s ease;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab:hover { color: var(--text-main) }
.tab.active { color: var(--primary) }
.tab.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px; background-color: var(--primary);
  border-radius: 2px 2px 0 0;
}
.tabview { display: none }
.tabview.active { display: block }

/* ═══════════════════════════════════════════════════════
   FORMS (from Stitch)
═══════════════════════════════════════════════════════ */
input, select {
  width: 100%; padding: 11px 14px;
  font-family: var(--font-family); font-size: var(--fs-base);
  color: var(--text-main); background-color: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  outline: none; transition: all .2s ease;
}
input::placeholder { color: var(--text-muted); opacity: .7 }
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,97,96,.1);
}
input.err { border-color: var(--red) }
input:disabled { opacity: .5; background: var(--s2) }

.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.radio-card {
  display: block; padding: var(--sp-md);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background-color: var(--white); cursor: pointer;
  transition: all .2s ease; font-size: var(--fs-base);
  line-height: 1.4; color: var(--text-muted);
}
.radio-card:hover { border-color: var(--primary-cont); color: var(--text-main) }
.radio-card.active {
  border-color: var(--primary); background-color: rgba(0,97,96,.04);
  box-shadow: 0 0 0 1px var(--primary); color: var(--text-main);
}

.notice {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: var(--fs-sm); border: 1px solid transparent;
  color: var(--text-muted); background: var(--s2);
}
.notice.green { background: rgba(27,140,90,.05); color: var(--green); border-color: rgba(27,140,90,.15) }
.notice.red   { background: rgba(197,40,44,.05); color: var(--red);   border-color: rgba(197,40,44,.15) }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
  color: var(--text-muted); font-size: var(--fs-sm);
}
.chip input { padding: 4px; width: 130px; background: transparent; border: 0; font-size: var(--fs-sm); color: var(--text-main) }
.chip button { background: transparent; color: var(--text-muted); font-weight: 800 }

/* ═══════════════════════════════════════════════════════
   PANELS & CARDS (from Stitch)
═══════════════════════════════════════════════════════ */
.panel {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin: var(--sp-sm) 0;
}
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  border: 1px solid var(--border);
  transition: all .2s ease;
  cursor: pointer; position: relative; overflow: hidden;
  animation: popin .2s ease; box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px) }
.stripe { height: 4px; background: var(--primary); border-radius: var(--radius-lg) var(--radius-lg) 0 0 }
.card-body { padding: var(--sp-md) }
.card-title { font-size: var(--fs-md); font-weight: 700; color: var(--text-main) }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px }
.card-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: var(--fs-sm) }

.menu-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--s2); color: var(--text-muted);
  border: 1px solid var(--border); font-size: var(--fs-base);
}
.menu {
  display: none; position: absolute; top: 46px; right: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 5px; z-index: 10;
  min-width: 140px; box-shadow: var(--shadow-md);
}
.menu.open { display: block }
.menu button {
  width: 100%; background: transparent; color: var(--red);
  padding: 9px 12px; text-align: left; border-radius: 6px;
  font-size: var(--fs-sm); font-weight: 600;
}
.menu button:hover { background: rgba(197,40,44,.06) }

/* ═══════════════════════════════════════════════════════
   DATA TABLES (from Stitch)
═══════════════════════════════════════════════════════ */
table { width: 100%; border-collapse: separate; border-spacing: 0 }
th {
  background-color: rgba(0,97,96,.04);
  color: var(--primary); font-weight: 700;
  text-align: left; padding: 12px 16px;
  font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .05em; border-bottom: 2px solid var(--border);
}
th:first-child { border-top-left-radius: var(--radius-md) }
th:last-child  { border-top-right-radius: var(--radius-md) }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-main); font-size: var(--fs-sm); vertical-align: middle }
tr:last-child td { border-bottom: none }
tr:hover td { background-color: var(--bg) }
.rank-1 td:first-child { color: var(--gold); font-weight: 800 }
.rank-2 td:first-child { color: var(--text-muted); font-weight: 700 }
.rank-3 td:first-child { color: var(--cyan); font-weight: 700 }

/* ═══════════════════════════════════════════════════════
   MATCH CARD (from Stitch)
═══════════════════════════════════════════════════════ */
.versus {
  display: grid; grid-template-columns: 1fr 44px 1fr;
  gap: var(--sp-sm); align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-md);
  margin: 8px 0; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.versus:hover { box-shadow: var(--shadow-md) }
.versus.done { opacity: .75 }
.vs { text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted) }
.team { font-weight: 600; color: var(--text-main); font-size: var(--fs-base) }
.team.win { color: var(--primary) }
.team.lose { color: var(--text-muted) }
.team-role { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px }
.match { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-md); margin: 8px 0; box-shadow: var(--shadow-sm) }
.match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px }
.match-label { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 9px; font-weight: 500 }
.match-menu-btn { background: transparent; color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: var(--fs-xs) }
.match-menu { display: none; position: absolute; right: 0; top: 100%; z-index: 10; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 5px; min-width: 130px; box-shadow: var(--shadow-md) }
.match-menu.open { display: block }
.match-menu button { width: 100%; background: transparent; color: var(--text-muted); padding: 8px 12px; text-align: left; border-radius: 6px; font-size: var(--fs-sm); font-weight: 500 }
.match-menu button:hover { background: var(--s2); color: var(--text-main) }

.set-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 8px; align-items: center; margin: 6px 0 }
.set-label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600 }
.set-score {
  text-align: center; font-size: var(--fs-lg); font-weight: 700;
  color: var(--text-main); background: var(--s2);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px;
}
.set-score input { width: 100%; text-align: center; font-size: var(--fs-lg); font-weight: 700; background: transparent; border: 0; padding: 0; color: var(--text-main) }
.set-score.active { border-color: var(--primary); background: rgba(0,97,96,.06) }

/* ═══════════════════════════════════════════════════════
   PLAYER ROW (from Stitch)
═══════════════════════════════════════════════════════ */
.club-player-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background-color: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: var(--sp-sm);
  transition: transform .2s ease, border-color .2s;
}
.club-player-row:hover { transform: translateX(4px); border-color: var(--primary-cont) }
.club-player-main { flex: 1; min-width: 0 }
.club-player-list { display: flex; flex-direction: column }
.club-player-name { font-weight: 600; color: var(--text-main); font-size: var(--fs-base) }
.club-player-meta { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px }
.club-player-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0 }
.club-toolbar { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-sm); margin-bottom: var(--sp-md) }

/* ═══════════════════════════════════════════════════════
   STAT CARD (from Stitch)
═══════════════════════════════════════════════════════ */
.stat-card {
  background-color: var(--white); padding: var(--sp-lg);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.stat-card .value { font-size: var(--fs-stat); font-weight: 800; color: var(--primary); line-height: 1 }
.stat-card .label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: var(--sp-sm); margin-bottom: var(--sp-md) }
.stat-val { font-size: 28px; font-weight: 800; color: var(--text-main); line-height: 1 }
.stat-label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px }

/* ═══════════════════════════════════════════════════════
   TOURNAMENT CARD
═══════════════════════════════════════════════════════ */
.tournament-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-md);
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all .2s ease; animation: popin .2s ease;
  display: flex; align-items: center; gap: var(--sp-md);
  border-top: 3px solid var(--primary);
}
.tournament-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px) }
.tournament-card-accent { display: none }
.tournament-card-body { flex: 1; min-width: 0 }
.tournament-card-name { font-size: var(--fs-md); font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tournament-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center }
.tournament-card-foot { flex-shrink: 0; text-align: right }

/* ═══════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════ */
.dashboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-md) }
.dashboard-section { margin-bottom: var(--sp-xl) }
.dashboard-quick-section { margin: var(--sp-xl) 0 var(--sp-lg) }
.dashboard-quick-title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--sp-sm) }
.dashboard-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; margin-top: var(--sp-sm) }
.dashboard-day-group { margin-bottom: var(--sp-lg) }
.dashboard-empty { padding: var(--sp-xl); text-align: center; color: var(--text-muted) }
.quick-action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); margin-bottom: var(--sp-md) }
.quick-action-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-md);
  cursor: pointer; text-align: left; box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.quick-action-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md) }
.quick-action-label { font-weight: 700; color: var(--text-main); font-size: var(--fs-base); display: block }
.quick-action-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 3px; display: block }

/* ═══════════════════════════════════════════════════════
   FREE MATCHES
═══════════════════════════════════════════════════════ */
.free-match-day-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: var(--sp-sm) }
.free-match-card-v45 {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  animation: popin .2s ease; box-shadow: var(--shadow-sm);
  transition: all .2s ease; position: relative;
}
.free-match-card-v45:hover { border-color: var(--primary); box-shadow: var(--shadow-md) }
.free-match-card-v45 .stripe { height: 3px }
.free-card-title { font-weight: 700; color: var(--text-main); font-size: var(--fs-base) }
.free-card-team-line { display: block; font-weight: 600; color: var(--text-main) }
.free-card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px }
.free-match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md) }
.free-match-team h3 { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em }
.free-card-result { display: flex; align-items: center; gap: 8px }

/* ═══════════════════════════════════════════════════════
   POOL / SCHEMA
═══════════════════════════════════════════════════════ */
.pool-card { margin-bottom: 24px }
.pool-header { background: rgba(0,97,96,.04); padding: 8px var(--sp-md); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border) }
.pool-grid, .pool-grid-lite { display: grid; grid-template-columns: 1fr; gap: var(--sp-md) }
.pool-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm) }
.pool-lite, .stage-box-lite { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-md); margin: var(--sp-sm) 0; box-shadow: var(--shadow-sm) }
.pool-lite h3, .stage-box-lite h3 { margin: 0 0 var(--sp-sm); color: var(--text-main) }
.stage-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-md); margin: var(--sp-sm) 0; box-shadow: var(--shadow-sm) }
.stage-box h3 { margin-bottom: var(--sp-sm) }

.match-lite { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; background: var(--white); margin: 6px 0; box-shadow: var(--shadow-sm) }
.match-lite-title { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em }
.match-lite-line { display: flex; align-items: center; gap: var(--sp-sm) }
.match-lite-vs { color: var(--text-muted); font-size: var(--fs-xs); font-weight: 700; flex-shrink: 0 }
.tree-team { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.tree-team span:first-child { font-weight: 600; color: var(--text-main); font-size: var(--fs-sm) }
.tree-team-role { font-size: var(--fs-xs); color: var(--text-muted) }
.tree-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md) }
.tree-line { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 6px; align-items: center }
.tree-arrow { text-align: center; color: var(--primary); font-size: var(--fs-sm) }
.tree-final { margin-top: var(--sp-md) }
.tree-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px }
.flow { display: flex; flex-direction: column; align-items: center; gap: 4px }
.flow-arrow { color: var(--text-muted); font-size: var(--fs-lg) }
.flow-step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-sm) var(--sp-md); box-shadow: var(--shadow-sm) }
.flow-title { font-weight: 700; color: var(--text-main); font-size: var(--fs-sm) }
.flow-meta { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px }

/* ═══════════════════════════════════════════════════════
   RANKING
═══════════════════════════════════════════════════════ */
.ranking-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px }
.ranking-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; margin: 12px 0 14px }
.ranking-section { margin-bottom: var(--sp-lg) }
.ranking-table { width: 100%; border-collapse: separate; border-spacing: 0 }
.ranking-name { font-weight: 600; color: var(--text-main) }
.ranking-stat { font-weight: 700; color: var(--primary) }
.ranking-muted { color: var(--text-muted) }
.ranking-pair-row { display: flex; gap: var(--sp-sm); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border) }
.ranking-pair-rank { width: 28px; font-weight: 700; color: var(--text-muted); font-size: var(--fs-sm) }
.ranking-pair-name { flex: 1; font-weight: 600; color: var(--text-main) }
.ranking-pair-val { font-weight: 700; color: var(--primary); font-size: var(--fs-sm) }

/* ═══════════════════════════════════════════════════════
   PLAYER PROFILE & BADGES
═══════════════════════════════════════════════════════ */
.player-badge { display: inline-block; border-radius: 6px; padding: 3px 8px; font-size: var(--fs-xs); font-weight: 600; background: rgba(0,97,96,.08); color: var(--primary); margin: 2px 2px 0 0 }
.player-badge.gold  { background: rgba(224,123,0,.1);  color: var(--gold) }
.player-badge.green { background: rgba(27,140,90,.1);  color: var(--green) }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px }
.player-profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,97,96,.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0 }
.player-profile-head { display: flex; align-items: flex-start; gap: var(--sp-md); margin-bottom: var(--sp-md) }
.player-profile { margin-bottom: var(--sp-md) }
.player-profile-title { font-size: var(--fs-lg); font-weight: 800; color: var(--text-main) }
.player-profile-sub { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 2px }
.player-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 9px; margin: 12px 0 }
.player-stat { background: var(--s2); border: 1px solid var(--border); border-radius: 10px; padding: 12px }
.player-stat strong { display: block; color: var(--text-main); font-size: 1.1rem; line-height: 1; font-weight: 800 }
.player-stat span { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 5px }
.player-history { margin-top: var(--sp-md) }
.player-history-title { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--sp-sm) }
.player-history-item { display: flex; align-items: flex-start; gap: var(--sp-sm); padding: 10px 0; border-bottom: 1px solid var(--border) }
.player-history-item:last-child { border-bottom: 0 }
.player-history-main { display: flex; gap: var(--sp-md); align-items: flex-start }
.player-history-meta { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 3px }
.player-history-result { flex-shrink: 0; font-size: var(--fs-xs); font-weight: 700; padding: 3px 8px; border-radius: 6px }
.player-history-result.win  { background: rgba(27,140,90,.1);  color: var(--green) }
.player-history-result.lose { background: rgba(197,40,44,.08); color: var(--red) }
.player-modal { position: fixed; inset: 0; background: rgba(30,41,59,.5); z-index: 100; display: flex; align-items: flex-end; justify-content: center }
.player-modal-dialog { background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; padding: var(--sp-lg); position: relative }
.player-modal-close { position: absolute; top: var(--sp-md); right: var(--sp-md) }

/* ═══════════════════════════════════════════════════════
   TEAMS
═══════════════════════════════════════════════════════ */
.teams-grid { display: grid; gap: 8px }
.team-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px; margin: 4px 0; background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius-md) }
.generated-team-row { grid-template-columns: 1.2fr 1fr 1fr; gap: 8px }
.team-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: var(--sp-md) }
.manual-teams { display: grid; gap: var(--sp-md) }
.manual-team h3 { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em }
.pair-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.pair-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }

/* ═══════════════════════════════════════════════════════
   SUGGEST
═══════════════════════════════════════════════════════ */
.suggest-wrap { position: relative }
.suggest-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); z-index: 20; max-height: 200px; overflow-y: auto; box-shadow: var(--shadow-md) }
.suggest-list.open { display: block }
.suggest-item { padding: 10px 14px; cursor: pointer; font-size: var(--fs-base); color: var(--text-muted); transition: background .1s }
.suggest-item:hover { background: var(--s2); color: var(--text-main) }

/* ═══════════════════════════════════════════════════════
   MISC
═══════════════════════════════════════════════════════ */
.overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-md); margin-bottom: var(--sp-md) }
.empty-state { padding: var(--sp-xl); text-align: center; color: var(--text-muted); font-size: var(--fs-sm) }
.champion { text-align: center; padding: var(--sp-lg) var(--sp-md) }
.champion .cup { font-size: 3rem; display: block; margin-bottom: var(--sp-sm) }
.champion-team { font-size: var(--fs-lg); font-weight: 800; color: var(--primary) }
.champion-members { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 4px }
.day-group { margin: 0 0 var(--sp-lg) }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px }
.day-title strong { font-size: 1.1rem; font-weight: 700; color: var(--text-main) }
.pill { display: inline-block; border-radius: var(--radius-full); padding: 3px 10px; font-size: var(--fs-xs); font-weight: 600; background: var(--s2); color: var(--text-muted) }
.sets { color: var(--text-muted); font-size: var(--fs-sm) }
.role { color: var(--text-muted); font-size: var(--fs-xs); margin-top: 2px }
.winline { color: var(--green); font-weight: 700 }
.reopen-link { background: transparent; color: var(--primary); text-decoration: underline; font-size: var(--fs-sm); padding: 0; cursor: pointer }
.table-note { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--sp-sm) }
.placeholder-box { background: var(--s2); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: var(--sp-md); color: var(--text-muted); text-align: center }
.previous-days-toggle { background: transparent; color: var(--primary); font-size: var(--fs-sm); font-weight: 600; padding: var(--sp-sm) 0; cursor: pointer }
.phase-lite { margin: var(--sp-sm) 0 }
.phase-lite-head { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--sp-sm) }
.phase-route { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; margin: var(--sp-sm) 0 }
.phase-route-box { background: var(--s2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted) }
.phase-route-arrow { color: var(--text-muted) }
.lite-tree, .mini-tree { display: grid; gap: var(--sp-sm) }
.mini-list { display: flex; flex-direction: column; gap: 6px }
.section-head h2 .badge, .dashboard-head h2 .badge { vertical-align: unset; margin: 0 }

/* Friendly list */
.friendly-clean-list-wrap { overflow-x: auto }
.friendly-clean-list-head { display: grid; grid-template-columns: minmax(260px,1.7fr) minmax(110px,.55fr) minmax(120px,.65fr); gap: 12px; padding: 0 12px 6px; min-width: 520px; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em }
.friendly-clean-list-head span:last-child { text-align: right }
.friendly-clean-item { display: grid; grid-template-columns: minmax(260px,1.7fr) minmax(110px,.55fr) minmax(120px,.65fr); align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; min-width: 520px; margin-bottom: 6px; box-shadow: var(--shadow-sm) }
.friendly-clean-vs { color: var(--primary); font-weight: 700; font-size: var(--fs-sm); margin: 0 5px; white-space: nowrap }
.friendly-clean-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-base); color: var(--text-muted) }
.friendly-clean-name { color: var(--text-main); font-weight: 600 }
.friendly-clean-score { color: var(--text-muted); text-align: right }

/* ═══════════════════════════════════════════════════════
   STEPPER
═══════════════════════════════════════════════════════ */
.stepper-layout { display: grid; grid-template-columns: 210px 1fr; gap: var(--sp-lg); align-items: start; margin-top: var(--sp-lg) }
.stepper-layout.stepper-layout-full { grid-template-columns: 1fr }
.stepper-layout.stepper-layout-full .stepper-nav { display: none }
@media (max-width: 600px) {
  .stepper-layout { grid-template-columns: 1fr !important }
  .stepper-nav { display: none !important }
  .stepper-mobile { display: flex; align-items: center; gap: var(--sp-md); margin-bottom: var(--sp-md) }
}
@media (min-width: 601px) { .stepper-mobile { display: none } }
.stepper-mobile-ring { position: relative; width: 52px; height: 52px; flex-shrink: 0 }
.stepper-mobile-ring svg { transform: rotate(-90deg) }
.stepper-mobile-ring-bg { fill: none; stroke: var(--border); stroke-width: 4 }
.stepper-mobile-ring-fg { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .3s }
.stepper-mobile-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--primary) }
.stepper-mobile-info { min-width: 0 }
.stepper-mobile-title { font-size: var(--fs-base); font-weight: 700; color: var(--text-main); line-height: 1.2 }
.stepper-mobile-next { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px }
.stepper-nav { display: flex; flex-direction: column; position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-sm); box-shadow: var(--shadow-sm) }
.stepper-nav::before { content: ''; position: absolute; left: 29px; top: 32px; bottom: 32px; width: 2px; background: var(--border); z-index: 0 }
.stepper-step { display: flex; align-items: flex-start; gap: var(--sp-sm); padding: var(--sp-sm); cursor: default; position: relative; z-index: 1; border-radius: 8px; transition: background .15s }
.stepper-step.done { cursor: pointer }
.stepper-step.done:hover { background: var(--s2) }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); flex-shrink: 0; background: var(--s2); border: 2px solid var(--border); color: var(--text-muted); transition: all .2s }
.stepper-step.active .step-num { background: var(--primary); border-color: var(--primary); color: #fff }
.stepper-step.done .step-num { background: rgba(27,140,90,.1); border-color: var(--green); color: var(--green) }
.step-info { padding-top: 3px }
.step-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); line-height: 1.2 }
.stepper-step.active .step-label { color: var(--text-main) }
.stepper-step.done .step-label { color: var(--secondary) }
.step-sublabel { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px }
.stepper-step.active .step-sublabel { color: var(--secondary) }
.stepper-content { min-width: 0 }
.stepper-actions { display: flex; gap: var(--sp-sm); margin-top: var(--sp-md); align-items: center }
.club-player-row.selectable { cursor: pointer; user-select: none; transition: all .15s; display: flex; align-items: center; margin-bottom: 8px; border-radius: var(--radius-md) }
.club-player-row.selectable:hover { border-color: var(--primary); box-shadow: var(--shadow-md) }
.club-player-row.selectable.selected { border-color: var(--primary); background: rgba(0,97,96,.05) }
.step-check { font-size: 16px; color: var(--primary); font-weight: 700; margin-left: auto; padding-left: var(--sp-sm); flex-shrink: 0 }
.match-vs-header { display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-md); flex-wrap: wrap }
.match-team { font-weight: 700; font-size: var(--fs-md); color: var(--text-main) }
.match-vs-label { color: var(--text-muted); font-size: var(--fs-sm); flex-shrink: 0 }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (min-width: 680px) { .tree-grid.two, .pool-grid-lite.two { grid-template-columns: 1fr 1fr } }
@media (max-width: 720px) { .quick-action-row { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) {
  .quick-action-row { grid-template-columns: 1fr }
  .free-match-day-list { grid-template-columns: 1fr }
  .free-match-grid { grid-template-columns: 1fr }
  .pair-selects, .team-mode-grid { grid-template-columns: 1fr }
  table { font-size: var(--fs-sm) }
  th, td { padding: 8px 10px }
  .generated-team-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px }
  .generated-team-row:last-child { margin-bottom: 0 }
  .radio-grid, .pair-inputs { grid-template-columns: 1fr }
  .topbar { align-items: flex-start }
  .form-row { flex-direction: column }
  .versus { gap: 8px }
  .vs { flex-basis: 36px; min-width: 36px }
  .set-row { grid-template-columns: 56px 1fr 1fr }
  .club-toolbar { grid-template-columns: 1fr }
  .club-player-row { grid-template-columns: 1fr }
  .club-player-actions { justify-content: flex-start; flex-wrap: wrap }
  .player-profile-head, .player-history-main { display: block }
  .player-history-result { margin-top: 5px; display: inline-block }
  .dashboard-head { align-items: flex-start; flex-direction: column }
  .stage-box-lite, .ranking-section, .pool-lite { overflow-x: auto }
  table { min-width: 480px }
}
@media (max-width: 440px) {
  body { padding-left: 12px; padding-right: 12px }
  .tree-line { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px }
  .tree-team-role { font-size: var(--fs-xs) }
}


/* ═══════════════════════════════════════════════════════
   ATHLETIC PRECISION — FORM SYSTEM OVERRIDES
   À placer en fin de fichier pour harmoniser tous les formulaires.
═══════════════════════════════════════════════════════ */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Labels & groups */
label,
.form-label {
  display: block;
  margin: 0 0 var(--sp-sm);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-group,
.field {
  display: grid;
  gap: var(--sp-sm);
}

.form-help {
  margin-top: var(--sp-xs);
  color: var(--secondary);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.field-error,
.error-message {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-xs);
  color: var(--error);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Inputs / Selects / Textarea */
input,
select,
textarea {
  width: 100%;
  min-height: var(--input-height);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--on-surface);
  background: #F8FAFC;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

textarea {
  min-height: 112px;
  padding-block: 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--secondary);
  opacity: .72;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--outline);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  background: var(--surface-container-lowest);
}

input.err,
input.is-error,
select.err,
select.is-error,
textarea.err,
textarea.is-error {
  color: var(--error);
  border-color: var(--error);
  background: rgba(255, 218, 214, .28);
}

input.err:focus,
input.is-error:focus,
select.err:focus,
select.is-error:focus,
textarea.err:focus,
textarea.is-error:focus {
  box-shadow: 0 0 0 3px rgba(186, 26, 26, .14);
}

input:disabled,
select:disabled,
textarea:disabled,
input[readonly] {
  cursor: not-allowed;
  color: var(--secondary);
  background: rgba(211, 228, 254, .32);
  opacity: .78;
}

/* Select menu */
select {
  cursor: pointer;
  padding-right: 42px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
    linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Buttons */
.btn,
.ghost,
.danger {
  min-height: var(--input-height);
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.btn {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: #004E59;
  border-color: #004E59;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active,
.ghost:active,
.danger:active,
.tiny-btn:active {
  transform: scale(.97);
}

.btn:disabled,
.ghost:disabled,
.danger:disabled,
button[disabled] {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

.ghost {
  background: var(--surface-container-lowest);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.ghost:hover {
  background: rgba(0, 97, 109, .05);
  color: #004E59;
  border-color: #004E59;
}

.danger {
  background: rgba(186, 26, 26, .10);
  color: var(--error);
  border-color: transparent;
}

.danger:hover {
  background: var(--error);
  color: var(--on-primary);
  border-color: var(--error);
}

.tiny-btn {
  min-height: 34px;
  border-radius: 9px;
  padding: 0 12px;
  background: var(--surface-container-low);
  color: var(--secondary);
  border: 1px solid var(--outline-variant);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.tiny-btn:hover {
  color: var(--primary);
  border-color: rgba(0, 97, 109, .38);
  background: var(--surface-container-lowest);
}

/* Panels as form sections */
.panel,
.form-section {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
}

.panel:hover,
.form-section:hover {
  box-shadow: var(--shadow-md);
}

/* Option cards */
.radio-grid,
.team-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-md);
}

.radio-card {
  position: relative;
  min-height: 104px;
  padding: var(--sp-lg);
  background: var(--surface-container-lowest);
  border: 2px solid var(--outline-variant);
  border-radius: var(--radius-md);
  color: var(--secondary);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.radio-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--outline-variant);
  border-radius: 50%;
  background: var(--surface-container-lowest);
  transition: all .18s ease;
}

.radio-card:hover {
  border-color: rgba(0, 97, 109, .45);
  color: var(--on-surface);
  transform: translateY(-1px);
}

.radio-card.active {
  border-color: var(--primary);
  background: rgba(0, 97, 109, .055);
  color: var(--on-surface);
  box-shadow: inset 0 0 0 1px rgba(0, 97, 109, .08);
}

.radio-card.active::after {
  border-color: var(--primary);
  background:
    radial-gradient(circle at center, var(--primary) 0 42%, transparent 45%);
}

.radio-card strong,
.radio-card h4 {
  display: block;
  margin-top: 4px;
  color: var(--on-surface);
  font-weight: 800;
}

.radio-card .sub,
.radio-card p {
  color: var(--secondary);
  font-size: var(--fs-sm);
}

/* Selectable player cards should behave like option cards */
.club-player-row.selectable {
  min-height: 56px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
}

.club-player-row.selectable:hover {
  border-color: rgba(0, 97, 109, .45);
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.club-player-row.selectable.selected {
  border-color: var(--primary);
  background: rgba(0, 97, 109, .055);
  box-shadow: inset 0 0 0 1px rgba(0, 97, 109, .08);
}

/* Checkboxes */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  cursor: pointer;
  color: var(--on-surface);
  font-size: var(--fs-base);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-check-box {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--outline-variant);
  border-radius: 5px;
  background: var(--surface-container-lowest);
  color: var(--on-primary);
  transition: all .18s ease;
}

.form-check input[type="checkbox"]:checked + .form-check-box,
.form-check.is-checked .form-check-box {
  border-color: var(--primary);
  background: var(--primary);
}

.form-check input[type="checkbox"]:checked + .form-check-box::before,
.form-check.is-checked .form-check-box::before {
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* Native checkbox fallback */
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--primary);
  border-radius: 5px;
}

/* Toggles */
.form-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(190, 200, 203, .58);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.form-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-container-lowest);
  box-shadow: 0 1px 3px rgba(11, 28, 48, .22);
  transition: transform .18s ease;
}

.form-toggle.is-on,
.form-toggle[aria-checked="true"] {
  background: var(--primary);
}

.form-toggle.is-on::after,
.form-toggle[aria-checked="true"]::after {
  transform: translateX(20px);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: 32px;
}

/* Notice / errors */
.notice {
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  color: var(--secondary);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.notice.green {
  background: rgba(27, 140, 90, .08);
  color: var(--success);
  border-color: rgba(27, 140, 90, .22);
}

.notice.red {
  background: rgba(255, 218, 214, .46);
  color: var(--error);
  border-color: rgba(186, 26, 26, .32);
}

/* Progress block */
.progress-card {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--on-primary-container);
  border: 1px solid var(--primary-container);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
}

.progress-card h3,
.progress-card strong {
  color: var(--on-primary);
}

.progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .24);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: var(--on-primary);
  transition: width .5s ease;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-sm);
  font-weight: 800;
}

/* Chips */
.chip {
  min-height: 36px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
}

.chip input {
  min-height: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Suggestions */
.suggest-list {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: auto;
}

.suggest-item {
  width: 100%;
  display: block;
  padding: 11px 14px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--on-surface);
  font-size: var(--fs-base);
  font-weight: 600;
}

.suggest-item:hover,
.suggest-item:focus {
  background: var(--surface-container-low);
  outline: none;
}

/* Score inputs */
.set-score,
.set-row input {
  min-height: 44px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.set-row input.won,
.set-score.active {
  color: var(--success);
  border-color: var(--success);
  background: rgba(27, 140, 90, .07);
}

/* Responsive form behavior */
@media (max-width: 720px) {
  body {
    padding: 16px 14px 72px;
  }

  .panel,
  .form-section {
    padding: var(--sp-md);
  }

  .radio-grid,
  .team-mode-grid,
  .pair-inputs,
  .pair-selects,
  .free-match-grid {
    grid-template-columns: 1fr !important;
  }

  .radio-card {
    min-height: 96px;
    padding: var(--sp-md);
  }

  .btn,
  .ghost,
  .danger {
    width: 100%;
  }

  .actions,
  .stepper-actions,
  .dashboard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .club-toolbar {
    grid-template-columns: 1fr;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 02 — BADGES + STEPPER VERTICAL
═══════════════════════════════════════════════════════ */

/* BADGES / STATUS CHIPS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  box-shadow: none;
}

.badge:not(.green):not(.red):not(.gold):not(.cyan) {
  background: rgba(84, 95, 115, .10);
  color: var(--secondary);
}

.badge.green {
  background: rgba(27, 140, 90, .11);
  color: var(--success);
}

.badge.cyan {
  background: rgba(13, 123, 138, .11);
  color: var(--primary-cont);
}

.badge.gold {
  background: rgba(224, 123, 0, .12);
  color: var(--warning);
}

.badge.red {
  background: rgba(186, 26, 26, .10);
  color: var(--error);
}

/* Optional live-dot usage */
.badge.live::before,
.badge.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

/* Vertical stepper */
.stepper-layout {
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.stepper-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 0;
  overflow: visible;
}

.stepper-nav::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 26px;
  bottom: 26px;
  width: 4px;
  border-radius: 999px;
  background: #D7DEE7;
  z-index: 0;
}

.stepper-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.stepper-step:hover,
.stepper-step.done:hover {
  background: transparent;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-lowest);
  border: 2px solid #D1D9E3;
  color: #7C8798;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}

.stepper-step.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 97, 109, .22);
}

.stepper-step.done .step-num {
  background: rgba(0, 97, 109, .10);
  border-color: rgba(0, 97, 109, .20);
  color: var(--primary);
}

.step-info {
  padding-top: 0;
  min-width: 0;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #667286;
  margin-bottom: 4px;
}

.step-sublabel {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #A0AABC;
}

.stepper-step.active .step-label {
  color: var(--primary);
}

.stepper-step.active .step-sublabel {
  color: #7D899A;
}

.stepper-step.done .step-label {
  color: var(--on-surface);
}

.stepper-step.done .step-sublabel {
  color: #7D899A;
}

.step-check {
  display: none;
}

@media (max-width: 860px) {
  .stepper-layout {
    grid-template-columns: 1fr !important;
    gap: var(--sp-md);
  }

  .stepper-nav {
    display: none !important;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 03 — CARTES TOURNOIS
═══════════════════════════════════════════════════════ */

.card.tournament-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 0;
  border: 2px solid #B7C2CC;
  border-radius: 24px;
  background: var(--surface-container-lowest);
  box-shadow: none;
  overflow: hidden;
}

.card.tournament-card:hover {
  border-color: #A8B5C2;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card.tournament-card .stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  height: auto;
  background: var(--primary);
  border-radius: 24px 0 0 24px;
}

.card.tournament-card .menu-btn {
  position: absolute;
  top: 26px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8B99AA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.card.tournament-card .menu-btn:hover {
  background: rgba(84, 95, 115, .08);
  color: var(--on-surface);
}

.card.tournament-card .menu-btn .material-symbols-outlined {
  font-size: 30px;
}

.card.tournament-card .card-body {
  padding: 34px 58px 26px 58px;
}

.tournament-card-title {
  margin: 0;
  padding-right: 44px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #14223A;
}

.tournament-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 38px;
}

.tournament-card .badge {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tournament-badge-type {
  background: rgba(0, 97, 109, .10);
  color: var(--primary);
}

.tournament-badge-level {
  background: rgba(122, 141, 201, .18);
  color: #55637E;
}

.tournament-card .badge.green {
  background: rgba(30, 196, 160, .20);
  color: #135C54;
}

.tournament-card-details {
  display: grid;
  gap: 24px;
  color: #4B596E;
}

.tournament-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: #4A586D;
}

.tournament-info-icon {
  flex: 0 0 auto;
  font-size: 36px;
  color: #4A586D;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.tournament-card .card-foot.tournament-card-footbar {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 108px;
  padding: 0 42px;
  border-top: 1px solid #E7EBF0;
  background: rgba(248, 249, 255, .45);
}

.tournament-details-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.tournament-details-link .material-symbols-outlined {
  font-size: 24px;
}

@media (max-width: 860px) {
  .card.tournament-card {
    min-height: 0;
    border-radius: 18px;
  }

  .card.tournament-card .stripe {
    width: 6px;
    border-radius: 18px 0 0 18px;
  }

  .card.tournament-card .card-body {
    padding: 22px 24px 20px 26px;
  }

  .tournament-card-title {
    font-size: 1.85rem;
    padding-right: 36px;
  }

  .tournament-card-meta {
    gap: 8px;
    margin: 20px 0 24px;
  }

  .tournament-card .badge {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .tournament-card-details {
    gap: 18px;
  }

  .tournament-info-row {
    gap: 12px;
    font-size: 1rem;
  }

  .tournament-info-icon {
    font-size: 28px;
  }

  .card.tournament-card .card-foot.tournament-card-footbar {
    min-height: 72px;
    padding: 0 24px;
  }

  .tournament-details-link {
    font-size: 16px;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 04 — CARTES TOURNOIS COMPACTES
   Correction typo / proportions / cohérence dashboard
═══════════════════════════════════════════════════════ */

.grid:has(.tournament-card) {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card.tournament-card {
  min-height: 0;
  border-radius: 18px;
  border-width: 1.5px;
}

.card.tournament-card .stripe {
  width: 6px;
  border-radius: 18px 0 0 18px;
}

.card.tournament-card .card-body {
  padding: 24px 28px 18px 30px;
}

.card.tournament-card .menu-btn {
  top: 18px;
  right: 16px;
  width: 34px;
  height: 34px;
}

.card.tournament-card .menu-btn .material-symbols-outlined {
  font-size: 26px;
}

.tournament-card-title {
  padding-right: 36px;
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.tournament-card-meta {
  gap: 8px;
  margin: 18px 0 24px;
}

.tournament-card .badge {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: .035em;
}

.tournament-card-details {
  gap: 14px;
}

.tournament-info-row {
  gap: 12px;
  font-size: 1rem;
  line-height: 1.35;
  color: #4B596E;
}

.tournament-info-icon {
  font-size: 25px;
}

.tournament-card .card-foot.tournament-card-footbar {
  min-height: 64px;
  padding: 0 28px;
  background: rgba(248, 249, 255, .72);
}

.tournament-details-link {
  font-size: 15px;
  gap: 4px;
}

.tournament-details-link .material-symbols-outlined {
  font-size: 20px;
}

/* Variante plus respirante si seulement 1 ou 2 cartes selon largeur */
@media (min-width: 1180px) {
  .dashboard-section .grid:has(.tournament-card) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 720px) {
  .grid:has(.tournament-card) {
    grid-template-columns: 1fr;
  }

  .card.tournament-card .card-body {
    padding: 22px 22px 18px 26px;
  }

  .tournament-card-title {
    font-size: 1.55rem;
  }

  .tournament-card .badge {
    min-height: 28px;
    font-size: 11px;
  }

  .tournament-info-row {
    font-size: .95rem;
  }

  .tournament-card .card-foot.tournament-card-footbar {
    min-height: 58px;
    padding: 0 22px;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 05 — CARTE TOURNOI ALIGNÉE SUR LE DESIGN
   Référence : première carte de l’exemple partagé
═══════════════════════════════════════════════════════ */

.grid:has(.tournament-card) {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card.tournament-card {
  min-height: 0;
  border: 1px solid #BFC8D1;
  border-radius: 16px;
  background: var(--surface-container-lowest);
  box-shadow: none;
  overflow: hidden;
}

.card.tournament-card:hover {
  border-color: #AEB9C3;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.card.tournament-card .stripe {
  width: 4px;
  background: var(--primary);
  border-radius: 16px 0 0 16px;
}

.card.tournament-card .card-body {
  padding: 22px 22px 14px 22px;
}

.card.tournament-card .menu-btn {
  top: 16px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8B97A7;
  border-radius: 8px;
}

.card.tournament-card .menu-btn:hover {
  background: rgba(84, 95, 115, .08);
  color: #5F6C7F;
}

.card.tournament-card .menu-btn .material-symbols-outlined {
  font-size: 20px;
}

.tournament-card-title {
  padding-right: 26px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--on-surface);
}

.tournament-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.tournament-card .badge {
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tournament-badge-type {
  background: rgba(0, 97, 109, .10);
  color: var(--primary);
}

.tournament-badge-level {
  background: rgba(122, 141, 201, .18);
  color: #67758B;
}

.tournament-card .badge.green {
  background: rgba(30, 196, 160, .18);
  color: #166359;
}

.tournament-card .badge.green::before {
  width: 5px;
  height: 5px;
}

.tournament-card-details {
  display: grid;
  gap: 12px;
}

.tournament-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 500;
  color: #55637A;
}

.tournament-info-icon {
  font-size: 18px;
  color: #55637A;
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 20;
}

.card.tournament-card .card-foot.tournament-card-footbar {
  min-height: 44px;
  padding: 0 22px;
  border-top: 1px solid #E9EDF2;
  background: #FBFCFE;
}

.tournament-details-link {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  gap: 2px;
}

.tournament-details-link .material-symbols-outlined {
  font-size: 18px;
}

@media (min-width: 1180px) {
  .dashboard-section .grid:has(.tournament-card) {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .grid:has(.tournament-card) {
    grid-template-columns: 1fr;
  }

  .card.tournament-card .card-body {
    padding: 20px 20px 14px 20px;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 06 — FOOTER CARTE TOURNOI
   Footer pleine largeur + lien aligné à droite
═══════════════════════════════════════════════════════ */

.card.tournament-card {
  display: flex;
  flex-direction: column;
}

.card.tournament-card .card-body {
  flex: 1 1 auto;
}

.card.tournament-card .card-foot.tournament-card-footbar {
  width: 100%;
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  display: none;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0 22px 0 22px;
  border-top: 1px solid #E9EDF2;
  background: #FBFCFE;
}

.card.tournament-card .card-foot.tournament-card-footbar .tournament-details-link {
  margin-left: auto;
  text-align: right;
  justify-content: flex-end;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 720px) {
  .card.tournament-card .card-foot.tournament-card-footbar {
    padding: 0 20px;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 07 — MOBILE
   Contenu carte aligné à gauche et pleine largeur
═══════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .card.tournament-card {
    width: 100%;
  }

  .card.tournament-card .card-body {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 18px 14px 20px;
    display: block;
    text-align: left;
  }

  .tournament-card-title {
    width: 100%;
    max-width: none;
    text-align: left;
    padding-right: 28px;
    margin: 0;
  }

  .tournament-card-meta {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  .tournament-card-details {
    width: 100%;
    justify-items: start;
    align-items: start;
  }

  .tournament-info-row {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  .card.tournament-card .card-foot.tournament-card-footbar {
    width: 100%;
    box-sizing: border-box;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 08 — BOUTONS COMPACTS
   Hauteur max 40px + secondaire bordure 1px
═══════════════════════════════════════════════════════ */

.btn,
.ghost,
.danger {
  min-height: 40px;
  height: 40px;
  max-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
}

.ghost {
  border-width: 1px;
}

.tiny-btn {
  min-height: 32px;
  height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
}

/* Boutons pleine largeur : garder la largeur, mais pas la hauteur excessive */
.stepper-actions .btn,
.stepper-actions .ghost,
.stepper-actions .danger,
.dashboard-actions .btn,
.dashboard-actions .ghost,
.dashboard-actions .danger,
.actions .btn,
.actions .ghost,
.actions .danger {
  height: 40px;
  max-height: 40px;
}

/* Boutons d’action rapide : cartes, pas boutons standards */
.quick-action-card {
  min-height: auto;
}

/* Menu rond / icônes : ne pas hériter de la hauteur globale */
.menu-btn,
.match-menu-btn,
.form-toggle {
  min-height: auto;
  height: auto;
  max-height: none;
}

/* Mobile : les boutons peuvent être full width mais restent à 40px */
@media (max-width: 720px) {
  .btn,
  .ghost,
  .danger {
    min-height: 40px;
    height: 40px;
    max-height: 40px;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 09 — STEPPER VERTICAL
   Ligne centrée, 2px, sans passer derrière les étapes
═══════════════════════════════════════════════════════ */

/* On supprime la ligne de fond continue */
.stepper-nav::before {
  display: none;
}

/* Chaque étape porte son propre connecteur vers l’étape précédente */
.stepper-step {
  position: relative;
}

/* Connecteur vertical entre deux étapes */
.stepper-step + .stepper-step::before {
  content: "";
  position: absolute;
  left: 27px;           /* centre du bloc numéroté de 48px dans une colonne de 56px */
  top: -14px;           /* couvre l’espace entre les étapes */
  width: 2px;
  height: 34px;         /* s’arrête avant de passer derrière le carré */
  background: #D7DEE7;
  border-radius: 999px;
  z-index: 0;
}

/* Le carré numéroté reste toujours au-dessus du connecteur */
.step-num {
  position: relative;
  z-index: 1;
}

/* Mobile : stepper vertical masqué comme avant */
@media (max-width: 860px) {
  .stepper-nav::before,
  .stepper-step + .stepper-step::before {
    display: none !important;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 10 — PAGE MATCHS LIBRES
   Stats dynamiques + tableau 10 lignes + pagination
═══════════════════════════════════════════════════════ */

.match-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 18px;
}

.match-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 22px;
  background: var(--surface-container-lowest);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.match-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}

.match-stat-icon-total {
  background: rgba(0, 97, 109, .08);
  color: var(--primary);
}

.match-stat-icon-single {
  background: rgba(59, 130, 246, .09);
  color: #2563EB;
}

.match-stat-icon-double {
  background: rgba(249, 115, 22, .10);
  color: #EA580C;
}

.match-stat-label {
  color: #9AA8BA;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.match-stat-value {
  margin-top: 7px;
  color: var(--on-surface);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.matches-table-card {
  overflow: hidden;
  background: var(--surface-container-lowest);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.matches-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.matches-table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.matches-table th {
  padding: 17px 24px;
  background: #FBFCFE;
  border-bottom: 1px solid #E5EAF0;
  color: #718096;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: none;
}

.matches-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #EDF1F5;
  color: #7B8799;
  font-size: 14px;
  vertical-align: middle;
}

.matches-table tbody tr:last-child td {
  border-bottom: 0;
}

.matches-table tbody tr:hover td {
  background: #FBFCFE;
}

.match-name {
  color: #2C374A;
  font-weight: 800;
}

.match-vs-orange {
  margin: 0 4px;
  color: #E07B00;
  font-weight: 900;
  letter-spacing: .02em;
}

.matches-table .badge {
  min-height: 22px;
  padding: 0 11px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.match-score-cell {
  color: var(--primary) !important;
  font-weight: 900;
  white-space: nowrap;
}

.matches-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 14px 24px;
  background: #FBFCFE;
  border-top: 1px solid #EDF1F5;
}

.matches-table-count {
  color: #7B8799;
  font-size: 14px;
}

.matches-pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.matches-page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: var(--surface-container-lowest);
  color: #718096;
  font-size: 14px;
  font-weight: 800;
}

.matches-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.matches-page-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.dashboard-bottom-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .match-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .match-stat-card {
    min-height: 74px;
    padding: 14px 16px;
  }

  .matches-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .matches-pagination {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-bottom-action {
    justify-content: stretch;
  }

  .dashboard-bottom-action .ghost {
    width: 100%;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 11 — AJUSTEMENTS MATCHS LIBRES
   Ordre du notice + icônes + VS + couleurs labels
═══════════════════════════════════════════════════════ */

.free-matches-note {
  margin-top: 0;
}

.match-stat-icon .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.match-vs-orange {
  margin: 0 4px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.matches-table .badge.match-type-simple {
  background: rgba(59, 130, 246, .10);
  color: #2563EB;
}

.matches-table .badge.match-type-double {
  background: rgba(249, 115, 22, .12);
  color: #EA580C;
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 12 — CORRECTIONS TABLEAU MATCHS
   Labels couleur + VS 12px + scores alignés à droite
═══════════════════════════════════════════════════════ */

/* VS plus discret */
.matches-table .match-vs-orange,
.match-vs-orange {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  margin: 0 5px;
  letter-spacing: 0;
}

/* Labels type : forçage avec fallback sur anciennes classes */
.matches-table .badge.match-type-simple,
.matches-table .badge.cyan {
  background: rgba(59, 130, 246, .10) !important;
  color: #2563EB !important;
}

.matches-table .badge.match-type-double,
.matches-table .badge.green {
  background: rgba(249, 115, 22, .12) !important;
  color: #EA580C !important;
}

/* Colonne Scores alignée à droite */
.matches-table th:nth-child(4),
.matches-table td:nth-child(4),
.matches-table .match-score-cell {
  text-align: right;
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 13 — PAGE CLASSEMENTS
   Tableau aligné sur le style Matchs + stats modernisées
═══════════════════════════════════════════════════════ */

.ranking-stats-grid {
  margin: 0 0 16px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
}

.ranking-block {
  display: grid;
  gap: 10px;
}

.ranking-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ranking-block-head h3 {
  margin: 0;
  color: var(--on-surface);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.ranking-table-shell {
  overflow: hidden;
}

.ranking-table-modern th:nth-child(1),
.ranking-table-modern td:nth-child(1) {
  width: 62px;
  text-align: center;
}

.ranking-table-modern th:nth-child(3),
.ranking-table-modern th:nth-child(4),
.ranking-table-modern th:nth-child(5),
.ranking-table-modern th:nth-child(6),
.ranking-table-modern th:nth-child(7),
.ranking-table-modern td:nth-child(3),
.ranking-table-modern td:nth-child(4),
.ranking-table-modern td:nth-child(5),
.ranking-table-modern td:nth-child(6),
.ranking-table-modern td:nth-child(7) {
  text-align: right;
}

.ranking-table-modern td {
  color: #2F3B4D;
}

.ranking-rank-cell {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.ranking-player-cell {
  min-width: 240px;
}

.ranking-player-cell .player-badges {
  margin-top: 6px;
}

.ranking-name {
  display: block;
  color: #2C374A;
  font-weight: 800;
}

.ranking-muted {
  display: block;
  margin-top: 3px;
  color: #8A97A9;
  font-size: 12px;
  font-weight: 500;
}

.ranking-table-modern .badge,
.ranking-table-modern .player-badge {
  vertical-align: middle;
}

@media (max-width: 760px) {
  .ranking-block-head h3 {
    font-size: 18px;
  }
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 14 — BADGES UNIFIÉS
   Base unique inspirée des cartes tournoi
═══════════════════════════════════════════════════════ */

/* Base commune */
.badge,
.player-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Neutre */
.badge:not(.green):not(.red):not(.gold):not(.cyan):not(.match-type-simple):not(.match-type-double):not(.tournament-badge-type):not(.tournament-badge-level),
.player-badge:not(.green):not(.red):not(.gold):not(.cyan) {
  background: rgba(84, 95, 115, .10);
  color: #5F6C7F;
}

/* Teal / info */
.badge.cyan,
.player-badge.cyan,
.tournament-badge-type {
  background: rgba(0, 97, 109, .10) !important;
  color: var(--primary) !important;
}

/* Niveau / neutral-blue */
.tournament-badge-level {
  background: rgba(122, 141, 201, .18) !important;
  color: #67758B !important;
}

/* Succès */
.badge.green,
.player-badge.green {
  background: rgba(30, 196, 160, .18) !important;
  color: #166359 !important;
}

/* Warning / gold */
.badge.gold,
.player-badge.gold {
  background: rgba(224, 123, 0, .12) !important;
  color: #9A5600 !important;
}

/* Error */
.badge.red,
.player-badge.red {
  background: rgba(186, 26, 26, .10) !important;
  color: var(--error) !important;
}

/* Types dans le tableau Matchs : garder la cohérence demandée */
.matches-table .badge.match-type-simple {
  background: rgba(59, 130, 246, .10) !important;
  color: #2563EB !important;
}

.matches-table .badge.match-type-double {
  background: rgba(249, 115, 22, .12) !important;
  color: #EA580C !important;
}

/* Point de statut, utilisé par En cours */
.badge.dot::before,
.badge.live::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

/* Dans les cartes tournoi : même base, légèrement plus lisible */
.tournament-card .badge {
  min-height: 22px;
  padding: 0 10px;
  font-size: 10px;
}

/* Dans les tableaux : même badge, pas de variantes grises héritées */
.ranking-table-modern .badge,
.ranking-table-modern .player-badge,
.matches-table .badge {
  min-height: 22px;
  padding: 0 10px;
  font-size: 10px;
}

/* Badge row propre dans les classements/profils */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}



/* ═══════════════════════════════════════════════════════
   MODIFICATION 15 — DASHBOARD MOBILE + ACTIONS RAPIDES
   Boutons sous contenu mobile, séparateurs doux, CTA rapides renforcés
═══════════════════════════════════════════════════════ */

/* Séparateurs doux avec fondu gauche/droite */
.list-divider,
.soft-divider {
  height: 1px;
  border: 0;
  margin: var(--sp-xl) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 28, 48, .04) 10%,
    rgba(11, 28, 48, .12) 50%,
    rgba(11, 28, 48, .04) 90%,
    transparent 100%
  );
}

/* Séparateurs adoucis dans les tableaux de l'application */
tbody tr:not(:last-child) td {
  border-bottom: 0;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 28, 48, .045) 10%,
    rgba(11, 28, 48, .105) 50%,
    rgba(11, 28, 48, .045) 90%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left bottom;
}

tbody tr:last-child td {
  border-bottom: 0;
  background-image: none;
}

.matches-table td,
.ranking-table-modern td {
  border-bottom: 0 !important;
}

/* Dashboard : actions repositionnées */
.dashboard-tournois-mobile-action {
  display: none;
}

.dashboard-matches-desktop-action {
  display: flex;
  justify-content: flex-end;
}

.dashboard-matches-mobile-action {
  display: none;
}

.dashboard-matches-desktop-action .ghost,
.dashboard-matches-mobile-action .ghost,
.dashboard-tournois-mobile-action .ghost {
  min-height: 42px;
}

/* Actions rapides : H2 simple + cartes-boutons plus présentes */
.dashboard-quick-section {
  margin: var(--sp-xl) 0 var(--sp-lg);
}

.dashboard-quick-section h2 {
  margin-bottom: 14px;
}

.quick-action-row {
  gap: 12px;
}

.quick-action-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 97, 109, .15), rgba(13, 123, 138, .035)),
    var(--surface-container-lowest);
  border: 1px solid rgba(0, 97, 109, .18);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(11, 28, 48, .065);
}

.quick-action-card::after {
  content: none;
  display: none;
}

.quick-action-card:hover {
  border-color: rgba(0, 97, 109, .34);
  box-shadow: 0 16px 34px rgba(11, 28, 48, .105);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 97, 109, .11);
  color: var(--primary);
  font-size: 23px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.quick-action-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-action-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.quick-action-sub {
  color: #69778A;
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .dashboard-tournois-desktop-action {
    display: none;
  }

  .dashboard-tournois-mobile-action {
    display: block;
    margin-top: 14px;
  }

  .dashboard-tournois-mobile-action .ghost,
  .dashboard-matches-mobile-action .ghost {
    width: 100%;
  }

  .dashboard-matches-desktop-action {
    display: none;
  }

  .dashboard-matches-mobile-action {
    display: block;
    margin-top: 14px;
  }

  .quick-action-row {
    grid-template-columns: 1fr;
  }

  .quick-action-card {
    width: 100%;
    min-height: 76px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 16 — ACTIONS RAPIDES + TITRES
   Ajustements demandés : rayon 10px, poids 500, gradient renforcé,
   suppression du rond décoratif et titres moins gras.
═══════════════════════════════════════════════════════ */

h1,
h2,
h3,
.dashboard-quick-section h2,
.card-title,
.tournament-card-name,
.tournament-card-title,
.quick-action-label,
.free-card-title,
.match-lite-title,
.flow-title,
.player-profile-title,
.player-history-title,
.stepper-mobile-title,
.day-title strong,
.phase-lite-head,
.ranking-block-head,
.match-name,
.match-team,
.club-player-name,
.champion-team {
  font-weight: 500 !important;
}

.quick-action-card {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 97, 109, .15), rgba(13, 123, 138, .035)),
    var(--surface-container-lowest);
}

.quick-action-card::after {
  content: none !important;
  display: none !important;
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 17 — ACTIONS RAPIDES SANS DÉGRADÉ
   Background plat #FBFCFE pour les cartes d’actions rapides.
═══════════════════════════════════════════════════════ */

.quick-action-card {
  background: #FBFCFE !important;
}

.quick-action-card:hover {
  background: #FBFCFE !important;
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 20 — DASHBOARD PLUS VISUEL
   Ajout d’un hero léger, sportif et cohérent avec le système actuel.
═══════════════════════════════════════════════════════ */

.dashboard-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 var(--sp-xl);
  padding: 24px 28px 24px;
  min-height: 204px;
  background: linear-gradient(135deg, #FBFCFE 0%, #F2FAFC 100%);
  border: 1px solid rgba(0, 97, 109, .16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-hero-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: min(56%, 560px);
}

.dashboard-hero-eyebrow,
.dashboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -.04em;
}

.dashboard-hero p {
  max-width: 520px;
  margin-top: 8px;
  color: #5E6C80;
  font-size: 14px;
}

.dashboard-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dashboard-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(0, 97, 109, .10);
  border-radius: 10px;
  color: #5E6C80;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(11, 28, 48, .04);
}

.dashboard-hero-stats strong {
  color: var(--primary);
  font-size: var(--fs-base);
  font-weight: 600;
}

.dashboard-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #FBFCFE 0%, rgba(251, 252, 254, .92) 42%, rgba(251, 252, 254, .22) 100%),
    url('../img/dashboard-hero-badminton.png') 88% center / cover no-repeat;
}

.dashboard-hero-visual::before {
  content: none;
}

.dashboard-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.dashboard-hero-icon { display: none; }

.dashboard-hero-activity {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  width: min(296px, calc(44% - 24px));
  padding: 14px 15px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 97, 109, .12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 28, 48, .08);
  backdrop-filter: blur(8px);
}

.dashboard-hero-activity .dashboard-hero-kicker {
  margin-bottom: 4px;
  color: #69778A;
  font-size: 14px;
}

.dashboard-hero-activity strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.dashboard-hero-activity strong span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-hero-activity small {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.dashboard-hero-activity.is-empty small {
  color: #69778A;
  font-weight: 500;
}

@media (max-width: 760px) {
  .dashboard-hero {
    padding: var(--sp-md);
    margin-bottom: var(--sp-lg);
    min-height: auto;
  }

  .dashboard-hero-content {
    max-width: none;
  }

  .dashboard-hero-visual {
    background:
      linear-gradient(180deg, #FBFCFE 0%, rgba(251, 252, 254, .90) 36%, rgb(253 253 253 / 0%) 100%), url('../img/dashboard-hero-badminton.png') 80% center / cover no-repeat;
  }

  .dashboard-hero-activity {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }

  .dashboard-hero h2 {
    font-size: 1.45rem;
  }

  .dashboard-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }
}





/* MODIFICATION 32 — actions mobiles sous le menu, au-dessus des listes */
.mobile-section-action {
  display: none;
}

@media (max-width: 560px) {
  #homePrimaryBtn {
    display: none !important;
  }

  .mobile-section-action {
    display: block;
    margin: 0 0 var(--sp-md);
  }

  .mobile-section-action-card {
    width: 100%;
  }
}


/* MODIFICATION 33 — correction affichage des cartes d'action mobiles */
@media (max-width: 560px) {
  .mobile-section-action {
    display: block;
    margin: 0 0 var(--sp-md);
  }

  .mobile-section-action-card {
    width: 100%;
  }
}


/* MODIFICATION 35 — ordre mobile page Matchs */
.mobile-section-divider {
  display: none;
}

@media (max-width: 560px) {
  .mobile-section-divider {
    display: block;
    height: 1px;
    margin: var(--sp-lg) 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(15, 23, 42, .10) 18%,
      rgba(15, 23, 42, .10) 82%,
      transparent 100%
    );
  }

  .free-matches-note + .mobile-section-action {
    margin-top: var(--sp-md);
  }
}


/* MODIFICATION 37 — notices et verts harmonisés */
.info-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(251, 252, 254, .92);
  border: 1px solid rgba(0, 97, 109, .14);
  color: #5E6C80;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.45;
}

.info-notice::before {
  content: "info";
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--primary);
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.ranking-info-note {
  margin: 0 0 var(--sp-md);
}


/* MODIFICATION 37 — cohérence des fonds teal */
:root {
  --teal-soft-bg: rgba(0, 97, 109, .08);
  --teal-soft-bg-hover: rgba(0, 97, 109, .12);
  --teal-soft-border: rgba(0, 97, 109, .14);
  --teal-icon-bg: rgba(0, 97, 109, .10);
  --teal-chip-bg: rgba(0, 97, 109, .09);
}

/* Menu actif */
.app-nav-btn.active {
  color: var(--primary);
  background-color: var(--teal-soft-bg);
  box-shadow: inset 0 0 0 1px var(--teal-soft-border);
}

.app-nav-btn:hover {
  color: var(--primary);
  background-color: rgba(0, 97, 109, .05);
}

/* Icônes et petits carrés teal */
.quick-action-icon,
.player-profile-avatar,
.match-stat-icon-total {
  background: var(--teal-icon-bg);
  color: var(--primary);
}

/* Badges teal génériques */
.badge.cyan,
.player-badge,
.tournament-badge-type,
.tournament-badge-level {
  background: var(--teal-chip-bg);
  color: var(--primary);
  border-color: transparent;
}

/* Cartes sélectionnées / états actifs */
.radio-card.active,
.club-player-row.selectable.selected {
  background: var(--teal-soft-bg);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--teal-soft-border);
}

/* Notices informatives */
.info-notice {
  background: rgba(251, 252, 254, .94);
  border-color: var(--teal-soft-border);
}


/* MODIFICATION 42 — séparateur mobile page Tournois */
@media (max-width: 560px) {
  .tournament-mobile-divider {
    margin: var(--sp-lg) 0;
  }
}


/* MODIFICATION 43 — Actions rapides sous le Hero */
.dashboard-hero + .dashboard-quick-section {
  margin-top: 0;
}

.dashboard-after-quick-actions {
  margin-top: 40px;
}

@media (max-width: 560px) {
  .dashboard-after-quick-actions {
    margin-top: 32px;
  }
}


/* MODIFICATION 44 — boutons secondaires plus proches des actions rapides */
.ghost {
  background: #FBFCFE;
  border-color: #D4E2E6;
  color: var(--primary);
}

.ghost:hover {
  background: #FBFCFE;
  border-color: rgba(0, 97, 109, .28);
  color: #004E59;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 15 — GRILLE DASHBOARD RESPONSIVE
   Base large desktop 12 colonnes, sans changer les composants.
═══════════════════════════════════════════════════════ */

:root {
  --page-max: 1320px;
  --page-gutter: clamp(16px, 3vw, 40px);
  --dashboard-gap: 24px;
}

body {
  padding-inline: 0;
}

.wrap {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  max-width: none;
  margin-inline: auto;
}

/* Les écrans de configuration restent volontairement plus contenus. */
#pg-create,
#pg-tournoi,
#pg-review,
#pg-free-create,
#pg-free-encode {
  max-width: 900px;
  margin-inline: auto;
}

#pg-list {
  max-width: none;
}

.dashboard-grid-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--dashboard-gap);
  row-gap: var(--dashboard-gap);
  align-items: start;
}

.dashboard-grid-hero {
  grid-column: 1 / -1;
  grid-row: 1;
}

.dashboard-grid-main {
  grid-column: 1 / span 9;
  grid-row: 2;
  min-width: 0;
}

.dashboard-grid-side {
  grid-column: 10 / -1;
  grid-row: 2;
  min-width: 0;
  position: sticky;
  top: 16px;
}

.dashboard-grid-layout .dashboard-hero {
  margin-bottom: 0;
}

.dashboard-grid-layout .dashboard-after-quick-actions {
  margin-top: 0 !important;
}

.dashboard-grid-layout .dashboard-section {
  margin-bottom: var(--dashboard-gap);
}

.dashboard-grid-layout .list-divider {
  display: none;
}

.dashboard-grid-side .dashboard-quick-section {
  margin: 0;
}

.dashboard-grid-side .dashboard-quick-section h2 {
  margin-bottom: 12px;
}

.dashboard-grid-side .quick-action-row {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.dashboard-grid-side .quick-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.dashboard-grid-side .quick-action-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.dashboard-grid-side .quick-action-label,
.dashboard-grid-side .quick-action-sub {
  display: block;
}

.dashboard-grid-side .quick-action-sub {
  margin-top: 2px;
}

.dashboard-tournament-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  :root {
    --page-max: 1120px;
    --dashboard-gap: 18px;
  }

  .dashboard-grid-main {
    grid-column: 1 / span 8;
  }

  .dashboard-grid-side {
    grid-column: 9 / -1;
  }

  .dashboard-tournament-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-grid-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dashboard-grid-hero,
  .dashboard-grid-main,
  .dashboard-grid-side {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .dashboard-grid-main {
    order: 2;
  }

  .dashboard-grid-side {
    position: static;
    order: 3;
  }

  .dashboard-grid-side .quick-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 12px;
    --dashboard-gap: 16px;
  }

  body {
    padding-bottom: 92px;
  }

  .wrap {
    width: min(calc(100% - 24px), 100%);
  }

  .topbar {
    margin-top: 18px;
  }

  .dashboard-grid-side .quick-action-row {
    grid-template-columns: 1fr;
  }

  .dashboard-tournament-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 15B — CORRECTION PLACEMENT DASHBOARD
   Force le contenu principal et la sidebar sur la même ligne desktop.
═══════════════════════════════════════════════════════ */

@media (min-width: 901px) {
  .dashboard-grid-main,
  .dashboard-grid-side {
    align-self: start;
  }

  .dashboard-tournois-section {
    margin-top: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 16 — HEADER DESKTOP + BOTTOM NAV MOBILE
   Navigation unique selon le contexte : horizontale desktop,
   barre basse mobile. Aucun CTA dans le header.
═══════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(190, 200, 203, .72);
  box-shadow: 0 1px 0 rgba(11, 28, 48, .03);
}

.app-header-inner {
  width: min(calc(100% - (var(--page-gutter, 32px) * 2)), var(--page-max, 1320px));
  min-height: 80px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--primary);
  text-align: left;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .shuttle-head {
  fill: rgba(0, 97, 109, .08);
}

.brand-mark .shuttle-rim {
  stroke-width: 3.6;
}

.brand-mark .shuttle-base {
  stroke-width: 4;
}

.brand-name {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.app-nav-desktop {
  justify-self: center;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 48px);
  margin: 0;
  padding: 0;
  overflow: visible;
}

.app-nav-desktop .app-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 80px;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  color: #1D2940;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

.app-nav-desktop .app-nav-btn:hover {
  background: transparent;
  color: var(--primary);
}

.app-nav-desktop .app-nav-btn.active {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.app-nav-desktop .app-nav-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--primary);
}

.app-header-user {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.header-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  color: #334155;
}

.header-icon-btn:hover,
.user-pill:hover {
  background: rgba(0, 97, 109, .06);
}

.header-icon-btn .material-symbols-outlined {
  font-size: 28px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px #fff;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  background: transparent;
  color: #0B1C30;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-cont));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(0, 97, 109, .18);
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.user-meta strong {
  color: #0B1C30;
  font-size: 16px;
  font-weight: 800;
}

.user-meta span {
  color: #64748B;
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}

.user-chevron {
  color: #334155;
  font-size: 22px;
}

/* Header simplifié : logo + navigation uniquement */
.app-header-user,
.header-icon-btn,
.user-pill {
  display: none !important;
}

.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .app-header-inner {
    min-height: 72px;
    grid-template-columns: auto;
    justify-content: start;
  }

  .app-nav-desktop {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .app-header-user {
    gap: 8px;
  }

  .user-meta,
  .user-chevron {
    display: none;
  }

  .user-avatar {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(190, 200, 203, .72);
    box-shadow: 0 -10px 30px rgba(11, 28, 48, .08);
  }

  .bottom-nav-btn {
    position: relative;
    min-width: 0;
    min-height: 56px;
    padding: 4px 2px;
    border-radius: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    color: #526178;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.15;
  }

  .bottom-nav-btn .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
  }

  .bottom-nav-btn.active {
    color: var(--primary);
  }

  .bottom-nav-btn.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
    transform: translateX(-50%);
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .header-icon-btn {
    width: 38px;
    height: 38px;
  }

  .user-avatar {
    width: 38px;
    height: 38px;
  }

  .bottom-nav-btn {
    font-size: 12px;
  }
}

/* Ajustement de rythme après l'ajout du header global */
body {
  padding-top: 0;
}

.wrap {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .wrap {
    margin-top: 16px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 17 — HEADER ALIGNÉ À DROITE + HERO PRO
   Navigation desktop alignée à droite. Hero dashboard avec
   carte flottante, CTA principaux et image badminton.
═══════════════════════════════════════════════════════ */

@media (min-width: 901px) {
  .app-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-nav-desktop {
    justify-self: end;
    justify-content: flex-end;
  }
}

.dashboard-hero-pro {
  position: relative;
  min-height: clamp(260px, 24vw, 340px);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0B1C30;
  border: 1px solid rgba(0, 97, 109, .18);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(11, 28, 48, .10);
}

.dashboard-hero-pro .dashboard-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(4, 30, 38, .36) 0%, rgba(4, 30, 38, .18) 42%, rgba(4, 30, 38, .06) 100%),
    url('../img/dashboard-hero-badminton.png') 76% center / cover no-repeat;
}

.dashboard-hero-pro .dashboard-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 76% 48%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events: none;
}

.dashboard-hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(11, 28, 48, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dashboard-hero-card .dashboard-hero-eyebrow {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-hero-card h2 {
  max-width: none;
  margin: 0;
  color: #0B1C30;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.dashboard-hero-card p {
  max-width: 34ch;
  margin: 10px 0 0;
  color: #536174;
  font-size: 16px;
  line-height: 1.55;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(190, 200, 203, .70);
}

.dashboard-hero-actions .btn,
.dashboard-hero-actions .ghost {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 15px;
}

.dashboard-hero-actions .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.dashboard-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-cont));
  box-shadow: 0 10px 22px rgba(0, 97, 109, .20);
}

.dashboard-hero-secondary {
  background: #FFFFFF;
  color: #0B1C30;
  border-color: rgba(83, 97, 116, .26);
}

.dashboard-hero-pro .dashboard-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
}

.dashboard-hero-pro .dashboard-hero-stats span {
  min-height: auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(190, 200, 203, .70);
  border-radius: 0;
  box-shadow: none;
  color: #536174;
  font-size: 14px;
  line-height: 1.15;
}

.dashboard-hero-pro .dashboard-hero-stats span:first-child {
  padding-left: 0;
}

.dashboard-hero-pro .dashboard-hero-stats span:last-child {
  padding-right: 0;
  border-right: 0;
}

.dashboard-hero-pro .dashboard-hero-stats .material-symbols-outlined {
  grid-row: 1 / span 2;
  color: var(--primary);
  font-size: 27px;
}

.dashboard-hero-pro .dashboard-hero-stats strong {
  color: #0B1C30;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 900px) {
  .dashboard-hero-pro {
    min-height: 420px;
    align-items: flex-end;
    padding: 16px;
  }

  .dashboard-hero-pro .dashboard-hero-visual {
    background:
      linear-gradient(180deg, rgba(4, 30, 38, .08) 0%, rgba(4, 30, 38, .28) 44%, rgba(4, 30, 38, .60) 100%),
      url('../img/dashboard-hero-badminton.png') 68% center / cover no-repeat;
  }

  .dashboard-hero-card {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, .95);
  }

  .dashboard-hero-card h2 {
    font-size: 2rem;
  }

  .dashboard-hero-actions {
    flex-direction: column;
  }

  .dashboard-hero-actions .btn,
  .dashboard-hero-actions .ghost {
    width: 100%;
  }

  .dashboard-hero-pro .dashboard-hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-hero-pro .dashboard-hero-stats span {
    padding: 0;
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .dashboard-hero-pro {
    min-height: 390px;
  }

  .dashboard-hero-card .dashboard-hero-eyebrow {
    font-size: 13px;
  }

  .dashboard-hero-card h2 {
    font-size: 1.7rem;
  }

  .dashboard-hero-card p {
    font-size: 15px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 17B — HERO CORRIGÉ SUR BASE DE LA MAQUETTE
   Hero plus panoramique, suppression du surtitre, CTA côte à côte,
   pictogrammes SVG inline et masque vert dégradé sur l’image.
═══════════════════════════════════════════════════════ */

.dashboard-hero-pro {
  min-height: clamp(230px, 19vw, 275px);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(0, 97, 109, .20);
  box-shadow: 0 12px 36px rgba(11, 28, 48, .10);
}

.dashboard-hero-pro .dashboard-hero-visual {
  background:
    linear-gradient(90deg,
      rgba(0, 97, 109, .78) 0%,
      rgba(0, 97, 109, .58) 34%,
      rgba(0, 97, 109, .26) 62%,
      rgba(0, 97, 109, .10) 100%
    ),
    url('../img/dashboard-hero-badminton.png') 76% center / cover no-repeat;
}

.dashboard-hero-pro .dashboard-hero-visual::after {
  background:
    radial-gradient(circle at 76% 46%, rgba(255,255,255,.16), transparent 33%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}

.dashboard-hero-card {
  width: min(100%, 430px);
  padding: 26px 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(11, 28, 48, .14);
}

.dashboard-hero-card .dashboard-hero-eyebrow {
  display: none;
}

.dashboard-hero-card h2 {
  font-size: clamp(2rem, 2.55vw, 2.45rem);
  letter-spacing: -.05em;
  line-height: 1.05;
}

.dashboard-hero-card p {
  margin-top: 8px;
  max-width: none;
  font-size: 16px;
  line-height: 1.45;
}

.dashboard-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(190, 200, 203, .76);
}

.dashboard-hero-actions .btn,
.dashboard-hero-actions .ghost {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

.dashboard-hero-btn-icon,
.dashboard-hero-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-hero-btn-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-hero-secondary {
  color: var(--primary);
  border-color: rgba(0, 97, 109, .46);
  background: rgba(255,255,255,.92);
}

.dashboard-hero-secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 97, 109, .05);
}

.dashboard-hero-pro .dashboard-hero-stats {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-hero-pro .dashboard-hero-stats span {
  min-width: 0;
  padding: 0 16px;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 9px;
  font-size: 14px;
  line-height: 1.15;
}

.dashboard-hero-pro .dashboard-hero-stats .dashboard-hero-stat-icon {
  grid-row: 1 / span 2;
  color: var(--primary);
}

.dashboard-hero-stat-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-hero-pro .dashboard-hero-stats strong {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 900px) {
  .dashboard-hero-pro {
    min-height: 400px;
    padding: 16px;
  }

  .dashboard-hero-pro .dashboard-hero-visual {
    background:
      linear-gradient(180deg,
        rgba(0, 97, 109, .10) 0%,
        rgba(0, 97, 109, .28) 36%,
        rgba(0, 97, 109, .66) 100%
      ),
      url('../img/dashboard-hero-badminton.png') 68% center / cover no-repeat;
  }

  .dashboard-hero-card {
    padding: 22px;
  }

  .dashboard-hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-hero-pro .dashboard-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-hero-pro .dashboard-hero-stats span {
    padding: 0 10px;
    justify-content: start;
  }
}

@media (max-width: 520px) {
  .dashboard-hero-pro {
    min-height: 380px;
  }

  .dashboard-hero-card h2 {
    font-size: 1.8rem;
  }

  .dashboard-hero-actions {
    margin-top: 18px;
    padding-bottom: 18px;
  }

  .dashboard-hero-stat-icon svg {
    width: 26px;
    height: 26px;
  }

  .dashboard-hero-pro .dashboard-hero-stats strong {
    font-size: 20px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 17C — AFFINAGE HERO
   Fond carte blanc, titre 24px, icônes corrigées, séparateurs stats ajustés.
═══════════════════════════════════════════════════════ */

.dashboard-hero-card {
  background: #FFFFFF;
}

.dashboard-hero-card h2 {
  font-size: 24px;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.dashboard-hero-pro .dashboard-hero-stats {
  gap: 0;
}

.dashboard-hero-pro .dashboard-hero-stats span {
  border-right: 0;
  padding: 0 16px;
  column-gap: 10px;
}

.dashboard-hero-pro .dashboard-hero-stats span:first-child {
  padding-left: 0;
}

.dashboard-hero-pro .dashboard-hero-stats span + span {
  border-left: 1px solid rgba(190, 200, 203, .72);
}

.dashboard-hero-pro .dashboard-hero-stats .dashboard-hero-stat-icon {
  color: var(--primary);
}

.dashboard-hero-pro .dashboard-hero-stats span:nth-child(3) .dashboard-hero-stat-icon,
.dashboard-hero-secondary .dashboard-hero-btn-icon {
  color: #F59025;
}

.dashboard-hero-pro .dashboard-hero-stats strong {
  color: #0B1C30;
}

@media (max-width: 520px) {
  .dashboard-hero-card h2 {
    font-size: 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 18 — HERO ORIENTÉ ACTION + CARTES STATS
   Le hero ne répète plus les données dashboard. Les 4 cartes
   statistiques portent désormais la partie analytique.
═══════════════════════════════════════════════════════ */

.dashboard-grid-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

@media (min-width: 901px) {
  .dashboard-grid-main,
  .dashboard-grid-side {
    grid-row: 3;
  }
}

.dashboard-hero-actions {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-hero-pro .dashboard-hero-stats {
  display: none;
}

.dashboard-stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .72);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 28, 48, .06);
}

.dashboard-stat-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary), var(--primary-cont));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 97, 109, .16);
}

.dashboard-stat-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-stat-icon-trophy {
  background: linear-gradient(135deg, #F59025, #FFAD5A);
  box-shadow: 0 10px 22px rgba(245, 144, 37, .18);
}

.dashboard-stat-content {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-stat-label {
  color: #536174;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-stat-value {
  color: #0B1C30;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.dashboard-stat-note {
  color: #536174;
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .dashboard-stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-grid-stats {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 1;
  }

  .dashboard-stats-section {
    gap: 12px;
  }

  .dashboard-stat-card {
    min-height: 88px;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .dashboard-stats-section {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .dashboard-stat-label,
  .dashboard-stat-note {
    font-size: 14px;
  }

  .dashboard-stat-value {
    font-size: 28px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 19 — AJUSTEMENTS HERO, LOGO ET CARTES STATS
   Hero 200px desktop, logo image fourni, coupe hero en vert,
   valeurs stats 24px / 600.
═══════════════════════════════════════════════════════ */

.brand-mark img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

@media (min-width: 901px) {
  .dashboard-hero-pro {
    min-height: 200px;
    height: 200px;
    padding: 18px 26px;
  }

  .dashboard-hero-card {
    width: min(100%, 430px);
    padding: 22px 28px;
  }
}

.dashboard-hero-secondary .dashboard-hero-btn-icon {
  color: var(--primary);
}

.dashboard-stat-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}

@media (max-width: 520px) {
  .dashboard-stat-value {
    font-size: 24px;
    font-weight: 600;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 20 — TOURNOIS EN COURS + ORDRE STATS
   Container blanc, lien en haut à droite, progression d'encodage,
   espacement 50px après les cartes statistiques.
═══════════════════════════════════════════════════════ */

@media (min-width: 901px) {
  .dashboard-grid-main,
  .dashboard-grid-side {
    margin-top: 50px;
  }
}

.dashboard-tournois-panel {
  padding: 22px 24px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .72);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 28, 48, .06);
}

.dashboard-tournois-head {
  margin-bottom: 18px;
}

.dashboard-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  border: 0;
}

.dashboard-section-link:hover {
  color: var(--primary-cont);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dashboard-section-link .material-symbols-outlined {
  font-size: 21px;
}

.dashboard-tournament-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-tournament-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .72);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(11, 28, 48, .05);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-tournament-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 97, 109, .42);
  box-shadow: 0 12px 28px rgba(11, 28, 48, .09);
}

.dashboard-tournament-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-tournament-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-tournament-card-head h3 {
  margin: 0;
  color: #0B1C30;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.dashboard-tournament-card-head .badge {
  flex: 0 0 auto;
}

.dashboard-tournament-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.dashboard-tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: #536174;
  font-size: 15px;
  line-height: 1.35;
}

.dashboard-tournament-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-tournament-meta .material-symbols-outlined {
  color: #536174;
  font-size: 20px;
}

.dashboard-tournament-progress {
  position: relative;
  height: 7px;
  margin-top: auto;
  overflow: hidden;
  background: #E7EDF3;
  border-radius: 999px;
}

.dashboard-tournament-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-cont));
  border-radius: inherit;
}

.dashboard-tournament-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-tournament-link .material-symbols-outlined {
  font-size: 20px;
}

.dashboard-tournament-card-side {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dashboard-tournament-visual {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #EEF4F6;
  border-radius: 50%;
}

.dashboard-tournament-visual svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-tournament-visual .material-symbols-outlined {
  color: currentColor;
  font-size: 34px;
}

.dashboard-tournament-visual.is-trophy {
  color: #F59025;
  background: rgba(245, 144, 37, .12);
}

.dashboard-tournament-card-side strong {
  color: #0B1C30;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 1180px) {
  .dashboard-tournament-progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-grid-main,
  .dashboard-grid-side {
    margin-top: 0;
  }

  .dashboard-tournois-panel {
    padding: 18px;
  }

  .dashboard-tournois-head {
    align-items: flex-start;
  }

  .dashboard-tournament-progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dashboard-tournois-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .dashboard-tournament-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .dashboard-tournament-card-side {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .dashboard-tournament-visual {
    width: 50px;
    height: 50px;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 21 — Actions rapides bas de page + cartes tournois
   Actions rapides en pleine largeur sous le contenu, cartes tournois
   rapprochées de la référence, badges harmonisés.
═══════════════════════════════════════════════════════ */

@media (min-width: 901px) {
  .dashboard-grid-main {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 50px;
  }

  .dashboard-grid-actions {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

.dashboard-grid-side {
  display: none;
}

.dashboard-grid-actions {
  min-width: 0;
}

.dashboard-grid-actions .dashboard-quick-section {
  margin: 0;
  padding: 22px 24px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .72);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 28, 48, .06);
}

.dashboard-grid-actions .dashboard-quick-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.dashboard-grid-actions .quick-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.dashboard-grid-actions .quick-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
}

.dashboard-grid-actions .quick-action-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.dashboard-tournois-panel {
  padding: 22px 24px 24px;
}

.dashboard-tournois-head {
  align-items: center;
}

.dashboard-tournois-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

.dashboard-tournois-head .badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  justify-content: center;
  font-size: 14px;
}

.dashboard-section-link {
  min-height: auto;
  font-size: 16px;
  font-weight: 700;
}

.dashboard-tournament-progress-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-tournament-card {
  position: relative;
  display: block;
  min-height: 206px;
  padding: 22px 24px 20px;
  padding-right: 118px;
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .78);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(11, 28, 48, .05);
  overflow: hidden;
}

.dashboard-tournament-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
}

.dashboard-tournament-card-head h3 {
  margin: 0;
  max-width: 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.dashboard-status-chip {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.dashboard-status-chip.is-ongoing {
  color: #FFFFFF;
  background: var(--primary);
}

.dashboard-status-chip.is-closed {
  color: #FFFFFF;
  background: #F59025;
}

.dashboard-status-chip.is-pending {
  color: #536174;
  background: #EEF3F6;
}

.dashboard-tournament-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dashboard-tournament-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-tournament-chip.is-type {
  color: #FFFFFF;
  background: var(--primary);
}

.dashboard-tournament-chip.is-level {
  color: #536174;
  background: #F7FAFC;
  border: 1px solid rgba(190, 200, 203, .88);
}

.dashboard-tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
  color: #536174;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-tournament-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-tournament-meta .material-symbols-outlined {
  color: #536174;
  font-size: 22px;
}

.dashboard-tournament-visual-wrap {
  position: absolute;
  top: 86px;
  right: 30px;
}

.dashboard-tournament-visual {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #EEF2F6;
  border-radius: 50%;
}

.dashboard-tournament-visual svg {
  width: 38px;
  height: 38px;
}

.dashboard-tournament-visual .material-symbols-outlined {
  font-size: 38px;
}

.dashboard-tournament-visual.is-trophy {
  color: #F59025;
  background: rgba(245, 144, 37, .12);
}

.dashboard-tournament-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.dashboard-tournament-progress {
  height: 8px;
  margin: 0;
  background: #E7EDF3;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-tournament-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.dashboard-tournament-progress-row strong {
  min-width: 48px;
  color: #0B1C30;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.dashboard-tournament-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 24px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.dashboard-tournament-link .material-symbols-outlined {
  font-size: 21px;
}

.dashboard-tournament-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 97, 109, .42);
  box-shadow: 0 12px 28px rgba(11, 28, 48, .09);
}

@media (max-width: 1180px) {
  .dashboard-tournament-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-actions .quick-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-grid-main,
  .dashboard-grid-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
  }

  .dashboard-grid-actions {
    order: 4;
  }

  .dashboard-tournament-progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dashboard-grid-actions .dashboard-quick-section,
  .dashboard-tournois-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .dashboard-grid-actions .quick-action-row {
    grid-template-columns: 1fr;
  }

  .dashboard-tournament-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .dashboard-status-chip {
    position: static;
    margin-left: auto;
  }

  .dashboard-tournament-visual-wrap {
    position: static;
    display: block;
    margin-top: 16px;
  }

  .dashboard-tournament-visual {
    width: 52px;
    height: 52px;
  }

  .dashboard-tournament-progress-row {
    gap: 12px;
    margin-top: 20px;
  }

  .dashboard-tournament-meta {
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 22 — HERO MASK DESKTOP + LIEN TOURNOIS
   Masque desktop demandé et lien sans font-weight forcé.
═══════════════════════════════════════════════════════ */

@media (min-width: 901px) {
  .dashboard-hero-pro .dashboard-hero-visual {
    background: linear-gradient(90deg, rgba(0, 97, 109, .78) 0%, rgb(0 97 109 / 71%) 34%, rgb(0 97 109 / 41%) 62%, rgb(0 97 109 / 39%) 100%), url(../img/dashboard-hero-badminton.png) 76% center / cover no-repeat;
  }
}

.dashboard-section-link {
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 23 — Refonte propre des cartes Tournois dashboard
   Cartes compactes, sans mélange ancien/nouveau, progression lisible.
═══════════════════════════════════════════════════════ */

.dashboard-tournois-panel {
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .72);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 28, 48, .05);
  padding: 22px 24px 24px;
}

.dashboard-tournois-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-tournois-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--on-surface);
}

.dashboard-tournois-head .badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  border: 0;
}

.dashboard-section-link:hover {
  color: var(--primary-cont);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dashboard-section-link .material-symbols-outlined {
  font-size: 20px;
}

.dashboard-tournament-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-tournament-card {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: block;
  min-width: 0;
  min-height: 144px;
  padding: 16px 18px 14px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .74);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(11, 28, 48, .045);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-tournament-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 97, 109, .36);
  box-shadow: 0 12px 26px rgba(11, 28, 48, .075);
}

.dashboard-tournament-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-tournament-title {
  margin: 0;
  min-width: 0;
  color: #0B1C30;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}

.dashboard-status-chip {
  position: static !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.dashboard-status-chip.is-ongoing {
  color: #FFFFFF;
  background: var(--primary);
}

.dashboard-status-chip.is-closed {
  color: #FFFFFF;
  background: #F59025;
}

.dashboard-status-chip.is-pending {
  color: #536174;
  background: #EEF3F6;
}

.dashboard-tournament-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.dashboard-tournament-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-tournament-chip.is-type {
  color: #FFFFFF;
  background: var(--primary);
}

.dashboard-tournament-chip.is-level {
  color: #536174;
  background: #F8FAFC;
  border: 1px solid rgba(190, 200, 203, .9);
}

.dashboard-tournament-card-bodyline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  margin-top: 18px;
}

.dashboard-tournament-content {
  min-width: 0;
}

.dashboard-tournament-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: #536174;
  font-size: 16px;
  line-height: 1.35;
}

.dashboard-tournament-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.dashboard-tournament-meta .material-symbols-outlined {
  color: #536174;
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 20;
}

.dashboard-tournament-visual-wrap {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-tournament-visual {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #EEF3F6;
  border-radius: 50%;
  opacity: .95;
}

.dashboard-tournament-visual svg {
  width: 33px;
  height: 33px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-tournament-visual .material-symbols-outlined {
  color: currentColor;
  font-size: 32px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.dashboard-tournament-visual.is-trophy {
  color: #F59025;
  background: rgba(245, 144, 37, .12);
}

.dashboard-tournament-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.dashboard-tournament-progress {
  height: 7px;
  margin: 0;
  background: #E7EDF3;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-tournament-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.dashboard-tournament-progress-row strong {
  min-width: 44px;
  color: #0B1C30;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.dashboard-tournament-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 15px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  border: 0;
}

.dashboard-tournament-link:hover {
  color: var(--primary-cont);
}

.dashboard-tournament-link .material-symbols-outlined {
  font-size: 20px;
}

@media (max-width: 1180px) {
  .dashboard-tournament-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-tournois-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .dashboard-tournois-head {
    align-items: flex-start;
  }

  .dashboard-tournament-progress-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tournament-card {
    min-height: 0;
    padding: 16px;
  }

  .dashboard-tournament-card-bodyline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-tournament-visual-wrap {
    display: none;
  }

  .dashboard-tournament-meta {
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 25 — CARTES TOURNOIS UNIFIÉES
   Dashboard + page Tournois
═══════════════════════════════════════════════════════ */
.dashboard-tournament-card {
  border-left: 1px solid rgba(190, 200, 203, .74) !important;
  padding: 16px 18px 14px !important;
}

.dashboard-tournament-visual-wrap,
.dashboard-tournament-visual {
  display: none !important;
}

.dashboard-tournament-card-bodyline {
  display: block !important;
  grid-template-columns: 1fr !important;
}

.dashboard-tournament-title {
  padding-right: 0;
}

.dashboard-tournament-meta {
  font-size: 14px !important;
}

.dashboard-tournament-progress-row strong {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.dashboard-tournament-link {
  font-weight: 400 !important;
}

.dashboard-tournament-chip {
  font-size: 12px !important;
}

.grid:has(.tournament-page-card) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tournament-page-card {
  position: relative !important;
}

.tournament-page-card .dashboard-tournament-title {
  padding-right: 36px;
}

.tournament-page-menu-btn {
  position: absolute !important;
  top: 12px !important;
  right: 10px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #8491A3 !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
}

.tournament-page-menu-btn:hover {
  background: rgba(84, 95, 115, .08) !important;
  color: var(--on-surface) !important;
}

.tournament-page-menu-btn .material-symbols-outlined {
  font-size: 22px !important;
}

.tournament-page-card .menu {
  top: 46px;
  right: 12px;
}

@media (max-width: 1180px) {
  .grid:has(.tournament-page-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid:has(.tournament-page-card) {
    grid-template-columns: 1fr;
  }

  .dashboard-tournament-card {
    padding: 16px !important;
  }
}

.tournament-page-card .dashboard-status-chip {
  margin-right: 34px;
}

@media (max-width: 760px) {
  .tournament-page-card .dashboard-status-chip {
    margin-right: 32px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 26 — MATCHS RÉCENTS EN CONTAINER + BADGES
═══════════════════════════════════════════════════════ */
.dashboard-status-chip {
  font-size: 12px !important;
}

.dashboard-matches-panel {
  background: #FFFFFF;
  border: 1px solid rgba(190, 200, 203, .72);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(11, 28, 48, .05);
  padding: 22px 24px 24px;
}

.dashboard-matches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-matches-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--on-surface);
}

.dashboard-matches-head .badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-matches-panel .matches-table-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.dashboard-matches-panel .matches-table-wrap {
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  overflow-x: auto;
}

.dashboard-matches-panel .matches-table {
  min-width: 720px;
}

.dashboard-matches-panel .matches-table th {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-matches-panel .matches-table td {
  padding: 14px 18px;
  font-size: 14px;
}

.dashboard-matches-panel .matches-table-footer {
  margin-top: 12px;
  padding: 0;
}

.dashboard-matches-panel .matches-table-count {
  color: #536174;
  font-size: 14px;
}

@media (max-width: 760px) {
  .dashboard-matches-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .dashboard-matches-head {
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 27 — RYTHME VERTICAL DASHBOARD
   +10px au-dessus du Hero et espacements harmonisés à 30px.
═══════════════════════════════════════════════════════ */
:root {
  --dashboard-gap: 30px;
}

.wrap {
  margin-top: 34px;
}

.dashboard-grid-layout {
  row-gap: 30px;
}

.dashboard-grid-layout .dashboard-section,
.dashboard-grid-main > .dashboard-section,
.dashboard-after-quick-actions,
.dashboard-tournois-panel,
.dashboard-matches-panel,
.dashboard-grid-actions {
  margin-bottom: 30px;
}

.dashboard-grid-layout .dashboard-after-quick-actions {
  margin-top: 0 !important;
}

@media (min-width: 901px) {
  .dashboard-grid-main,
  .dashboard-grid-actions {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .wrap {
    margin-top: 26px;
  }

  .dashboard-grid-layout {
    gap: 30px;
  }
}

@media (max-width: 560px) {
  :root {
    --dashboard-gap: 30px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 37 — DÉTAIL TOURNOI / VUE D’ENSEMBLE DYNAMIQUE
   Schéma + classement provisoire, plus léger et plus vivant.
═══════════════════════════════════════════════════════ */
.tournament-overview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) 360px;
  gap: 24px;
  align-items: start;
}

.tournament-overview-main,
.tournament-overview-side {
  padding: 24px;
}

.tournament-overview-main {
  overflow: hidden;
}

.overview-surface {
  display: grid;
  gap: 22px;
}

.overview-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.overview-shell-kicker {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.overview-shell-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.overview-shell-sub {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.overview-shell-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 97, 109, .06);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.overview-shell-progress strong {
  color: var(--text-main);
}

.overview-stage-list {
  display: grid;
  gap: 14px;
}

.overview-stage-card {
  border: 1px solid rgba(190, 200, 203, .95);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,250,255,.96) 100%);
  box-shadow: 0 10px 24px rgba(11, 28, 48, .06);
  padding: 18px;
}

.overview-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-stage-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.overview-stage-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.overview-stage-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 97, 109, .08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.overview-pools-grid,
.overview-knockout-grid {
  display: grid;
  gap: 14px;
}

.overview-pools-grid.two,
.overview-knockout-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-pool-card,
.overview-knockout-card {
  border: 1px solid rgba(190, 200, 203, .85);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  padding: 14px;
}

.overview-pool-title,
.overview-knockout-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.overview-pool-title strong,
.overview-knockout-title strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.overview-pool-sub,
.overview-knockout-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.overview-match-stack {
  display: grid;
  gap: 10px;
}

.overview-mini-match {
  padding: 10px 0;
  border-top: 1px solid rgba(190, 200, 203, .8);
}

.overview-mini-match:first-child {
  border-top: 0;
  padding-top: 0;
}

.overview-mini-match:last-child {
  padding-bottom: 0;
}

.overview-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.overview-mini-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.overview-mini-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.overview-mini-state.pending {
  background: rgba(84, 95, 115, .10);
  color: var(--secondary);
}

.overview-mini-state.done {
  background: rgba(0, 97, 109, .10);
  color: var(--primary);
}

.overview-mini-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.overview-mini-team {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.overview-mini-team.right {
  text-align: right;
}

.overview-mini-team small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.overview-mini-vs {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-stage-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.overview-stage-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 97, 109, .14);
}

.overview-stage-arrow span {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 97, 109, .16);
  color: var(--primary);
  font-size: 15px;
  box-shadow: 0 6px 12px rgba(11, 28, 48, .05);
}

.overview-final-winner {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 97, 109, .09) 0%, rgba(0, 97, 109, .05) 100%);
  color: var(--text-main);
}

.overview-final-winner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 97, 109, .12);
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.overview-final-winner strong {
  display: block;
  font-size: 15px;
}

.overview-final-winner span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.overview-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.overview-side-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.overview-ranking-list {
  display: grid;
  gap: 12px;
}

.overview-ranking-card {
  border: 1px solid rgba(190, 200, 203, .9);
  border-radius: 16px;
  background: rgba(248, 250, 255, .92);
  padding: 14px;
}

.overview-ranking-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.overview-ranking-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(190, 200, 203, .75);
}

.overview-ranking-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.overview-ranking-row:last-child {
  padding-bottom: 0;
}

.overview-rank-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 97, 109, .08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.overview-rank-team {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.overview-rank-team small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.overview-rank-value {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .tournament-overview-shell {
    grid-template-columns: 1fr;
  }

  .tournament-overview-side {
    order: -1;
  }

  .overview-ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .overview-pools-grid.two,
  .overview-knockout-grid.two,
  .overview-ranking-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tournament-overview-main,
  .tournament-overview-side {
    padding: 18px;
  }

  .overview-shell-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-mini-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .overview-mini-team.right {
    text-align: left;
  }

  .overview-mini-vs {
    justify-self: start;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 38 — DÉTAIL TOURNOI EN GRILLE 1440PX
   Conserve la refonte Modif 37, mais exploite toute la largeur utile.
═══════════════════════════════════════════════════════ */
:root {
  --page-max: 1440px;
}

#pg-tournoi {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

@media (min-width: 1181px) {
  #pg-tournoi .tournament-overview-shell {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
  }

  #pg-tournoi .tournament-overview-main,
  #pg-tournoi .tournament-overview-side {
    padding: 28px;
  }
}

@media (min-width: 1400px) {
  #pg-tournoi .tournament-overview-shell {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 32px;
  }

  #pg-tournoi .overview-stage-card {
    padding: 22px;
  }

  #pg-tournoi .overview-pools-grid,
  #pg-tournoi .overview-knockout-grid {
    gap: 18px;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 41 — Modal d'encodage depuis la vue d'ensemble
═══════════════════════════════════════════════════════ */
body.modal-open {
  overflow: hidden;
}

.schema-match-row-v41,
.schema-ko-pill-v41.is-openable,
.schema-final-card-v41.is-openable {
  cursor: pointer;
}

.schema-match-row-v41:hover,
.schema-match-row-v41:focus-visible,
.schema-ko-pill-v41.is-openable:hover,
.schema-ko-pill-v41.is-openable:focus-visible,
.schema-final-card-v41.is-openable:hover,
.schema-final-card-v41.is-openable:focus-visible {
  outline: none;
  border-color: rgba(0, 97, 109, .32);
  background: rgba(0, 97, 109, .045);
  box-shadow: 0 8px 20px rgba(11, 28, 48, .08);
  transform: translateY(-1px);
}

.schema-match-row-v41 {
  grid-template-columns: 28px minmax(0, 1fr) 32px minmax(0, 1fr) auto auto;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.schema-team-v39.is-winner,
.schema-ko-team-v41.is-winner,
.schema-final-pill-v41 .is-winner {
  color: var(--primary);
  font-weight: 800;
}

.schema-score-v41 {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.schema-score-v41.final {
  margin-top: 10px;
}

.schema-status-v41 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(84, 95, 115, .10);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.schema-status-v41.progress {
  background: rgba(224, 123, 0, .11);
  color: var(--warning);
}

.schema-status-v41.done {
  background: rgba(27, 140, 90, .11);
  color: var(--success);
}

.schema-status-v41.locked {
  background: rgba(84, 95, 115, .08);
  color: rgba(84, 95, 115, .72);
}

.schema-ko-pill-v41,
.schema-final-card-v41 {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.schema-ko-pill-v41 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.schema-ko-pill-v41 em {
  grid-column: 1 / -1;
  color: var(--secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.schema-ko-pill-v41 .schema-status-v41 {
  grid-column: 1 / -1;
  justify-self: start;
}

.schema-final-winner-v41 {
  margin-top: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.match-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 28, 48, .42);
  backdrop-filter: blur(8px);
}

.match-modal-backdrop.open {
  display: flex;
}

.match-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(190, 200, 203, .95);
  box-shadow: 0 28px 80px rgba(11, 28, 48, .24);
}

.match-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(190, 200, 203, .72);
}

.match-modal-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.match-modal-head h2 {
  margin-top: 4px;
  font-size: 24px;
}

.match-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-container-low);
  color: var(--secondary);
  font-size: 26px;
  line-height: 1;
}

.match-modal-body {
  padding: 24px;
}

.match-modal-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 22px;
}

.match-modal-team {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 249, 255, .96);
  border: 1px solid rgba(190, 200, 203, .82);
}

.match-modal-team.right {
  text-align: right;
}

.match-modal-team strong {
  display: block;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.2;
}

.match-modal-team span {
  display: block;
  margin-top: 5px;
  color: var(--secondary);
  font-size: 12px;
}

.match-modal-team.is-winner {
  border-color: rgba(0, 97, 109, .32);
  background: rgba(0, 97, 109, .06);
}

.match-modal-team.is-winner strong {
  color: var(--primary);
}

.match-modal-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.match-modal-sets {
  display: grid;
  gap: 12px;
}

.match-modal-set-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.match-modal-set-row > span {
  align-self: center;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
}

.match-modal-set-row label {
  display: grid;
  gap: 6px;
}

.match-modal-set-row small {
  min-height: 16px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-modal-set-row input {
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.match-modal-set-row input.won {
  border-color: rgba(0, 97, 109, .55);
  background: rgba(0, 97, 109, .06);
  color: var(--primary);
}

.match-modal-help,
.match-modal-result {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-container-low);
  color: var(--secondary);
  font-size: 13px;
}

.match-modal-result {
  background: rgba(27, 140, 90, .08);
  color: var(--success);
}

.match-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(190, 200, 203, .72);
}

@media (max-width: 760px) {
  .schema-match-row-v41 {
    grid-template-columns: 24px minmax(0, 1fr) 28px minmax(0, 1fr);
  }

  .schema-match-row-v41 .schema-score-v41,
  .schema-match-row-v41 .schema-status-v41 {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .match-modal-backdrop {
    padding: 12px;
  }

  .match-modal-head,
  .match-modal-body,
  .match-modal-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .match-modal-versus {
    grid-template-columns: 1fr;
  }

  .match-modal-team.right {
    text-align: left;
  }

  .match-modal-vs {
    min-height: 24px;
  }

  .match-modal-set-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .match-modal-actions {
    flex-direction: column-reverse;
  }

  .match-modal-actions .btn,
  .match-modal-actions .ghost {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 41 — Styles de base du schéma unifié
   Ajoutés pour fiabiliser la V40/V41 même si les styles v39 ne sont pas présents.
═══════════════════════════════════════════════════════ */
.tournament-overview-shell-v39 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.tournament-schema-panel-v39,
.tournament-rank-panel-v39 {
  border-radius: 22px;
  background: #fff;
}

.schema-title-v39 {
  margin-bottom: 22px;
  font-size: 26px;
  font-weight: 800;
}

.schema-flow-v39 {
  display: grid;
  gap: 18px;
}

.schema-section-v39 {
  display: grid;
  gap: 14px;
}

.schema-section-head-v39 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--secondary);
  font-size: 13px;
}

.schema-section-head-v39 h3 {
  font-size: 16px;
  font-weight: 800;
}

.schema-pools-grid-v39,
.schema-ko-grid-v39 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.schema-pools-grid-v39.two,
.schema-ko-grid-v39.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schema-pool-v39,
.schema-ko-card-v39,
.schema-final-card-v39 {
  border: 1px solid rgba(190, 200, 203, .86);
  border-radius: 18px;
  background: rgba(248, 249, 255, .72);
  padding: 14px;
}

.schema-pool-head-v39,
.schema-ko-head-v39,
.schema-final-label-v39 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.schema-pool-head-v39 strong,
.schema-ko-head-v39 strong,
.schema-final-label-v39 strong {
  font-size: 14px;
  font-weight: 800;
}

.schema-round-v39 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 97, 109, .10);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.schema-round-v39.small {
  width: auto;
  min-width: 36px;
  height: 24px;
  border-radius: 999px;
  padding: 0 9px;
}

.schema-match-list-v39 {
  display: grid;
  gap: 8px;
}

.schema-match-row-v39 {
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(190, 200, 203, .68);
  border-radius: 14px;
  background: #fff;
}

.schema-index-v39 {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-low);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
}

.schema-team-v39,
.schema-ko-team-v41,
.schema-final-pill-v41 span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}

.schema-team-v39.right {
  text-align: right;
}

.schema-vs-v39,
.schema-ko-pill-v39 strong,
.schema-final-pill-v39 strong {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.schema-victory-v39 {
  display: none;
}

.schema-pool-foot-v39 {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}

.schema-connector-v39 {
  display: flex;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.schema-ko-pill-v39,
.schema-final-pill-v39 {
  border: 1px solid rgba(190, 200, 203, .68);
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
}

.schema-final-label-v39 {
  justify-content: space-between;
  margin-bottom: 10px;
}

.schema-final-icon-v39 {
  margin-right: auto;
}

.rank-head-v39,
.rank-pool-title-v39,
.rank-row-v39 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.rank-head-v39 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rank-head-v39 h3 {
  font-size: 16px;
  font-weight: 800;
}

.rank-pools-v39 {
  display: grid;
  gap: 14px;
}

.rank-pool-v39 {
  padding: 12px;
  border: 1px solid rgba(190, 200, 203, .78);
  border-radius: 16px;
  background: rgba(248, 249, 255, .76);
}

.rank-pool-title-v39 {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
}

.rank-row-v39 {
  padding: 8px 0;
  border-top: 1px solid rgba(190, 200, 203, .62);
  font-size: 13px;
}

.rank-name-v39 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .tournament-overview-shell-v39 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .schema-pools-grid-v39.two,
  .schema-ko-grid-v39.two {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   MODIFICATION 42B — Respect du design de l’arbre + centrage des équipes
═══════════════════════════════════════════════════════ */
.schema-match-row-v41 {
  grid-template-columns: 28px minmax(0, 1fr) 40px minmax(0, 1fr) 44px;
  align-items: center;
}

.schema-match-row-v41 .schema-team-v39,
.schema-match-row-v41 .schema-team-v39.right {
  text-align: center;
}

.schema-victory-v39 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.schema-ko-pill-v41,
.schema-final-pill-v41 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.schema-ko-pill-v41 .schema-ko-team-v41,
.schema-final-pill-v41 span {
  text-align: center;
}

.schema-final-card-v41 {
  border-color: rgba(224, 123, 0, .52);
  background: rgba(255, 249, 243, .95);
}

.schema-final-card-v41 .schema-final-pill-v41 {
  background: #fff;
}

.schema-final-card-v41 .schema-final-label-v39 {
  justify-content: flex-start;
  gap: 12px;
}

.schema-ko-pill-v41 em,
.schema-ko-pill-v41 .schema-status-v41,
.schema-final-card-v41 .schema-score-v41,
.schema-final-card-v41 .schema-status-v41,
.schema-final-winner-v41 {
  display: none !important;
}

@media (max-width: 760px) {
  .schema-match-row-v41 {
    grid-template-columns: 24px minmax(0, 1fr) 28px minmax(0, 1fr) 38px;
  }
}

/* MODIFICATION 43 — Arbre allégé + compositions d'équipes */
.schema-pool-v39 {
  border: 0;
  background: transparent;
  padding: 0;
}

.schema-pool-head-v39 {
  margin-bottom: 10px;
}

.schema-pool-foot-v39 {
  margin-top: 10px;
  padding-left: 2px;
}

.schema-semi-card-v43 {
  background: #F7FBFC;
  border-color: rgba(190, 200, 203, .72);
}

.schema-final-card-v41 {
  background: #FEF7F2;
  border-color: rgba(224, 123, 0, .32);
}

.schema-match-row-v39,
.schema-ko-pill-v39,
.schema-final-pill-v39 {
  box-shadow: none;
}

.schema-team-v39,
.schema-ko-team-v41,
.schema-final-pill-v41 span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

.schema-match-row-v41 {
  min-height: 48px;
}

.schema-ko-pill-v41,
.schema-final-pill-v41 {
  min-height: 42px;
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 45 — Badges de statut + scores dans les cartes de match
═══════════════════════════════════════════════════════ */
.schema-match-row-v41 {
  grid-template-columns: 28px minmax(0, 1fr) 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.schema-team-cell-v45 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.schema-team-cell-v45.right {
  text-align: center;
}

.schema-team-cell-v45 .schema-team-v39,
.schema-team-cell-v45 .schema-team-v39.right {
  text-align: center;
}

.schema-team-cell-v45.is-winner .schema-team-v39 {
  color: var(--primary);
  font-weight: 800;
}

.schema-team-score-v45 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.schema-match-badge-v45 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(84, 95, 115, .10);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.schema-match-badge-v45.progress {
  background: rgba(224, 123, 0, .11);
  color: var(--warning);
}

.schema-match-badge-v45.done {
  background: rgba(27, 140, 90, .11);
  color: var(--success);
}

.schema-match-badge-v45.locked {
  background: rgba(84, 95, 115, .08);
  color: rgba(84, 95, 115, .78);
}

.schema-victory-v39 {
  display: none !important;
}

@media (max-width: 760px) {
  .schema-match-row-v41 {
    grid-template-columns: 24px minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: start;
  }

  .schema-match-row-v41 .schema-match-badge-v45 {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 2px;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 46 — Cartes KO entièrement cliquables
═══════════════════════════════════════════════════════ */
.schema-ko-card-v39.is-openable,
.schema-semi-card-v43.is-openable,
.schema-final-card-v41.is-openable {
  cursor: pointer;
}

.schema-ko-card-v39.is-openable:hover,
.schema-semi-card-v43.is-openable:hover,
.schema-final-card-v41.is-openable:hover {
  border-color: rgba(0, 97, 109, .32);
  box-shadow: 0 8px 20px rgba(11, 28, 48, .08);
  transform: translateY(-1px);
}

.schema-ko-pill-v41 {
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) auto;
}

.schema-ko-pill-v41 .schema-match-badge-v45 {
  justify-self: end;
}

.schema-final-label-v39 .schema-match-badge-v45 {
  margin-left: auto;
}

@media (max-width: 760px) {
  .schema-ko-pill-v41 {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  }

  .schema-ko-pill-v41 .schema-match-badge-v45 {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


/* ═══════════════════════════════════════════════════════
   MODIFICATION 47 — Page Tournois : hero, tabs, filtres, tri
═══════════════════════════════════════════════════════ */
.tournaments-hero-v47 {
  position: relative;
  min-height: 158px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 28px;
  margin: -8px 0 0;
  overflow: hidden;
}

.tournaments-hero-v47::before {
  content: '';
  position: absolute;
  inset: -80px -18px -28px -18px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248,249,255,.98) 0%, rgba(248,249,255,.82) 48%, rgba(248,249,255,.10) 100%),
    url('matches-background.png') right top / auto 240px no-repeat;
  pointer-events: none;
}

.tournaments-hero-content-v47 h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tournaments-hero-content-v47 p {
  margin-top: 14px;
  color: #66758B;
  font-size: 18px;
  font-weight: 500;
}

.tournaments-create-btn-v47 {
  min-height: 52px;
  align-self: flex-end;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(0, 97, 109, .20);
}

.tournaments-create-btn-v47 .material-symbols-outlined {
  font-size: 22px;
}

.tournaments-tabs-v47 {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: -8px 0 18px;
  border-bottom: 1px solid rgba(190, 200, 203, .46);
  overflow-x: auto;
  scrollbar-width: none;
}

.tournaments-tabs-v47::-webkit-scrollbar {
  display: none;
}

.tournaments-tab-v47 {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #3E4A5F;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.tournaments-tab-v47 strong {
  min-width: 30px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 97, 109, .08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.tournaments-tab-v47.active {
  background: rgba(255,255,255,.72);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(11, 28, 48, .06);
}

.tournaments-tab-v47.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.tournaments-toolbar-v47 {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 220px 280px;
  gap: 16px;
  padding: 22px 12px 24px;
  margin: 0 -2px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(190, 200, 203, .36);
  box-shadow: 0 10px 26px rgba(11, 28, 48, .04);
}

.tournaments-search-v47 {
  position: relative;
  display: block;
}

.tournaments-search-v47 .material-symbols-outlined {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 24px;
  pointer-events: none;
}

.tournaments-search-v47 input,
.tournaments-toolbar-v47 select {
  min-height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(190, 200, 203, .62);
  box-shadow: 0 4px 14px rgba(11, 28, 48, .035);
  color: #13233A;
  font-size: 15px;
  font-weight: 700;
}

.tournaments-search-v47 input {
  padding-left: 62px;
  font-weight: 500;
}

.tournaments-toolbar-v47 select {
  cursor: pointer;
}

.tournaments-grid-v47 {
  margin-top: 10px;
}

.tournaments-empty-v47 {
  min-height: 38vh;
}

@media (max-width: 1180px) {
  .tournaments-toolbar-v47 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .tournaments-hero-v47 {
    min-height: 132px;
    padding: 26px 0 18px;
    flex-direction: column;
  }

  .tournaments-hero-v47::before {
    background:
      linear-gradient(90deg, rgba(248,249,255,.98) 0%, rgba(248,249,255,.78) 56%, rgba(248,249,255,.22) 100%),
      url('matches-background.png') right top / auto 170px no-repeat;
  }

  .tournaments-create-btn-v47 {
    display: none;
  }

  .tournaments-tabs-v47 {
    gap: 10px;
    margin-top: 0;
  }

  .tournaments-tab-v47 {
    min-height: 50px;
    padding: 0 12px;
    font-size: 14px;
  }

  .tournaments-toolbar-v47 {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }

  .tournaments-search-v47 input,
  .tournaments-toolbar-v47 select {
    min-height: 52px;
  }
}


/* ═══════════════════════════════════════════════════════
   RESTAURATION V49 — Page Matchs validée
═══════════════════════════════════════════════════════ */
.matches-page-v49 {
  display: grid;
  gap: 20px;
}

.matches-title-v49 {
  margin-bottom: 0;
}

.matches-title-v49 h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.free-matches-note-v49 {
  width: min(720px, 100%);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  background: rgba(255, 255, 255, .82);
  border-color: rgba(190, 200, 203, .54);
  box-shadow: 0 6px 18px rgba(11, 28, 48, .06);
}

.free-matches-note-v49 .material-symbols-outlined {
  color: var(--primary);
  font-size: 22px;
}

.match-stats-grid-v49 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.match-stat-card-v49 {
  min-height: 100px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(190, 200, 203, .52);
  box-shadow: 0 10px 28px rgba(11, 28, 48, .07);
}

.match-stat-card-v49 .match-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 97, 109, .18);
}

.match-stat-card-v49 .match-stat-icon-double {
  background: #FF7A00;
  box-shadow: 0 8px 18px rgba(255, 122, 0, .18);
}

.match-stat-copy-v49 {
  position: relative;
  z-index: 1;
}

.match-stat-card-v49 .match-stat-label {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.match-stat-card-v49 .match-stat-value {
  margin-top: 2px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.match-stat-card-v49 .match-stat-value.orange {
  color: #FF7A00;
}

.match-stat-arrow {
  justify-self: end;
  color: var(--text-main);
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.match-stat-sparkline {
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 150px;
  height: 48px;
  fill: none;
  opacity: .54;
}

.match-stat-sparkline path {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.match-stat-sparkline.orange path {
  stroke: #FF7A00;
}

.matches-table-card-v49 {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(190, 200, 203, .52);
  box-shadow: 0 14px 36px rgba(11, 28, 48, .08);
}

.matches-table-title-v49 {
  padding: 20px 22px 12px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
}

.matches-table-v49 {
  width: 100%;
  border-collapse: collapse;
}

.matches-table-v49 th {
  padding: 14px 22px;
  background: rgba(248, 249, 255, .78);
  color: var(--secondary);
  border-top: 1px solid rgba(190, 200, 203, .42);
  border-bottom: 1px solid rgba(190, 200, 203, .42);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.matches-table-v49 td {
  padding: 11px 22px;
  border-bottom: 1px solid rgba(190, 200, 203, .42);
  color: var(--text-main);
  font-size: 14px;
}

.matches-table-v49 tr:last-child td {
  border-bottom: 0;
}

.match-main-v49 {
  display: grid;
  grid-template-columns: 40px minmax(150px, 1fr) 1px 44px 1px 40px minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
}

.match-avatar-v49 {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.match-avatar-v49.pale {
  background: #DFF1F4;
  color: #35536E;
}

.match-name-v49 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #27405F;
  font-weight: 700;
}

.match-separator-v49 {
  height: 24px;
  width: 1px;
  background: rgba(190, 200, 203, .56);
}

.match-vs-v49 {
  color: var(--primary);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.match-type-badge-v49 {
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.match-type-badge-v49 .material-symbols-outlined {
  font-size: 16px;
}

.match-type-simple {
  background: rgba(13, 123, 138, .10) !important;
  color: var(--primary) !important;
  border-color: rgba(13, 123, 138, .10) !important;
}

.match-type-double {
  background: rgba(255, 122, 0, .10) !important;
  color: #FF7A00 !important;
  border-color: rgba(255, 122, 0, .10) !important;
}

.match-date-v49 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #657892;
  white-space: nowrap;
  font-weight: 600;
}

.match-date-v49 .material-symbols-outlined {
  font-size: 18px;
  color: #6B7F9A;
}

.match-score-pill-v49 {
  min-width: 104px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .10);
}

.match-arrow-cell-v49 {
  width: 38px;
  color: #667B98;
  text-align: right;
}

.match-arrow-cell-v49 .material-symbols-outlined {
  font-size: 22px;
}

.matches-table-footer-v49 {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid rgba(190, 200, 203, .42);
}

.footer-shuttle-v49 {
  margin-right: 8px;
}

.matches-pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.matches-page-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(190, 200, 203, .70);
  color: #35536E;
  font-size: 16px;
  font-weight: 800;
}

.matches-page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(0, 97, 109, .18);
}

.matches-page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 1020px) {
  .match-stats-grid-v49 {
    grid-template-columns: 1fr;
  }

  .match-stat-sparkline {
    display: none;
  }

  .matches-table-v49,
  .matches-table-v49 thead,
  .matches-table-v49 tbody,
  .matches-table-v49 tr,
  .matches-table-v49 th,
  .matches-table-v49 td {
    display: block;
  }

  .matches-table-v49 thead {
    display: none;
  }

  .matches-table-v49 tr {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(190, 200, 203, .42);
  }

  .matches-table-v49 td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .match-main-v49 {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .match-separator-v49,
  .match-vs-v49 {
    display: none;
  }

  .match-avatar-v49.pale {
    grid-column: 1;
  }

  .matches-table-footer-v49 {
    flex-direction: column;
    align-items: stretch;
  }
}
