/* ============================================================================
   COUPE DU MONDE — Pronostics
   Stylesheet complet, pur CSS, prêt à coller dans le projet Blazor.
   Compatible Bootstrap 5.3 + Bootstrap Icons + flag-icons.
   Mobile-first, dark-mode-ready (variables dupliquées en bas).
   ============================================================================ */

/* ---------- 1. TOKENS — VARIABLES CSS ---------- */
:root {
  /* Couleurs de marque */
  --wc-primary:        #0A1A52;          /* Bleu nuit (deeper) */
  --wc-primary-light:  #1D3499;
  --wc-primary-soft:   #E8ECFB;
  --wc-accent:         #E11D48;          /* Rouge vif */
  --wc-accent-soft:    #FEE2E8;
  --wc-gold:           #F4B81E;
  --wc-gold-soft:      #FEF3CA;

  /* Surfaces & ink */
  --wc-bg:             #F5F6FA;
  --wc-bg-2:           #ECEFF6;
  --wc-surface:        #FFFFFF;
  --wc-surface-2:      #F9FAFC;
  --wc-ink:            #0F172A;
  --wc-ink-soft:       #475569;
  --wc-ink-muted:      #94A3B8;
  --wc-line:           #E2E8F0;
  --wc-line-strong:    #CBD5E1;

  /* Sémantique */
  --wc-success:        #10B981;
  --wc-success-soft:   #D1FAE5;
  --wc-warning:        #F59E0B;
  --wc-warning-soft:   #FEF3C7;
  --wc-danger:         #EF4444;
  --wc-danger-soft:    #FEE2E2;
  --wc-info:           #0EA5E9;

  /* Médailles podium */
  --wc-gold-1:         #F4B81E;
  --wc-gold-2:         #C9931A;
  --wc-silver-1:       #CBD5E1;
  --wc-silver-2:       #94A3B8;
  --wc-bronze-1:       #D97757;
  --wc-bronze-2:       #A6553A;

  /* Gradients */
  --wc-grad-navy:      linear-gradient(135deg, #0A1A52 0%, #1D3499 100%);
  --wc-grad-navy-deep: linear-gradient(135deg, #050E33 0%, #1D3499 60%, #2E4FD8 100%);
  --wc-grad-hero:      linear-gradient(135deg, #0A1A52 0%, #2E4FD8 50%, #E11D48 130%);
  --wc-grad-gold:      linear-gradient(135deg, #F4B81E 0%, #E89F0A 100%);
  --wc-grad-accent:    linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  --wc-grad-success:   linear-gradient(135deg, #10B981 0%, #047857 100%);

  /* Rayons */
  --wc-radius-sm:      6px;
  --wc-radius:         12px;
  --wc-radius-lg:      18px;
  --wc-radius-xl:      24px;
  --wc-radius-pill:    999px;

  /* Ombres */
  --wc-shadow-xs:      0 1px 2px rgba(15, 23, 42, .06);
  --wc-shadow-sm:      0 2px 6px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --wc-shadow:         0 4px 16px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --wc-shadow-lg:      0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .04);
  --wc-shadow-hero:    0 24px 60px rgba(10, 26, 82, .35), 0 8px 16px rgba(10, 26, 82, .2);
  --wc-shadow-navy:    0 8px 24px rgba(10, 26, 82, .24);

  /* Typo */
  --wc-font-display:   'Bricolage Grotesque', 'Inter', system-ui, -apple-system, sans-serif;
  --wc-font-body:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wc-font-mono:      'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Transitions */
  --wc-ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --wc-ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --wc-t:              180ms var(--wc-ease);
  --wc-t-slow:         300ms var(--wc-ease-out);

  /* Layout */
  --wc-nav-h:          64px;
  --wc-bottom-nav-h:   68px;
  --wc-container:      1200px;
}

/* ---------- 2. BASE ---------- */
html, body {
  background: var(--wc-bg);
  color: var(--wc-ink);
  font-family: var(--wc-font-body);
  font-feature-settings: 'cv02', 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

.wc-display { font-family: var(--wc-font-display); letter-spacing: -0.02em; font-weight: 700; }
.wc-mono { font-family: var(--wc-font-mono); font-variant-numeric: tabular-nums; }
.wc-tabular { font-variant-numeric: tabular-nums; }

/* ---------- 3. LAYOUT GENERAL ---------- */
.wc-app {
  min-height: 100vh;
  padding-top: var(--wc-nav-h);
  padding-bottom: 24px;
}
@media (max-width: 768px) {
  .wc-app { padding-bottom: calc(var(--wc-bottom-nav-h) + 16px); }
}

.wc-container {
  max-width: var(--wc-container);
  margin: 0 auto;
  padding: 24px;
}
@media (max-width: 576px) {
  .wc-container { padding: 16px; }
}

.wc-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
@media (max-width: 576px) {
  .wc-page-header { margin-bottom: 14px; gap: 6px; }
  .wc-page-subtitle { font-size: 12px; margin-top: 3px; }
  .wc-page-header .wc-eyebrow { display: none; }
  /* Hide the live indicator tag on small screens; it's not essential */
  .wc-page-header > div:nth-child(2) { display: none; }
  .wc-page-title { font-size: 24px; }
}

.wc-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wc-primary-light);
  margin-bottom: 6px;
}

.wc-page-title {
  font-family: var(--wc-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--wc-ink);
  line-height: 1.05;
  margin: 0;
}

.wc-page-subtitle {
  color: var(--wc-ink-soft);
  font-size: 15px;
  margin-top: 6px;
}

.wc-section-title {
  font-family: var(--wc-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wc-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--wc-grad-navy);
  border-radius: 2px;
}

/* ---------- 4. NAVBAR ---------- */
.wc-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wc-nav-h);
  background: var(--wc-grad-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: var(--wc-shadow-navy);
}
@media (max-width: 576px) {
  .wc-navbar { padding: 0 16px; }
}

.wc-navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 100px at 20% 0%, rgba(46, 79, 216, .4), transparent),
    radial-gradient(ellipse 600px 100px at 80% 0%, rgba(225, 29, 72, .15), transparent);
  pointer-events: none;
}

.wc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--wc-font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.wc-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--wc-grad-gold);
  display: grid;
  place-items: center;
  color: #0A1A52;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(244, 184, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.wc-brand-text { display: flex; flex-direction: column; line-height: 1; }
.wc-brand-text small { font-size: 10px; font-weight: 500; opacity: .65; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }

.wc-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .wc-nav-links { display: none; }
}

