:root {
  --bg: #040805;
  --surface: #0b120c;
  --surface-2: #12241a;
  --text: #eafff1;
  --muted: #9fd8b4;
  --accent: #00e676;
  --accent-2: #69ffb0;
  --accent-glow: rgba(0, 230, 118, 0.65);
  --danger: #ff5c7a;
  --gold: #00e676;
  --gold-soft: rgba(0, 230, 118, 0.14);
  --neon: #00ff9d;
  --border: rgba(0, 230, 118, 0.14);
  --green: #00e676;
  --green-dark: #00a85a;
  --green-glow: rgba(0, 230, 118, 0.35);
}

html {
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 230, 118, 0.10), transparent 26%),
    radial-gradient(circle at bottom right, rgba(0, 255, 157, 0.08), transparent 22%),
    linear-gradient(180deg, #020603 0%, #06120a 100%);
  color: var(--text);
}

.app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-section {
  display: none;
  width: 100%;
  overflow: visible;
}

.page-section.active {
  display: block;
}

.page-section .panel,
.page-section .overlay-panel,
.page-section .team-cards,
.page-section .maps-grid,
.page-section .social-links,
.page-section .panel.actions,
.page-section .panel.rules-panel,
.page-section .panel.maps-panel,
.page-section .panel.ban-summary,
.page-section .panel.result-panel {
  overflow: hidden;
}

@media (max-width: 900px) {
  .app {
    padding: 18px 16px 20px;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 255, 157, 0.03), transparent 30%);
}

* {
  box-sizing: border-box;
}

.app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 24px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===== NAVIGATION ===== */
.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-radius: 32px;
  border: 1px solid rgba(0, 230, 118, 0.22);
  background: linear-gradient(135deg, rgba(8, 18, 11, 0.96), rgba(3, 8, 5, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 255, 157, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: navIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated glow sweep across the nav bar */
.main-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(0, 230, 118, 0.12) 42%, rgba(0, 255, 157, 0.10) 55%, transparent 75%);
  background-size: 250% 250%;
  animation: navShine 5s linear infinite;
  pointer-events: none;
}

@keyframes navShine {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.nav-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand-link:hover {
  transform: translateX(4px);
}

.nav-logo {
  width: 44px;
  height: 44px;
  display: inline-block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 1px rgba(0, 230, 118, 0.15);
  background: transparent;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.brand-link:hover .nav-logo {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.4), 0 0 0 1px rgba(0, 230, 118, 0.5);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.03);
  border: 1px solid rgba(0, 230, 118, 0.08);
  cursor: pointer;
}

.nav-toggle .hamburger {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}
.nav-toggle .hamburger::before { top: -6px; }
.nav-toggle .hamburger::after { top: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  transform: translateY(-1px);
}

/* Icon-only nav links */
.nav-links a svg {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.nav-links a:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.6));
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(0, 230, 118, 0.1);
  text-shadow: 0 0 18px rgba(0, 230, 118, 0.5);
}

.nav-links a.active svg {
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.8));
}

@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 12px; }
}

.page-section {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation links with animated underline + pill hover */
.nav-links a {
  position: relative;
  padding: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 40%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px var(--green-glow);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(0, 230, 118, 0.1);
  text-shadow: 0 0 18px rgba(0, 230, 118, 0.5);
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.7);
}

/* Hover/focus bubble below the hovered nav icon, e.g. "Panel Admin".
   Positioned by JS (fixed to the viewport) rather than an anchored ::before,
   because .main-nav has overflow:hidden (to clip its glow-sweep animation
   to the pill shape) which would otherwise clip the bubble too. */
.nav-tooltip {
  position: fixed;
  z-index: 200;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(6, 14, 9, 0.95);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nav-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .nav-tooltip {
    display: none;
  }
}

/* Compte nav item: once logged in, swap the generic person icon for the
   account's avatar + pseudo so it reads like "you", not just a menu entry. */
.nav-compte-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.nav-compte-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #04160c;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(0, 255, 157, 0.7));
}

.nav-compte-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-compte-username {
  font-size: 0.82rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 34px 42px;
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: 36px;
  background: rgba(6, 14, 9, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  min-height: 200px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(0, 230, 118, 0.15), transparent 20%),
    radial-gradient(circle at 90% 55%, rgba(0, 255, 157, 0.10), transparent 16%);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
}

.hero-tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(234, 255, 241, 0.88);
  max-width: 560px;
}

.hero-highlight {
  display: inline-block;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 20px rgba(0, 230, 118, 0.3);
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.18), rgba(255, 255, 255, 0.06));
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 6px;
}

/* ===== BUTTONS ===== */
.theme-toggle,
.btn {
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), rgba(0, 255, 157, 0.15));
  color: var(--text);
  padding: 1rem 1.4rem;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover,
.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.4), rgba(0, 255, 157, 0.25));
  box-shadow: 0 14px 30px rgba(0, 230, 118, 0.25);
}

