:root {
  --primary: #C9A020;
  --primary-dark: #A07810;
  --primary-light: #E8BC30;
  --accent: #C9A020;
  --dark: #080808;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --text: #FFFFFF;
  --text-muted: #888888;
  --border: #2a2a2a;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #C9A020;
  --warning-alt: #e67e22;
  --card-bg: #141414;
  --input-bg: #0d0d0d;
  --sidebar-w: 270px;
  --gold: #C9A020;
  --gold-light: #E8BC30;
  --gold-dim: rgba(201,160,32,0.12);
  --surface: #141414;   /* alias de --card-bg, fond des cartes et surfaces */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
}

/* ===== AUTH ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #080808;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,160,32,0.30) 0%, transparent 70%);
  pointer-events: none;
}

/* Lignes diagonales décoratives */
.auth-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.04;
}
.auth-lines svg { width: 100%; height: 100%; }

.auth-box {
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,160,32,0.08);
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo .site-logo-svg {
  display: block;
  margin: 0 auto 16px;
  width: 180px;
  height: auto;
}

.auth-logo .site-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Real logo images */
.site-logo-img {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto;
  /* logo has black background — blend it with the dark page */
  mix-blend-mode: lighten;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

/* Divider doré entre logo et formulaire */
.auth-divider {
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}

/* Eyebrow doré au-dessus du formulaire */
.auth-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}

/* Animation fadeUp */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Le formulaire arrive après le logo */
.auth-box #loginForm,
.auth-box #forgotForm {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.45s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .site-logo-img,
  .auth-divider,
  .auth-eyebrow,
  .auth-box #loginForm,
  .auth-box #forgotForm {
    animation: none;
    opacity: 1;
  }
}

.sidebar-logo-img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: lighten;
}

.tab-switcher {
  display: flex;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.tab-btn.active {
  background: var(--primary);
  color: #000;
}

.form-group {
  margin-bottom: 16px;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid #222;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,160,32,0.08);
}

.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; min-height: 80px; }

.remember-me-group { margin-bottom: 4px; }
.remember-me-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}
.remember-me-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  background: #1a1a1a;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #222; border-color: #444; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(201,160,32,0.06); }
.btn-outline:disabled, .btn-outline[disabled] { opacity: 0.4; cursor: not-allowed; }

.btn-success { background: var(--success); color: #000; font-weight: 700; }
.btn-success:hover { filter: brightness(1.1); }

.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-icon { padding: 8px; border-radius: 6px; }

.error-msg {
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.success-msg {
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.3);
  color: #2ecc71;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: #0a0a0a;
  border-right: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 20px 20px 18px;
  border-bottom: 1px solid #1a1a1a;
  background: #080808;
}

.sidebar-logo svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sidebar-user {
  padding: 14px 20px;
  border-bottom: 1px solid #1a1a1a;
  background: rgba(201,160,32,0.05);
}

.sidebar-user .user-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 2px;
}

.sidebar-user .user-email {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  letter-spacing: 0.2px;
}

.nav-item:hover { background: rgba(255,255,255,0.03); color: #ccc; }
.nav-item.active { background: var(--gold-dim); color: var(--primary); border-left-color: var(--primary); }
.nav-item .nav-icon { font-size: 17px; width: 22px; text-align: center; }

.nav-section {
  padding: 16px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #1a1a1a;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid #222;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px;
  max-width: calc(100vw - var(--sidebar-w));
}

.page { display: none; }
.page.active { display: block; }

.page-header { margin-bottom: 28px; }

.page-header h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}

.stat-wins::before { background: var(--success); }
.stat-losses::before { background: var(--danger); }
.stat-draws::before { background: var(--primary); }
.stat-total::before { background: #333; }

.stat-card .stat-val {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 700;
}

.stat-wins .stat-val { color: var(--success); }
.stat-losses .stat-val { color: var(--danger); }
.stat-draws .stat-val { color: var(--primary); }
.stat-total .stat-val { color: var(--text); }

/* ===== DASHBOARD v2 ===== */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.dash-kpi {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
  min-width: 0;
}
.dash-kpi:hover { border-color: #333; }
.dash-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #333;
}
.dash-kpi-warn::before { background: #e53935; }
.dash-kpi-ok::before   { background: var(--primary); }

.dash-kpi-val {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}
.dash-kpi-warn .dash-kpi-val { color: #e57373; }
.dash-kpi-ok .dash-kpi-val   { color: var(--primary); }

.dash-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 6px;
}
.dash-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #111;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-event-row:last-child { border-bottom: none; }
.dash-event-row:hover { background: rgba(255,255,255,0.03); }

.dash-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-event-info { flex: 1; min-width: 0; }
.dash-event-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-event-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: capitalize;
}
.dash-event-type { font-size: 18px; flex-shrink: 0; }

.dash-event-tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.dash-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 20px;
}

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

/* ===== CARD ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-header > *:last-child { flex-shrink: 0; }

.card-header h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.card-body { padding: 20px; }

/* ===== FORM GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.form-grid .full-width { grid-column: 1 / -1; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}

td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201,160,32,0.03); }

.boxer-name { font-weight: 700; color: var(--text); }
.boxer-email { font-size: 12px; color: var(--text-muted); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-paid { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.25); }
.badge-unpaid { background: rgba(231,76,60,0.1); color: #e74c3c; border: 1px solid rgba(231,76,60,0.25); }
.badge-warning { background: rgba(230,126,34,0.12); color: #e67e22; border: 1px solid rgba(230,126,34,0.25); }
.badge-coach { background: var(--gold-dim); color: var(--primary); }
.badge-boxer { background: rgba(255,255,255,0.07); color: #ccc; }

/* ===== RECORD DISPLAY ===== */
.record-display { display: flex; gap: 8px; align-items: center; }
.record-w { color: var(--success); font-weight: 800; }
.record-l { color: var(--danger); font-weight: 800; }
.record-d { color: var(--primary); font-weight: 800; }
.record-sep { color: var(--border); }

/* ===== DOCUMENTS ===== */
.doc-list { display: flex; flex-direction: column; gap: 8px; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.doc-item:hover { border-color: #333; }

.doc-icon { font-size: 22px; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--input-bg);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--gold-dim);
}

.upload-zone .upload-icon { font-size: 36px; margin-bottom: 12px; }
.upload-zone p { color: var(--text-muted); font-size: 14px; }
.upload-zone strong { color: var(--primary); }

/* ===== BOXER CARD (coach list) ===== */
.boxer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.boxer-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.boxer-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}