.wc-nav-link {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--wc-radius-pill);
  position: relative;
  transition: color var(--wc-t), background var(--wc-t);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-nav-link i { font-size: 16px; opacity: .85; }
.wc-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.wc-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.wc-nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: -2px;
  height: 2px;
  background: var(--wc-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(244, 184, 30, .6);
}

.wc-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.wc-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--wc-radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--wc-t);
  cursor: pointer;
}
.wc-nav-user:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 576px) {
  .wc-nav-user span { display: none; }
  .wc-nav-user { padding: 4px; }
}

.wc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--wc-font-display);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2);
  flex-shrink: 0;
}
.wc-avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.wc-avatar.lg { width: 56px; height: 56px; font-size: 18px; }

.wc-nav-logout {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: all var(--wc-t);
}
.wc-nav-logout:hover { background: var(--wc-accent); color: #fff; border-color: var(--wc-accent); }

/* ---------- Language switcher ---------- */
.wc-lang {
  position: relative;
}
.wc-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: var(--wc-radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--wc-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--wc-t);
  text-transform: uppercase;
}
.wc-lang-btn:hover { background: rgba(255, 255, 255, .15); }
.wc-lang-btn .fi {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.wc-lang-btn .chev {
  font-size: 10px;
  opacity: .65;
  transition: transform var(--wc-t);
}
.wc-lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.wc-lang-menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 4px 12px rgba(15, 23, 42, .08);
  padding: 6px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--wc-t), transform var(--wc-t);
}
.wc-lang-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wc-lang-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--wc-line);
  border-left: 1px solid var(--wc-line);
  transform: rotate(45deg);
}

.wc-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--wc-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--wc-ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background var(--wc-t);
  position: relative;
}
.wc-lang-item:hover { background: var(--wc-bg-2); }
.wc-lang-item .fi {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.wc-lang-item .lang-name { flex: 1; }
.wc-lang-item .lang-code {
  font-family: var(--wc-font-mono);
  font-size: 10px;
  color: var(--wc-ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wc-lang-item.active {
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  font-weight: 600;
}
.wc-lang-item.active .lang-code { color: var(--wc-primary); }
.wc-lang-item.active::after {
  content: '\F26B';
  font-family: 'bootstrap-icons';
  font-size: 14px;
  color: var(--wc-primary);
}

[data-theme="dark"] .wc-lang-menu { background: var(--wc-surface); border-color: var(--wc-line); }
[data-theme="dark"] .wc-lang-menu::before { background: var(--wc-surface); border-color: var(--wc-line); }
[data-theme="dark"] .wc-lang-item { color: var(--wc-ink); }
[data-theme="dark"] .wc-lang-item:hover { background: var(--wc-bg-2); }

@media (max-width: 576px) {
  .wc-lang-btn span.lang-label { display: none; }
  .wc-lang-btn { padding: 6px 8px 6px 7px; }
}

/* Bottom nav (mobile) */
.wc-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--wc-bottom-nav-h);
  background: #fff;
  border-top: 1px solid var(--wc-line);
  z-index: 100;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}
@media (max-width: 768px) {
  .wc-bottom-nav { display: flex; }
}

.wc-bottom-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--wc-ink-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--wc-radius);
  position: relative;
  transition: color var(--wc-t);
}
.wc-bottom-link i { font-size: 22px; transition: transform var(--wc-t); }
.wc-bottom-link.active { color: var(--wc-primary); }
.wc-bottom-link.active i { transform: translateY(-2px) scale(1.1); }
.wc-bottom-link.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--wc-grad-navy);
  border-radius: 0 0 6px 6px;
}

/* ---------- 5. LOGIN ---------- */
.wc-login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--wc-grad-navy-deep);
  position: relative;
  overflow: hidden;
}

.wc-login-wrapper::before {
  /* Terrain de football stylisé */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Cercle central */
    radial-gradient(circle at 50% 50%, transparent 90px, rgba(255, 255, 255, .04) 90px, rgba(255, 255, 255, .04) 92px, transparent 92px),
    /* Point central */
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .12) 3px, transparent 3px),
    /* Ligne médiane horizontale */
    linear-gradient(180deg, transparent calc(50% - 1px), rgba(255, 255, 255, .04) calc(50% - 1px), rgba(255, 255, 255, .04) calc(50% + 1px), transparent calc(50% + 1px)),
    /* Rayures de pelouse */
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .015) 0 80px, transparent 80px 160px);
  opacity: .9;
}
.wc-login-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(46, 79, 216, .5), transparent),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(225, 29, 72, .25), transparent),
    radial-gradient(ellipse 30% 30% at 70% 30%, rgba(244, 184, 30, .15), transparent);
  pointer-events: none;
}

.wc-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--wc-radius-xl);
  padding: 40px 36px 32px;
  box-shadow: var(--wc-shadow-hero);
  position: relative;
  z-index: 1;
}

.wc-login-lang {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}
.wc-login-lang .wc-lang-btn {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wc-login-lang .wc-lang-btn:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 576px) {
  .wc-login-card { padding: 32px 24px 24px; }
}

.wc-login-badge {
  width: 84px;
  height: 84px;
  margin: -78px auto 20px;
  border-radius: 28px;
  background: var(--wc-grad-hero);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 12px 32px rgba(10, 26, 82, .35), inset 0 2px 0 rgba(255, 255, 255, .2);
  position: relative;
}
.wc-login-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 32px;
  border: 1.5px dashed rgba(244, 184, 30, .5);
  pointer-events: none;
}

.wc-login-header {
  text-align: center;
  margin-bottom: 28px;
}
.wc-login-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wc-accent);
  margin-bottom: 8px;
}
.wc-login-title {
  font-family: var(--wc-font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--wc-primary);
  line-height: 1;
  margin: 0 0 6px;
}
.wc-login-subtitle {
  color: var(--wc-ink-soft);
  font-size: 14px;
  margin: 0;
}

.wc-form-group { margin-bottom: 16px; }
.wc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--wc-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.wc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.wc-input-wrap > i {
  position: absolute;
  left: 14px;
  color: var(--wc-ink-muted);
  font-size: 16px;
  pointer-events: none;
  transition: color var(--wc-t);
}

.wc-input {
  width: 100%;
  height: 48px;
  background: var(--wc-surface-2);
  border: 1.5px solid var(--wc-line);
  border-radius: var(--wc-radius);
  padding: 0 16px 0 42px;
  font-size: 15px;
  font-family: var(--wc-font-body);
  color: var(--wc-ink);
  transition: all var(--wc-t);
  outline: none;
}
.wc-input:hover { border-color: var(--wc-line-strong); }
.wc-input:focus {
  border-color: var(--wc-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 26, 82, .1);
}
.wc-input:focus + i, .wc-input-wrap:focus-within > i { color: var(--wc-primary); }