.btn.reset {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn.reset:hover {
  background: rgba(255, 255, 255, 0.1);
}

.panel {
  width: 100%;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 32px;
  border: 1px solid rgba(0, 230, 118, 0.16);
  background: rgba(6, 14, 9, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Planner enhancements — champs de formulaire bien lisibles
   (fond sombre + texte clair, y compris les listes déroulantes) */
.planner-panel .panel-title h2 { margin: 0; }
.panel form input, .panel form select, .panel form textarea,
#page-admin .panel form input,
#page-admin .panel form select,
#page-admin .panel form textarea {
  border: 1px solid rgba(0, 230, 118, 0.3);
  background: #0a120d;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}

/* Texte des options des listes déroulantes — évite le blanc sur blanc */
.panel form select option,
#page-admin .panel form select option {
  background: #0a120d;
  color: var(--text);
}

/* Icône de calendrier / horloge visible sur fond sombre */
.panel form input[type="date"],
.panel form input[type="time"],
#page-admin .panel form input[type="date"],
#page-admin .panel form input[type="time"] {
  color-scheme: dark;
}

/* Flèche personnalisée pour les selects */
.panel form select,
#page-admin .panel form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300e676' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.panel form input:hover, .panel form select:hover, .panel form textarea:hover,
#page-admin .panel form input:hover,
#page-admin .panel form select:hover,
#page-admin .panel form textarea:hover {
  border-color: rgba(0, 230, 118, 0.5);
}

.panel form input:focus, .panel form select:focus, .panel form textarea:focus,
#page-admin .panel form input:focus,
#page-admin .panel form select:focus,
#page-admin .panel form textarea:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.12);
}

.btn {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.btn:active { transform: translateY(1px) scale(0.997); }

.match-card {
  display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:12px;background:linear-gradient(180deg, rgba(0, 230, 118, 0.03), transparent);
  border:1px solid rgba(0, 230, 118, 0.08);
  animation: cardIn 300ms ease;
}
.match-card .muted { color: var(--muted); font-size:0.9rem; }

@keyframes cardIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.match-item { list-style:none; }

/* ===== SOCIAL ===== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.social-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: 340px;
  padding: 26px 30px;
  border-radius: 28px;
  border: 1px solid rgba(0, 230, 118, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

/* Subtle brand tint background behind each card */
.social-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.social-tiktok::before {
  background: linear-gradient(135deg, #69c9d0 0%, #000 45%, #ff0050 100%);
}
.social-twitch::before {
  background: linear-gradient(135deg, #9146ff, #5a2bb0);
}
.social-discord::before {
  background: linear-gradient(135deg, #7289da, #5865f2);
}

.social-pill:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 230, 118, 0.18);
}
.social-pill:hover::before {
  opacity: 0.22;
}

.social-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-pill:hover .social-icon {
  transform: scale(1.08) rotate(-4deg);
}

.social-tiktok .social-icon {
  background: linear-gradient(135deg, #010101 0%, #000 45%, #fe2d55 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-discord .social-icon {
  background: linear-gradient(135deg, #7289da, #5865f2);
}

.social-twitch .social-icon {
  background: linear-gradient(135deg, #a05cff, #9146ff);
}

/* Text block: name + handle */
.social-pill-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.social-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.social-handle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Arrow at the right */
.social-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.social-pill:hover .social-arrow {
  transform: translateX(5px);
  background: rgba(0, 230, 118, 0.25);
}

@media (max-width: 700px) {
  .social-links {
    flex-direction: column;
    gap: 12px;
  }
  .social-pill {
    min-width: 0;
    width: 100%;
  }
}

/* ===== OVERLAY ===== */
.overlay-panel {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding: 36px 44px 36px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, 0.18);
  background: rgba(4, 10, 6, 0.95);
  backdrop-filter: blur(26px);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.4);
}

.overlay-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 230, 118, 0.12), transparent 18%),
    radial-gradient(circle at top right, rgba(0, 255, 157, 0.10), transparent 15%);
  pointer-events: none;
}

.overlay-teams {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 18px;
}

.overlay-team {
  position: relative;
  border-radius: 30px;
  padding: 30px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  background: rgba(6, 14, 9, 0.96);
  border: 1px solid rgba(0, 230, 118, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.03);
}

.overlay-team-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.overlay-team h2 {
  margin: 0;
  font-size: clamp(2.3rem, 2.5vw, 3.2rem);
  letter-spacing: 0.12em;
}

/* Team logos float right next to the VS in the center */
.team-logo-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  z-index: 3;
}

.overlay-team-a .team-logo-wrap {
  right: 8px;
}

.overlay-team-b .team-logo-wrap {
  left: 8px;
}

.team-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: rgba(4, 10, 6, 0.9);
  padding: 6px;
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.overlay-ban-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 12px;
}

.overlay-ban-list::-webkit-scrollbar {
  height: 10px;
}

.overlay-ban-list::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 118, 0.3);
  border-radius: 999px;
}

.overlay-vs {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.overlay-ban {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  border-radius: 30px;
  padding: 28px 32px;
  background: rgba(6, 14, 9, 0.98);
  border: 1px solid rgba(0, 230, 118, 0.14);
}

.overlay-ban-title {
  margin: 0 0 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.overlay-ban-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.overlay-ban-list::-webkit-scrollbar {
  height: 8px;
}

.overlay-ban-list::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 118, 0.2);
  border-radius: 999px;
}

.overlay-ban-item {
  position: relative;
  min-height: 500px;
  width: 370px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #eafff1;
  background-color: #050a06;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 230, 118, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.05), 0 28px 70px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  flex: 0 0 370px;
}

.overlay-ban-item.status-pending {
  background: linear-gradient(180deg, rgba(4, 8, 5, 0.08) 0%, rgba(3, 6, 4, 0.12) 100%);
  border-color: rgba(0, 230, 118, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.04), 0 20px 48px rgba(0, 0, 0, 0.2);
}