.boxer-card:hover {
  border-color: rgba(201,160,32,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.boxer-card:hover::after { background: var(--primary); }

.boxer-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
}

/* Inner flex container (avatar + text) */
.boxer-card-header > div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.boxer-avatar {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #000;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.boxer-card-name { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-info-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-info-row:last-child { border-bottom: none; }
.profile-info-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; margin-top: 1px; }
.profile-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 2px; }
.profile-info-val { font-size: 14px; color: var(--text); font-weight: 500; }
.boxer-card-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.boxer-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.boxer-card-stats span { color: var(--text-muted); }
.boxer-card-stats strong { color: var(--text); }

/* ===== PAYMENT MONTH SELECTOR ===== */
.month-selector {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.month-selector select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.month-selector select:focus { border-color: var(--primary); }

/* ===== PAYMENT TOGGLE ===== */
.payment-toggle { display: flex; align-items: center; gap: 10px; }

.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid #333;
}

.toggle-thumb {
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #444;
  border-radius: 50%;
  transition: 0.2s;
  pointer-events: none;
}

.toggle-switch input:checked + .toggle-track { background: var(--success); border-color: var(--success); }
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(20px); background: #000; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  touch-action: none;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #0f0f0f;
  z-index: 1;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.modal-close {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  transition: all 0.2s;
  border-radius: 6px;
}
.modal-close:hover { color: var(--text); border-color: #444; }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }

.required-star { color: #e57373 !important; font-weight: 700; font-size: 14px; }

/* Empêcher le style .form-group label de s'appliquer aux labels non-champs à l'intérieur */
.form-group .invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.form-group .invite-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

/* Forcer 1 colonne dans le modal event sur mobile */
@media (max-width: 600px) {
  .modal .form-grid { grid-template-columns: 1fr; }
  .modal .form-grid .form-group { grid-column: 1; }
}

/* ===== BOXER MULTI-SELECT DROPDOWN ===== */
.boxer-multiselect { position: relative; }

.boxer-multiselect-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
}
.boxer-multiselect-trigger:hover,
.boxer-multiselect-trigger.active { border-color: var(--primary); }
.boxer-multiselect-arrow { font-size: 12px; color: var(--text-muted); transition: transform 0.15s; }
.boxer-multiselect-trigger.active .boxer-multiselect-arrow { transform: rotate(180deg); }

.boxer-multiselect-dropdown {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
  max-height: 220px;
}
.boxer-multiselect-dropdown.open { display: block; }
.boxer-multiselect-trigger.active { border-radius: 8px 8px 0 0; border-bottom-color: transparent; }

.boxer-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 1;
}