.wc-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 24px;
  font-size: 13px;
}
.wc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wc-ink-soft);
  cursor: pointer;
}
.wc-checkbox input { accent-color: var(--wc-primary); }
.wc-link {
  color: var(--wc-primary);
  font-weight: 600;
  text-decoration: none;
}
.wc-link:hover { text-decoration: underline; }

.wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--wc-radius);
  font-family: var(--wc-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--wc-t);
  text-decoration: none;
  white-space: nowrap;
}
.wc-btn-primary {
  background: var(--wc-grad-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 26, 82, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.wc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 26, 82, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.wc-btn-primary:active { transform: translateY(0); }

.wc-btn-accent {
  background: var(--wc-grad-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, .3);
}
.wc-btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(225, 29, 72, .4); }

.wc-btn-gold {
  background: var(--wc-grad-gold);
  color: #0A1A52;
  box-shadow: 0 4px 12px rgba(244, 184, 30, .35);
}
.wc-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(244, 184, 30, .5); }

.wc-btn-ghost {
  background: transparent;
  color: var(--wc-ink-soft);
  border: 1.5px solid var(--wc-line);
}
.wc-btn-ghost:hover { background: var(--wc-surface-2); color: var(--wc-ink); border-color: var(--wc-line-strong); }

.wc-btn-lg { height: 52px; font-size: 15px; padding: 0 24px; border-radius: var(--wc-radius); }
.wc-btn-sm { height: 36px; font-size: 13px; padding: 0 14px; }
.wc-btn-block { width: 100%; }

.wc-login-footer {
  text-align: center;
  font-size: 13px;
  color: var(--wc-ink-muted);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--wc-line);
}

/* ---------- 6. DASHBOARD : STAT CARDS ---------- */
.wc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 768px) { .wc-stat-grid { grid-template-columns: repeat(2, 1fr); } }

.wc-stat-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--wc-t), box-shadow var(--wc-t);
}
.wc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--wc-shadow); }

.wc-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--wc-primary));
}

.wc-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wc-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--icon-bg, var(--wc-primary-soft));
  color: var(--icon-fg, var(--wc-primary));
  font-size: 20px;
}

.wc-stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--wc-radius-pill);
  background: var(--wc-success-soft);
  color: var(--wc-success);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wc-stat-trend.down { background: var(--wc-danger-soft); color: var(--wc-danger); }

.wc-stat-label {
  font-size: 13px;
  color: var(--wc-ink-soft);
  font-weight: 500;
  margin-bottom: 4px;
}

.wc-stat-value {
  font-family: var(--wc-font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--wc-ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.wc-stat-value small {
  font-size: 16px;
  font-weight: 600;
  color: var(--wc-ink-muted);
}

.wc-stat-bar {
  margin-top: 12px;
  height: 6px;
  background: var(--wc-bg-2);
  border-radius: var(--wc-radius-pill);
  overflow: hidden;
}
.wc-stat-bar-fill {
  height: 100%;
  background: var(--accent, var(--wc-primary));
  border-radius: inherit;
  transition: width 1s var(--wc-ease-out);
}

/* Color variants */
.wc-stat-gold { --accent: var(--wc-gold); --icon-bg: var(--wc-gold-soft); --icon-fg: #B07807; }
.wc-stat-red { --accent: var(--wc-accent); --icon-bg: var(--wc-accent-soft); --icon-fg: var(--wc-accent); }
.wc-stat-teal { --accent: #14B8A6; --icon-bg: #CCFBF1; --icon-fg: #0F766E; }
.wc-stat-violet { --accent: #8B5CF6; --icon-bg: #EDE9FE; --icon-fg: #6D28D9; }
.wc-stat-blue { --accent: var(--wc-primary-light); --icon-bg: var(--wc-primary-soft); --icon-fg: var(--wc-primary); }

/* ---------- 7. NEXT MATCH HERO ---------- */
.wc-hero {
  border-radius: var(--wc-radius-xl);
  overflow: hidden;
  position: relative;
  color: #fff;
  margin-bottom: 28px;
  isolation: isolate;
  box-shadow: var(--wc-shadow-hero);
}

/* Diagonal split between two team colors */
.wc-hero-split {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.wc-hero-split > div {
  position: absolute;
  inset: 0;
}
.wc-hero-split .home-side {
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}
.wc-hero-split .away-side {
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
}
.wc-hero-split .seam {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 50%;
  width: 120px;
  transform: translateX(-50%) skewX(-16deg);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, .35) 40%,
    rgba(0, 0, 0, .55) 50%,
    rgba(0, 0, 0, .35) 60%,
    transparent 100%);
  pointer-events: none;
  filter: blur(8px);
}

.wc-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 20%, rgba(10, 14, 36, .55) 80%, rgba(10, 14, 36, .85) 100%),
    repeating-linear-gradient(180deg, transparent 0 4px, rgba(0, 0, 0, .05) 4px 8px);
}

.wc-hero-content {
  padding: 24px 48px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  min-height: 260px;
}
@media (max-width: 768px) {
  .wc-hero-content { padding: 20px 24px 24px; min-height: 220px; gap: 16px; }
}
@media (max-width: 480px) {
  .wc-hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    padding: 18px 20px 22px;
    gap: 12px;
    min-height: 0;
  }
  .wc-hero-split .home-side { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 55%); }
  .wc-hero-split .away-side { clip-path: polygon(0 45%, 100% 55%, 100% 100%, 0 100%); }
  .wc-hero-split .seam {
    top: 50%; left: -10%; right: -10%;
    width: auto;
    height: 120px;
    transform: translateY(-50%) skewY(-6deg);
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(0, 0, 0, .35) 40%,
      rgba(0, 0, 0, .55) 50%,
      rgba(0, 0, 0, .35) 60%,
      transparent 100%);
  }
}

.wc-hero-team {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.wc-hero-team.home { justify-content: flex-start; }
.wc-hero-team.away { justify-content: flex-end; flex-direction: row-reverse; }
@media (max-width: 480px) {
  .wc-hero-team,
  .wc-hero-team.home,
  .wc-hero-team.away {
    justify-content: center;
    flex-direction: row;
  }
}

.wc-hero-flag {
  width: 76px;
  height: 56px;
  border-radius: 8px;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .45),
    0 4px 8px rgba(0, 0, 0, .3),
    inset 0 0 0 2px rgba(255, 255, 255, .15);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.wc-hero-flag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent 40%);
  pointer-events: none;
}
.wc-hero-flag .fi { width: 100%; height: 100%; display: block; background-size: cover; }
@media (max-width: 768px) { .wc-hero-flag { width: 60px; height: 44px; } }