.overlay-ban-item.status-pending::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.18) 100%);
}

.overlay-ban-item.status-pending .overlay-card-label {
  color: rgba(234, 255, 241, 0.7);
}

.overlay-ban-item.animate {
  animation: overlay-pop 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes overlay-pop {
  0% { transform: scale(0.92); filter: brightness(0.8); }
  40% { transform: scale(1.04); filter: brightness(1.15); }
  100% { transform: scale(1); filter: brightness(1); }
}

.overlay-ban-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.14) 100%);
}

.overlay-ban-item .overlay-ban-header,
.overlay-ban-item .overlay-ban-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.overlay-ban-item .overlay-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234, 255, 241, 0.65);
  letter-spacing: 0.26em;
}

.overlay-ban-item .overlay-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.overlay-ban-item .overlay-card-subtitle {
  font-size: 0.82rem;
  color: rgba(234, 255, 241, 0.72);
  letter-spacing: 0.12em;
}

.overlay-ban-state {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
}

.overlay-ban-item.status-ban .overlay-ban-state {
  background: rgba(255, 92, 122, 0.85);
}

.overlay-ban-item.status-pick .overlay-ban-state {
  background: rgba(0, 230, 118, 0.9);
  color: #001a0c;
}

.overlay-ban-map {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.overlay-ban-item.status-pick {
  border-color: rgba(0, 230, 118, 1);
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.22), inset 0 0 0 1px rgba(0, 230, 118, 0.22), 0 20px 50px rgba(0, 230, 118, 0.2);
}

.overlay-ban-item.status-pick::before {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.22) 0%, rgba(0, 150, 80, 0.2) 45%, rgba(0, 20, 10, 0.4) 100%);
}

/* Red gradient overlay + cross for banned cards on the overlay */
.overlay-ban-item.status-ban::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 20, 45, 0.3) 20%, rgba(255, 20, 45, 0.12) 56%, transparent 60%),
    linear-gradient(180deg, rgba(255, 45, 60, 0.28) 0%, rgba(170, 10, 30, 0.32) 45%, rgba(40, 4, 8, 0.5) 100%);
  z-index: 1;
}

.overlay-ban-item.status-ban::after {
  content: "×";
  position: absolute;
  inset: 20px;
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(255, 25, 45, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 30, 50, 0.85);
  transform: rotate(25deg) scale(1);
  opacity: 1;
  z-index: 2;
}

.overlay-ban-item.animate.status-ban::after {
  animation: overlay-ban-cross 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes overlay-ban-cross {
  0% { opacity: 0; transform: scale(0.2) rotate(-40deg); filter: brightness(2); }
  55% { opacity: 1; transform: scale(1.18) rotate(10deg); filter: brightness(1.4); }
  100% { opacity: 1; transform: scale(1) rotate(25deg); filter: brightness(1); }
}

.overlay-ban-item.status-ban .overlay-ban-state {
  background: rgba(255, 92, 122, 0.85);
}

.overlay-ban-item.status-pick .overlay-ban-state {
  background: rgba(0, 230, 118, 0.9);
}

/* Team/side badge on pick / decider */
.overlay-ban-item.status-pick .overlay-card-subtitle,
.overlay-ban-item.status-decider .overlay-card-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #001a0c;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.95), rgba(0, 255, 157, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 230, 118, 0.4);
}

.overlay-ban-item.animate.status-pick .overlay-card-subtitle,
.overlay-ban-item.animate.status-decider .overlay-card-subtitle {
  animation: overlay-team-badge 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.overlay-ban-item.status-decider .overlay-card-subtitle {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.98), rgba(0, 230, 118, 0.9));
  color: #001a0c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 230, 118, 0.6);
}

@keyframes overlay-team-badge {
  0% { opacity: 0; transform: translateY(12px) scale(0.7); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== PICK CHOICE ===== */
.pick-choice {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(6, 12, 8, 0.94);
  border: 1px solid rgba(0, 230, 118, 0.12);
}

.hidden {
  display: none;
}

.pick-choice.hidden {
  display: none;
}

/* ===== ADMIN LAYOUT (sidebar navigation) ===== */
.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

#page-planning .admin-layout {
  margin-top: 8px;
  width: 100%;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 240px;
  position: sticky;
  top: 24px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 230, 118, 0.18);
  background: linear-gradient(135deg, rgba(8, 18, 11, 0.9), rgba(3, 8, 5, 0.9));
}

.admin-sidebar-link {
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-sidebar-link:hover {
  color: var(--text);
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-1px);
}

.admin-sidebar-link.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.35), rgba(0, 255, 157, 0.2));
  color: var(--text);
  border-color: rgba(0, 230, 118, 0.6);
}

