/* ============================================================
   PadelMatch — Design System (Airbnb-inspired)
   ============================================================ */

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

:root {
  --accent:       #009B8D;
  --accent-dark:  #007D72;
  --accent-light: #E6F6F5;
  --accent-mid:   #B2E4E1;

  --text:        #222222;
  --text-2:      #484848;
  --text-light:  #717171;
  --muted:       #B0B0B0;

  --bg:          #FFFFFF;
  --bg-2:        #F7F7F7;
  --bg-3:        #EBEBEB;

  --border:      #EBEBEB;
  --border-2:    #DDDDDD;

  --success: #008A7E;
  --danger:  #C13515;
  --warning: #C45500;
  --info:    #0F5EBF;

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.06);
  --shadow:    0 4px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 14px rgba(0,155,141,0.30);

  --transition: 0.2s ease;
  --header-h: 80px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; color: var(--text); }

/* ── Layout ─────────────────────────────────────────────── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-main  { flex: 1; padding-top: var(--header-h); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.header-inner {
  width: 100%; display: flex; align-items: center; gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { font-size: 1.3rem; }
.logo-text {
  font-weight: 800; font-size: 1.2rem; color: var(--text);
  letter-spacing: -0.03em;
}
.logo-text span { color: var(--accent); }
.logo--light .logo-text       { color: #fff; }
.logo--light .logo-text span  { color: var(--accent-mid); }

/* Nav */
.nav-main { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-full);
  color: var(--text-light); font-size: 0.875rem; font-weight: 500;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--text); font-weight: 600; }

.nav-link--create {
  background: var(--accent); color: #fff !important;
  font-weight: 600; padding: 9px 18px; border-radius: var(--radius-full);
}
.nav-link--create:hover {
  background: var(--accent-dark); box-shadow: var(--shadow-accent);
}
.icon-plus { margin-right: 2px; }

/* Header actions */
.header-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}

.lang-btn { font-size: 1.2rem; padding: 4px; border-radius: var(--radius-xs); display: block; }
.lang-btn:hover { transform: scale(1.15); }

.notif-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); font-size: 1.05rem; color: var(--text-light);
  transition: background var(--transition), color var(--transition);
}
.notif-btn:hover, .notif-btn.active { background: var(--bg-2); color: var(--text); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--danger); color: #fff;
  font-size: 0.58rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* User menu */
.user-menu { position: relative; }
.user-menu-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-2);
  background: #fff;
  transition: box-shadow var(--transition);
}
.user-menu-toggle:hover { box-shadow: var(--shadow-sm); }
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
}
.user-name-sm {
  color: var(--text); font-size: 0.85rem; font-weight: 600;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chevron { color: var(--muted); font-size: 0.65rem; transition: transform var(--transition); }
.user-menu.open .chevron { transform: rotate(180deg); }

.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
}
.user-menu.open .user-menu-dropdown {
  opacity: 1; transform: translateY(0); pointer-events: all;
}
.user-menu-header {
  padding: 14px 16px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.user-menu-header strong { display: block; font-size: 0.875rem; color: var(--text); }
.user-menu-header small  { color: var(--muted); font-size: 0.77rem; }

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; color: var(--text-2); font-size: 0.875rem;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg-2); }
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: #FFF1EE; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Burger */
.burger-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); }
.burger-btn span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; text-decoration: none;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary   { background: var(--text); color: #fff; border-color: var(--text); }
.btn-primary:hover { background: var(--text-2); box-shadow: var(--shadow); }

.btn-accent    { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent); }

.btn-white     { background: #fff; color: var(--text); border-color: #fff; }
.btn-white:hover { box-shadow: var(--shadow); }

.btn-ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }

.btn-hero-ghost { background: transparent; color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); font-weight: 500; }
.btn-hero-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

.btn-cta-ghost { background: transparent; color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); font-weight: 500; }
.btn-cta-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--bg-2); box-shadow: var(--shadow-xs); }

.btn-outline   { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-light); }

.btn-dark      { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: var(--text-2); }

.btn-nav       { background: transparent; color: var(--text-light); border-color: var(--border-2); }
.btn-nav:hover { background: var(--bg-2); color: var(--text); }

.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #A02A10; }

.btn-success   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-success:hover { background: var(--accent-dark); }