.wc-hero-team-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wc-hero-team.away .wc-hero-team-text { align-items: flex-end; }
.wc-hero-team.home .wc-hero-team-text { align-items: flex-start; }
@media (max-width: 480px) {
  .wc-hero-team .wc-hero-team-text,
  .wc-hero-team.home .wc-hero-team-text,
  .wc-hero-team.away .wc-hero-team-text { align-items: flex-start; }
}

.wc-hero-team-name {
  font-family: var(--wc-font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .6);
  white-space: nowrap;
}

.wc-hero-team-code {
  font-family: var(--wc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: .65;
  margin-bottom: 4px;
}

.wc-hero-vs {
  font-family: var(--wc-font-display);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .35));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .5);
  line-height: 1;
  padding: 0 8px;
  position: relative;
  transform: rotate(-2deg);
}
.wc-hero-vs::before,
.wc-hero-vs::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .4), transparent);
  transform: translateY(-50%);
}
.wc-hero-vs::before { right: 100%; transform: translateY(-50%) rotate(2deg); }
.wc-hero-vs::after { left: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4)); transform: translateY(-50%) rotate(2deg); }
@media (max-width: 480px) {
  .wc-hero-vs::before, .wc-hero-vs::after { display: none; }
}

.wc-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  flex-wrap: wrap;
}
.wc-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}
.wc-hero-meta-item i { font-size: 14px; opacity: .65; }
.wc-hero-meta-divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
@media (max-width: 576px) {
  .wc-hero-meta-divider { display: none; }
  .wc-hero-meta { gap: 10px; padding: 12px 16px; font-size: 12px; }
  .wc-hero-meta-item { font-size: 12px; }
}

.wc-hero-cta {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
@media (max-width: 576px) {
  .wc-hero-cta { margin-left: 0; width: 100%; justify-content: center; margin-top: 6px; }
}

.wc-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 0;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .wc-hero-header { padding: 12px 16px 0; gap: 8px; }
  .wc-hero-header .wc-hero-tag { font-size: 10px; padding: 4px 9px; }
}

.wc-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--wc-radius-pill);
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
}
.wc-hero-tag.live { background: var(--wc-accent); border-color: transparent; }
.wc-hero-tag.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: wc-pulse 1.6s ease-in-out infinite;
}

@keyframes wc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

.wc-hero-top {
  display: none;
}

/* ---------- 8. QUICK LINKS ---------- */
.wc-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 768px) { .wc-quick-grid { grid-template-columns: 1fr; } }

.wc-quick-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all var(--wc-t);
  cursor: pointer;
}
.wc-quick-card::after {
  content: '\F285';
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  color: var(--wc-ink-muted);
  font-size: 18px;
  transition: all var(--wc-t);
}
.wc-quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--wc-primary-light);
  box-shadow: var(--wc-shadow);
}
.wc-quick-card:hover::after {
  transform: translateY(-50%) translateX(0);
  color: var(--wc-primary);
}

.wc-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--qi-bg, var(--wc-primary-soft));
  color: var(--qi-fg, var(--wc-primary));
  font-size: 22px;
  flex-shrink: 0;
}
.wc-quick-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wc-quick-title { font-weight: 700; font-size: 15px; color: var(--wc-ink); font-family: var(--wc-font-display); }
.wc-quick-desc { font-size: 12px; color: var(--wc-ink-soft); }

.wc-quick-card.gold { --qi-bg: var(--wc-gold-soft); --qi-fg: #B07807; }
.wc-quick-card.red { --qi-bg: var(--wc-accent-soft); --qi-fg: var(--wc-accent); }
.wc-quick-card.teal { --qi-bg: #CCFBF1; --qi-fg: #0F766E; }

/* ---------- 9. MATCHES PAGE ---------- */
.wc-filters-wrap {
  margin: 0 -24px 28px;
  padding: 0 24px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wc-filters-wrap::-webkit-scrollbar { display: none; }
@media (max-width: 576px) {
  .wc-filters-wrap { margin: 0 -16px 20px; padding: 0 16px 4px; }
}

.wc-filters {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-pill);
  box-shadow: var(--wc-shadow-xs);
}

.wc-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--wc-radius-pill);
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--wc-ink-soft);
  cursor: pointer;
  transition: all var(--wc-t);
  white-space: nowrap;
  font-family: var(--wc-font-body);
}
.wc-filter:hover { background: var(--wc-bg-2); color: var(--wc-ink); }
.wc-filter.active {
  background: var(--wc-grad-navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 26, 82, .25);
}
.wc-filter-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--wc-radius-pill);
  background: rgba(15, 23, 42, .08);
  color: var(--wc-ink-soft);
  font-family: var(--wc-font-mono);
}
.wc-filter.active .wc-filter-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* Tier-2 sub-filter row sits closer to the tabs above it */
.wc-filters-wrap.wc-subfilters { margin-top: -8px; }