.admin-sections {
  flex: 1;
  min-width: 0;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* ===== ACCESS / ADMIN ===== */
.access-control {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.access-control input {
  flex: 1;
  min-width: 180px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #eafff1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.access-control input:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.9);
  box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.12);
  transform: translateY(-1px);
}

.access-control button {
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00b35f, #007a3d);
  color: #fff;
  border: none;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.access-control button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 32px rgba(0, 230, 118, 0.3);
}

.access-control button:active {
  transform: translateY(0);
}

.access-message {
  margin-top: 12px;
  color: #eafff1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.access-message.error {
  color: #ff6b6b;
}

.access-message.success {
  color: #7dff97;
}

.access-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(0, 230, 118, 0.14);
  background: linear-gradient(145deg, rgba(8, 16, 10, 0.96), rgba(4, 8, 5, 0.98));
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.access-panel.success {
  border-color: rgba(125, 255, 151, 0.8);
  box-shadow: 0 0 0 2px rgba(125, 255, 151, 0.12), 0 24px 60px rgba(0, 0, 0, 0.32);
}

.access-panel.error {
  border-color: rgba(255, 107, 107, 0.9);
  animation: access-shake 0.45s ease;
}

@keyframes access-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

.access-panel.unlocking {
  animation: access-unlock 0.8s ease forwards;
}

@keyframes access-unlock {
  0% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.03); filter: brightness(1.4); }
  60% { opacity: 0.95; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.08); filter: brightness(1); }
}

/* Success checkmark shown while the panel unlocks */
.access-panel.unlocking::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 5rem;
  font-weight: 800;
  color: #30ff8a;
  text-shadow: 0 0 30px rgba(0, 230, 118, 0.9), 0 0 70px rgba(0, 230, 118, 0.6);
  z-index: 5;
  pointer-events: none;
  animation: unlock-check 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes unlock-check {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-90deg); opacity: 0; }
  45% { transform: translate(-50%, -50%) scale(1.3) rotate(0deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(0.9) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

/* Enhanced unlock success glow for Admin / Régie panels */
.access-panel.success {
  border-color: rgba(125, 255, 151, 0.9);
  box-shadow:
    0 0 0 2px rgba(125, 255, 151, 0.15),
    0 0 18px rgba(0, 230, 118, 0.35),
    0 0 60px rgba(0, 230, 118, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.32);
}

.access-panel.success::after {
  content: "✔";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e676, #00ff9d);
  color: #001a0c;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.6);
  animation: unlock-check-corner 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes unlock-check-corner {
  0% { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  60% { opacity: 1; transform: scale(1.2) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.pick-choice-text {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.pick-choice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.side-selector {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----- Side (Attaque / Défense) picker cards ----- */
.side-selector .side-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 150px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 230, 118, 0.18);
  background: linear-gradient(160deg, rgba(0, 230, 118, 0.06), rgba(0, 0, 0, 0.25));
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 230, 118, 0.18), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.side-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.side-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 230, 118, 0.2);
}

.side-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(0, 230, 118, 0.22), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.35), 0 0 30px rgba(0, 230, 118, 0.35), 0 18px 40px rgba(0, 0, 0, 0.3);
  animation: side-select-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-card:has(input:checked)::before {
  opacity: 1;
}

.side-card-icon {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-card:has(input:checked) .side-card-icon {
  transform: translateY(-3px) scale(1.15);
  animation: side-icon-bounce 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-card-label {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-card-sub {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* Attack card accent */
.side-attack:has(input:checked) {
  border-color: #ff8a3c;
  background: linear-gradient(160deg, rgba(255, 138, 60, 0.2), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 0 2px rgba(255, 138, 60, 0.35), 0 0 30px rgba(255, 138, 60, 0.3), 0 18px 40px rgba(0, 0, 0, 0.3);
}

/* Defense card accent */
.side-defense:has(input:checked) {
  border-color: #4aa3ff;
  background: linear-gradient(160deg, rgba(74, 163, 255, 0.2), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.35), 0 0 30px rgba(74, 163, 255, 0.3), 0 18px 40px rgba(0, 0, 0, 0.3);
}

@keyframes side-select-pop {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes side-icon-bounce {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-6px) scale(1.2); }
  100% { transform: translateY(-3px) scale(1.15); }
}

/* ===== MAP CARDS ===== */
.map-card.pick-candidate {
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.32), 0 24px 70px rgba(0, 0, 0, 0.24);
}

.overlay-ban-item.status-decider {
  border-color: rgba(0, 255, 157, 1);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.24), inset 0 0 0 1px rgba(0, 255, 157, 0.18), 0 20px 45px rgba(0, 230, 118, 0.2);
}

.overlay-ban-item.status-decider::before {
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.24) 0%, rgba(220, 150, 0, 0.2) 45%, rgba(20, 14, 0, 0.4) 100%);
}

.overlay-ban-item.status-decider::after {
  content: "Décider";
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.9);
  color: #001a0c;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

@media (max-width: 980px) {
  .overlay-teams {
    grid-template-columns: 1fr;
  }

  .overlay-vs {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 18px 16px 24px;
  }
  .hero,
  .overlay-panel,
  .panel {
    padding: 20px 22px;
    border-radius: 24px;
  }
  .overlay-ban-item {
    width: 200px;
  }
}

#page-regie .access-panel,
#page-regie .admin-panel,
#page-regie .overlay-panel {
  text-align: center;
}

#page-regie .admin-grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.admin-grid label {
  display: grid;
  gap: 10px;
  color: var(--text);
}

.admin-grid input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.95rem 1rem;
}

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

.admin-grid input:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.1);
}

.rules-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.rules-panel li {
  margin-bottom: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.control {
  display: grid;
  gap: 10px;
}

.control label {
  color: var(--muted);
  font-size: 0.95rem;
}

.control select {
  appearance: none;
  border: 1px solid rgba(0, 230, 118, 0.16);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 157, 0.02);
}

.control select:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.1);
}

.reset {
  margin-left: auto;
}