.btn-sm  { padding: 8px 16px; font-size: 0.78rem; }
.btn-lg  { padding: 14px 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; margin-bottom: 7px; font-size: 0.83rem; font-weight: 600; color: var(--text-2); }
.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 0.875rem; color: var(--text); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; appearance: none;
}
.form-control:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(34,34,34,0.08);
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B0B0B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.form-help  { margin-top: 5px; font-size: 0.78rem; color: var(--muted); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  margin: 14px 0; font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent;
}
.alert-success { background: #F0FBF9; color: #006B63; border-color: #B2E4E1; }
.alert-error   { background: #FFF1EE; color: #9A2A15; border-color: #F4BDB3; }
.alert-info    { background: #EEF4FF; color: #0F4A9C; border-color: #B3CEFF; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
}
.level-tous          { background: #F5F5F5;  color: #717171; }
.level-debutant      { background: #E6F6F5;  color: #006B63; }
.level-intermediaire { background: #FEF9E7;  color: #8A4A00; }
.level-avance        { background: #FEF0EC;  color: #9A2A15; }
.level-competition   { background: #F0EEFF;  color: #4E2A9A; }
.status-ouvert  { background: #E6F6F5; color: #006B63; }
.status-complet { background: #FEF0EC; color: #9A2A15; }
.status-annule  { background: #F5F5F5; color: #717171; }

/* ============================================================
   HERO — Airbnb style: light, clean, centered search
   ============================================================ */
.hero {
  background: #fff;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-bg-circle { display: none; }

.hero-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  color: var(--accent-dark);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 20px;
}
.hero-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.3); }
}

.hero-h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 14px;
}
.hero-h1 span { color: var(--accent); }
.hero-h1 em   {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.7; max-width: 480px; margin: 0 auto;
}

/* Airbnb pill search bar */
.hero-search-pill {
  display: flex; align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  max-width: 760px; margin: 0 auto 24px;
  transition: box-shadow var(--transition);
}
.hero-search-pill:focus-within {
  box-shadow: 0 6px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
}

.search-pill-field {
  flex: 1; display: flex; flex-direction: column;
  padding: 14px 20px; cursor: text;
  border-right: 1.5px solid var(--border);
  transition: background var(--transition);
  min-width: 0;
}
.search-pill-field:hover { background: var(--bg-2); }
.search-pill-field:focus-within { background: #fff; }

.search-pill-field label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 3px; cursor: pointer;
}
.search-pill-field input,
.search-pill-field select {
  border: none; outline: none; background: transparent;
  font-size: 0.875rem; color: var(--text); font-weight: 500;
  padding: 0; width: 100%; appearance: none;
}
.search-pill-field input::placeholder,
.search-pill-field select option:first-child { color: var(--muted); }

.search-pill-btn {
  flex-shrink: 0; background: var(--accent); color: #fff;
  border: none; padding: 0 28px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  transition: background var(--transition);
}
.search-pill-btn:hover { background: var(--accent-dark); }
.search-pill-btn-icon { font-size: 1.1rem; }

/* Level filter chips */
.hero-chips {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-2);
  background: #fff; color: var(--text-2);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.hero-chip:hover        { border-color: var(--text); box-shadow: var(--shadow-xs); }
.hero-chip.active       { background: var(--text); color: #fff; border-color: var(--text); }
.hero-chip-dot          { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Stats row */
.hero-stats-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat-item { padding: 0 28px; text-align: center; }
.hero-stat-sep  { width: 1px; height: 28px; background: var(--border); }
.hero-stat-item strong {
  display: block; font-size: 1.4rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1;
}
.hero-stat-item strong small { font-size: 0.9rem; font-weight: 600; opacity: 0.55; }
.hero-stat-item span {
  display: block; font-size: 0.72rem; color: var(--text-light);
  margin-top: 3px; font-weight: 500;
}

/* Hero CTA row (kept for logged-in state) */
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }

/* Hero layout (for old 2-col hero — hidden on new design) */
.hero-layout    { max-width: 760px; margin: 0 auto; }
.hero-search-col { display: none; }

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.home-section-label {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 8px;
}
.home-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 8px;
}
.home-section-sub { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; max-width: 480px; }

.pm-section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); color: var(--text-light);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.pm-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; margin-bottom: 8px;
}
.pm-section-sub  { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; max-width: 500px; }
.pm-section-head { margin-bottom: 40px; }
.pm-section-head.center { text-align: center; }
.pm-section-head.center .pm-section-sub { margin: 0 auto; }

.section-tag { display:inline-flex;align-items:center;gap:6px;background:var(--bg-2);color:var(--text-light);padding:4px 12px;border-radius:var(--radius-full);font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px; }
.section-title { font-size:clamp(1.5rem,3vw,2rem);font-weight:800;color:var(--text);letter-spacing:-0.03em;margin-bottom:8px; }
.section-subtitle { color:var(--text-light);font-size:.95rem;line-height:1.6;max-width:500px; }
.section-header   { margin-bottom:36px; }
.section-header.center { text-align:center; }
.section-header.center .section-subtitle { margin:0 auto; }

/* ============================================================
   MATCHES — HOME
   ============================================================ */
.matches-home { padding: 72px 0; background: #fff; }
.matches-home-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.matches-home-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.matches-result-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.matches-result-count strong { color: var(--text); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Match card v2 — Airbnb listing style */
.match-card-v2 {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.match-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* Visual top area */
.match-card-v2-accent {
  height: 160px; background: var(--bg-2);
  position: relative; overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #F0F9F8 0%, var(--accent-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.match-card-v2-accent::before {
  content: '🎾';
  font-size: 5rem; opacity: 0.18;
  position: absolute;
}
.match-card-v2-accent.level-debutant {
  background: linear-gradient(135deg, #E6F6F5, #B2E4E1);
}
.match-card-v2-accent.level-intermediaire {
  background: linear-gradient(135deg, #FEF9E7, #FDE68A);
}
.match-card-v2-accent.level-avance {
  background: linear-gradient(135deg, #FEF0EC, #FCD5C8);
}
.match-card-v2-accent.level-competition {
  background: linear-gradient(135deg, #F0EEFF, #DDD6FE);
}

.match-card-v2-top-badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1;
}

.match-card-v2-body { padding: 16px; flex: 1; }
.match-card-v2-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.match-card-v2-info {
  display: flex; flex-direction: column; gap: 3px; margin-top: 6px;
}
.match-card-v2-info span {
  font-size: 0.8rem; color: var(--text-light);
}

.match-card-v2-footer {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.match-card-v2-organizer { display: flex; align-items: center; gap: 7px; min-width: 0; }
.match-card-v2-organizer img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.match-card-v2-organizer span { font-size: 0.78rem; color: var(--text-light); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-card-v2-spots { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.match-card-v2-spots-bar { width: 56px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.match-card-v2-spots-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.match-card-v2-spots-fill.full { background: var(--danger); }
.match-card-v2-spots-txt { font-size: 0.72rem; font-weight: 600; color: var(--text-light); }
.spots-full  { color: var(--danger) !important; }
.spots-last  { color: var(--warning) !important; }
.match-card-v2-date { font-size: 0.75rem; font-weight: 600; color: var(--text-light); }
.match-card-v2-level { font-size: 0.72rem; }

/* Old pm-card (compat) */
.pm-matches-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px; }
.pm-matches-top { display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:12px; }
.pm-card { background:#fff;border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform var(--transition),box-shadow var(--transition); }
.pm-card:hover { transform:translateY(-4px);box-shadow:var(--shadow); }
.pm-card-top { height:6px;background:var(--accent); }
.pm-card-top.level-debutant{background:var(--accent)}.pm-card-top.level-intermediaire{background:#D97706}.pm-card-top.level-avance{background:var(--danger)}.pm-card-top.level-competition{background:#6D28D9}
.pm-card-badge-level,.pm-card-date{display:none}
.pm-card-body{padding:18px;flex:1}.pm-card-title{font-weight:700;font-size:.95rem;color:var(--text);margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pm-card-info{display:flex;flex-direction:column;gap:6px}.pm-card-info-row{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--text-light)}.pm-card-info-icon{width:16px;text-align:center;font-size:.82rem;flex-shrink:0}
.pm-card-org{display:flex;align-items:center;gap:8px;padding:10px 18px;border-top:1px solid var(--border);font-size:.78rem;color:var(--muted)}.pm-card-org img{width:22px;height:22px;border-radius:50%;object-fit:cover}
.pm-card-footer{padding:12px 18px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:8px}
.pm-spots{display:flex;align-items:center;gap:7px}.pm-spots-dots{display:flex;gap:3px}.pm-spot{width:8px;height:8px;border-radius:50%;background:var(--border)}.pm-spot.on{background:var(--accent)}.pm-spot.full{background:var(--danger)}.pm-spots-txt{font-size:.78rem;font-weight:600;color:var(--text)}
.pm-empty{grid-column:1/-1;text-align:center;padding:56px 24px;border:2px dashed var(--border);border-radius:var(--radius-lg);background:var(--bg-2);color:var(--muted)}

/* ============================================================
   HOW IT WORKS — HOME
   ============================================================ */
.how-home { padding: 72px 0; background: var(--bg-2); }
.how-home-head { margin-bottom: 52px; }
.how-steps { display: flex; align-items: flex-start; gap: 0; }
.how-step  { flex: 1; padding: 0 40px 0 0; }
.how-step-num { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; display: block; }
.how-step-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; line-height: 1; }
.how-step h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.how-step p  { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }
.how-step-arrow { font-size: 1.3rem; color: var(--border-2); padding: 0 8px; margin-top: 44px; flex-shrink: 0; }

/* Old how-grid/how-card (compat) */
.how-section{padding:72px 0;background:var(--bg-2)}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.how-card{background:#fff;border-radius:var(--radius-lg);padding:32px 24px;box-shadow:var(--shadow-xs);transition:transform var(--transition),box-shadow var(--transition)}
.how-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.how-number{display:none}.how-icon{font-size:2rem;margin-bottom:14px;display:block}
.how-step-num-old{width:28px;height:28px;background:var(--accent);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;margin-bottom:16px}
.how-card h3{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:8px}.how-card p{font-size:.875rem;color:var(--text-light);line-height:1.65}
.how-arrow{display:none}

/* ============================================================
   NUMBERS / STATS — HOME
   ============================================================ */
.numbers-home { padding: 64px 0; background: var(--text); }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.number-item { text-align: center; padding: 36px 20px; border-right: 1px solid rgba(255,255,255,0.08); }
.number-item:last-child { border-right: none; }
.number-item strong {
  display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: #fff; letter-spacing: -0.04em; line-height: 1;
}
.number-item strong small { font-size: 1.4rem; font-weight: 600; opacity: 0.4; }
.number-item span { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }

/* Old stats section (compat) */
.stats-section{padding:64px 0;background:var(--text)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid rgba(255,255,255,0.08);border-radius:var(--radius-lg);overflow:hidden}
.stat-item{text-align:center;padding:36px 20px;border-right:1px solid rgba(255,255,255,0.08)}
.stat-item:last-child{border-right:none}
.stat-item .value{font-size:clamp(2rem,4vw,3rem);font-weight:800;color:#fff;letter-spacing:-0.04em;line-height:1;display:block}
.stat-item .label{color:rgba(255,255,255,0.4);font-size:.72rem;margin-top:7px;display:block;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
.stat-item .sub{color:rgba(255,255,255,0.25);font-size:.7rem;margin-top:2px;display:block}

/* ============================================================
   TESTIMONIALS — HOME
   ============================================================ */
.testi-home { padding: 72px 0; background: #fff; }
.testi-home-head { margin-bottom: 44px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.testi-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.testi-stars { font-size: 0.85rem; letter-spacing: 2px; color: #FFB400; margin-bottom: 14px; }
.testi-text  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.testi-text::before { content: '\201C'; color: var(--muted); }
.testi-text::after  { content: '\201D'; color: var(--muted); }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
.testi-name  { font-weight: 700; color: var(--text); font-size: 0.875rem; }
.testi-meta  { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

/* Old testimonials (compat) */
.testimonials-section{padding:72px 0;background:#fff}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.testimonial-card{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:28px;display:flex;flex-direction:column;transition:border-color var(--transition),box-shadow var(--transition)}
.testimonial-card:hover{border-color:var(--border-2);box-shadow:var(--shadow)}
.testimonial-stars{font-size:.85rem;letter-spacing:2px;color:#FFB400;margin-bottom:14px}
.testimonial-text{font-size:.875rem;color:var(--text-2);line-height:1.7;flex:1;margin-bottom:20px}
.testimonial-text::before{content:'\201C'}.testimonial-text::after{content:'\201D'}
.testimonial-author{display:flex;align-items:center;gap:12px;padding-top:18px;border-top:1px solid var(--border)}
.testimonial-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent-dark));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.95rem;flex-shrink:0}
.testimonial-name{font-weight:700;color:var(--text);font-size:.875rem}
.testimonial-city{color:var(--muted);font-size:.75rem;margin-top:2px}

/* ============================================================
   CTA — HOME
   ============================================================ */
.cta-home { background: var(--text); padding: 0; }
.cta-home-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 64px 0; border-top: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap;
}
.cta-home-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; letter-spacing: -0.03em; margin-bottom: 8px; }
.cta-home-text p  { color: rgba(255,255,255,0.5); font-size: 0.95rem; max-width: 400px; }
.cta-home-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cta-section { background: var(--text); padding: 80px 0; text-align: center; position: relative; }
.cta-section::before,.cta-section::after{display:none}
.cta-section h2 { font-size: clamp(1.6rem,4vw,2.4rem); color: #fff; margin-bottom: 12px; letter-spacing:-0.03em; }
.cta-section p  { color: rgba(255,255,255,0.55); font-size: 1rem; margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-actions    { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  padding: 48px 16px; background: var(--bg-2);
}
.auth-card { width: 100%; max-width: 480px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.auth-card-wide { max-width: 560px; }
.auth-header { background: var(--text); padding: 36px 32px 28px; text-align: center; }
.auth-header .logo { justify-content: center; margin-bottom: 16px; }
.auth-header h1 { color: #fff; font-size: 1.5rem; letter-spacing: -0.02em; }
.auth-header-sub { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-top: 7px; }
.auth-body   { padding: 28px 32px; }
.auth-footer { text-align: center; padding: 0 32px 28px; font-size: 0.875rem; color: var(--muted); }
.auth-footer a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-social-proof { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; background: var(--bg-2); border-top: 1px solid var(--border); flex-wrap: wrap; }
.auth-proof-item { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.auth-proof-sep  { color: var(--border-2); }

/* LOGIN PAGE */
.login-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: stretch; }
.login-layout { display: grid; grid-template-columns: 1fr 480px; min-height: calc(100vh - var(--header-h)); width: 100%; }
.login-promo {
  background: var(--text); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.login-promo::before { content:''; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,0.04) 1px,transparent 1px); background-size:28px 28px; pointer-events:none; }
.login-promo::after  { content:''; position:absolute; top:-100px; right:-80px; width:400px; height:400px; background:radial-gradient(circle,rgba(0,155,141,0.15) 0%,transparent 65%); pointer-events:none; }
.login-promo-title { font-size:clamp(1.8rem,3.5vw,2.8rem);font-weight:800;color:#fff;letter-spacing:-0.03em;line-height:1.15;margin-bottom:14px;position:relative;z-index:1;max-width:400px; }
.login-promo-sub   { font-size:.95rem;color:rgba(255,255,255,0.5);line-height:1.65;margin-bottom:40px;max-width:380px;position:relative;z-index:1; }
.login-features    { display:flex;flex-direction:column;gap:22px;margin-bottom:44px;position:relative;z-index:1; }
.login-feature     { display:flex;align-items:flex-start;gap:14px; }
.login-feature-icon{ width:38px;height:38px;background:rgba(0,155,141,0.15);border:1px solid rgba(0,155,141,0.25);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0; }
.login-feature strong { display:block;color:#fff;font-size:.875rem;font-weight:600;margin-bottom:2px; }
.login-feature p   { color:rgba(255,255,255,0.45);font-size:.8rem;line-height:1.5;margin:0; }
.login-promo-stats { display:flex;gap:28px;padding-top:28px;border-top:1px solid rgba(255,255,255,0.08);position:relative;z-index:1; }
.login-promo-stat strong { display:block;font-size:1.4rem;font-weight:800;color:#fff;letter-spacing:-0.03em;line-height:1; }
.login-promo-stat span { display:block;font-size:.68rem;color:rgba(255,255,255,0.35);margin-top:4px;font-weight:600;text-transform:uppercase;letter-spacing:.06em; }
.login-form-col { background:#fff;display:flex;align-items:center;justify-content:center;padding:48px; }
.login-card { width:100%;max-width:360px; }
.login-card-title { font-size:1.8rem;font-weight:800;color:var(--text);letter-spacing:-0.04em;margin-bottom:6px; }
.login-card-sub   { font-size:.875rem;color:var(--muted);margin-bottom:28px; }
.login-card-footer{ display:flex;align-items:center;justify-content:center;gap:8px;margin-top:22px;padding-top:20px;border-top:1px solid var(--border);font-size:.875rem;color:var(--muted); }
.login-card-footer a { color:var(--text);font-weight:700;text-decoration:underline;text-underline-offset:2px; }

/* ============================================================
   PAGE HEADER (dark)
   ============================================================ */
.page-header { background: var(--text); padding: 44px 0 36px; color: #fff; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 5px; letter-spacing: -0.03em; color: #fff; }
.page-header p  { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.breadcrumb { display:flex;align-items:center;gap:8px;font-size:.78rem;color:rgba(255,255,255,0.4);margin-bottom:10px; }
.breadcrumb a { color:rgba(255,255,255,0.4); }
.breadcrumb a:hover { color:#fff; }
.breadcrumb-sep { opacity:.4; }

/* ============================================================
   MATCH DETAIL
   ============================================================ */
.detail-header-row { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap; }
.detail-header-actions { display:flex;gap:8px;align-items:center;flex-shrink:0;flex-wrap:wrap; }

.match-detail-layout { display:grid;grid-template-columns:1fr 340px;gap:28px;padding:40px 0;align-items:start; }
.match-detail-main { display:flex;flex-direction:column;gap:16px; }
.match-sidebar     { display:flex;flex-direction:column;gap:0; }

.match-info-card { background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden;box-shadow:var(--shadow-xs); }
.match-info-header { padding:22px 24px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:10px; }
.match-info-header h2 { font-size:1.3rem;color:var(--text);letter-spacing:-0.02em; }
.match-info-body { padding:24px; }

.detail-info-grid { display:grid;grid-template-columns:1fr 1fr;gap:0;margin-bottom:20px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden; }
.detail-info-item { display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-right:1px solid var(--border);border-bottom:1px solid var(--border); }
.detail-info-item:nth-child(2n){border-right:none}
.detail-info-item:nth-last-child(-n+2){border-bottom:none}
.detail-info-icon  { font-size:1rem;flex-shrink:0;margin-top:1px; }
.detail-info-label { display:block;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:3px; }
.detail-info-val   { display:block;font-size:.88rem;font-weight:600;color:var(--text); }

.detail-players-section { margin-bottom:20px; }
.detail-players-header  { display:flex;justify-content:space-between;align-items:center;margin-bottom:8px; }
.detail-players-count   { font-size:.875rem;font-weight:700;color:var(--text); }
.detail-progress-bar    { height:5px;background:var(--bg-2);border-radius:3px;overflow:hidden;margin-bottom:6px; }
.detail-progress-fill   { height:100%;background:var(--accent);border-radius:3px;transition:width .5s; }
.detail-progress-fill.full { background:var(--danger); }
.detail-spots-txt       { font-size:.82rem;color:var(--text-light);font-weight:500; }

.match-description { padding:16px;background:var(--bg-2);border-radius:var(--radius);color:var(--text-light);font-size:.875rem;line-height:1.7;margin-bottom:20px; }

.participants-section h4 { font-size:.9rem;color:var(--text);margin-bottom:12px;font-weight:700; }
.participants-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px; }
.participant-item  { display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--bg-2);border-radius:var(--radius);font-size:.82rem;border:1px solid var(--border); }
.participant-avatar{ width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0; }
.participant-name  { font-weight:600;color:var(--text); }
.participant-level { font-size:.72rem;color:var(--muted); }

.detail-location-card { display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs); }
.detail-location-icon  { font-size:1.5rem;flex-shrink:0; }
.detail-location-info  { flex:1;min-width:0; }
.detail-location-info strong { display:block;font-size:.9rem;font-weight:700;color:var(--text); }
.detail-location-info span   { font-size:.8rem;color:var(--muted); }

/* Sidebar action card */
.action-card { background:#fff;border:1px solid var(--border);padding:22px; }
.action-card:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.action-card:last-child  { border-bottom:1px solid var(--border);border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.action-card:only-child  { border-radius:var(--radius-lg);border-bottom:1px solid var(--border);box-shadow:var(--shadow-xs); }
.action-card h3 { font-size:.95rem;margin-bottom:16px;color:var(--text);font-weight:700; }
.action-card-org { display:flex;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--border); }
.organizer-profile { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.organizer-avatar-lg { width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid var(--border); }
.organizer-info strong { display:block;color:var(--text);font-weight:600;font-size:.9rem; }
.organizer-info small  { color:var(--muted);font-size:.78rem; }

.contact-info { display:flex;flex-direction:column;gap:6px;margin-top:12px; }
.contact-item { display:flex;align-items:center;gap:9px;font-size:.82rem;color:var(--text);padding:9px 12px;background:var(--bg-2);border-radius:var(--radius);border:1px solid var(--border); }
.contact-item a { color:var(--accent);font-weight:600; }

.contact-reveal { margin:10px 0;border:1px solid var(--accent-mid);border-radius:var(--radius);overflow:hidden;background:var(--accent-light); }
.contact-reveal-label { padding:8px 12px;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--accent-dark);border-bottom:1px solid var(--accent-mid); }
.contact-reveal-item { display:flex;align-items:center;gap:10px;padding:10px 12px;color:var(--text);font-size:.85rem;font-weight:600;border-bottom:1px solid var(--accent-mid);text-decoration:none;transition:background var(--transition); }
.contact-reveal-item:last-child { border-bottom:none; }
.contact-reveal-item:hover { background:rgba(0,155,141,0.08); }
.contact-reveal-icon { flex-shrink:0; }

.status-info { padding:12px 16px;border-radius:var(--radius);text-align:center;font-size:.875rem;font-weight:600;margin-bottom:12px; }
.status-info.pending   { background:#FEF9C3;color:#8A4A00; }
.status-info.accepted  { background:var(--accent-light);color:var(--accent-dark); }
.status-info.refused   { background:#FEF0EC;color:var(--danger); }
.status-info.full      { background:#FEF0EC;color:var(--danger); }
.status-info.cancelled { background:var(--bg-2);color:var(--muted); }
.detail-status-hint { font-size:.78rem;color:var(--muted);text-align:center;margin:7px 0 10px;line-height:1.5; }

.detail-summary-card { background:var(--bg-2) !important; }
.detail-summary-row { display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--border);font-size:.85rem; }
.detail-summary-row:last-child { border-bottom:none; }
.detail-summary-row span:first-child { color:var(--muted);font-weight:500; }
.detail-summary-row strong { font-weight:700;color:var(--text); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-page { padding: 40px 0; }
.dash-grid { display:flex;flex-direction:column;gap:44px; }

.dash-header-row { display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px; }
.dash-welcome-label { font-size:.72rem;color:rgba(255,255,255,0.45);font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px; }
.dash-header-row h1 { font-size:1.8rem;letter-spacing:-0.03em;margin:0;color:#fff; }
.dash-header-sub    { color:rgba(255,255,255,0.45);font-size:.875rem;margin-top:4px; }

.dash-stats-bar { display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.08);border-radius:var(--radius-lg);overflow:hidden; }
.dash-stat-box  { background:rgba(255,255,255,0.04);padding:18px 16px;text-align:center; }
.dash-stat-box--alert strong { color:#FFB400 !important; }
.dash-stat-box strong { display:block;font-size:1.7rem;font-weight:800;color:#fff;letter-spacing:-0.04em;line-height:1; }
.dash-stat-box span   { display:block;font-size:.65rem;color:rgba(255,255,255,0.4);margin-top:5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em; }

.dash-section-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px;padding-bottom:14px;border-bottom:1.5px solid var(--border); }
.dash-section-title  { font-size:1.2rem;color:var(--text);font-weight:700;letter-spacing:-0.02em; }
.dash-count { font-size:.78rem;color:var(--muted);background:var(--bg-2);padding:3px 10px;border-radius:var(--radius-full);font-weight:600;border:1px solid var(--border); }

/* Manage cards */
.match-manage-card { background:#fff;border:1px solid var(--border);margin-bottom:0;overflow:hidden;border-radius:0; }
.match-manage-card:first-of-type { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.match-manage-card:last-of-type  { border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.match-manage-card:only-of-type  { border-radius:var(--radius-lg); }
.match-manage-card + .match-manage-card { border-top:none; }

.match-manage-level-bar { height:3px;background:var(--accent); }
.match-manage-level-bar.level-debutant{background:var(--accent)}.match-manage-level-bar.level-intermediaire{background:#D97706}.match-manage-level-bar.level-avance{background:var(--danger)}.match-manage-level-bar.level-competition{background:#6D28D9}

.match-manage-header { display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:12px;flex-wrap:wrap; }
.match-manage-info { flex:1;min-width:0; }
.match-manage-title-row { display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px; }
.match-manage-title { font-weight:700;color:var(--text);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.badge-pending-dot  { background:#FEF9C3;color:#8A4A00;animation:pulse-badge 2s ease-in-out infinite; }
@keyframes pulse-badge { 0%,100%{opacity:1}50%{opacity:.7} }
.match-manage-meta  { font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.match-manage-actions { display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;align-items:center; }
.match-manage-progress { display:flex;align-items:center;gap:10px;margin-top:8px; }
.match-manage-progress-bar  { flex:1;height:3px;background:var(--border);border-radius:2px;overflow:hidden;max-width:100px; }
.match-manage-progress-fill { height:100%;background:var(--accent);border-radius:2px; }
.match-manage-progress-fill.full { background:var(--danger); }
.match-manage-progress-txt  { font-size:.72rem;color:var(--muted);font-weight:600;white-space:nowrap; }

.pending-section { border-top:1px solid var(--border);padding:16px 20px;background:#FAFAFA; }
.pending-section-title { font-size:.68rem;font-weight:800;color:var(--text);text-transform:uppercase;letter-spacing:.07em;margin-bottom:12px; }
.request-item { display:flex;align-items:flex-start;gap:12px;padding:12px 14px;background:#fff;border-radius:var(--radius);margin-bottom:8px;border:1px solid var(--border);flex-wrap:wrap; }
.request-avatar { width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;margin-top:2px; }
.request-info { flex:1;min-width:0; }
.request-name   { font-weight:600;font-size:.875rem;color:var(--text); }
.request-detail { font-size:.75rem;color:var(--muted); }
.request-message{ width:100%;margin-top:6px;padding:7px 10px;background:var(--bg-2);border-radius:var(--radius-sm);font-size:.78rem;color:var(--muted);font-style:italic;border:1px solid var(--border); }
.request-actions{ display:flex;gap:6px;flex-shrink:0;margin-top:2px; }

.my-request-card { background:#fff;border:1px solid var(--border);padding:14px 18px;margin-bottom:0;display:flex;align-items:center;gap:14px;flex-wrap:wrap; }
.my-request-card:first-of-type { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.my-request-card:last-of-type  { border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.my-request-card:only-of-type  { border-radius:var(--radius-lg); }
.my-request-card + .my-request-card { border-top:none; }
.my-request-info  { flex:1;min-width:0; }
.my-request-title { font-weight:700;color:var(--text);margin-bottom:4px;font-size:.9rem; }
.my-request-meta  { font-size:.78rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:10px; }
.my-request-status{ flex-shrink:0; }
.req-pending  { background:#FEF9C3;color:#8A4A00; }
.req-accepted { background:var(--accent-light);color:var(--accent-dark); }
.req-refused  { background:#FEF0EC;color:var(--danger); }

/* Upcoming */
.upcoming-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px; }
.upcoming-card { display:flex;flex-direction:column;background:#fff;border:1.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;text-decoration:none;color:inherit;transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition); }
.upcoming-card:hover { border-color:var(--border-2);box-shadow:var(--shadow);transform:translateY(-2px); }
.upcoming-card-accent { height:3px;background:var(--accent);flex-shrink:0; }
.upcoming-card-accent.level-intermediaire{background:#D97706}.upcoming-card-accent.level-avance{background:var(--danger)}.upcoming-card-accent.level-competition{background:#6D28D9}
.upcoming-card-body { padding:14px 16px;display:flex;flex-direction:column;gap:4px; }
.upcoming-card-countdown { font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--accent); }
.upcoming-card-countdown.urgent { color:var(--danger);animation:pulse-badge 1.5s ease-in-out infinite; }
.upcoming-card-title { font-size:.875rem;font-weight:700;color:var(--text); display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;overflow:hidden; }
.upcoming-card-meta  { display:flex;flex-direction:column;gap:2px;margin-top:2px; }
.upcoming-card-meta span { font-size:.72rem;color:var(--text-light); }
.upcoming-card-org   { font-size:.7rem;color:var(--muted);margin-top:6px;padding-top:8px;border-top:1px solid var(--border); }

/* Empty state */
.dash-empty { text-align:center;padding:44px 24px;background:var(--bg-2);border-radius:var(--radius-lg);border:2px dashed var(--border); }
.dash-empty-icon { font-size:2.8rem;margin-bottom:10px;opacity:.3;display:block; }
.dash-empty h3 { font-size:1rem;font-weight:700;color:var(--text);margin-bottom:5px; }
.dash-empty p  { font-size:.875rem;color:var(--muted);margin-bottom:16px; }
.empty-state   { text-align:center;padding:40px 20px;color:var(--muted);background:var(--bg-2);border-radius:var(--radius-lg);border:2px dashed var(--border); }
.empty-state .icon { font-size:2.6rem;margin-bottom:10px;opacity:.4; }
.empty-state p { margin-bottom:14px;font-size:.9rem; }
.no-matches { grid-column:1/-1;text-align:center;padding:56px 20px;color:var(--muted);background:var(--bg-2);border-radius:var(--radius-lg);border:2px dashed var(--border); }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif-page { padding:36px 0;max-width:680px;margin:0 auto; }
.notif-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;padding-bottom:16px;border-bottom:1.5px solid var(--border); }
.notif-header h2 { font-size:1.2rem;color:var(--text);font-weight:700; }
.notif-day-group  { margin-bottom:24px; }
.notif-day-label  { font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:8px;padding-left:2px; }
.notif-list       { display:flex;flex-direction:column;gap:0; }
.notif-item { display:flex;align-items:flex-start;gap:14px;padding:14px 16px;background:#fff;border:1px solid var(--border);color:inherit;text-decoration:none;transition:background var(--transition); }
.notif-item:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.notif-item:last-child  { border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.notif-item:only-child  { border-radius:var(--radius-lg); }
.notif-item + .notif-item { border-top:none; }
.notif-item--unread { background:#F7FFFE; }
.notif-item:hover   { background:var(--bg-2); }
.notif-item-icon   { font-size:1.1rem;flex-shrink:0;width:34px;height:34px;background:var(--bg-2);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:1px; }
.notif-content     { flex:1; }
.notif-text        { font-size:.875rem;color:var(--text);line-height:1.5;font-weight:500; }
.notif-time        { font-size:.72rem;color:var(--muted);margin-top:3px; }
.notif-unread-dot  { width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:8px; }
.notif-dot         { width:7px;height:7px;border-radius:50%;background:var(--accent);margin-top:8px;flex-shrink:0; }
.notif-item:not(.notif-item--unread) .notif-dot { background:transparent;border:1.5px solid var(--border); }
.notif-empty       { text-align:center;padding:56px 20px;color:var(--muted); }
.notif-empty-icon  { font-size:3rem;margin-bottom:12px;opacity:.25;display:block; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-page { padding:36px 0; }
.profile-page-header { display:flex;align-items:flex-start;justify-content:space-between;gap:28px;flex-wrap:wrap;padding-bottom:24px; }
.profile-header-identity { display:flex;align-items:center;gap:18px; }
.profile-header-avatar-wrap { position:relative;flex-shrink:0; }
.profile-header-avatar { width:68px;height:68px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,0.2); }
.profile-header-avatar-edit { position:absolute;bottom:0;right:0;background:var(--accent);color:#fff;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.72rem;cursor:pointer;border:2px solid var(--text);transition:background var(--transition); }
.profile-header-avatar-edit:hover { background:var(--accent-dark); }
.profile-page-header h1 { font-size:1.7rem;color:#fff;letter-spacing:-0.03em;margin-bottom:6px; }
.profile-header-sub { display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px; }
.profile-header-sub span { color:rgba(255,255,255,0.5);font-size:.85rem; }
.profile-header-stats { display:flex;gap:0;align-items:center; }
.profile-hstat { text-align:center;padding:0 20px;border-right:1px solid rgba(255,255,255,0.08); }
.profile-hstat:first-child { padding-left:0; }.profile-hstat:last-child { border-right:none; }
.profile-hstat strong { display:block;font-size:1.4rem;font-weight:800;color:#fff;letter-spacing:-0.03em;line-height:1; }
.profile-hstat span   { display:block;font-size:.65rem;color:rgba(255,255,255,0.35);margin-top:4px;font-weight:600;text-transform:uppercase;letter-spacing:.06em; }

.profile-grid   { display:grid;grid-template-columns:240px 1fr;gap:22px;align-items:start;padding-top:28px; }
.profile-aside  { display:flex;flex-direction:column;gap:12px; }
.profile-aside-card { background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow-xs); }
.profile-aside-avatar-wrap { position:relative;display:block;width:80px;height:80px;margin:0 auto 12px;cursor:pointer; }
.profile-aside-avatar { width:80px;height:80px;border-radius:50%;object-fit:cover;border:2.5px solid var(--border);display:block; }
.profile-aside-avatar-overlay { position:absolute;inset:0;border-radius:50%;background:rgba(0,0,0,0.5);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;opacity:0;transition:opacity var(--transition);cursor:pointer; }
.profile-aside-avatar-wrap:hover .profile-aside-avatar-overlay { opacity:1; }
.profile-aside-avatar-overlay span { color:#fff;font-size:.65rem;font-weight:700;line-height:1; }
.profile-aside-avatar-overlay span:first-child { font-size:1.1rem; }
.profile-aside-info-row { display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);font-size:.82rem;color:var(--text); }
.profile-aside-info-row:last-child { border-bottom:none;padding-bottom:0; }
.profile-aside-info-row:first-child{ padding-top:0; }
.profile-aside-info-row span:first-child { flex-shrink:0;width:18px;text-align:center; }
.profile-aside-info-row span:last-child  { color:var(--text-light);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.profile-forms   { display:flex;flex-direction:column;gap:0; }
.profile-main    { display:flex;flex-direction:column;gap:0; }
.profile-sidebar { background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);padding:24px;text-align:center;box-shadow:var(--shadow-xs); }
.profile-avatar-wrap { position:relative;display:inline-block;margin-bottom:14px; }
.profile-avatar  { width:88px;height:88px;border-radius:50%;object-fit:cover;border:2.5px solid var(--border); }
.profile-level   { margin-bottom:8px; }
.avatar-edit-btn { position:absolute;bottom:2px;right:2px;background:var(--accent);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;border:2px solid #fff;cursor:pointer;transition:background var(--transition); }
.avatar-edit-btn:hover { background:var(--accent-dark); }
.profile-name  { font-size:1rem;font-weight:700;color:var(--text);margin-bottom:3px; }
.profile-email { font-size:.78rem;color:var(--muted);margin-bottom:8px; }
.profile-section { background:#fff;border:1px solid var(--border);overflow:hidden; }
.profile-section:first-child { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.profile-section:last-child  { border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.profile-section:only-child  { border-radius:var(--radius-lg); }
.profile-section + .profile-section { border-top:none; }
.profile-section-header { padding:16px 22px;border-bottom:1px solid var(--border);font-size:.85rem;font-weight:700;color:var(--text);background:var(--bg-2); }
.profile-section-body   { padding:22px; }

/* ============================================================
   CREATE / EDIT MATCH
   ============================================================ */
.create-page { padding:40px 0; }
.create-layout { display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:start;max-width:1000px;margin:0 auto; }
.create-card { background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden;box-shadow:var(--shadow-xs); }
.create-card-header { background:var(--text);padding:26px 30px; }
.create-card-header h1 { color:#fff;font-size:1.5rem;letter-spacing:-0.02em; }
.create-card-header p  { color:rgba(255,255,255,0.5);font-size:.875rem;margin-top:4px; }
.create-card-body   { padding:26px 30px; }
.create-card-footer { padding:0 30px 26px;display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--border);padding-top:20px; }
.create-tips { display:flex;flex-direction:column;gap:12px;position:sticky;top:calc(var(--header-h) + 20px); }
.create-tip-card { background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow-xs); }
.create-tip-card--dark { background:var(--bg-2); }
.create-tip-icon { font-size:1.3rem;margin-bottom:8px; }
.create-tip-card h3 { font-size:.85rem;font-weight:700;color:var(--text);margin-bottom:10px; }
.create-tip-card p  { font-size:.78rem;color:var(--text-light);line-height:1.6; }
.create-tip-list    { list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px; }
.create-tip-list li { font-size:.78rem;color:var(--text-light);line-height:1.4; }
.create-layout .create-card { max-width:none;margin:0; }

/* ============================================================
   REGISTER — LEVEL PICKER
   ============================================================ */
.level-picker { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.level-option { display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1.5px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:border-color var(--transition),background var(--transition); }
.level-option input[type="radio"] { display:none; }
.level-option:hover { border-color:var(--border-2);background:var(--bg-2); }
.level-option--active { border-color:var(--text);background:var(--text); }
.level-option--active .level-option-name,.level-option--active .level-option-desc { color:#fff; }
.level-option-emoji { font-size:1.05rem;flex-shrink:0;margin-top:1px; }
.level-option-name  { font-size:.875rem;font-weight:700;color:var(--text);display:block; }
.level-option-desc  { font-size:.72rem;color:var(--muted);display:block;margin-top:2px;line-height:1.4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--text); color: rgba(255,255,255,0.5); }
.footer-top { display:grid;grid-template-columns:1.4fr 1fr;gap:48px;padding:52px 0;border-bottom:1px solid rgba(255,255,255,0.08); }
.footer-brand { min-width: 0; }
.footer-tagline { color:rgba(255,255,255,0.35);font-size:.875rem;margin:10px 0 22px;line-height:1.65;max-width:300px; }
.footer-stats { display:flex;gap:22px;flex-wrap:wrap; }
.footer-stat strong { display:block;font-size:1.2rem;color:#fff;font-weight:800;letter-spacing:-0.03em; }
.footer-stat span   { font-size:.68rem;color:rgba(255,255,255,0.3);text-transform:uppercase;letter-spacing:.05em;font-weight:600; }
.footer-links  { display:flex;gap:44px; }
.footer-col    { display:flex;flex-direction:column;gap:10px; }
.footer-col h4 { color:#fff;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px; }
.footer-col a  { font-size:.85rem;color:rgba(255,255,255,0.35);transition:color var(--transition); }
.footer-col a:hover,.footer-col a.active { color:#fff; }
.footer-bottom { padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:.78rem;color:rgba(255,255,255,0.2);flex-wrap:wrap; }

/* ============================================================
   TOAST / FLASH
   ============================================================ */
.toast-alert {
  position: fixed !important;
  bottom: 24px; right: 24px;
  min-width: 280px; max-width: 400px;
  z-index: 9999;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14) !important;
  padding: 14px 18px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  animation: toast-in .3s ease;
}
.toast-alert.alert-success { background: var(--text) !important; color: #fff !important; border-color: rgba(0,155,141,0.3) !important; }
.toast-alert.alert-error   { background: #1a0000 !important; color: #fca5a5 !important; border-color: rgba(239,68,68,0.3) !important; }
.toast-alert.alert-info    { background: #00101a !important; color: #93c5fd !important; border-color: rgba(59,130,246,0.3) !important; }
@keyframes toast-in { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ============================================================
   PASSWORD / FORM UTILS
   ============================================================ */
.input-password-wrap { position:relative; }
.input-password-wrap .form-control { padding-right:44px; }
.pw-toggle { position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:.95rem;padding:4px;color:var(--muted);transition:color var(--transition); }
.pw-toggle:hover { color:var(--text); }
.pw-strength { margin-top:7px;display:none; }
.pw-strength-bar { height:3px;background:var(--border);border-radius:2px;overflow:hidden;margin-bottom:4px; }
.char-counter { font-size:.72rem;color:var(--muted);text-align:right;margin-top:4px; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page { display:flex;align-items:center;justify-content:center;min-height:calc(100vh - var(--header-h) - 200px);padding:60px 0; }
.error-inner { text-align:center;max-width:500px;margin:0 auto; }
.error-code  { font-size:clamp(5rem,14vw,9rem);font-weight:800;color:var(--text);letter-spacing:-0.06em;line-height:1;margin-bottom:14px; }
.error-title { font-size:clamp(1.4rem,3vw,2rem);font-weight:800;color:var(--text);margin-bottom:12px; }
.error-sub   { font-size:.95rem;color:var(--text-light);line-height:1.65;margin-bottom:32px; }
.error-actions { display:flex;gap:12px;justify-content:center;flex-wrap:wrap; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align:center; }
.text-muted  { color:var(--muted); }
.text-primary{ color:var(--accent); }
.text-danger { color:var(--danger); }
.text-success{ color:var(--success); }
.mt-1{margin-top:8px}.mb-1{margin-bottom:8px}
.mt-2{margin-top:16px}.mb-2{margin-bottom:16px}
.mt-3{margin-top:24px}.mb-3{margin-bottom:24px}
.d-flex{display:flex}.align-center{align-items:center}
.gap-1{gap:8px}.gap-2{gap:16px}
.flex-wrap{flex-wrap:wrap}.font-bold{font-weight:700}.w-100{width:100%}
.pm-section       { padding:72px 0; }
.pm-section.bg-white { background:#fff; }
.pm-section.bg-gray  { background:var(--bg-2); }
.pm-section.bg-dark  { background:var(--text); }
.matches-section  { padding:72px 0;background:#fff; }
.matches-top      { display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;flex-wrap:wrap;gap:12px; }
.matches-grid     { display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .login-layout           { grid-template-columns: 1fr; }
  .login-promo            { padding: 48px 32px; }
  .match-detail-layout,.hero-layout { grid-template-columns: 1fr; }
  .hero-content           { text-align: center; }
  .hero-sub               { margin-left: auto; margin-right: auto; }
  .hero-cta-row           { justify-content: center; }
  .hero-stats-row         { justify-content: center; }
  .profile-grid           { grid-template-columns: 1fr; }
  .profile-aside          { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-grid           { padding-top: 20px; }
  .profile-page-header    { flex-direction: column; gap: 20px; }
  .cta-home-inner         { flex-direction: column; text-align: center; }
  .cta-home-actions       { justify-content: center; }
  .create-layout          { grid-template-columns: 1fr; }
  .create-tips            { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .burger-btn { display: flex; }
  .nav-main {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; gap: 3px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 999;
  }
  .nav-main.open          { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link               { padding: 12px 14px; }
  .user-name-sm           { display: none; }
  .hero-search-pill       { flex-direction: column; border-radius: var(--radius-xl); }
  .search-pill-field      { border-right: none; border-bottom: 1.5px solid var(--border); }
  .search-pill-field:last-of-type { border-bottom: none; }
  .search-pill-btn        { padding: 16px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); justify-content: center; }
  .cards-grid,.matches-grid,.pm-matches-grid { grid-template-columns: 1fr; }
  .how-grid               { grid-template-columns: 1fr; }
  .how-steps              { flex-direction: column; }
  .how-step               { padding: 0; }
  .how-step-arrow         { display: none; }
  .numbers-grid,.stats-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid,.testimonials-grid { grid-template-columns: 1fr; }
  .form-row               { grid-template-columns: 1fr; }
  .footer-top             { grid-template-columns: 1fr; gap: 28px; }
  .footer-links           { flex-direction: column; gap: 20px; }
  .dash-stats-bar         { grid-template-columns: repeat(2,1fr); }
  .dash-header-row        { flex-direction: column; }
  .match-manage-header    { flex-direction: column; align-items: flex-start; }
  .match-manage-actions   { width: 100%; }
  .upcoming-grid          { grid-template-columns: 1fr 1fr; }
  .login-promo            { display: none; }
  .login-form-col         { padding: 40px 22px; }
  .profile-aside          { grid-template-columns: 1fr; }
  .level-picker           { grid-template-columns: 1fr; }
  .detail-info-grid       { grid-template-columns: 1fr; }
  .detail-info-item       { border-right: none; border-bottom: 1px solid var(--border); }
  .detail-info-item:last-child { border-bottom: none; }
  .toast-alert            { bottom:12px;right:12px;left:12px;min-width:0;max-width:none; }
  .error-actions          { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-h1                { font-size: 2rem; }
  .hero-cta-row           { flex-direction: column; }
  .hero-cta-row .btn      { width: 100%; justify-content: center; }
  .hero-stats-row         { flex-wrap: wrap; gap: 14px; }
  .hero-stat-sep          { display: none; }
  .numbers-grid,.stats-grid { grid-template-columns: 1fr 1fr; }
  .number-item,.stat-item { padding: 24px 12px; }
  .upcoming-grid          { grid-template-columns: 1fr; }
  .cta-home-actions       { flex-direction: column; width: 100%; }
  .cta-home-actions .btn  { width: 100%; justify-content: center; }
  .dash-stats-bar         { grid-template-columns: 1fr 1fr; }
  .auth-body,.auth-header { padding: 22px 18px; }
  .auth-footer            { padding: 0 18px 20px; }
  .create-card-body       { padding: 22px 18px; }
  .create-card-footer     { flex-direction: column; }
  .error-code             { font-size: 5rem; }
}