/* Knockout pills get a gold accent so they read as a distinct phase */
.wc-filter.ko .wc-filter-count {
  background: rgba(244, 184, 30, .18);
  color: #B07807;
}
.wc-filter.ko.active {
  background: linear-gradient(135deg, #E89F0A 0%, #F4B81E 100%);
  color: #2A1A02;
  box-shadow: 0 2px 8px rgba(244, 184, 30, .35);
}
.wc-filter.ko.active .wc-filter-count {
  background: rgba(42, 26, 2, .22);
  color: #2A1A02;
}

/* ---------- Phase tabs (tier 1) ---------- */
.wc-phase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
@media (max-width: 576px) {
  .wc-phase-tabs { gap: 8px; }
}

.wc-phase-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--wc-surface);
  border: 1.5px solid var(--wc-line);
  color: var(--wc-ink-soft);
  font: inherit;
  font-family: var(--wc-font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--wc-t);
  text-align: left;
  box-shadow: var(--wc-shadow-xs);
}
.wc-phase-tab:hover {
  border-color: rgba(10, 26, 82, .2);
  color: var(--wc-ink);
  transform: translateY(-1px);
}
.wc-phase-tab > i {
  font-size: 18px;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .06);
  color: var(--wc-ink-soft);
  flex-shrink: 0;
  transition: all var(--wc-t);
}
.wc-phase-tab-label {
  flex: 1;
  font-family: var(--wc-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  min-width: 0;
  /* let the label wrap on narrow viewports rather than overflow */
}
.wc-phase-tab-count {
  font-family: var(--wc-font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: var(--wc-ink-soft);
  flex-shrink: 0;
}

/* Active states — distinct color per phase so the choice is obvious */
.wc-phase-tab.active {
  background: var(--wc-grad-navy);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 26, 82, .28);
  transform: translateY(-1px);
}
.wc-phase-tab.active > i {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.wc-phase-tab.active .wc-phase-tab-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.wc-phase-tab.group.active {
  background: linear-gradient(135deg, #1E3A8A 0%, #2E4FD8 100%);
}
.wc-phase-tab.knockout.active {
  background: linear-gradient(135deg, #E89F0A 0%, #F4B81E 100%);
  color: #2A1A02;
  box-shadow: 0 6px 16px rgba(244, 184, 30, .35);
}
.wc-phase-tab.knockout.active > i {
  background: rgba(42, 26, 2, .18);
  color: #2A1A02;
}
.wc-phase-tab.knockout.active .wc-phase-tab-count {
  background: rgba(42, 26, 2, .18);
  color: #2A1A02;
}

@media (max-width: 720px) {
  .wc-phase-tab { padding: 11px 12px; font-size: 13px; gap: 8px; }
  .wc-phase-tab > i { width: 28px; height: 28px; font-size: 15px; }
  .wc-phase-tab-count { font-size: 11px; padding: 2px 7px; }
}
@media (max-width: 480px) {
  /* Stack icon + count, show only label on tiny screens */
  .wc-phase-tab { padding: 10px 10px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .wc-phase-tab-label { font-size: 12px; }
  .wc-phase-tab > i { width: 24px; height: 24px; font-size: 13px; }
  .wc-phase-tab-count {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* ---------- TBD placeholder team (knockout fixtures) ---------- */
.wc-match-team-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(100, 116, 139, .12),
    rgba(100, 116, 139, .12) 4px,
    rgba(100, 116, 139, .04) 4px,
    rgba(100, 116, 139, .04) 8px
  );
  border: 1.5px dashed rgba(100, 116, 139, .4);
  color: var(--wc-ink-muted);
  font-family: var(--wc-font-mono);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.wc-match-team-name.tbd {
  color: var(--wc-ink-muted);
  font-family: var(--wc-font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Round headers */
.wc-round-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
}
.wc-round-header:first-child { margin-top: 0; }
.wc-round-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--wc-radius-pill);
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  font-family: var(--wc-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wc-round-pill.ko {
  background: rgba(244, 184, 30, .15);
  color: #B07807;
}
.wc-round-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--wc-line), transparent);
}

/* Match grid */
.wc-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
@media (max-width: 576px) {
  .wc-match-grid { grid-template-columns: 1fr; gap: 12px; }
}

.wc-match-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  padding: 16px 18px 14px;
  transition: all var(--wc-t);
  position: relative;
  overflow: hidden;
}
.wc-match-card:hover { box-shadow: var(--wc-shadow); transform: translateY(-1px); border-color: var(--wc-line-strong); }

.wc-match-card.finished { background: var(--wc-surface-2); }
.wc-match-card.finished::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--wc-success);
}

.wc-match-card.live::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--wc-accent);
  animation: wc-pulse 1.6s ease-in-out infinite;
}

.wc-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wc-ink-soft);
}
.wc-match-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wc-match-date i { font-size: 13px; }

.wc-match-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--wc-radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wc-match-status.finished { background: var(--wc-success-soft); color: #047857; }
.wc-match-status.upcoming { background: var(--wc-primary-soft); color: var(--wc-primary); }
.wc-match-status.live { background: var(--wc-accent); color: #fff; }
.wc-match-status.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: wc-pulse 1.6s ease-in-out infinite;
}

.wc-match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wc-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wc-match-team.home { justify-content: flex-start; }
.wc-match-team.away { justify-content: flex-end; flex-direction: row-reverse; }
.wc-match-team .fi {
  width: 28px;
  height: 21px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.wc-match-team-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--wc-ink);
  font-family: var(--wc-font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-match-score {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--wc-radius);
  background: var(--wc-bg-2);
  font-family: var(--wc-font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--wc-ink);
  letter-spacing: 0.05em;
  min-width: 60px;
  justify-content: center;
}
.wc-match-score.vs { background: transparent; color: var(--wc-ink-muted); font-style: italic; font-size: 14px; font-family: var(--wc-font-display); }
.wc-match-score.finished { background: var(--wc-primary); color: #fff; }

/* When the score also carries the user's prediction below it */
.wc-match-score.finished:has(.wc-match-mypred) {
  flex-direction: column;
  gap: 4px;
  padding: 6px 12px 5px;
  min-width: 72px;
}
.wc-match-mypred {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--wc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
}
.wc-match-mypred i { font-size: 8px; opacity: .75; }
/* Tint the prediction chip by accuracy — green for exact, soft for good, red for miss */
.wc-match-mypred.exact { background: rgba(16, 185, 129, .85); color: #fff; }
.wc-match-mypred.good { background: rgba(255, 255, 255, .22); color: #fff; }
.wc-match-mypred.wrong { background: rgba(225, 29, 72, .8); color: #fff; }

.wc-match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--wc-line);
}
.wc-match-stadium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--wc-ink-muted);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-match-stadium i { font-size: 12px; flex-shrink: 0; }

.wc-pred-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--wc-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--wc-font-mono);
  flex-shrink: 0;
}
.wc-pred-badge.exact { background: var(--wc-success); color: #fff; }
.wc-pred-badge.good { background: var(--wc-success-soft); color: #047857; }
.wc-pred-badge.wrong { background: var(--wc-danger-soft); color: var(--wc-danger); }
.wc-pred-badge.pending { background: var(--wc-bg-2); color: var(--wc-ink-soft); }
.wc-pred-badge .pts { font-weight: 800; }

.wc-pred-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--wc-radius-pill);
  background: var(--wc-grad-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: transform var(--wc-t);
}
.wc-pred-cta:hover { transform: translateY(-1px); color: #fff; }
.wc-pred-cta.disabled {
  background: rgba(100, 116, 139, .12);
  color: var(--wc-ink-muted);
  cursor: default;
  font-family: var(--wc-font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.wc-pred-cta.disabled:hover { transform: none; color: var(--wc-ink-muted); }

/* ---------- 10. PRONOSTICS FORM ---------- */
.wc-pron-list { display: flex; flex-direction: column; gap: 16px; }

.wc-pron-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  overflow: hidden;
  transition: all var(--wc-t);
  position: relative;
}
.wc-pron-card.editing { border-color: var(--wc-primary-light); box-shadow: 0 0 0 4px rgba(46, 79, 216, .08), var(--wc-shadow); }
.wc-pron-card.saved { border-color: var(--wc-success); }
.wc-pron-card.saved::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .04));
}