/* ===== MAPS GRID ===== */
.maps-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.map-card {
  position: relative;
  min-height: 420px;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, 0.16);
  background: #050a06;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  opacity: 0;
}

.map-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 230, 118, 0.85);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 230, 118, 0.15);
}

.map-card.banned {
  border-color: rgba(255, 70, 92, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 70, 92, 0.45), 0 22px 60px rgba(255, 70, 92, 0.4);
}

.map-card.banned .map-card__label {
  color: #ff8095;
}

/* Banned overlay - keep map image visible */
.map-card.banned {
  background-image: linear-gradient(180deg, rgba(255, 45, 60, 0.10) 0%, rgba(150, 8, 25, 0.18) 45%, rgba(4, 5, 6, 0.55) 100%);
}
.map-card.banned .map-card__meta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 45, 60, 0.08) 0%, rgba(150, 8, 25, 0.15) 45%, rgba(4, 5, 6, 0.5) 100%);
  z-index: -1;
}

/* Big animated cross that pops in */
.map-card.banned::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5rem;
  font-weight: 200;
  line-height: 1;
  color: rgba(255, 60, 80, 0.95);
  text-shadow: 0 0 28px rgba(255, 30, 50, 0.95), 0 0 65px rgba(255, 30, 50, 0.55);
  background: radial-gradient(circle at center, rgba(255, 50, 70, 0.22) 0%, transparent 58%);
  opacity: 0;
  animation: ban-cross 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes ban-cross {
  0% { opacity: 0; transform: scale(0.2) rotate(-40deg); filter: brightness(2); }
  55% { opacity: 1; transform: scale(1.18) rotate(6deg); filter: brightness(1.4); }
  100% { opacity: 1; transform: scale(1) rotate(25deg); filter: brightness(1); }
}

.map-card.ban-anim {
  animation: ban-pulse 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ban-pulse {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  35% { transform: translateY(-8px) scale(1.04); filter: brightness(1.35) saturate(1.4); }
  70% { transform: translateY(0) scale(0.97); filter: brightness(0.9); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

.map-card .map-card__meta {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
}

.map-card .map-card__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.map-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.map-card p {
  margin: 0;
  color: #c9f5d8;
  font-size: 1rem;
}

.map-card.ascent::before { background-image: url('https://media.valorant-api.com/maps/7eaecc1b-4337-bbf6-6ab9-04b8f06b3319/stylizedbackgroundimage.png'); }
.map-card.breeze::before { background-image: url('https://media.valorant-api.com/maps/2fb9a4fd-47b8-4e7d-a969-74b4046ebd53/stylizedbackgroundimage.png'); }
.map-card.haven::before { background-image: url('https://media.valorant-api.com/maps/2bee0dc9-4ffe-519b-1cbd-7fbe763a6047/stylizedbackgroundimage.png'); }
.map-card.lotus::before { background-image: url('https://media.valorant-api.com/maps/2fe4ed3a-450a-948b-6d6b-e89a78e680a9/stylizedbackgroundimage.png'); }
.map-card.split::before { background-image: url('https://media.valorant-api.com/maps/d960549e-485c-e861-8d71-aa9d1aed12a2/stylizedbackgroundimage.png'); }
.map-card.summit::before { background-image: url('https://media.valorant-api.com/maps/756da597-416b-c0f2-f47b-afbdf28670bc/stylizedbackgroundimage.png'); }
.map-card.sunset::before { background-image: url('https://media.valorant-api.com/maps/92584fbe-486a-b1b2-9faa-39b0f486b498/stylizedbackgroundimage.png'); }

/* ===== BAN LISTS ===== */
.ban-list h2 {
  margin: 0 0 14px;
}

.ban-list p {
  margin: 0 0 14px;
  color: var(--muted);
}

.ban-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ban-list li {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ban-list li span {
  color: var(--text);
}

.ban-list li small {
  color: var(--accent);
  font-size: 0.85rem;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.action-info {
  margin: 12px 0 0;
  color: var(--muted);
}

.turn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.42);
  background: rgba(0, 230, 118, 0.12);
  color: #baffd4;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.15);
}

/* Map ban countdown timer */
.ban-timer {
  min-width: 92px;
  border-color: rgba(0, 230, 118, 0.5);
  background: rgba(0, 230, 118, 0.14);
  color: #baffd4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.ban-timer.warning {
  border-color: #ff8c00;
  background: rgba(255, 140, 0, 0.18);
  color: #ffc86e;
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.3);
  animation: timer-blink 1s step-start infinite;
}
.ban-timer.timed-out {
  border-color: var(--danger);
  background: rgba(255, 92, 122, 0.2);
  color: var(--danger);
  box-shadow: 0 0 18px rgba(255, 92, 122, 0.3);
}

@keyframes timer-blink {
  50% { opacity: 0.6; }
}

.ban-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.team-card {
  padding: 24px 26px;
  border-radius: 28px;
  border: 1px solid rgba(0, 230, 118, 0.16);
  background: rgba(6, 14, 9, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.team-card h2 {
  margin: 0 0 10px;
}

.team-note {
  margin: 0 0 16px;
  color: var(--muted);
}

.team-a {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.25);
}

.team-b {
  background: rgba(0, 230, 118, 0.06);
  border-color: rgba(0, 230, 118, 0.18);
}

.team-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
}

.roster-stream-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.roster-stream-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #eafff1;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.roster-stream-icon:hover {
  transform: translateY(-1px) scale(1.06);
}

.roster-stream-twitch:hover {
  background: rgba(145, 70, 255, 0.25);
  color: #b794ff;
}

.roster-stream-youtube:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
}