.boxer-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.boxer-check-row:last-child { border-bottom: none; }
.boxer-check-row:hover { background: rgba(255,255,255,0.04); }
.boxer-check-row input[type=checkbox] { display: none; }
.boxer-check-info { flex: 1; min-width: 0; }
.boxer-check-name { font-size: 14px; font-weight: 600; }
.boxer-check-email { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boxer-check-tick { font-size: 14px; color: var(--primary); opacity: 0; transition: opacity 0.1s; }
.boxer-check-row:has(input:checked) { background: rgba(201,160,32,0.07); }
.boxer-check-row:has(input:checked) .boxer-check-tick { opacity: 1; }

.boxer-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.boxer-selected-chips:empty { margin-bottom: 0; }

.boxer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.boxer-chip button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.boxer-chip button:hover {
  background: rgba(229,115,115,0.25);
  color: #e57373;
}

/* ===== DATE FIELD CUSTOM DISPLAY ===== */
.date-field-wrap {
  position: relative;
}
.date-field-display {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid #222;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 48px;
}
.date-field-display::before {
  content: '📅';
  font-size: 16px;
  flex-shrink: 0;
}
.date-field-display.empty { color: var(--text-muted); }
.date-field-display.input-error { border-color: #e57373; }
.date-field-wrap input[type=date] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.ev-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ev-detail-info-full { grid-column: 1 / -1; }
.ev-detail-info-card {
  padding: 12px 14px;
  background: var(--input-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.ev-detail-info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.ev-detail-info-val {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
@media (max-width: 400px) {
  .ev-detail-info-grid { grid-template-columns: 1fr; }
}

.location-autocomplete-wrap { position: relative; }
.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 200;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  margin: 0; padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.city-dropdown li {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
}
.city-dropdown li:hover { background: rgba(255,255,255,0.07); }

.optional-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-required-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.input-error {
  border-color: #e57373 !important;
  box-shadow: 0 0 0 2px rgba(229,115,115,0.2) !important;
  animation: shake 0.25s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ===== SEARCH ===== */
.search-bar { position: relative; margin-bottom: 12px; }

.boxer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}
.boxer-filters select {
  padding: 7px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.boxer-filters select:focus { border-color: var(--primary); }

.search-bar input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.search-bar input:focus { border-color: var(--primary); }

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-color: var(--success); color: var(--success); }
.toast.toast-error { border-color: var(--danger); color: var(--danger); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 44px; margin-bottom: 14px; }
.empty-state p { font-size: 15px; }

/* ===== WEIGHT CATEGORY DISPLAY ===== */
.info-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.info-pill-gold {
  background: var(--gold-dim);
  color: var(--primary);
  border-color: rgba(201,160,32,0.2);
}

.boxer-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.meta-pill-m {
  background: rgba(60,140,220,0.12);
  border-color: rgba(60,140,220,0.25);
  color: #6aaae8;
}
.meta-pill-f {
  background: rgba(220,80,120,0.12);
  border-color: rgba(220,80,120,0.25);
  color: #e07aa0;
}
.meta-pill-cat {
  background: var(--gold-dim);
  border-color: rgba(201,160,32,0.25);
  color: var(--primary);
}
.meta-pill-none {
  opacity: 0.4;
  font-style: italic;
  font-weight: 400;
}

.weight-pill {
  display: inline-block;
  padding: 3px 9px;
  background: var(--gold-dim);
  color: var(--primary);
  border: 1px solid rgba(201,160,32,0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ===== LOADING ===== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(201,160,32,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SECTION DIVIDER ===== */
.section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ===== GOLD DIVIDER ===== */
.gold-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  margin: 24px 0;
  opacity: 0.4;
}

/* ===== CALENDAR ===== */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.cal-day-name {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  padding: 8px 2px;
  background: var(--card-bg);
}
.cal-day-name.weekend { color: rgba(201,160,32,0.7); }

.cal-day {
  min-height: 72px;
  padding: 6px 4px 4px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  overflow: hidden;
  min-width: 0;
}

.cal-day:hover { background: rgba(255,255,255,0.05); }
.cal-day.other-month { opacity: 0.25; pointer-events: none; }
.cal-day.weekend .cal-day-num { color: rgba(201,160,32,0.6); }
.cal-day.today { background: var(--gold-dim); }
.cal-day.today .cal-day-num {
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.cal-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.cal-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-left: none !important;
}

.cal-label:hover { filter: brightness(1.2); }

/* Multi-day event: use opacity variation instead of border tricks */
.cal-label-mid   { opacity: 0.85; border-radius: 0; }
.cal-label-end   { opacity: 0.85; border-radius: 0 3px 3px 0; }

.cal-overflow {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 2px;
  line-height: 1.4;
}

/* Event type colors (kept for backwards compat) */
.ev-boxe      { background: rgba(231,76,60,0.2);   color: #e74c3c; }
.ev-condition { background: rgba(39,174,96,0.2);   color: #2ecc71; }
.ev-muscu     { background: rgba(230,126,34,0.2);  color: #e67e22; }
.ev-sparring  { background: rgba(155,89,182,0.2);  color: #9b59b6; }
.ev-cardio    { background: rgba(52,152,219,0.2);  color: #3498db; }
.ev-combat    { background: rgba(192,57,43,0.2);   color: #c0392b; }
.ev-recreant  { background: rgba(201,160,32,0.2);  color: #C9A020; }

/* Event cards in list view */
.event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  align-items: flex-start;
}

.event-card:hover { border-color: #333; }

.event-type-bar {
  width: 4px;
  border-radius: 2px;
  align-self: stretch;
  flex-shrink: 0;
}

.event-card-main { flex: 1; min-width: 0; }

.event-card-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.event-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.event-card-meta span { display: flex; align-items: center; gap: 4px; }

.event-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.event-card-invitees {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.invitee-chip {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.event-month-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  padding: 16px 0 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.event-month-header:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* Boxer event card */
.boxer-event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.boxer-event-card:hover { border-color: rgba(201,160,32,0.4); }
.boxer-event-card .event-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.boxer-event-card .event-meta { font-size: 13px; color: var(--text-muted); display:flex; flex-wrap:wrap; gap:14px; }

/* ===== DATE FIELD ===== */
.date-fr-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}

input[type="date"] {
  color-scheme: dark;
  height: 44px;
  box-sizing: border-box;
}

/* ===== TIME DRUM ===== */
.time-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.time-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.duration-badge {
  padding: 4px 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,160,32,0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.drums-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.drum-block { text-align: center; }
.drum-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.drum-arrow {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 20px;
}
.time-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 120px;
  background: var(--input-bg);
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 8px;
}
.time-picker-highlight {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 40px;
  background: var(--gold-dim);
  border-top: 1px solid rgba(201,160,32,0.25);
  border-bottom: 1px solid rgba(201,160,32,0.25);
  pointer-events: none;
  z-index: 1;
}
.drum-col {
  flex: 1;
  height: 120px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.drum-col::-webkit-scrollbar { display: none; }
.drum-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  scroll-snap-align: center;
  cursor: pointer;
  transition: color 0.12s, font-size 0.12s;
  position: relative;
  z-index: 2;
  user-select: none;
}
.drum-item.drum-pad { pointer-events: none; }
.drum-item.drum-active { color: var(--primary); font-size: 22px; }
.drum-sep {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0 2px;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #0a0a0a;
  border-bottom: 1px solid #1e1e1e;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  z-index: 150;
}

.mobile-header-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
  flex: 1;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .main-content { padding: 20px; }
  .auth-box { padding: 32px 24px; }
}

@media (max-width: 600px) {
  /* Show mobile header */
  .mobile-header { display: flex; }

  /* Sidebar: hidden off-screen, slides in */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }

  /* Main content: full width, offset for top bar */
  .main-content {
    margin-left: 0;
    padding: 16px;
    padding-top: calc(56px + 16px);
    max-width: 100vw;
  }

  /* Auth */
  .auth-box { padding: 28px 18px; margin: 16px; }

  /* Page header */
  .page-header h2 { font-size: 22px; }

  /* Stats: 2 per row on phone */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-card .stat-val { font-size: 28px; }

  /* Boxer grid: 1 column */
  .boxer-grid { grid-template-columns: 1fr; }

  /* Form grid: 1 column */
  .form-grid { grid-template-columns: 1fr; }

  /* Calendar: compact */
  .cal-day { min-height: 68px; padding: 5px 2px 3px; gap: 2px; }
  .cal-day-name { font-size: 9px; padding: 6px 1px; }
  .cal-day-num { font-size: 12px; width: 22px; height: 22px; }
  .cal-day.today .cal-day-num { width: 22px; height: 22px; font-size: 12px; }
  .cal-label { font-size: 9px; padding: 1px 3px; }
  .cal-labels { gap: 1px; }

  /* Modal: bottom sheet sur mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92vh; max-width: 100%; }

  /* Dashboard KPI: 2 colonnes sur mobile */
  .dash-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
  .dash-kpi { padding: 12px 8px; }
  .dash-kpi-val { font-size: 24px; }
  .dash-kpi-label { font-size: 11px; letter-spacing: 0; white-space: normal; overflow: hidden; line-height: 1.2; }
  .dash-kpi-sub { font-size: 11px; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
  .dash-cols { grid-template-columns: 1fr; gap: 14px; }

  /* Tables: allow horizontal scroll */
  .table-wrapper { -webkit-overflow-scrolling: touch; }

  /* Toast: bottom center */
  .toast { right: 16px; left: 16px; bottom: 16px; max-width: none; text-align: center; }

  /* Buttons in page header: smaller */
  .page-header { gap: 10px; align-items: center; }
  .page-header .btn { flex-shrink: 0; width: auto !important; }

  /* Payment selector: stack */
  .month-selector { flex-direction: column; align-items: stretch; }
  .month-selector select { width: 100%; }

  /* Event cards: tighter */
  .event-card { padding: 12px; gap: 10px; }
  .boxer-event-card { padding: 12px 14px; }

  /* Upload zone: compact */
  .upload-zone { padding: 24px 16px; }
}

/* ===== PAGE ABONNEMENTS ===== */

.subs-count {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.subs-search {
  margin-bottom: 16px;
}

/* Empty state */
.subs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.subs-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.subs-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.subs-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 300px;
}

/* Table */
.subs-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.subs-table {
  width: 100%;
  border-collapse: collapse;
}

.subs-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.subs-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.subs-table tbody tr:last-child td {
  border-bottom: none;
}

.subs-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

.subs-member {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subs-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.subs-member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.subs-member-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subs-paid-col {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 13px;
}

.subs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subs-del-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}

/* Cards list — hidden on desktop */
.subs-cards-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.sub-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.sub-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.sub-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.sub-card-label {
  color: var(--text-muted);
}

.sub-card-footer {
  display: flex;
  gap: 10px;
}

.sub-card-footer .btn {
  flex: 1;
}

/* Responsive: switch to cards on mobile */
@media (max-width: 640px) {
  .subs-table-wrap { display: none; }
  .subs-cards-list { display: flex; }
}

/* ===== FORMULES CATALOGUE ===== */
#plansCatalogueList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
/*
  CSS Grid à 2 colonnes sur la card pour aligner nom (col 1) et prix (col 2)
  sur la même ligne sans toucher au HTML/JS.
  Ordre des enfants : badge (caché) → name → desc → price → actions
  On force name et price sur grid-row 1, desc et actions sur leur propre ligne.
*/
.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 0;
}
.plan-card.plan-inactive {
  opacity: 0.55;
}
/* Badge : masqué, mais occupe la grille col 1-2 row 0 si présent */
.plan-card-type-badge {
  display: none;
}
/* Nom : col 1, row 1 — aligné en bas de ligne avec le prix */
.plan-card-name {
  grid-column: 1;
  grid-row: 1;
  align-self: baseline;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  min-width: 0;
}
/* Description : col 1-2, row 2 */
.plan-card-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Prix : col 2, row 1 — aligné en bas de ligne avec le nom */
.plan-card-price {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}
.plan-price-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}
.plan-price-period {
  font-size: 12px;
  color: var(--text-muted);
}
/* Actions : col 1-2, row 3 */
.plan-card-actions {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 14px;
}
.plan-card-actions .btn-modify {
  flex-grow: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.plan-card-actions .btn-modify:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  height: auto;
  width: auto;
  aspect-ratio: unset;
  flex-shrink: 0;
}
.btn-delete:hover {
  color: #e53935;
  background: rgba(229,57,53,0.08);
}
.badge-inactive {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.plans-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}
.plans-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.plans-empty-sub {
  font-size: 14px;
  margin: 0;
}

/* ===== TABLEAU DE BORD PAIEMENTS ===== */
.pay-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.pay-kpi { border-radius: 12px; padding: 16px 12px; text-align: center; }
.pay-kpi.ajour   { background: rgba(46,204,113,0.12); }
.pay-kpi.attente { background: rgba(230,126,34,0.12); }
.pay-kpi.retard  { background: rgba(231,76,60,0.12); }
.pay-kpi-num { font-size: 28px; font-weight: 700; line-height: 1; }
.pay-kpi.ajour   .pay-kpi-num { color: #2ecc71; }
.pay-kpi.attente .pay-kpi-num { color: #e67e22; }
.pay-kpi.retard  .pay-kpi-num { color: #e74c3c; }
.pay-kpi-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.pay-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.pay-summary strong { color: var(--text); }

.pay-section { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.pay-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; cursor: pointer; user-select: none;
}
.pay-section-header:hover { background: rgba(255,255,255,0.03); }
.pay-section-title { font-weight: 600; font-size: 14px; flex: 1; }
.pay-section-title.retard { color: #e74c3c; }
.pay-section-title.attente { color: #e67e22; }
.pay-section-title.ajour  { color: #2ecc71; }
.pay-section-count { font-size: 13px; color: var(--text-muted); }
.pay-chevron { transition: transform 0.2s; flex-shrink: 0; color: var(--text-muted); }
.pay-section-body { display: none; border-top: 1px solid var(--border); }
.pay-section-body.open { display: block; }
.pay-section-empty { padding: 20px; text-align: center; font-size: 13px; color: var(--text-muted); }

.pay-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.pay-row:last-child { border-bottom: none; }
.pay-row:hover { background: rgba(255,255,255,0.02); }
.pay-row-left { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.pay-avatar { flex-shrink: 0; }
.pay-row-info { flex: 1; min-width: 0; }
.pay-row-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.pay-row-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.pay-amount { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.pay-progress-wrap { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.pay-progress-bar { height: 100%; border-radius: 2px; transition: width 0.3s; }
.pay-progress-bar.ajour  { background: #2ecc71; }
.pay-progress-bar.attente { background: #e67e22; }
.pay-progress-bar.retard  { background: #e74c3c; }

@media (max-width: 480px) {
  .pay-row { flex-wrap: wrap; }
  .pay-row-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ===== PAGE ADHERENTS ===== */

.members-page-title { font-size: 28px; font-weight: 800; margin: 0; }

.members-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.members-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.members-filters .form-control {
  min-width: 0;
  width: 100%;
}

.members-search {
  min-width: 200px;
  flex: 2;
  margin-bottom: 10px;
}

/* Table desktop */
.members-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.members-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.members-table tbody tr:last-child td {
  border-bottom: none;
}

.members-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* Avatar */
.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.avatar-boxer {
  background: rgba(201,160,32,0.25);
  color: var(--primary);
  font-weight: 800;
}

.avatar-client {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
}

/* Badges statut */
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status.actif {
  background: rgba(46,204,113,0.12);
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,0.25);
}

.badge-status.suspendu {
  background: rgba(230,126,34,0.12);
  color: #e67e22;
  border: 1px solid rgba(230,126,34,0.25);
}

.badge-status.bloque {
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.25);
}

.badge-status.inactif {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Badge rôle */
.member-role-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
}

/* Cartes mobile */
.members-cards-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.member-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.member-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.member-card-info {
  flex: 1;
  min-width: 0;
}

.member-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.member-card-name {
  font-weight: 600;
  font-size: 15px;
}

.member-card-email {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}

.member-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.member-card-footer {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.members-status-select {
  font-size: 13px;
  padding: 6px 10px;
  max-width: 200px;
}

.members-table .members-status-select { height: 36px; }

@media (max-width: 640px) {
  .members-table-wrap { display: none; }
  .members-cards-list { display: flex; }
  .members-search { min-width: 100%; }
}

/* Selects stylisés — filtres et changement de statut */
.members-filters select.form-control,
.members-status-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--input-bg);
  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='%23C9A020' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-left: 12px;
  padding-right: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  height: 44px;
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.members-filters select.form-control:focus,
.members-status-select:focus {
  border-color: var(--primary);
  outline: none;
}

.members-filters select.form-control option,
.members-status-select option {
  background: var(--dark2);
  color: var(--text);
}

/* Boutons toolbar — annule width:100% global pour ce contexte */
.members-toolbar .btn-primary,
.members-toolbar .btn-outline {
  width: auto;
  padding: 0 20px;
  height: 44px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .members-toolbar {
    flex-wrap: nowrap;
  }
  .members-toolbar .btn {
    flex: 1;
    justify-content: center;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
  .members-toolbar .btn-primary {
    width: auto;
    flex: 1;
  }
}

/* ===== NOUVELLE LISTE ADHÉRENTS — MEM-CARDS ===== */

.mem-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .mem-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mem-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  min-height: 76px;
}

.mem-card:hover {
  border-color: var(--primary);
  background: rgba(201,160,32,0.06);
}

.mem-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.mem-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mem-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mem-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.mem-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

.mem-email {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mem-plan {
  font-size: 12px;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.mem-arrow {
  font-size: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  align-self: center;
  line-height: 1;
  margin-left: 4px;
}


/* Lien "Voir archivés" discret */
.members-archived-link {
  text-align: center;
  margin: 8px 0 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
  min-height: 44px;
}

.btn-link:hover {
  color: var(--primary);
}

/* Sous-titre page */
.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FIN MEM-CARDS ===== */

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.modal-footer .btn { min-height: 44px; }
#planModal .modal-footer { display: flex; flex-direction: row; gap: 10px; }
#planModal .modal-footer .btn { flex: 1; width: auto; justify-content: center; }

.modal-confirm-text { line-height: 1.6; font-size: 15px; }

/* ===== COMBATTANTS ===== */

/* Badge aptitude */
.badge-aptitude {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-aptitude.pret { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.25); }
.badge-aptitude.a-regler { background: rgba(230,126,34,0.12); color: #e67e22; border: 1px solid rgba(230,126,34,0.25); }
.badge-aptitude.indisponible { background: rgba(231,76,60,0.10); color: #e74c3c; border: 1px solid rgba(231,76,60,0.25); }

/* Barres aptitude */
.aptitude-bars { display: flex; gap: 8px; margin-top: 12px; }
.aptitude-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.aptitude-bar-track { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.aptitude-bar-track.ok { background: #2ecc71; }
.aptitude-bar-track.ko { background: #e74c3c; }
.aptitude-bar-label { font-size: 11px; color: var(--text-muted); text-align: center; }

/* Tuiles conditions */
.condition-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
@media (max-width: 399px) { .condition-tiles { grid-template-columns: 1fr; } }
.condition-tile {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
}
.condition-tile-header { display: flex; align-items: center; gap: 8px; }
.condition-tile-icon { width: 18px; height: 18px; flex-shrink: 0; }
.condition-tile-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.condition-tile-status { font-size: 13px; font-weight: 600; flex: 1; }
.condition-tile-status.ok { color: #2ecc71; }
.condition-tile-status.warning { color: #e67e22; }
.condition-tile-status.error { color: #e74c3c; }
.condition-tile-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* Radio pills */
.radio-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill input[type="radio"] { display: none; }
.radio-pill label {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.radio-pill input[type="radio"]:checked + label.victoire { background: rgba(46,204,113,0.12); color: #2ecc71; border-color: rgba(46,204,113,0.4); }
.radio-pill input[type="radio"]:checked + label.defaite { background: rgba(231,76,60,0.12); color: #e74c3c; border-color: rgba(231,76,60,0.4); }
.radio-pill input[type="radio"]:checked + label.nul { background: rgba(255,255,255,0.08); color: var(--text); border-color: rgba(255,255,255,0.2); }
.radio-pill input[type="radio"]:checked + label.blesse { background: rgba(231,76,60,0.12); color: #e74c3c; border-color: rgba(231,76,60,0.4); }
.radio-pill input[type="radio"]:checked + label.arret { background: rgba(230,126,34,0.12); color: #e67e22; border-color: rgba(230,126,34,0.4); }

/* Badge résultat palmarès */
.result-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.result-badge.win  { background: rgba(46,204,113,0.25); color: #2ecc71; border: 1.5px solid rgba(46,204,113,0.5); }
.result-badge.loss { background: rgba(231,76,60,0.22);  color: #e74c3c; border: 1.5px solid rgba(231,76,60,0.5); }
.result-badge.draw { background: rgba(255,255,255,0.10); color: #aaaaaa; border: 1.5px solid rgba(255,255,255,0.20); }

/* Carte combattant */
.fighter-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 80ms;
}
.fighter-card:active { background: #1e1e1e; }
.fighter-card-main { display: flex; align-items: center; gap: 12px; }
.fighter-card-info { flex: 1; min-width: 0; }
.fighter-card-name { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fighter-card-disc { font-size: 11px; color: var(--text-muted); background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; }

/* Zone d'upload fichier */
.file-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  background: var(--input-bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
}
.file-upload-zone:hover,
.file-upload-zone.has-file { border-color: var(--primary); color: var(--text); }
.file-upload-zone svg { opacity: 0.6; }
.file-upload-zone:hover svg,
.file-upload-zone.has-file svg { opacity: 1; color: var(--primary); }
.file-upload-zone-text { font-size: 14px; font-weight: 500; }
.file-upload-zone-sub { font-size: 12px; color: var(--text-muted); }
.fighter-card-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.fighter-card-record strong { color: var(--text); }

/* Fiche combattant — header */
.fighter-detail-header {
  background: var(--dark2);
  padding: 16px 16px 20px;
  border-bottom: 1px solid var(--border);
}
.fighter-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.fighter-detail-nav-title { font-size: 15px; color: var(--text-muted); flex: 1; text-align: center; }
.btn-back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.fighter-identity { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar-fighter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,160,32,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid rgba(201,160,32,0.4);
  flex-shrink: 0;
}
.fighter-identity-name { font-size: 20px; font-weight: 700; color: var(--text); }
.fighter-identity-meta { font-size: 14px; color: var(--text-muted); }

/* Bloc aptitude fiche */
.fighter-aptitude-block {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
}
.fighter-aptitude-label { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.fighter-aptitude-label.pret { color: #2ecc71; }
.fighter-aptitude-label.a-regler { color: #e67e22; }
.fighter-aptitude-label.indisponible { color: #e74c3c; }
.fighter-aptitude-score { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Compteur palmarès fiche */
.fighter-record-block {
  background: var(--dark3);
  display: flex;
  border-bottom: 1px solid var(--border);
}
.fighter-record-col {
  flex: 1;
  padding: 16px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.fighter-record-col:last-child { border-right: none; }
.fighter-record-num { font-size: 28px; font-weight: 700; color: var(--text); }
.fighter-record-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

/* Section générique fiche */
.fighter-section { padding: 16px; }
.fighter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fighter-section-title { font-size: 15px; font-weight: 700; color: var(--text); }
.fighter-section-subtitle { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }

/* Combats */
.fight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}
.fight-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
  flex-shrink: 0;
}
.fight-date-day { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; }
.fight-date-month { font-size: 11px; font-weight: 600; color: var(--primary); letter-spacing: 0.05em; margin-top: 2px; }
.fight-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark3); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.fight-info { flex: 1; min-width: 0; }
.fight-opponent { font-size: 14px; color: var(--text); font-weight: 600; }
.fight-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.fight-result-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.fight-result-pill.win  { background: #2ecc71; color: #0a1f12; }
.fight-result-pill.loss { background: #e74c3c; color: #fff; }
.fight-result-pill.draw { background: rgba(255,255,255,0.12); color: var(--text-muted); }
.fight-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
}
.fight-delete-btn:hover { color: var(--danger); background: rgba(231,76,60,0.1); }

/* Camp préparation */
.camp-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.camp-card-name { font-size: 14px; font-weight: 700; color: var(--text); }
.camp-card-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.camp-badge-actif { display: inline-block; background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.25); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; margin-top: 8px; }

/* Bouton flottant */
.fab-fighters {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  right: 16px;
  z-index: 100;
  width: auto;
  box-shadow: 0 4px 16px rgba(201,160,32,0.3);
  border-radius: 24px;
  height: 48px;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .fab-fighters { display: none; }
}

/* Toolbar combattants */
.fighters-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  gap: 12px;
}

.fighters-toolbar-btn {
  width: auto;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 640px) {
  .fighters-toolbar-btn { display: inline-flex; align-items: center; }
}

/* Pied de liste combattants */
.fighters-footer {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.fighters-footer a { color: var(--primary); text-decoration: underline; cursor: pointer; }

/* Compteurs */
.fighters-counters {
  font-size: 14px;
  color: var(--text-muted);
}
.fighters-counters strong { color: var(--primary); font-weight: 700; }

/* Onglets filtre combattants */
.fighters-tabs {
  display: flex;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 16px;
  padding: 4px;
  gap: 2px;
}
.fighters-tab {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 40px;
  transition: background 120ms;
}
.fighters-tab.active { background: var(--card-bg); color: var(--text); font-weight: 600; }

/* Squelettes chargement */
.skeleton {
  background: linear-gradient(90deg, var(--dark3) 25%, #222 50%, var(--dark3) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s infinite;
  border-radius: 8px;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { height: 90px; margin-bottom: 10px; border-radius: 12px; }
.skeleton-circle { border-radius: 50%; }

/* Zone upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 20px;
  background: var(--dark3);
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}
.upload-zone-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.upload-zone-file { font-size: 13px; color: var(--text); margin-top: 8px; }

/* ===================================================
   CORRECTIONS MOBILE — iPhone SE 375px / iPhone 14 390px
   =================================================== */

/* Empêcher tout débordement horizontal */
html, body { overflow-x: hidden; }
.main-content { overflow-x: hidden; }

/* ---- Touch targets minimum 44 px ---- */

/* Hamburger : passe de 36×36 à 44×44 */
.hamburger {
  width: 44px;
  height: 44px;
  padding: 10px;
}

/* Bouton fermeture modale : zone de tap trop petite */
.modal-close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

@media (max-width: 600px) {

  /* ---- Champs de formulaire : min 44 px ---- */
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 44px;
    font-size: 16px; /* évite le zoom auto iOS */
  }

  .search-bar input {
    min-height: 44px;
    font-size: 16px;
  }

  /* Filtres boxeurs : 44 px et pleine largeur */
  .boxer-filters select {
    min-height: 44px;
    font-size: 16px;
    width: 100%;
    flex-basis: 100%;
  }
  .boxer-filters .btn-sm {
    min-height: 44px;
    width: 100%;
  }

  /* Sélecteur de mois */
  .month-selector select {
    min-height: 44px;
    font-size: 16px;
  }

  /* Boutons btn-sm dans le calendrier (◀ ▶) et ailleurs */
  .btn-sm {
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Onglets auth */
  .tab-btn {
    min-height: 44px;
  }

  /* Onglets combattants */
  .fighters-tab {
    min-height: 44px;
  }

  /* Filtres page Adhérents */
  .members-filters .form-control,
  .members-status-select {
    min-height: 44px;
    font-size: 16px;
  }

  /* Bouton suppression combat : 32×32 → 44×44 */
  .fight-delete-btn {
    width: 44px;
    height: 44px;
  }

  /* Bouton retour fiche combattant (déjà 44×44, conservé) */

  /* ---- Page header : titre + bouton côte à côte ---- */
  /* Les page-headers avec inline flex ne débordent pas
     grâce à flex-wrap:wrap déjà présent ; on fixe le min-width
     pour que le titre ne compresse pas le bouton */
  .page-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .page-header > div:first-child { flex: 1; min-width: 0; }
  .page-header h2 {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Groupe de boutons dans le page-header : pleine largeur, chaque bouton s'étire */
  .page-header > div:last-child:not(:first-child) {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-header > div:last-child:not(:first-child) .btn {
    flex: 1;
    min-width: 120px;
    width: auto !important;
    text-align: center;
  }

  /* ---- Dashboard KPIs : labels illisibles à 8px ---- */
  .dash-kpi-label {
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: normal;
  }
  .dash-kpi-sub {
    font-size: 10px;
  }
  .dash-kpi-val {
    font-size: 22px;
  }

  /* ---- Calendrier : empêcher les cellules de déborder ---- */
  .cal-grid {
    min-width: 0;
    width: 100%;
  }
  .cal-day {
    min-height: 60px;
    padding: 4px 2px 2px;
  }

  /* ---- Sélecteurs stylisés page Adhérents (hauteur 44px déjà via .form-control) ---- */

  /* ---- Toolbar combattants ---- */
  .fighters-toolbar {
    padding: 12px 0 8px;
  }

  /* ---- Modal footer : boutons pleine largeur sur très petits écrans ---- */
  .modal-footer {
    flex-direction: column-reverse;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Plan modal : boutons côte à côte même sur mobile */
  #planModal .modal-footer {
    flex-direction: row;
  }
  #planModal .modal-footer .btn {
    width: auto;
    flex: 1;
  }

  /* ---- Cartes combattant : info ne tronque pas sur 375px ---- */
  .fighter-card-name {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  /* ---- Barre de recherche : icône alignée ---- */
  .search-bar input {
    padding-left: 42px;
  }

  /* ---- Upload zone : éviter padding excessif ---- */
  .upload-zone {
    padding: 20px 12px;
  }

  /* ---- Pay-kpis : s'assurer de pas déborder ---- */
  .pay-kpis {
    gap: 8px;
  }
  .pay-kpi-num {
    font-size: 24px;
  }
  .pay-kpi-label {
    font-size: 11px;
  }

  /* ---- Chips boxeur sélectionné dans formulaire événement ---- */
  .boxer-chip {
    font-size: 12px;
  }

  /* ---- Tableau abonnements (déjà masqué sous 640px, sécurité) ---- */
  .subs-table-wrap { display: none; }

  /* ---- Badges statut : ne pas dépasser la carte ---- */
  .badge, .badge-status, .badge-aptitude {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ---- Page Paramètres / Archives : card-body padding réduit ---- */
  .card-body {
    padding: 14px;
  }

  /* ---- Évènement detail info grid : 1 col confirmé ---- */
  .ev-detail-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Très petits écrans (< 360px) ---- */
@media (max-width: 359px) {
  .dash-kpi-row { grid-template-columns: 1fr 1fr; }
  .pay-kpis     { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 12px; padding-top: calc(56px + 12px); }
}

/* ---- Safe area bottom pour le FAB ---- */
.fab-fighters {
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* ===== FICHE ADHERENT COMPLETE ===== */

/* Bannière archivé */
.md-archive-banner {
  background: rgba(136,136,136,0.08);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
}

/* En-tête */
.md-hero-card {
  border-radius: 16px;
  margin-bottom: 12px;
}

.md-header {
  padding: 10px 16px 14px;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
}

.md-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.md-btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.md-header-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.md-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(201,160,32,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: 1px;
}

.md-identity-info { flex: 1; min-width: 0; }

.md-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.md-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.md-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.md-badge-actif    { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.md-badge-suspendu { background: rgba(231,76,60,0.15); color: var(--danger); border: 1px solid rgba(231,76,60,0.3); }
.md-badge-archive  { background: rgba(136,136,136,0.12); color: var(--text-muted); border: 1px solid var(--border); }
.md-badge-license  { background: var(--gold-dim); color: var(--primary); border: 1px solid rgba(201,160,32,0.3); }
.md-badge-warning  { background: rgba(230,126,34,0.15); color: var(--warning-alt); border: 1px solid rgba(230,126,34,0.3); }

/* Actions */
.md-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.md-btn-traiter {
  background: var(--dark3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.md-btn-traiter-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-btn-icon {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.md-btn-modifier {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.md-btn-encaisser {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Actions ligne mobile : sous l'identité */
.md-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.md-actions-row::-webkit-scrollbar { display: none; }

/* KPI bar */
.md-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark2);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.md-kpi-cell {
  background: var(--dark2);
  padding: 14px 14px;
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.md-kpi-cell:nth-child(2n) { border-right: none; }
.md-kpi-cell:nth-last-child(-n+2) { border-bottom: none; }
.md-kpi-cell:nth-last-child(2) { border-bottom-left-radius: 16px; }
.md-kpi-cell:nth-last-child(1) { border-bottom-right-radius: 16px; }

.md-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.md-kpi-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-kpi-muted { color: var(--text-muted); }
.md-kpi-orange { color: #e07328; }
.md-kpi-sub { display: block; font-size: 11px; font-weight: 600; margin-top: 3px; }
.md-kpi-danger { color: var(--danger); }

/* Onglets — pill container */
.md-tabs-wrap {
  padding: 10px 16px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.md-tabs-wrap::-webkit-scrollbar { display: none; }

.md-tabs {
  display: inline-flex;
  gap: 3px;
  background: var(--dark3);
  border-radius: 30px;
  padding: 4px;
  white-space: nowrap;
  min-width: max-content;
}

.md-tab {
  background: none;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.md-tab.active {
  background: var(--primary);
  color: var(--dark);
  font-weight: 700;
}

.md-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  padding: 0 3px;
}

.md-tab:not(.active) .md-tab-badge {
  background: var(--danger);
  color: #fff;
}

/* Contenu onglet */
.md-tab-content { overflow-y: auto; }
.md-tab-inner { padding: 14px 14px 32px; display: flex; flex-direction: column; gap: 12px; }

/* Cartes */
.md-card {
  background: #151515;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.md-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.md-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.md-card-title svg { color: var(--primary); flex-shrink: 0; }

.md-card-body { padding: 0; }

/* Table coordonnées */
.md-info-table { width: 100%; border-collapse: collapse; }

.md-info-table tr { border-bottom: 1px solid var(--border); }
.md-info-table tr:last-child { border-bottom: none; }

.md-info-table td {
  padding: 11px 16px;
  vertical-align: middle;
}

.md-info-table td:first-child {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  width: 100px;
  white-space: nowrap;
}

.md-info-table td:last-child {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.md-info-table .md-cell-with-copy {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card body padding (non-table) */
.md-card-body-pad { padding: 14px 16px; }

.md-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.md-field-value {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.md-field-muted {
  font-size: 13px;
  color: var(--text-muted);
}

/* Boutons texte */
.md-btn-text-primary {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
}

.md-btn-danger-text {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 13px;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
}

.md-btn-outline-full {
  background: transparent;
  border: 1px solid rgba(201,160,32,0.4);
  color: var(--primary);
  border-radius: 20px;
  min-height: 40px;
  width: 100%;
  font-size: 13px;
  cursor: pointer;
}

.md-btn-primary-full {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  min-height: 44px;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.md-btn-cancel-full {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  min-height: 44px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
}

/* Copy */
.md-btn-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Accès club */
.md-access-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.md-access-row:last-child { border-bottom: none; }

.md-access-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  width: 100px;
  flex-shrink: 0;
}

.md-badge-input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 16px;
  min-width: 0;
}

.md-badge-input:focus { border-color: var(--danger); outline: none; }

/* Textarea */
.md-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  font-size: 16px;
}
.md-textarea:focus { border-color: var(--danger); outline: none; }

/* Alerte danger */
.md-alert-danger {
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Sous-cards abonnement */
.md-sub-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 0;
}

.md-sub-meta-cell {
  background: #1a1a1a;
  padding: 10px 12px;
}

.md-sub-meta-cell .md-kpi-label { font-size: 9px; margin-bottom: 3px; }
.md-sub-meta-cell .md-kpi-value { font-size: 13px; }

/* Paiements */
.md-payment-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.md-payment-kpis .md-kpi-cell {
  border: none;
  border-radius: 0;
  background: #1a1a1a;
  padding: 12px 10px;
}

.md-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.md-pill {
  background: var(--dark3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  min-height: 36px;
  font-size: 13px;
  cursor: pointer;
}

.md-pill.active {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  font-weight: 700;
}

.md-payment-card {
  background: #151515;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.md-payment-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.md-payment-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Documents */
.md-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.md-doc-row:last-child { border-bottom: none; }

.md-doc-actions { display: flex; gap: 8px; }

/* Journal */
.md-journal-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.md-journal-event {
  background: #151515;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 4px;
}

.md-journal-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Bandeau combattant */
.md-fighter-banner {
  background: var(--gold-dim);
  border: 1px solid rgba(201,160,32,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Bottom sheets */
.md-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: md-fade-in 0.15s ease;
}

.md-sheet {
  background: #1c1c1c;
  border-radius: 20px 20px 0 0;
  padding: 8px 16px 32px;
  max-height: 82vh;
  overflow-y: auto;
}

.md-sheet-tall {
  max-height: 92vh;
}

.md-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.md-sheet-scroll {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 8px;
}

.md-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.md-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px auto 16px;
}

.md-sheet-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.md-sheet-amount {
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 20px 0;
  letter-spacing: -1px;
}

.md-sheet-menu { padding: 8px 0 24px; }

.md-menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  padding: 16px 24px;
  text-align: left;
  cursor: pointer;
  min-height: 52px;
}

.md-menu-item:last-of-type { border-bottom: none; }
.md-menu-danger { color: var(--danger); font-weight: 600; }
.md-menu-separator { height: 8px; border-top: 1px solid var(--border); }

/* Item À traiter */
.md-traiter-item {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 10px;
}

/* Modales (plein écran mobile) */
.md-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

.md-modal {
  background: var(--dark2);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .md-modal {
    min-height: unset;
    border-radius: 16px;
    max-width: 560px;
    margin: 40px auto;
    max-height: 90vh;
  }
}

.md-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: var(--dark3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.md-modal-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.md-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.md-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.md-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--dark3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.md-form-group { display: flex; flex-direction: column; gap: 6px; }
.md-form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-label { font-size: 13px; color: var(--text-muted); }

.md-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  width: 100%;
  font-family: inherit;
  font-size: 16px;
}
.md-input:focus { border-color: var(--danger); outline: none; }

.md-btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  min-height: 48px;
  font-size: 14px;
  cursor: pointer;
}

.md-btn-submit {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Boîte de confirmation */
.md-confirm-box {
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: calc(100% - 48px);
  max-width: 360px;
  margin: auto;
}

.md-confirm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.md-confirm-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

.md-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.md-btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Divers */
.md-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  font-size: 14px;
}

.md-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  font-size: 14px;
}

/* Desktop */
@media (min-width: 600px) {
  .md-avatar { width: 72px; height: 72px; font-size: 26px; border-radius: 14px; }
  .md-name { font-size: 20px; }
}

@media (min-width: 768px) {
  .md-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
  }
  .md-kpi-cell:nth-child(2n) { border-right: 1px solid var(--border); }
  .md-kpi-cell:nth-child(4n) { border-right: none; }
  .md-kpi-cell { border-bottom: none; }
  .md-tab-inner { max-width: 820px; margin: 0 auto; }
  .md-actions-row { display: none; }
  .md-header-main .md-actions { display: flex; }
}

@media (max-width: 767px) {
  .md-header-main .md-actions { display: none; }
  .md-actions-row { display: flex; }
}

@keyframes md-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== Règlement intérieur ===== */

.regulations-textarea {
  min-height: 220px;
  max-height: 320px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
}

.regulations-text-scroll {
  max-height: 200px;
  overflow-y: auto;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 4px;
}

.signature-wrapper {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
  padding: 4px;
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 150px;
  touch-action: none;
  cursor: crosshair;
  border-radius: 5px;
}

.signature-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.md-regulations-signed {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.md-signature-preview {
  max-width: 200px;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  display: block;
}

/* ===== ONBOARDING ===== */

.onboarding-page {
  min-height: 100vh;
  background: var(--dark);
  flex-direction: column;
  padding: 0;
}

#page-onboarding.active .onboarding-page {
  display: flex;
}

.onboarding-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 24px 20px 20px;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark3);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.onboarding-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.onboarding-step.done .step-circle {
  background: rgba(201, 160, 32, 0.15);
  border-color: var(--primary);
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A020' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.onboarding-step.active .step-label { color: var(--primary); }
.onboarding-step.done .step-label   { color: var(--text-muted); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 17px;
  min-width: 32px;
  max-width: 64px;
  transition: background 0.2s;
}

.onboarding-step.done + .step-line {
  background: var(--primary);
}

.onboarding-content {
  flex: 1;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
}

.ob-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.ob-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.ob-btn-full {
  width: 100%;
  margin-top: auto;
}

.ob-plan-card {
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.ob-plan-card .plan-card-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.ob-plan-card:active { opacity: 0.85; }

.ob-plan-card.selected {
  border: 2px solid var(--primary);
  background: rgba(201, 160, 32, 0.08);
}

.ob-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.onboarding-step3-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.regulation-scroll-zone {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.btn-link-muted {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  padding: 8px 0;
  min-height: 44px;
  display: block;
  width: 100%;
}

/* ===== BADGE SUCCESS / WARNING (dashboard) ===== */

.badge-success {
  background: rgba(46, 204, 113, 0.12);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-warning {
  background: rgba(230, 126, 34, 0.12);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== TABLEAU DE BORD BOXEUR ===== */

/* Carte membre (identité) */
.boxer-id-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  margin-bottom: 16px;
}

.boxer-id-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.boxer-id-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.boxer-id-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 8px;
  padding-right: 72px;
}

.boxer-id-club {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.boxer-id-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 16px;
}

.boxer-id-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.member-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.member-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.member-stat-white { color: var(--text); }

.boxer-id-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

/* Bannière contextuelle */
.dash-banner {
  background: rgba(201, 160, 32, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-banner-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.dash-banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.dash-banner-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.dash-banner-action {
  background: none;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sections */
.dash-section {
  margin-bottom: 16px;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dash-section-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Cours semaine */
.event-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.event-row-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
}

.event-row-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-row-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.event-row-info { flex: 1; min-width: 0; }

.event-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.event-row-time {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.dash-empty-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

.dash-empty-hint a { color: var(--primary); }

/* Tuiles stats */
.dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-stat-ring {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-height: 120px;
  justify-content: center;
}

.stat-ring-svg { flex-shrink: 0; }

.stat-ring-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.stat-ring-big {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin: 0;
}

.stat-ring-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.stat-ring-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
}

/* Abonnement */
.sub-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 14px 16px;
}

.sub-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}

.sub-card-renew {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.sub-card-empty p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.sub-card-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Raccourcis */
.dash-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.dash-shortcut-tile {
  background: var(--surface);
  border: none;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 88px;
  justify-content: center;
}

.dash-shortcut-tile:active { background: var(--dark3); }

.dash-shortcut-inactive {
  opacity: 0.5;
}

.shortcut-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.shortcut-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.shortcut-soon {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}