.wc-pron-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--wc-surface-2);
  border-bottom: 1px solid var(--wc-line);
  flex-wrap: wrap;
}
.wc-pron-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-pron-when {
  font-size: 12px;
  color: var(--wc-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.wc-pron-stadium {
  font-size: 11px;
  color: var(--wc-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Mobile: declutter the pronostics card head — demote group pill to inline text,
   keep date/time on top row, push stadium with group prefix below */
@media (max-width: 576px) {
  .wc-pron-head {
    padding: 12px 16px 10px;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
  }
  .wc-pron-head-left {
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .wc-pron-head .wc-tag {
    background: transparent;
    color: var(--wc-primary);
    padding: 0;
    font-size: 11px;
    font-family: var(--wc-font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .wc-pron-head .wc-tag i { display: none; }
  .wc-pron-head .wc-tag::after {
    content: '';
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--wc-line-strong);
    margin-left: 8px;
  }
  .wc-pron-when { font-size: 11px; }
  .wc-pron-stadium {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.wc-pron-body {
  padding: 24px 20px 20px;
}

.wc-pron-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
@media (max-width: 576px) { .wc-pron-score-row { gap: 8px; } }

.wc-pron-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.wc-pron-flag {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.wc-pron-flag .fi { width: 100%; height: 100%; display: block; background-size: cover; }

.wc-pron-team-name {
  font-family: var(--wc-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wc-ink);
  line-height: 1.1;
  text-wrap: balance;
  hyphens: auto;
}

.wc-score-input {
  width: 80px;
  height: 80px;
  text-align: center;
  font-family: var(--wc-font-mono);
  font-size: 40px;
  font-weight: 700;
  border: 2px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  background: var(--wc-surface-2);
  color: var(--wc-ink);
  transition: all var(--wc-t);
  outline: none;
  appearance: none;
  -moz-appearance: textfield;
}
.wc-score-input::-webkit-outer-spin-button,
.wc-score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wc-score-input:hover { border-color: var(--wc-line-strong); }
.wc-score-input:focus {
  border-color: var(--wc-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 26, 82, .12);
  transform: scale(1.02);
}
@media (max-width: 576px) {
  .wc-pron-body { padding: 20px 14px 16px; }
  .wc-pron-score-row { gap: 8px; grid-template-columns: 1fr auto 1fr; }
  .wc-pron-team { gap: 8px; max-width: 100%; min-width: 0; }
  .wc-pron-flag { width: 44px; height: 33px; border-radius: 4px; }
  .wc-pron-team-name {
    font-size: 13px;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
    max-width: 92px;
  }
  .wc-score-input {
    width: 54px;
    height: 60px;
    font-size: 28px;
    border-radius: 10px;
    border-width: 1.5px;
  }
  .wc-pron-separator {
    font-size: 22px;
    padding: 0 2px;
  }
}
@media (max-width: 380px) {
  .wc-pron-body { padding: 18px 10px 14px; }
  .wc-pron-flag { width: 38px; height: 28px; }
  .wc-pron-team-name { font-size: 12px; max-width: 78px; }
  .wc-score-input { width: 46px; height: 54px; font-size: 24px; }
  .wc-pron-score-row { gap: 4px; }
}

.wc-pron-separator {
  font-family: var(--wc-font-display);
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  color: var(--wc-ink-muted);
  letter-spacing: -0.04em;
  user-select: none;
  padding: 0 8px;
}

.wc-pron-winner-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--wc-line);
}
.wc-pron-winner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wc-ink-soft);
  text-align: center;
  margin-bottom: 12px;
}

.wc-winner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.wc-winner-grid.two-col {
  display: flex;
  justify-content: center;
}
/* Tuiles de même largeur qu'en grille 3 colonnes, mais centrées comme groupe. */
.wc-winner-grid.two-col .wc-winner-tile {
  flex: 0 1 calc((100% - 20px) / 3);
}

.wc-pron-knockout-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--wc-bg-2);
  color: var(--wc-ink-muted);
  font-size: 12px;
  line-height: 1.4;
}
.wc-pron-knockout-info i {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--wc-primary);
}

.wc-winner-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--wc-surface-2);
  border: 2px solid var(--wc-line);
  border-radius: var(--wc-radius);
  cursor: pointer;
  transition: all var(--wc-t);
  text-align: center;
  font-family: var(--wc-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--wc-ink-soft);
  min-height: 86px;
}
.wc-winner-tile:hover {
  border-color: var(--wc-line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.wc-winner-tile .fi {
  width: 32px;
  height: 24px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.wc-winner-tile.draw {
  font-family: var(--wc-font-display);
  font-size: 14px;
}
.wc-winner-tile.draw .draw-icon {
  width: 32px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--wc-ink-muted) 0%, var(--wc-ink-muted) 50%, var(--wc-line-strong) 50%, var(--wc-line-strong) 100%);
  position: relative;
}
.wc-winner-tile.draw .draw-icon::after {
  content: '=';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--wc-font-display);
}

.wc-winner-tile.selected {
  border-color: var(--wc-primary);
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  box-shadow: 0 4px 12px rgba(10, 26, 82, .18);
  transform: translateY(-1px);
}
.wc-winner-tile.selected::after {
  content: '\F26B';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wc-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.wc-pron-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.wc-pron-saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--wc-radius-pill);
  background: var(--wc-success-soft);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  margin-right: auto;
  animation: wc-fade-in .3s var(--wc-ease-out);
}
@keyframes wc-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 11. CLASSEMENT — PODIUM ---------- */

/* Tabs: Individuel / Par direction */
.wc-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-pill);
  box-shadow: var(--wc-shadow-xs);
  margin-bottom: 16px;
}
.wc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--wc-radius-pill);
  background: transparent;
  border: none;
  font-family: var(--wc-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--wc-ink-soft);
  cursor: pointer;
  transition: all var(--wc-t);
  white-space: nowrap;
}
.wc-tab i { font-size: 14px; }
.wc-tab:hover { background: var(--wc-bg-2); color: var(--wc-ink); }
.wc-tab.active {
  background: var(--wc-grad-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 26, 82, .25);
}