.result-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-panel li {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 230, 118, 0.04);
  color: var(--text);
}

/* ===== PICK / DECIDER STATES ===== */
.map-card.picked-a {
  border-color: rgba(0, 230, 118, 0.85);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.28), rgba(0, 230, 118, 0.1));
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.25), 0 0 30px rgba(0, 230, 118, 0.3), 0 24px 60px rgba(0,0,0,0.3);
  animation: pick-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.map-card.picked-b {
  border-color: rgba(0, 255, 157, 0.85);
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.28), rgba(0, 255, 157, 0.1));
  box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.25), 0 0 30px rgba(0, 255, 157, 0.3), 0 24px 60px rgba(0,0,0,0.3);
  animation: pick-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pick-pop {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-10px) scale(1.06); filter: brightness(1.4); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

/* Decider — epic neon green glow */
.map-card.decider {
  border-color: rgba(0, 255, 157, 0.95);
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.3), rgba(0, 230, 118, 0.1));
  animation: golden-glow 2.2s ease-in-out infinite;
}

.map-card.decider::after {
  background: radial-gradient(circle at center, rgba(0, 255, 157, 0.4) 0%, transparent 55%);
  animation: golden-sheen 2.2s ease-in-out infinite;
}

@keyframes golden-glow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.35), 0 0 26px rgba(0, 255, 157, 0.35), 0 24px 60px rgba(0,0,0,0.3);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.6), 0 0 55px rgba(0, 255, 157, 0.6), 0 24px 60px rgba(0,0,0,0.3);
  }
}

@keyframes golden-sheen {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 720px) {
  .hero,
  .panel {
    padding: 18px;
  }

  .maps-grid,
  .ban-summary {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   HISTORIQUE NBK — matchs joués par les équipes Nobak
   =========================================================================== */
.historique-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.historique-panel .panel-title {
  flex: 0 0 auto;
}

.historique-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.historique-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: historique-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes historique-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Léger effet de zoom progressif sur l'image de fond */
.historique-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(2,6,3,0.35), rgba(2,6,3,0.85));
  z-index: 0;
  transition: opacity 0.3s ease;
}

.historique-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.historique-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0,0,0,0.55), 0 0 24px rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.4);
}

.historique-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 2;
}

.historique-win {
  border-color: rgba(46, 204, 113, 0.45);
}

.historique-win::before {
  background: linear-gradient(180deg, #2ecc71, #27ae60);
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.7);
}

.historique-loss {
  border-color: rgba(231, 76, 60, 0.45);
}

.historique-loss::before {
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  box-shadow: 0 0 14px rgba(231, 76, 60, 0.7);
}

.historique-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.historique-nobak {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent, #ff4655);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.historique-vs {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted, #8a8f9c);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.historique-opponent {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #eef0f4);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.historique-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted, #8a8f9c);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.historique-map,
.historique-datetime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.historique-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.historique-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-win {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.badge-loss {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.historique-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text, #eef0f4);
  letter-spacing: 1px;
}

.historique-admin-panel {
  margin-top: 16px;
}

/* Light theme adjustments */
body.light .historique-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body.light .historique-opponent,
body.light .historique-nobak {
  color: #1a1c24;
}

body.light .historique-score {
  color: #1a1c24;
}

/* ===========================================================================
   RÉGIE / OVERLAY — tenir tout à l'écran au zoom 100%
   L'overlay (panneau de diffusion) s'adapte à la hauteur du viewport pour
   que tous les éléments (équipes + maps) soient visibles sans défilement,
   même à 100% de zoom.
   =========================================================================== */
#page-regie .overlay-panel {
  height: calc(100vh - 150px);
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

#page-regie .overlay-teams {
  flex: 0 0 auto;
}

#page-regie .overlay-ban {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

#page-regie .overlay-ban-title {
  flex: 0 0 auto;
}

#page-regie .overlay-ban-list {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
}

#page-regie .overlay-ban-item {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  width: 44vw;
  max-width: 300px;
  flex: 1 1 0;
}

/* Sur petits écrans, laisser la liste s'organiser en grille compacte */
@media (max-width: 900px) {
  #page-regie .overlay-panel {
    height: auto;
    max-height: none;
    display: block;
  }
  #page-regie .overlay-ban-item {
    width: 200px;
    height: 320px;
  }
}

/* ===========================================================================
   OBS BROADCAST, TOAST NOTIFICATIONS & COPY BADGES
   =========================================================================== */

/* --- Broadcast / OBS Tools Box --- */
.obs-tools-panel {
  border: 1px solid rgba(0, 230, 118, 0.3);
  background: linear-gradient(135deg, rgba(8, 20, 14, 0.85) 0%, rgba(12, 32, 22, 0.85) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(0, 230, 118, 0.05);
  margin-bottom: 24px;
}

.obs-tools-header h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--accent-green, #00e676);
  display: flex;
  align-items: center;
  gap: 8px;
}