.wc-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}
.wc-section-row .wc-section-title { margin: 0; }
.wc-section-note {
  font-size: 12px;
  font-style: italic;
  color: var(--wc-ink-muted);
}

/* Direction badge on podium */
.wc-podium-dir-badge {
  width: 40px;
  height: 40px;
  margin: 4px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--wc-font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(0,0,0,.15);
}
.wc-podium-step.first .wc-podium-dir-badge {
  width: 48px; height: 48px; font-size: 15px;
}
.wc-podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 32px;
  padding: 40px 24px 0;
  position: relative;
}
@media (max-width: 576px) { .wc-podium { padding: 24px 8px 0; gap: 6px; } }

.wc-podium::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(244, 184, 30, .18), transparent 70%);
  pointer-events: none;
}

.wc-podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.wc-podium-card {
  width: 100%;
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg) var(--wc-radius-lg) 0 0;
  padding: 14px 12px 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wc-podium-step.first .wc-podium-card {
  background: linear-gradient(180deg, #FFFBEB 0%, #fff 100%);
  border-color: var(--wc-gold);
  box-shadow: 0 -8px 32px rgba(244, 184, 30, .25);
}
.wc-podium-step.second .wc-podium-card {
  background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
  border-color: var(--wc-silver-1);
}
.wc-podium-step.third .wc-podium-card {
  background: linear-gradient(180deg, #FFF7ED 0%, #fff 100%);
  border-color: var(--wc-bronze-1);
}

.wc-podium-medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: -28px auto 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--wc-font-display);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,.18), inset 0 -2px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.3);
  position: relative;
}
.wc-podium-step.first .wc-podium-medal {
  background: linear-gradient(135deg, var(--wc-gold-1) 0%, var(--wc-gold-2) 100%);
  width: 54px; height: 54px;
  margin-top: -34px;
}
.wc-podium-step.second .wc-podium-medal {
  background: linear-gradient(135deg, var(--wc-silver-1) 0%, var(--wc-silver-2) 100%);
  color: #fff;
}
.wc-podium-step.third .wc-podium-medal {
  background: linear-gradient(135deg, var(--wc-bronze-1) 0%, var(--wc-bronze-2) 100%);
}

.wc-podium-avatar {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12), inset 0 0 0 3px rgba(255,255,255,.6);
}
.wc-podium-step.first .wc-podium-avatar {
  width: 68px; height: 68px;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(244, 184, 30, .35), inset 0 0 0 3px var(--wc-gold);
}

.wc-podium-name {
  font-family: var(--wc-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wc-ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-podium-step.first .wc-podium-name { font-size: 16px; }

.wc-podium-points {
  font-family: var(--wc-font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--wc-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.wc-podium-step.first .wc-podium-points { font-size: 28px; color: #B07807; }
.wc-podium-step.second .wc-podium-points { color: var(--wc-silver-2); }
.wc-podium-step.third .wc-podium-points { color: var(--wc-bronze-2); }
.wc-podium-points small {
  font-family: var(--wc-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--wc-ink-muted);
  letter-spacing: 0;
  margin-left: 4px;
}

/* Block 3D du podium */
.wc-podium-block {
  width: 100%;
  border-radius: 0 0 var(--wc-radius) var(--wc-radius);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .9);
  font-family: var(--wc-font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.wc-podium-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.15));
}
.wc-podium-step.first .wc-podium-block {
  background: linear-gradient(180deg, var(--wc-gold-1) 0%, var(--wc-gold-2) 100%);
  height: 120px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 8px 20px rgba(244,184,30,.3);
}
.wc-podium-step.second .wc-podium-block {
  background: linear-gradient(180deg, var(--wc-silver-1) 0%, var(--wc-silver-2) 100%);
  height: 88px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 6px 14px rgba(148, 163, 184, .3);
}
.wc-podium-step.third .wc-podium-block {
  background: linear-gradient(180deg, var(--wc-bronze-1) 0%, var(--wc-bronze-2) 100%);
  height: 64px;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 6px 14px rgba(217, 119, 87, .3);
}

@media (max-width: 576px) {
  .wc-podium-step.first .wc-podium-block { height: 54px; font-size: 20px; }
  .wc-podium-step.second .wc-podium-block { height: 40px; font-size: 18px; }
  .wc-podium-step.third .wc-podium-block { height: 30px; font-size: 14px; }
  .wc-podium-medal { width: 26px; height: 26px; font-size: 11px; margin-top: -16px; margin-bottom: 0; }
  .wc-podium-step.first .wc-podium-medal { width: 32px; height: 32px; margin-top: -20px; font-size: 13px; }
  .wc-podium-name {
    font-size: 11px;
    line-height: 1.15;
    /* keep to single line on the podium card to control height */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .wc-podium-step.first .wc-podium-name { font-size: 12px; }
  .wc-podium-points { font-size: 14px; }
  .wc-podium-step.first .wc-podium-points { font-size: 16px; }
  .wc-podium-points small { font-size: 9px; }
  .wc-podium-card { padding: 8px 4px 6px; gap: 2px; }
  .wc-podium { padding: 20px 4px 0; gap: 3px; margin-bottom: 12px; }
  .wc-podium::before { width: 80px; height: 80px; }

  /* Tabs full-width and compact */
  .wc-tabs { width: 100%; margin-bottom: 12px; padding: 3px; }
  .wc-tab { flex: 1; padding: 7px 10px; font-size: 12px; justify-content: center; gap: 6px; }
  .wc-tab i { font-size: 13px; }

  /* Section row above table: compact margin */
  .wc-section-row { margin: 4px 0 10px; }
  .wc-section-title { font-size: 16px; margin: 0; }
  .wc-section-note { display: none; }
}

/* Custom table */
.wc-leaderboard {
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  overflow: hidden;
  box-shadow: var(--wc-shadow-xs);
}

.wc-lb-head {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 100px;
  gap: 12px;
  padding: 14px 20px;
  background: var(--wc-surface-2);
  border-bottom: 1px solid var(--wc-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wc-ink-soft);
}
.wc-lb-head .lb-points { color: #B07807; text-align: right; }
.wc-lb-head .lb-num { text-align: center; }

.wc-lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 100px;
  gap: 12px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid var(--wc-line);
  transition: background var(--wc-t);
}
.wc-lb-row:nth-child(odd) { background: rgba(245, 246, 250, .4); }
.wc-lb-row:hover { background: var(--wc-bg-2); }
.wc-lb-row:last-child { border-bottom: none; }

.wc-lb-row.is-me {
  background: linear-gradient(90deg, var(--wc-primary-soft), rgba(232, 236, 251, .3)) !important;
  border-left: 3px solid var(--wc-primary);
  padding-left: 17px;
  position: relative;
}
.wc-lb-row.is-me::after {
  content: 'VOUS';
  position: absolute;
  right: 110px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--wc-primary);
  background: #fff;
  padding: 3px 7px;
  border-radius: var(--wc-radius-pill);
  border: 1.5px solid var(--wc-primary);
}
@media (max-width: 768px) { .wc-lb-row.is-me::after { display: none; } }

.wc-lb-rank {
  font-family: var(--wc-font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--wc-ink-soft);
  text-align: center;
  letter-spacing: -0.02em;
}
.wc-lb-rank.top1 { color: var(--wc-gold-2); }
.wc-lb-rank.top2 { color: var(--wc-silver-2); }
.wc-lb-rank.top3 { color: var(--wc-bronze-2); }

.wc-lb-participant {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wc-lb-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--wc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-lb-trend {
  font-size: 10px;
  color: var(--wc-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.wc-lb-trend.up { color: var(--wc-success); }
.wc-lb-trend.down { color: var(--wc-danger); }

.wc-lb-stat {
  font-family: var(--wc-font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--wc-ink-soft);
  text-align: center;
}

.wc-lb-points {
  text-align: right;
}
.wc-lb-points-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--wc-radius-pill);
  background: var(--wc-grad-gold);
  color: #5C3F00;
  font-family: var(--wc-font-mono);
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 4px rgba(244, 184, 30, .25);
}
.wc-lb-points-badge small { font-size: 10px; font-weight: 600; opacity: .7; }

.wc-lb-row.top1 .wc-lb-points-badge { background: var(--wc-grad-gold); color: #5C3F00; }
.wc-lb-row.top2 .wc-lb-points-badge { background: linear-gradient(135deg, var(--wc-silver-1), var(--wc-silver-2)); color: #fff; }
.wc-lb-row.top3 .wc-lb-points-badge { background: linear-gradient(135deg, var(--wc-bronze-1), var(--wc-bronze-2)); color: #fff; }

/* Direction table — different column structure */
.wc-leaderboard-dir .wc-lb-head-dir,
.wc-lb-row-dir {
  grid-template-columns: 60px 1.6fr 110px 1.4fr 100px;
}

.wc-lb-dir {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wc-dir-code {
  font-family: var(--wc-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 32px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, .04);
  text-align: center;
  flex-shrink: 0;
}

.wc-lb-best {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wc-best-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wc-best-name {
  font-family: var(--wc-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wc-ink);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-best-pts {
  font-family: var(--wc-font-mono);
  font-size: 11px;
  color: var(--wc-ink-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .wc-leaderboard-dir .wc-lb-head-dir,
  .wc-lb-row-dir {
    grid-template-columns: 36px 1fr 80px;
  }
  .wc-lb-row-dir .wc-lb-stat,
  .wc-lb-row-dir .wc-lb-best,
  .wc-lb-head-dir > div:nth-child(3),
  .wc-lb-head-dir > div:nth-child(4) {
    display: none;
  }
  .wc-dir-code { font-size: 10px; min-width: 28px; padding: 3px 4px; }
}

/* Legend */
.wc-legend {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--wc-ink-soft);
}
.wc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wc-legend-item .wc-pred-badge { padding: 2px 8px; }

@media (max-width: 768px) {
  .wc-lb-head, .wc-lb-row {
    grid-template-columns: 36px 1fr 72px;
    gap: 8px;
    padding: 10px 12px;
  }
  .wc-lb-row.is-me { padding-left: 9px; }
  .wc-lb-stat.wins, .wc-lb-stat.exact, .wc-lb-head .lb-wins, .wc-lb-head .lb-exact { display: none; }
  .wc-lb-name { font-size: 13px; }
  .wc-lb-trend { font-size: 10px; }
  .wc-lb-rank { font-size: 15px; }
  .wc-lb-points-badge { padding: 4px 10px; font-size: 13px; }
}
@media (max-width: 576px) {
  .wc-lb-head, .wc-lb-row {
    grid-template-columns: 30px 1fr auto;
    gap: 8px;
    padding: 9px 12px;
  }
  .wc-lb-row.is-me { padding-left: 9px; }
  .wc-lb-head { padding: 8px 12px; font-size: 9px; }
  .wc-lb-participant { gap: 9px; }
  .wc-lb-name { font-size: 13px; line-height: 1.15; }
  /* Truncate trend to just the arrow icon on small screens */
  .wc-lb-trend { font-size: 0; gap: 0; }
  .wc-lb-trend i { font-size: 11px; }
  .wc-lb-rank { font-size: 14px; }
  .wc-lb-points-badge { padding: 4px 9px; font-size: 12px; gap: 2px; }
  .wc-lb-points-badge small { font-size: 9px; }
  .wc-avatar.sm { width: 26px; height: 26px; font-size: 10px; }
}

/* ---------- 12. UTILITY/MISC ---------- */
.wc-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius-lg);
  padding: 20px;
}

.wc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--wc-radius-pill);
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--wc-font-display);
}
.wc-tag.gold { background: var(--wc-gold-soft); color: #B07807; }
.wc-tag.red { background: var(--wc-accent-soft); color: var(--wc-accent); }

.wc-divider {
  height: 1px;
  background: var(--wc-line);
  margin: 24px 0;
}

/* ---------- 13. DARK MODE READY (variables prêtes) ---------- */
/* Pour activer dark mode futur : ajouter [data-theme="dark"] au <html> */
[data-theme="dark"] {
  --wc-bg:             #0A0E1E;
  --wc-bg-2:           #131829;
  --wc-surface:        #161B2E;
  --wc-surface-2:      #1E2440;
  --wc-ink:            #F1F5F9;
  --wc-ink-soft:       #94A3B8;
  --wc-ink-muted:      #64748B;
  --wc-line:           #2A3055;
  --wc-line-strong:    #3A4170;
  --wc-primary-soft:   rgba(46, 79, 216, .18);
  --wc-accent-soft:    rgba(225, 29, 72, .15);
  --wc-gold-soft:      rgba(244, 184, 30, .15);
  --wc-success-soft:   rgba(16, 185, 129, .15);
  --wc-warning-soft:   rgba(245, 158, 11, .15);
  --wc-danger-soft:    rgba(239, 68, 68, .15);
}