.obs-tools-header p {
  color: var(--muted, #a0aec0);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.obs-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-obs {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  color: #040906 !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-obs:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Standalone OBS Overlay Mode (Transparent OBS Browser Source) --- */
body.obs-overlay-mode {
  background: transparent !important;
  background-color: transparent !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.obs-overlay-mode .main-nav,
body.obs-overlay-mode .page-section:not(#page-regie),
body.obs-overlay-mode #page-regie .access-panel,
body.obs-overlay-mode #page-regie .obs-tools-panel,
body.obs-overlay-mode #page-regie .admin-panel,
body.obs-overlay-mode #page-regie .planner-panel {
  display: none !important;
}

body.obs-overlay-mode .app {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.obs-overlay-mode #page-regie {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body.obs-overlay-mode #page-regie .overlay-panel {
  display: flex !important;
  height: 100vh !important;
  width: 100vw !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 16px 24px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  justify-content: center;
}

body.obs-overlay-mode #page-regie .overlay-teams {
  display: none !important;
}

body.obs-overlay-mode #page-regie .overlay-ban {
  width: 100%;
  margin-top: 0 !important;
}

body.obs-overlay-mode .overlay-panel::before {
  display: none !important;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(10, 18, 14, 0.95);
  border: 1px solid var(--accent-green, #00e676);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 230, 118, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast.toast-out {
  animation: toast-out 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes toast-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(20px) scale(0.92); }
}

/* --- Copy Buttons & Badges --- */
.copy-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-green, #00e676);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}

.copy-code-badge:hover {
  background: rgba(0, 230, 118, 0.25);
  border-color: var(--accent-green, #00e676);
}

.copy-code-badge svg {
  width: 14px;
  height: 14px;
}

.match-code-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.btn-icon-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== PLANNING ===== */
.planning-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.planning-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planning-swatch {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.planning-swatch.planning-dispo { background: rgba(0, 230, 118, 0.5); border-color: rgba(0, 230, 118, 0.7); }
.planning-swatch.planning-indispo { background: rgba(255, 92, 122, 0.5); border-color: rgba(255, 92, 122, 0.7); }
.planning-swatch.planning-empty { background: rgba(255, 255, 255, 0.06); }

.planning-team .panel-title {
  margin-bottom: 0;
}

.planning-access input {
  min-width: 140px;
  padding: 12px 14px;
}

.planning-access button {
  min-width: 0;
  padding: 12px 16px;
  font-size: 0.8rem;
}

.planning-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.planning-day-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.planning-day-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 230, 118, 0.5);
}

.planning-day-tab.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.35), rgba(0, 255, 157, 0.2));
  color: var(--text);
  border-color: rgba(0, 230, 118, 0.6);
}

.planning-table-scroll {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 230, 118, 0.14);
}

.planning-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.planning-table th,
.planning-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 230, 118, 0.1);
  font-size: 0.9rem;
}

.planning-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: rgba(0, 230, 118, 0.06);
}

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

.planning-table th:first-child,
.planning-slot-time {
  width: 96px;
}

.planning-slot-time {
  text-align: left;
  padding-left: 16px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.planning-cell {
  padding: 5px !important;
}

.planning-cell-btn {
  width: 100%;
  min-width: 0;
  padding: 14px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.planning-cell-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.planning-cell-btn:disabled {
  cursor: not-allowed;
}

.planning-cell-btn.planning-empty {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.planning-cell-btn.planning-dispo {
  background: rgba(0, 230, 118, 0.22);
  color: #baffd4;
  border-color: rgba(0, 230, 118, 0.5);
}

.planning-cell-btn.planning-indispo {
  background: rgba(255, 92, 122, 0.18);
  color: #ffb3c1;
  border-color: rgba(255, 92, 122, 0.45);
}

/* ===== ADMIN ROSTER ===== */
.roster-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.roster-admin-team h3 {
  margin: 0 0 12px;
}

.roster-admin-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roster-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 118, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.roster-link-select {
  flex: 1;
  min-width: 0;
  max-width: 200px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 230, 118, 0.25);
  background: rgba(4, 10, 6, 0.9);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
}

.roster-admin-empty {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
  padding: 4px 2px;
}

.roster-admin-add {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.roster-admin-add input {
  flex: 1;
  min-width: 140px;
}

/* ===== BETA NOTICE MODAL ===== */
.beta-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 3, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.beta-modal-overlay.hidden {
  display: none;
}

.beta-modal-card {
  width: 100%;
  max-width: 480px;
  padding: 36px 32px;
  border-radius: 28px;
  border: 1px solid rgba(0, 230, 118, 0.3);
  background: rgba(6, 14, 9, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 230, 118, 0.08);
  text-align: center;
}

.beta-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent);
}

.beta-modal-eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.beta-modal-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.beta-modal-text {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.beta-modal-card .btn {
  width: 100%;
}

/* ===== ACCOUNTS & ROLES ===== */
.role-gate-message p {
  color: var(--muted);
}

.role-gate-message a {
  color: var(--accent);
  font-weight: 700;
}

/* --- Compte page: centered SaaS-style auth card --- */
.page-section.compte-page.active {
  display: flex;
  justify-content: center;
  padding-top: clamp(16px, 4vh, 56px);
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  width: 100%;
  padding: 40px 36px;
  border-radius: 28px;
  border: 1px solid rgba(0, 230, 118, 0.16);
  background: rgba(6, 14, 9, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 230, 118, 0.06);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.3), 0 10px 30px rgba(0, 230, 118, 0.15);
}

.auth-card-header h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.auth-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.14);
  margin-bottom: 28px;
}

.auth-switch-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(0, 255, 157, 0.7));
  box-shadow: 0 6px 18px rgba(0, 230, 118, 0.3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.auth-switch-btn {
  position: relative;
  z-index: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.auth-switch-btn.active {
  color: #04160c;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form.hidden {
  display: none;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  padding: 14px 46px;
  border-radius: 14px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.12);
}

.auth-visibility-toggle {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.auth-visibility-toggle:hover {
  color: var(--accent);
}

.auth-submit {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.auth-submit-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-submit-label.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(4, 22, 12, 0.35);
  border-top-color: #04160c;
  animation: auth-spin 0.7s linear infinite;
}

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

/* --- Logged-in account card --- */
.account-card {
  text-align: center;
}

.account-avatar-wrap {
  position: relative;
  width: 72px;
  margin: 0 auto 18px;
}

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 700;
  color: #04160c;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(0, 255, 157, 0.7));
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.25);
}

.account-avatar-wrap .account-avatar {
  margin: 0;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 14, 9, 0.92);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.account-avatar-edit-btn:hover {
  background: rgba(0, 230, 118, 0.18);
}

.account-username-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-username-wrap .account-username {
  margin: 0 0 4px;
}

.account-username-edit-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin-bottom: 4px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.account-username-edit-btn:hover {
  background: rgba(0, 230, 118, 0.16);
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.5);
}

.compte-username-form {
  max-width: 260px;
  margin: 0 auto 16px;
}

.compte-username-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.account-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.compte-roles-label {
  color: var(--muted);
  margin: 24px 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.14);
  color: #baffd4;
  font-weight: 700;
  font-size: 0.8rem;
}

.role-badge.role-badge-pending {
  border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.14);
  color: #ffd98e;
}

.accounts-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.accounts-admin-search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 118, 0.25);
  background: rgba(4, 10, 6, 0.9);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.accounts-admin-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.accounts-admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.account-admin-item {
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 230, 118, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.account-admin-item.pending {
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.05);
}

.account-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.account-admin-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #04160c;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(0, 255, 157, 0.7));
}

.account-admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-admin-username {
  font-weight: 700;
  font-size: 1.05rem;
}

.discord-badge {
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.14);
  color: #b3b9ff;
  gap: 5px;
}

.discord-badge svg {
  flex-shrink: 0;
}

.account-admin-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.map-pool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.map-pool-chip {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.role-toggle-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.role-toggle-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(0, 230, 118, 0.35);
  color: var(--text);
}

.role-toggle-chip.active {
  background: rgba(0, 230, 118, 0.16);
  border-color: rgba(0, 230, 118, 0.5);
  color: #baffd4;
}

.role-toggle-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.account-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ===== DISCORD ===== */
.compte-discord-wrap {
  margin-bottom: 24px;
}

.compte-streaming-form {
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compte-streaming-form .btn {
  align-self: center;
}

.discord-connect-btn {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.discord-connect-btn:hover {
  background: linear-gradient(135deg, #6874f5, #5865F2);
}

.discord-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.12);
  color: #b3b9ff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.discord-status svg {
  color: #5865F2;
  flex-shrink: 0;
}

/* Both rules above set display:flex unconditionally, which — since they're
   defined after the generic .hidden rule — would otherwise win over it and
   keep the element visible even with .hidden applied. */
.discord-connect-btn.hidden,
.discord-status.hidden {
  display: none;
}

#compteDiscordUsername {
  flex: 1;
}

/* ===== COACH PANEL ===== */
.coach-team-tabs {
  display: flex;
  gap: 10px;
  margin: 8px 0 20px;
}

.coach-team-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.coach-team-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 230, 118, 0.5);
}

.coach-team-tab.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.35), rgba(0, 255, 157, 0.2));
  color: var(--text);
  border-color: rgba(0, 230, 118, 0.6);
}

.coach-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.coach-stat-tile {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 230, 118, 0.16);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.coach-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.coach-stat-label {
  margin-top: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.coach-map-table th,
.coach-map-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 230, 118, 0.1);
  font-size: 0.88rem;
}

.coach-map-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coach-map-table tr:last-child td {
  border-bottom: none;
}

.coach-range-label {
  margin: 16px 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.coach-slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.coach-slot-chip {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.coach-slot-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 230, 118, 0.4);
}

.coach-slot-chip.in-range {
  background: rgba(0, 230, 118, 0.14);
  border-color: rgba(0, 230, 118, 0.3);
  color: #baffd4;
}

.coach-slot-chip.range-end {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(0, 255, 157, 0.7));
  border-color: rgba(0, 230, 118, 0.7);
  color: #04160c;
}

.coach-availability-table {
  min-width: 1500px;
  margin-bottom: 8px;
}

.coach-availability-table th {
  position: relative;
  white-space: nowrap;
}

.coach-slot-count {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.coach-availability-table th.coach-best-slot {
  background: rgba(0, 230, 118, 0.25);
  color: var(--text);
}

.coach-availability-table th.coach-best-slot .coach-slot-count {
  color: #baffd4;
}

.coach-availability-cell {
  cursor: default !important;
  pointer-events: none;
}

.coach-available-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 20px;
}

.coach-available-empty {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.coach-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.14);
  color: #baffd4;
  font-weight: 700;
  font-size: 0.8rem;
}

.coach-player-chip.no-discord {
  border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.14);
  color: #ffd98e;
}

.coach-convoke-message {
  width: 100%;
  min-height: 60px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.coach-convoke-message:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.12);
}
