:root {
  color-scheme: dark;
  --bg: #030813;
  --bg-2: #061426;
  --panel: rgba(5, 15, 32, 0.78);
  --panel-2: rgba(8, 24, 48, 0.68);
  --line: rgba(48, 150, 255, 0.22);
  --line-strong: rgba(57, 170, 255, 0.52);
  --text: #edf7ff;
  --muted: #91a9c5;
  --soft: #cad8ea;
  --blue: #118cff;
  --blue-2: #00d4ff;
  --blue-3: #005eff;
  --cyan: #50efff;
  --danger: #ff4564;
  --warning: #ffbe4d;
  --success: #48f0a7;
  --shadow: 0 24px 90px rgba(0, 67, 160, 0.24);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius: 16px;
  --container: 1280px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at 20% -10%, rgba(0, 132, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(0, 226, 255, 0.14), transparent 26rem),
    linear-gradient(180deg, #020712 0%, #06101e 42%, #02050c 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}
body::before {
  background:
    linear-gradient(rgba(64, 166, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 166, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%);
}
body::after {
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.42) 80%);
  z-index: -1;
}

.animated-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}
.grid-layer {
  position: absolute;
  inset: -40%;
  background:
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(0, 145, 255, 0.04) 29px 30px),
    radial-gradient(circle at 50% 30%, rgba(0, 145, 255, 0.16), transparent 38rem);
  animation: slowRotate 42s linear infinite;
}
.scan-line {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -20%;
  height: 22rem;
  background: linear-gradient(180deg, transparent, rgba(0, 174, 255, 0.08), transparent);
  transform: rotate(-8deg);
  animation: scanMove 9s ease-in-out infinite;
}
.energy-orb {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.38;
  background: #008cff;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-a { left: -12rem; top: 8rem; }
.orb-b { right: -14rem; top: 24rem; animation-delay: -5s; background: #00d4ff; }

@keyframes slowRotate { to { transform: rotate(360deg); } }
@keyframes scanMove {
  0%, 100% { transform: translateY(-45vh) rotate(-8deg); opacity: 0; }
  35%, 65% { opacity: 1; }
  50% { transform: translateY(92vh) rotate(-8deg); }
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2rem, -2rem, 0) scale(1.08); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--soft); line-height: 1.7; }
small, .muted { color: var(--muted); }
strong { color: #fff; }

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1500px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(67, 166, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(4, 12, 28, 0.88), rgba(5, 22, 47, 0.76));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 0 38px rgba(0, 145, 255, 0.06);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(0, 210, 255, 0.48), transparent 62%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
  line-height: 1;
}
.brand-mark {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: radial-gradient(circle at 50% 45%, rgba(0, 183, 255, 0.18), rgba(0, 119, 255, 0.06));
  border: 1px solid rgba(66, 174, 255, 0.34);
  box-shadow: 0 0 26px rgba(0, 132, 255, 0.32), inset 0 0 18px rgba(0, 212, 255, 0.08);
}
.brand-mark img {
  width: 42px;
  height: 42px;
  max-width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 145, 255, 0.65));
}
.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transform: translateY(1px);
}
.brand-copy strong {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.02rem;
}
.brand-copy em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-links a,
.link-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: #cfe6ff;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 180ms ease;
}
.nav-links a:hover,
.link-button:hover,
.nav-links a.active {
  color: #fff;
  border-color: rgba(72, 176, 255, 0.42);
  background: rgba(0, 119, 255, 0.12);
  box-shadow: inset 0 0 22px rgba(0, 132, 255, 0.12), 0 0 22px rgba(0, 132, 255, 0.10);
}
.nav-admin { color: #80c9ff !important; }
.danger-text { color: #ff8fa0 !important; }
.inline-form { display: inline-flex; margin: 0; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(80, 180, 255, 0.32);
  border-radius: 14px;
  background: rgba(0, 84, 180, 0.14);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #a7dbff;
  border-radius: 999px;
  transition: 180ms ease;
}

.btn,
button.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 17px;
  border: 1px solid rgba(111, 205, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #0077ff, #00c2ff);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 119, 255, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.10);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 153, 255, 0.34), inset 0 0 28px rgba(255, 255, 255, 0.14);
}
.btn.secondary,
.btn.ghost {
  background: rgba(5, 21, 48, 0.72);
  color: #dff4ff;
  border-color: rgba(64, 169, 255, 0.32);
  box-shadow: inset 0 0 22px rgba(0, 132, 255, 0.10);
}
.btn.ghost { background: rgba(255, 255, 255, 0.035); }
.btn.danger,
button.danger {
  background: linear-gradient(135deg, #d91e46, #ff5570);
  border-color: rgba(255, 120, 146, 0.5);
}
.btn.big { min-height: 52px; padding: 14px 22px; font-size: 0.98rem; }
.btn.small { min-height: 34px; padding: 8px 12px; font-size: 0.82rem; }

.bot-hero {
  position: relative;
  min-height: 640px;
  border: 1px solid rgba(69, 172, 255, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #040b17;
  box-shadow: var(--shadow), inset 0 0 80px rgba(0, 132, 255, 0.08);
}
.bot-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 210, 255, 0.14);
  border-radius: inherit;
  pointer-events: none;
}
.bot-hero-media {
  position: absolute;
  inset: 0;
  background-image: url('/assets/fivem-guard-deco-banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.56;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.bot-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.94) 0%, rgba(3, 10, 23, 0.70) 43%, rgba(3, 9, 22, 0.78) 100%),
    radial-gradient(circle at 74% 32%, rgba(0, 174, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, transparent 0%, rgba(2, 7, 18, 0.72) 100%);
}
.bot-hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.7fr);
  gap: 40px;
  align-items: center;
  padding: clamp(36px, 5vw, 76px);
}
.bot-hero-copy { max-width: 700px; }
.status-pill,
.section-kicker,
.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6ee7ff;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.status-pill {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(98, 206, 255, 0.34);
  background: rgba(0, 129, 255, 0.10);
  box-shadow: inset 0 0 18px rgba(0, 162, 255, 0.08);
}
.status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #48f0ff;
  box-shadow: 0 0 18px #48f0ff;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
.bot-hero h1 {
  margin-top: 22px;
  font-size: clamp(2.35rem, 5vw, 5.15rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 36px rgba(0, 140, 255, 0.22);
}
.bot-hero p {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid rgba(79, 174, 255, 0.22);
  border-radius: 999px;
  background: rgba(1, 18, 42, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-trust-row b { color: #60e8ff; }
.guardian-card {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.guardian-card::before {
  content: "";
  position: absolute;
  width: min(90%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 173, 255, 0.24), transparent 57%),
    repeating-conic-gradient(from 0deg, rgba(0, 171, 255, 0.24) 0deg 2deg, transparent 2deg 13deg);
  filter: blur(0.2px);
  animation: rotateRing 24s linear infinite;
  z-index: -2;
}
.guardian-ring {
  position: absolute;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(67, 184, 255, 0.35);
  box-shadow: 0 0 44px rgba(0, 145, 255, 0.32), inset 0 0 44px rgba(0, 145, 255, 0.14);
  animation: pulseRing 2.8s ease-in-out infinite;
}
.guardian-logo {
  width: min(82%, 390px);
  border-radius: 24px;
  filter: drop-shadow(0 0 32px rgba(0, 132, 255, 0.44));
  animation: logoFloat 5s ease-in-out infinite;
}
.orbit-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 196, 255, 0.35);
  border-radius: 18px;
  background: rgba(3, 16, 36, 0.72);
  box-shadow: 0 0 25px rgba(0, 132, 255, 0.20), inset 0 0 18px rgba(0, 132, 255, 0.12);
  font-size: 1.35rem;
}
.orbit-a { top: 34px; left: 54px; }
.orbit-b { top: 88px; right: 24px; animation-delay: -0.7s; }
.orbit-c { bottom: 68px; left: 20px; animation-delay: -1.3s; }
.orbit-d { bottom: 30px; right: 86px; animation-delay: -2s; }

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.5%, 1%, 0); }
}
@keyframes rotateRing { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  0%, 100% { opacity: 0.64; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.02); }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.stats-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.stat-tile {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(66, 170, 255, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(6, 25, 54, 0.82), rgba(4, 13, 29, 0.86));
  box-shadow: inset 0 0 34px rgba(0, 132, 255, 0.06);
}
.stat-tile::before,
.panel::before,
.module-card::before,
.big-choice-card::before,
.backup-log-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 195, 255, 0.17), transparent 38%);
  transition: opacity 180ms ease;
  pointer-events: none;
}
.stat-tile:hover::before,
.panel:hover::before,
.module-card:hover::before,
.big-choice-card:hover::before,
.backup-log-item:hover::after { opacity: 1; }
.stat-tile span,
.stat-tile em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}
.stat-tile strong {
  display: block;
  margin: 10px 0 4px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 145, 255, 0.4);
}
.alert-stat strong { color: #72ecff; }

.content-section { margin-top: 70px; }
.bot-section { position: relative; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-title h2,
.command-board h2,
.cta-panel h2,
.landing-choice h1,
.page-head h1,
.auth-card h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.05;
}
.section-title > p { max-width: 420px; margin: 0; color: var(--muted); }

.bot-feature-grid,
.quick-grid,
.grid,
.guild-grid,
.big-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bot-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel,
.auth-card,
.empty,
.alert,
.hero-card,
.guild-card,
.server-card,
.event-card,
.filter-bar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(65, 166, 255, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(7, 24, 52, 0.78), rgba(4, 12, 26, 0.85));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.30), inset 0 0 35px rgba(0, 130, 255, 0.055);
  backdrop-filter: blur(14px);
}
.panel { padding: 24px; }
.premium-card { min-height: 100%; }
.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(73, 183, 255, 0.30);
  border-radius: 18px;
  background: rgba(0, 122, 255, 0.11);
  box-shadow: 0 0 28px rgba(0, 132, 255, 0.18);
  font-size: 1.45rem;
}
.panel h2,
.panel h3 { margin-bottom: 10px; }
.panel p { margin: 0 0 14px; }
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 25px;
  color: #d7ebff;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-2);
  box-shadow: 0 0 12px var(--blue-2);
}

.command-board {
  margin-top: 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.board-left {
  padding: 34px;
  border: 1px solid rgba(66, 170, 255, 0.24);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(6, 22, 48, 0.86), rgba(3, 12, 27, 0.92)),
    radial-gradient(circle at 12% 12%, rgba(0, 166, 255, 0.22), transparent 22rem);
  box-shadow: var(--shadow);
}
.board-left p:last-child { margin-bottom: 0; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.module-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 155px;
  padding: 22px;
  border: 1px solid rgba(60, 164, 255, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(4, 16, 35, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 196, 255, 0.54);
  box-shadow: 0 18px 48px rgba(0, 145, 255, 0.16);
}
.module-card span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 132, 255, 0.13);
  border: 1px solid rgba(78, 187, 255, 0.25);
}
.module-card strong { font-size: 1.12rem; }
.module-card em { color: var(--muted); font-style: normal; line-height: 1.5; }

.cta-panel {
  margin-top: 70px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 50%, rgba(0, 183, 255, 0.2), transparent 24rem);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }

.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 110ms; }
.delay-2 { transition-delay: 220ms; }

/* Accueil portail */
.landing-choice {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(67, 170, 255, 0.22);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(4, 14, 32, 0.82), rgba(3, 9, 20, 0.92));
  box-shadow: var(--shadow);
}
.landing-choice-head { max-width: 760px; margin-bottom: 28px; }
.big-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.big-choice-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(70, 170, 255, 0.24);
  border-radius: var(--radius-xl);
  background: rgba(6, 20, 43, 0.74);
  transition: transform 180ms ease, border-color 180ms ease;
}
.big-choice-card:hover { transform: translateY(-4px); border-color: rgba(77, 184, 255, 0.54); }
.choice-bot { background-image: linear-gradient(135deg, rgba(0, 119, 255, 0.15), rgba(5, 15, 35, 0.88)); }
.choice-ranking { background-image: linear-gradient(135deg, rgba(255, 180, 0, 0.08), rgba(5, 15, 35, 0.88)); }
.choice-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(80, 190, 255, 0.30);
  font-size: 1.7rem;
}
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.choice-list span,
.badge,
.tag,
.severity-pill,
.lifecycle-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dcefff;
  background: rgba(0, 132, 255, 0.11);
  border: 1px solid rgba(70, 174, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
}
.split-explain,
.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

/* Pages admin / compte */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(67, 170, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(5, 18, 41, 0.86), rgba(4, 10, 23, 0.92)),
    radial-gradient(circle at 10% 0%, rgba(0, 160, 255, 0.22), transparent 22rem);
  box-shadow: var(--shadow);
}
.page-head p { margin: 8px 0 0; max-width: 780px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-card.wide,
.hero-card {
  padding: 22px;
  margin: 18px 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.dashboard-grid > div {
  padding: 18px;
  border: 1px solid rgba(74, 174, 255, 0.18);
  border-radius: 16px;
  background: rgba(2, 11, 25, 0.44);
}
.dashboard-grid strong { display: block; font-size: 1.7rem; line-height: 1; }
.dashboard-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.86rem; }
.quick-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.quick-card { min-height: 145px; display: block; transition: transform 180ms ease, border-color 180ms ease; }
.quick-card:hover { transform: translateY(-3px); border-color: rgba(80, 190, 255, 0.48); }
.warning-card { border-color: rgba(255, 190, 77, 0.30); }
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.table-wrap { width: 100%; overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th, td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(87, 170, 255, 0.12);
  vertical-align: top;
}
th {
  color: #77d9ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 132, 255, 0.06);
}
td { color: #d9eaff; }
tr:hover td { background: rgba(0, 132, 255, 0.045); }

/* Formulaires */
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(80, 178, 255, 0.28);
  border-radius: 14px;
  background: rgba(2, 10, 24, 0.78);
  color: #eef8ff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { min-height: 118px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(84, 208, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 145, 255, 0.12);
}
label { color: #d7ebff; font-weight: 700; }
.settings-form,
.auth-card form,
.filter-bar {
  display: grid;
  gap: 14px;
}
.settings-form label { display: grid; gap: 8px; }
.settings-form small { font-weight: 400; }
.filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
}
.check { display: inline-flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: 0; }
.auth-card {
  max-width: 520px;
  margin: 70px auto;
  padding: 32px;
}
.alert {
  padding: 16px 18px;
  margin: 16px 0;
  color: #eaf7ff;
  background: rgba(0, 132, 255, 0.11);
  border-color: rgba(66, 180, 255, 0.30);
}
.alert.success { background: rgba(72, 240, 167, 0.10); border-color: rgba(72, 240, 167, 0.28); }
.alert.danger { background: rgba(255, 69, 100, 0.12); border-color: rgba(255, 69, 100, 0.35); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.error-box { margin-top: 40px; }

/* Cartes génériques */
.server-card { overflow: hidden; }
.server-card .banner { height: 160px; background-size: cover; background-position: center; }
.server-body { padding: 20px; }
.server-title-line,
.guild-card-head,
.event-card-head,
.event-main,
.user-card-mini,
.module-switch {
  display: flex;
  align-items: center;
  gap: 14px;
}
.server-title-line .logo,
.guild-card-head img,
.user-card-mini img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(77, 178, 255, 0.26);
}
.desc { min-height: 52px; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.badge.boost { background: rgba(255, 190, 77, 0.12); border-color: rgba(255, 190, 77, 0.30); color: #ffe4aa; }
.badge.verified,
.lifecycle-pill.ok { background: rgba(72, 240, 167, 0.11); border-color: rgba(72, 240, 167, 0.28); color: #bfffe2; }
.badge.premium { background: rgba(0, 210, 255, 0.13); border-color: rgba(0, 210, 255, 0.32); color: #b8f4ff; }
.badge.danger-soft,
.lifecycle-pill.danger { background: rgba(255, 69, 100, 0.13); border-color: rgba(255, 69, 100, 0.32); color: #ffc5ce; }
.lifecycle-pill.warn { background: rgba(255, 190, 77, 0.12); border-color: rgba(255, 190, 77, 0.28); color: #ffe4aa; }
.scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.scores div,
.mini-stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 132, 255, 0.07);
  border: 1px solid rgba(80, 180, 255, 0.14);
}
.scores strong { display: block; font-size: 1.3rem; }
.scores span { display: block; color: var(--muted); font-size: 0.78rem; }
.guild-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guild-card { padding: 20px; }
.guild-placeholder {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(77, 178, 255, 0.26);
  color: #fff;
  font-weight: 900;
}
.user-card-mini {
  padding: 12px 14px;
  border: 1px solid rgba(80, 180, 255, 0.25);
  border-radius: 18px;
  background: rgba(4, 16, 35, 0.75);
}
.user-card-mini span { display: block; color: var(--muted); font-size: 0.8rem; }
.module-switch {
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(80, 180, 255, 0.12);
}
.module-switch form { margin-left: auto; }
.mini-stat { margin-top: 14px; }

/* Événements sécurité */
.event-card { padding: 18px; margin-bottom: 14px; }
.event-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(70, 174, 255, 0.22);
}
.event-card-head { justify-content: space-between; align-items: flex-start; }
.event-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); margin-top: 4px; }
.event-summary { margin: 14px 0; }
.event-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.event-metrics span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 132, 255, 0.07);
  border: 1px solid rgba(80, 180, 255, 0.14);
}
.event-metrics b,
.event-metrics small { display: block; }
.severity-pill.critical,
.severity-pill.high { background: rgba(255, 69, 100, 0.13); border-color: rgba(255, 69, 100, 0.32); color: #ffc2cd; }
.severity-pill.medium { background: rgba(255, 190, 77, 0.12); border-color: rgba(255, 190, 77, 0.30); color: #ffe2a2; }
.severity-pill.low,
.severity-pill.info { background: rgba(0, 210, 255, 0.12); border-color: rgba(0, 210, 255, 0.28); color: #baf6ff; }
pre {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(80, 180, 255, 0.16);
  color: #dcefff;
}

/* Espace serveur : journaux filtrés client */
.account-log-board { margin-top: 54px; }
.server-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.log-panel { min-height: 100%; }
.compact-event-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}
.compact-event-list::-webkit-scrollbar { width: 7px; }
.compact-event-list::-webkit-scrollbar-thumb {
  background: rgba(0, 145, 255, 0.36);
  border-radius: 999px;
}
.compact-event-list .event-card {
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(7, 26, 56, 0.74), rgba(3, 12, 27, 0.88));
}
.backup-log-list {
  display: grid;
  gap: 12px;
}
.backup-log-item {
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid rgba(80, 180, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 132, 255, 0.06);
}
.backup-log-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue-3));
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.55);
}
.backup-log-item strong,
.backup-log-item span,
.backup-log-item small { display: block; }
.backup-log-item span { margin: 6px 0; color: var(--soft); }
.backup-log-item small { color: var(--muted); }
.mini-empty {
  padding: 18px;
  margin-top: 10px;
  border-radius: 18px;
}
.showcase-hero .hero-actions .ghost { display: none; }

.footer {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 4px;
  color: rgba(201, 224, 248, 0.64);
  font-size: 0.86rem;
}

/* Partie Liste des serveurs sécurisés : volontairement neutre, pour pouvoir la retravailler à part */
.theme-ranking {
  --blue: #1c95ff;
  --blue-2: #65ddff;
}
.theme-ranking .topbar {
  border-color: rgba(90, 170, 255, 0.20);
}
.theme-ranking .brand-mark {
  box-shadow: none;
}

@media (max-width: 1080px) {
  .bot-hero-content,
  .command-board,
  .split-explain,
  .two-cols {
    grid-template-columns: 1fr;
  }
  .guardian-card { min-height: 360px; }
  .stats-command,
  .bot-feature-grid,
  .server-log-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar { align-items: flex-start; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(80, 180, 255, 0.26);
    border-radius: 20px;
    background: rgba(3, 12, 27, 0.96);
    backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .link-button { width: 100%; justify-content: flex-start; text-align: left; }
  .inline-form { width: 100%; }
  .bot-hero { min-height: auto; }
  .bot-hero-content { min-height: auto; padding: 32px 22px; }
  .bot-hero h1 { font-size: clamp(2.1rem, 12vw, 3.4rem); }
  .guardian-card { min-height: 300px; }
  .guardian-logo { width: min(74%, 280px); }
  .orbit-icon { width: 48px; height: 48px; border-radius: 15px; }
  .stats-command,
  .bot-feature-grid,
  .module-grid,
  .big-choice-grid,
  .server-log-grid,
  .scores { grid-template-columns: 1fr; }
  .section-title,
  .cta-panel,
  .page-head,
  .panel-title-row,
  .event-card-head,
  .module-switch { flex-direction: column; align-items: stretch; }
  .module-switch form { margin-left: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-up { opacity: 1; transform: none; }
}


/* =========================================================
   Patch V4 — Interface Vexyon Guard angulaire / HUD détaillé
   Garde Liste des serveurs sécurisés séparé : application hors .theme-ranking.
   ========================================================= */
:root {
  --fg-cut-xs: polygon(7px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 5px 100%, 0 calc(100% - 5px), 0 7px);
  --fg-cut-sm: polygon(10px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 8px 100%, 0 calc(100% - 8px), 0 10px);
  --fg-cut-md: polygon(16px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 12px 100%, 0 calc(100% - 12px), 0 16px);
  --fg-cut-lg: polygon(26px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 18px 100%, 0 calc(100% - 18px), 0 26px);
  --fg-cut-xl: polygon(38px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 38px), calc(100% - 38px) 100%, 24px 100%, 0 calc(100% - 24px), 0 38px);
  --fg-hud-line: rgba(68, 181, 255, 0.38);
  --fg-hud-line-soft: rgba(68, 181, 255, 0.16);
  --fg-hud-glow: rgba(0, 145, 255, 0.28);
}

body:not(.theme-ranking) {
  background:
    radial-gradient(circle at 14% -8%, rgba(0, 136, 255, 0.26), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(0, 220, 255, 0.15), transparent 30rem),
    linear-gradient(135deg, rgba(0, 97, 255, 0.06) 0 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #010611 0%, #061124 44%, #01050d 100%) !important;
}

body:not(.theme-ranking)::before {
  background:
    linear-gradient(rgba(64, 166, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 166, 255, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(0, 153, 255, 0.035) 23px 24px) !important;
  background-size: 56px 56px, 56px 56px, 120px 120px !important;
}

body:not(.theme-ranking) .topbar,
body:not(.theme-ranking) .bot-hero,
body:not(.theme-ranking) .panel,
body:not(.theme-ranking) .auth-card,
body:not(.theme-ranking) .empty,
body:not(.theme-ranking) .alert,
body:not(.theme-ranking) .hero-card,
body:not(.theme-ranking) .guild-card,
body:not(.theme-ranking) .server-card,
body:not(.theme-ranking) .event-card,
body:not(.theme-ranking) .filter-bar,
body:not(.theme-ranking) .stat-tile,
body:not(.theme-ranking) .module-card,
body:not(.theme-ranking) .big-choice-card,
body:not(.theme-ranking) .board-left,
body:not(.theme-ranking) .cta-panel,
body:not(.theme-ranking) .page-head,
body:not(.theme-ranking) .landing-choice,
body:not(.theme-ranking) .backup-log-item,
body:not(.theme-ranking) .mini-stat,
body:not(.theme-ranking) .user-card-mini,
body:not(.theme-ranking) .event-metrics span,
body:not(.theme-ranking) pre {
  border-radius: 0 !important;
  clip-path: var(--fg-cut-md);
}

body:not(.theme-ranking) .bot-hero,
body:not(.theme-ranking) .page-head,
body:not(.theme-ranking) .landing-choice,
body:not(.theme-ranking) .cta-panel,
body:not(.theme-ranking) .board-left,
body:not(.theme-ranking) .big-choice-card {
  clip-path: var(--fg-cut-xl);
}

body:not(.theme-ranking) .topbar {
  min-height: 72px;
  align-items: center !important;
  clip-path: var(--fg-cut-lg);
  border-color: rgba(88, 190, 255, 0.34) !important;
  background:
    radial-gradient(circle at 8% 50%, rgba(0, 177, 255, 0.16), transparent 15rem),
    radial-gradient(circle at 92% 50%, rgba(0, 132, 255, 0.12), transparent 14rem),
    linear-gradient(180deg, rgba(4, 17, 39, 0.96), rgba(2, 9, 22, 0.98)) !important;
  box-shadow:
    0 16px 46px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(74, 180, 255, 0.09),
    inset 0 0 32px rgba(0, 145, 255, 0.06) !important;
  overflow: hidden;
}
body:not(.theme-ranking) .topbar::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border: 1px solid rgba(73, 190, 255, 0.10);
  border-radius: 0 !important;
  clip-path: var(--fg-cut-lg);
  background: none !important;
  padding: 0 !important;
  mask: none !important;
  -webkit-mask: none !important;
  -webkit-mask-composite: source-over !important;
  mask-composite: add !important;
}
body:not(.theme-ranking) .topbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(66, 193, 255, 0.52) 0 56px, transparent 56px calc(100% - 56px), rgba(66, 193, 255, 0.38) calc(100% - 56px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(66, 193, 255, 0.28) 0 82px, transparent 82px calc(100% - 82px), rgba(66, 193, 255, 0.24) calc(100% - 82px) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(66, 193, 255, 0.24), transparent 34%, transparent 66%, rgba(66, 193, 255, 0.18)) left / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(66, 193, 255, 0.18), transparent 34%, transparent 66%, rgba(66, 193, 255, 0.24)) right / 1px 100% no-repeat;
  opacity: 0.90;
  mix-blend-mode: normal;
}

body:not(.theme-ranking) .brand {
  height: 56px;
  align-items: center !important;
  gap: 14px !important;
  position: relative;
  z-index: 2;
}
body:not(.theme-ranking) .brand-mark {
  width: 56px !important;
  height: 56px !important;
  flex-basis: 56px !important;
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  clip-path: var(--fg-cut-sm);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 219, 255, 0.30), transparent 62%),
    linear-gradient(180deg, rgba(9, 38, 76, 0.92), rgba(2, 13, 31, 0.96)) !important;
  transform: translateY(0) !important;
  align-self: center !important;
}
body:not(.theme-ranking) .brand-mark img {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  margin: 0 auto;
}
body:not(.theme-ranking) .brand-copy {
  transform: none !important;
  justify-content: center !important;
  align-self: center !important;
}
body:not(.theme-ranking) .brand-copy strong {
  line-height: 1.05 !important;
  text-shadow: 0 0 18px rgba(0, 145, 255, 0.32);
}
body:not(.theme-ranking) .nav-links {
  position: relative;
  z-index: 2;
  align-items: center !important;
}

body:not(.theme-ranking) .nav-links a,
body:not(.theme-ranking) .link-button,
body:not(.theme-ranking) .btn,
body:not(.theme-ranking) button.btn,
body:not(.theme-ranking) .badge,
body:not(.theme-ranking) .tag,
body:not(.theme-ranking) .severity-pill,
body:not(.theme-ranking) .lifecycle-pill,
body:not(.theme-ranking) .choice-list span,
body:not(.theme-ranking) .status-pill,
body:not(.theme-ranking) .hero-trust-row span,
body:not(.theme-ranking) .count-pill {
  border-radius: 0 !important;
  clip-path: var(--fg-cut-sm);
}
body:not(.theme-ranking) .nav-links a,
body:not(.theme-ranking) .link-button {
  background: linear-gradient(180deg, rgba(6, 26, 55, 0.44), rgba(2, 11, 25, 0.68)) !important;
  border-color: rgba(85, 183, 255, 0.16) !important;
}
body:not(.theme-ranking) .nav-links a:hover,
body:not(.theme-ranking) .link-button:hover,
body:not(.theme-ranking) .nav-links a.active {
  border-color: rgba(91, 213, 255, 0.72) !important;
  background: linear-gradient(180deg, rgba(0, 147, 255, 0.22), rgba(0, 65, 150, 0.22)) !important;
}

body:not(.theme-ranking) .btn,
body:not(.theme-ranking) button.btn {
  overflow: hidden;
  border-color: rgba(90, 207, 255, 0.58) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.10), transparent 24%, transparent 76%, rgba(255,255,255,0.06)),
    linear-gradient(180deg, rgba(37, 148, 255, 0.98), rgba(12, 77, 197, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 22px rgba(0, 38, 112, 0.26),
    0 0 24px rgba(0, 145, 255, 0.24) !important;
}
body:not(.theme-ranking) .btn.secondary,
body:not(.theme-ranking) .btn.ghost {
  background:
    linear-gradient(90deg, rgba(0, 149, 255, 0.10), transparent 42%, rgba(0, 205, 255, 0.08)),
    linear-gradient(180deg, rgba(5, 28, 61, 0.92), rgba(2, 11, 26, 0.94)) !important;
}
body:not(.theme-ranking) .btn::before,
body:not(.theme-ranking) button.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 34%, rgba(155, 233, 255, 0.30) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 240ms ease;
}
body:not(.theme-ranking) .btn:hover::before,
body:not(.theme-ranking) button.btn:hover::before {
  transform: translateX(130%);
}

body:not(.theme-ranking) input,
body:not(.theme-ranking) select,
body:not(.theme-ranking) textarea,
body:not(.theme-ranking) .nav-toggle {
  border-radius: 0 !important;
  clip-path: var(--fg-cut-sm);
}
body:not(.theme-ranking) input,
body:not(.theme-ranking) select,
body:not(.theme-ranking) textarea {
  background:
    linear-gradient(180deg, rgba(2, 14, 33, 0.92), rgba(1, 8, 20, 0.94)) !important;
  border-color: rgba(82, 183, 255, 0.32) !important;
}

body:not(.theme-ranking) .bot-hero {
  min-height: 660px;
  border-color: rgba(88, 199, 255, 0.36) !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 178, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(1, 8, 19, 0.96), rgba(0, 4, 12, 0.98)) !important;
  box-shadow:
    0 30px 95px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(85, 190, 255, 0.10),
    inset 0 0 92px rgba(0, 145, 255, 0.13) !important;
}
body:not(.theme-ranking) .bot-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(82, 193, 255, 0.36), transparent 11rem, transparent calc(100% - 11rem), rgba(82, 193, 255, 0.30)),
    linear-gradient(180deg, rgba(82, 193, 255, 0.28), transparent 7rem, transparent calc(100% - 7rem), rgba(82, 193, 255, 0.22)),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(55, 168, 255, 0.07) 77px 78px),
    repeating-linear-gradient(0deg, transparent 0 76px, rgba(55, 168, 255, 0.035) 77px 78px);
  opacity: 0.52;
  mix-blend-mode: screen;
}
body:not(.theme-ranking) .bot-hero::after {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  z-index: 4;
  border-radius: 0 !important;
  clip-path: var(--fg-cut-xl);
  border: 1px solid rgba(87, 210, 255, 0.20);
  background:
    linear-gradient(90deg, rgba(69, 195, 255, 0.85) 0 76px, transparent 76px calc(100% - 76px), rgba(69, 195, 255, 0.62) calc(100% - 76px) 100%) top / 100% 2px no-repeat,
    linear-gradient(90deg, rgba(69, 195, 255, 0.50) 0 100px, transparent 100px calc(100% - 100px), rgba(69, 195, 255, 0.50) calc(100% - 100px) 100%) bottom / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(69, 195, 255, 0.48), transparent 36%, transparent 64%, rgba(69, 195, 255, 0.48)) left / 2px 100% no-repeat,
    linear-gradient(180deg, rgba(69, 195, 255, 0.48), transparent 36%, transparent 64%, rgba(69, 195, 255, 0.48)) right / 2px 100% no-repeat;
}
body:not(.theme-ranking) .bot-hero-media {
  opacity: 0.66;
  filter: saturate(1.18) contrast(1.08);
}
body:not(.theme-ranking) .bot-hero-overlay {
  background:
    linear-gradient(90deg, rgba(1, 5, 14, 0.94) 0%, rgba(2, 9, 22, 0.72) 44%, rgba(2, 7, 18, 0.80) 100%),
    radial-gradient(circle at 76% 32%, rgba(0, 200, 255, 0.22), transparent 26rem),
    radial-gradient(circle at 32% 50%, rgba(0, 102, 255, 0.22), transparent 28rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 5, 14, 0.78) 100%) !important;
}

body:not(.theme-ranking) .bot-hero h1 {
  text-shadow:
    0 0 25px rgba(0, 145, 255, 0.32),
    0 0 60px rgba(0, 80, 255, 0.18) !important;
}
body:not(.theme-ranking) .status-pill {
  padding: 10px 16px;
  background:
    linear-gradient(90deg, rgba(0, 190, 255, 0.20), rgba(0, 66, 160, 0.14)) !important;
}
body:not(.theme-ranking) .hero-trust-row span {
  background:
    linear-gradient(90deg, rgba(0, 132, 255, 0.16), rgba(0, 32, 72, 0.74)) !important;
  border-color: rgba(82, 190, 255, 0.28) !important;
}

body:not(.theme-ranking) .guardian-card::after {
  content: "";
  position: absolute;
  width: min(105%, 560px);
  aspect-ratio: 1;
  z-index: -1;
  background:
    conic-gradient(from 90deg, transparent 0 18deg, rgba(78, 209, 255, 0.30) 18deg 22deg, transparent 22deg 68deg, rgba(0, 106, 255, 0.24) 68deg 72deg, transparent 72deg 360deg),
    radial-gradient(circle, transparent 52%, rgba(0, 180, 255, 0.10) 54%, transparent 58%);
  animation: rotateRing 34s linear infinite reverse;
  filter: drop-shadow(0 0 18px rgba(0, 150, 255, 0.22));
}
body:not(.theme-ranking) .guardian-logo {
  border-radius: 0 !important;
  clip-path: var(--fg-cut-lg);
}
body:not(.theme-ranking) .orbit-icon,
body:not(.theme-ranking) .card-icon,
body:not(.theme-ranking) .event-icon,
body:not(.theme-ranking) .choice-icon,
body:not(.theme-ranking) .guild-placeholder,
body:not(.theme-ranking) .server-title-line .logo,
body:not(.theme-ranking) .guild-card-head img,
body:not(.theme-ranking) .user-card-mini img {
  border-radius: 0 !important;
  clip-path: var(--fg-cut-sm);
}
body:not(.theme-ranking) .orbit-icon {
  background:
    radial-gradient(circle at 50% 0%, rgba(73, 217, 255, 0.30), transparent 66%),
    linear-gradient(180deg, rgba(6, 31, 68, 0.88), rgba(2, 11, 26, 0.92)) !important;
}

body:not(.theme-ranking) .panel,
body:not(.theme-ranking) .stat-tile,
body:not(.theme-ranking) .module-card,
body:not(.theme-ranking) .guild-card,
body:not(.theme-ranking) .event-card,
body:not(.theme-ranking) .hero-card,
body:not(.theme-ranking) .empty,
body:not(.theme-ranking) .alert,
body:not(.theme-ranking) .backup-log-item,
body:not(.theme-ranking) .mini-stat,
body:not(.theme-ranking) .user-card-mini,
body:not(.theme-ranking) .filter-bar {
  background:
    linear-gradient(135deg, rgba(12, 42, 84, 0.64), rgba(3, 12, 28, 0.90) 48%, rgba(2, 8, 20, 0.95)),
    linear-gradient(90deg, rgba(72, 179, 255, 0.08), transparent 32%, transparent 68%, rgba(72, 179, 255, 0.06)) !important;
  border-color: rgba(83, 185, 255, 0.28) !important;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(72, 179, 255, 0.07),
    inset 0 0 36px rgba(0, 132, 255, 0.07) !important;
}
body:not(.theme-ranking) .panel::after,
body:not(.theme-ranking) .stat-tile::after,
body:not(.theme-ranking) .module-card::after,
body:not(.theme-ranking) .guild-card::after,
body:not(.theme-ranking) .event-card::after,
body:not(.theme-ranking) .hero-card::after,
body:not(.theme-ranking) .empty::after,
body:not(.theme-ranking) .alert::after,
body:not(.theme-ranking) .mini-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(91, 214, 255, 0.42) 0 44px, transparent 44px calc(100% - 44px), rgba(91, 214, 255, 0.22) calc(100% - 44px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(91, 214, 255, 0.20) 0 60px, transparent 60px calc(100% - 60px), rgba(91, 214, 255, 0.20) calc(100% - 60px) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(91, 214, 255, 0.24), transparent 38%, transparent 62%, rgba(91, 214, 255, 0.18)) left / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(91, 214, 255, 0.18), transparent 38%, transparent 62%, rgba(91, 214, 255, 0.24)) right / 1px 100% no-repeat;
  opacity: 0.82;
}
body:not(.theme-ranking) .premium-card::before,
body:not(.theme-ranking) .stat-tile::before,
body:not(.theme-ranking) .module-card::before,
body:not(.theme-ranking) .backup-log-item::after {
  mix-blend-mode: screen;
}
body:not(.theme-ranking) .premium-card:hover,
body:not(.theme-ranking) .stat-tile:hover,
body:not(.theme-ranking) .guild-card:hover,
body:not(.theme-ranking) .module-card:hover,
body:not(.theme-ranking) .event-card:hover,
body:not(.theme-ranking) .backup-log-item:hover {
  border-color: rgba(98, 218, 255, 0.62) !important;
  box-shadow:
    0 20px 64px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(0, 145, 255, 0.20),
    inset 0 0 42px rgba(0, 145, 255, 0.12) !important;
}

body:not(.theme-ranking) .card-icon,
body:not(.theme-ranking) .event-icon,
body:not(.theme-ranking) .choice-icon {
  background:
    radial-gradient(circle at 50% 35%, rgba(81, 230, 255, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(4, 35, 78, 0.88), rgba(1, 13, 32, 0.94)) !important;
  border-color: rgba(92, 213, 255, 0.46) !important;
  box-shadow:
    0 0 22px rgba(0, 145, 255, 0.24),
    inset 0 0 20px rgba(0, 132, 255, 0.16) !important;
}

body:not(.theme-ranking) .check-list li::before {
  border-radius: 0 !important;
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

body:not(.theme-ranking) .section-title {
  position: relative;
  padding-bottom: 16px;
}
body:not(.theme-ranking) .section-title::after,
body:not(.theme-ranking) .panel-title-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(320px, 48%);
  height: 2px;
  background: linear-gradient(90deg, rgba(88, 216, 255, 0.90), rgba(0, 112, 255, 0.38), transparent);
  box-shadow: 0 0 18px rgba(0, 178, 255, 0.32);
}
body:not(.theme-ranking) .panel-title-row { position: relative; padding-bottom: 14px; }

body:not(.theme-ranking) .dashboard-grid > div,
body:not(.theme-ranking) .scores div {
  border-radius: 0 !important;
  clip-path: var(--fg-cut-sm);
  background:
    linear-gradient(180deg, rgba(0, 127, 255, 0.12), rgba(0, 26, 66, 0.38)) !important;
  border-color: rgba(85, 196, 255, 0.22) !important;
}

body:not(.theme-ranking) table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
body:not(.theme-ranking) th {
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.14), rgba(0, 50, 120, 0.12)) !important;
}
body:not(.theme-ranking) tr:hover td {
  background: rgba(0, 153, 255, 0.075) !important;
}

body:not(.theme-ranking) .compact-event-list::-webkit-scrollbar-thumb {
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(0, 220, 255, 0.70), rgba(0, 90, 255, 0.62)) !important;
}

body:not(.theme-ranking) .footer {
  border-top: 1px solid rgba(82, 180, 255, 0.12);
}

@media (max-width: 820px) {
  body:not(.theme-ranking) .nav-links {
    border-radius: 0 !important;
    clip-path: var(--fg-cut-md);
  }
  body:not(.theme-ranking) .bot-hero,
  body:not(.theme-ranking) .page-head,
  body:not(.theme-ranking) .landing-choice,
  body:not(.theme-ranking) .cta-panel,
  body:not(.theme-ranking) .board-left,
  body:not(.theme-ranking) .big-choice-card {
    clip-path: var(--fg-cut-md);
  }
  body:not(.theme-ranking) .brand-copy em { display: none; }
}


/* =========================================================
   Correctif topbar — suppression des bandes claires
   ========================================================= */
body:not(.theme-ranking) .topbar {
  isolation: isolate;
}
body:not(.theme-ranking) .topbar * {
  position: relative;
}
body:not(.theme-ranking) .topbar::before,
body:not(.theme-ranking) .topbar::after {
  z-index: 0;
}
body:not(.theme-ranking) .brand,
body:not(.theme-ranking) .nav-links,
body:not(.theme-ranking) .nav-toggle {
  z-index: 2;
}
@media (max-width: 820px) {
  body:not(.theme-ranking) .topbar {
    min-height: 68px;
    overflow: visible;
  }
  body:not(.theme-ranking) .topbar::after {
    background:
      linear-gradient(90deg, rgba(66, 193, 255, 0.40) 0 42px, transparent 42px calc(100% - 42px), rgba(66, 193, 255, 0.28) calc(100% - 42px) 100%) top / 100% 1px no-repeat,
      linear-gradient(90deg, rgba(66, 193, 255, 0.22) 0 54px, transparent 54px calc(100% - 54px), rgba(66, 193, 255, 0.18) calc(100% - 54px) 100%) bottom / 100% 1px no-repeat;
  }
}

/* =========================================================
   Patch V5 — Liste des serveurs sécurisés refonte complète + phrase bot humaine
   ========================================================= */
.theme-ranking {
  --vote-cut-xs: polygon(7px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 5px 100%, 0 calc(100% - 5px), 0 7px);
  --vote-cut-sm: polygon(10px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 8px 100%, 0 calc(100% - 8px), 0 10px);
  --vote-cut-md: polygon(18px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 14px 100%, 0 calc(100% - 14px), 0 18px);
  --vote-cut-lg: polygon(30px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 22px 100%, 0 calc(100% - 22px), 0 30px);
  --vote-panel: rgba(4, 13, 29, 0.88);
  --vote-panel-2: rgba(5, 25, 58, 0.74);
  --vote-line: rgba(74, 183, 255, 0.28);
  --vote-line-strong: rgba(93, 211, 255, 0.66);
  --vote-glow: rgba(0, 140, 255, 0.28);
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 126, 255, 0.26), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(0, 213, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(0, 117, 255, 0.055) 0 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, #010611 0%, #061327 48%, #01050c 100%) !important;
}

.theme-ranking::before {
  background:
    linear-gradient(rgba(64, 166, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 166, 255, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(0, 153, 255, 0.035) 27px 28px) !important;
  background-size: 58px 58px, 58px 58px, 126px 126px !important;
}

.theme-ranking .topbar {
  border-radius: 0 !important;
  clip-path: var(--vote-cut-md);
  border-color: rgba(75, 183, 255, 0.34) !important;
  background:
    linear-gradient(90deg, rgba(2, 8, 20, 0.96), rgba(5, 24, 54, 0.90), rgba(2, 8, 20, 0.96)) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(0, 150, 255, 0.08),
    inset 0 0 35px rgba(0, 110, 255, 0.08) !important;
  isolation: isolate;
}
.theme-ranking .topbar::before {
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, rgba(65, 200, 255, 0.62), transparent 22%, transparent 78%, rgba(65, 200, 255, 0.34)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(0, 120, 255, 0.36), transparent 34%, transparent 70%, rgba(0, 120, 255, 0.28)) bottom / 100% 1px no-repeat !important;
  mask: none !important;
  -webkit-mask-composite: initial !important;
  mask-composite: initial !important;
  padding: 0 !important;
  z-index: 0;
}
.theme-ranking .topbar * { position: relative; z-index: 2; }
.theme-ranking .brand-mark,
.theme-ranking .nav-toggle,
.theme-ranking .nav-links a,
.theme-ranking .link-button,
.theme-ranking .btn,
.theme-ranking button.btn,
.theme-ranking .badge,
.theme-ranking .tag,
.theme-ranking .status-pill,
.theme-ranking .ranking-link,
.theme-ranking .check {
  border-radius: 0 !important;
  clip-path: var(--vote-cut-sm);
}
.theme-ranking .brand-mark {
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.18), rgba(0, 29, 76, 0.40)) !important;
  box-shadow: 0 0 22px rgba(0, 155, 255, 0.26), inset 0 0 18px rgba(0, 213, 255, 0.10) !important;
}
.theme-ranking .nav-links a,
.theme-ranking .link-button {
  background: rgba(2, 13, 32, 0.58) !important;
  border-color: rgba(78, 178, 255, 0.18) !important;
}
.theme-ranking .nav-links a:hover,
.theme-ranking .link-button:hover,
.theme-ranking .nav-links a.active {
  border-color: rgba(111, 221, 255, 0.70) !important;
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.26), rgba(4, 21, 50, 0.82)) !important;
  box-shadow: 0 0 24px rgba(0, 157, 255, 0.20), inset 0 0 18px rgba(0, 157, 255, 0.12) !important;
}
.theme-ranking .btn,
.theme-ranking button.btn,
.theme-ranking .ranking-link {
  background: linear-gradient(180deg, rgba(35, 140, 255, 0.98), rgba(10, 84, 210, 0.98)) !important;
  border-color: rgba(117, 215, 255, 0.56) !important;
  color: #fff !important;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -18px 24px rgba(0, 31, 84, 0.28),
    0 14px 34px rgba(0, 102, 255, 0.25) !important;
}
.theme-ranking .btn.secondary,
.theme-ranking .btn.ghost,
.theme-ranking .ranking-link {
  background: linear-gradient(180deg, rgba(8, 34, 74, 0.92), rgba(3, 14, 34, 0.94)) !important;
}
.theme-ranking input,
.theme-ranking select,
.theme-ranking textarea {
  border-radius: 0 !important;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(91, 181, 255, 0.25) !important;
  background: rgba(3, 14, 33, 0.92) !important;
  color: #edf7ff !important;
  outline: none !important;
}
.theme-ranking input:focus,
.theme-ranking select:focus,
.theme-ranking textarea:focus {
  border-color: rgba(109, 220, 255, 0.74) !important;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.14), 0 0 24px rgba(0, 153, 255, 0.16) !important;
}

.ranking-hero,
.directory-head,
.server-filter-hud,
.server-detail-hero,
.theme-ranking .server-card,
.ranking-command-card,
.ranking-step-card,
.ranking-panel-block,
.theme-ranking .empty,
.theme-ranking .panel,
.vote-mini-stat,
.vote-review {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  clip-path: var(--vote-cut-lg);
  border: 1px solid var(--vote-line) !important;
  background:
    linear-gradient(180deg, rgba(6, 21, 48, 0.82), rgba(3, 11, 26, 0.92)),
    radial-gradient(circle at 12% 0%, rgba(0, 145, 255, 0.16), transparent 24rem);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(0, 165, 255, 0.06),
    inset 0 0 36px rgba(0, 110, 255, 0.06) !important;
}
.ranking-hero::before,
.directory-head::before,
.server-filter-hud::before,
.server-detail-hero::before,
.theme-ranking .server-card::before,
.ranking-command-card::before,
.ranking-step-card::before,
.ranking-panel-block::before,
.theme-ranking .empty::before,
.theme-ranking .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(88, 216, 255, 0.85), transparent 18%, transparent 82%, rgba(0, 105, 255, 0.38)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(0, 105, 255, 0.28), transparent 26%, transparent 72%, rgba(88, 216, 255, 0.38)) bottom / 100% 1px no-repeat,
    radial-gradient(460px circle at var(--mx, 50%) var(--my, 10%), rgba(0, 198, 255, 0.15), transparent 42%);
  opacity: 0.88;
}
.theme-ranking .server-card:hover,
.ranking-step-card:hover,
.ranking-command-card:hover,
.ranking-panel-block:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 224, 255, 0.60) !important;
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 144, 255, 0.18),
    inset 0 0 42px rgba(0, 145, 255, 0.08) !important;
}

.ranking-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.58fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 58px);
  isolation: isolate;
}
.ranking-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/fivem-guard-deco-banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.03);
  animation: heroDrift 20s ease-in-out infinite alternate;
  z-index: -2;
}
.ranking-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 19, 0.94), rgba(3, 13, 31, 0.74), rgba(2, 8, 19, 0.90)),
    radial-gradient(circle at 72% 28%, rgba(0, 176, 255, 0.16), transparent 24rem);
  z-index: -1;
}
.ranking-hero-copy,
.ranking-command-card > * { position: relative; z-index: 2; }
.ranking-hero h1,
.directory-head h1,
.server-detail-hero h1 {
  margin-top: 22px;
  max-width: 850px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(0, 145, 255, 0.22);
}
.ranking-hero p,
.directory-head p { max-width: 760px; font-size: 1.06rem; }
.ranking-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 820px;
  margin-top: 30px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgba(96, 194, 255, 0.30);
  background: rgba(2, 13, 31, 0.82);
  clip-path: var(--vote-cut-sm);
}
.search-field input {
  width: 100%;
  height: 54px;
  border: 0 !important;
  clip-path: none !important;
  background: transparent !important;
}
.ranking-actions { margin-top: 18px; }
.ranking-command-card {
  align-self: center;
  padding: 26px;
  clip-path: var(--vote-cut-md);
}
.ranking-command-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.ranking-command-top .card-icon { margin-bottom: 0; }
.ranking-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ranking-live-grid > div,
.vote-detail-scores > div,
.vote-scores > div {
  border-radius: 0 !important;
  clip-path: var(--vote-cut-sm);
  background: linear-gradient(180deg, rgba(0, 127, 255, 0.13), rgba(0, 29, 76, 0.42)) !important;
  border: 1px solid rgba(94, 201, 255, 0.20) !important;
}
.ranking-live-grid strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
}
.ranking-live-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.84rem; }
.ranking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.ranking-step-card {
  padding: 22px;
  clip-path: var(--vote-cut-md);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.ranking-step-card span {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 10px;
  margin-bottom: 16px;
  color: #72efff;
  font-weight: 950;
  letter-spacing: 0.12em;
  border: 1px solid rgba(98, 211, 255, 0.26);
  background: rgba(0, 132, 255, 0.10);
  clip-path: var(--vote-cut-xs);
}
.ranking-step-card p { margin-bottom: 0; }
.ranking-section .section-title.compact,
.section-title.compact { margin-bottom: 18px; }
.ranking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  font-weight: 850;
  border: 1px solid rgba(92, 194, 255, 0.34);
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.premium-grid .server-card:first-child {
  border-color: rgba(255, 202, 93, 0.38) !important;
}

.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
}
.directory-head > * { position: relative; z-index: 2; }
.directory-head h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.server-filter-hud {
  margin: 20px 0 28px;
  padding: 22px;
  clip-path: var(--vote-cut-md);
}
.filter-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(190px, 0.65fr);
  gap: 12px;
}
.server-filter-hud label {
  display: grid;
  gap: 8px;
  color: #cfe7ff;
  font-size: 0.86rem;
  font-weight: 800;
}
.server-filter-hud input,
.server-filter-hud select {
  min-height: 48px;
  padding: 0 13px;
}
.filter-options {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.filter-options .check {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(92, 194, 255, 0.22);
  background: rgba(0, 132, 255, 0.07);
}
.directory-results { margin-top: 28px; }

.theme-ranking .server-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  clip-path: var(--vote-cut-md);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.server-card-top {
  position: relative;
  height: 164px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(0, 166, 255, 0.22), transparent 60%), #030b18;
}
.server-banner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  opacity: 0.88;
}
.server-banner-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 204, 255, 0.20), transparent 16rem),
    linear-gradient(135deg, rgba(0, 132, 255, 0.18), rgba(3, 15, 36, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(100, 210, 255, 0.055) 19px 20px);
}
.server-card-glow {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(3, 10, 24, 0.95));
}
.vote-server-card .server-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}
.vote-server-card .server-title-line {
  align-items: flex-start;
  margin-top: -48px;
}
.theme-ranking .server-title-line .logo,
.server-logo-fallback,
.detail-logo,
.detail-logo-fallback {
  flex: 0 0 66px;
  width: 66px !important;
  height: 66px !important;
  border-radius: 0 !important;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(105, 210, 255, 0.38) !important;
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.22), rgba(0, 25, 66, 0.75));
  box-shadow: 0 0 24px rgba(0, 145, 255, 0.20);
}
.server-logo-fallback,
.detail-logo-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  font-size: 1.1rem;
}
.vote-server-card h3 {
  margin-top: 54px;
  font-size: 1.32rem;
}
.vote-server-card h3 a:hover { color: #79eaff; }
.vote-server-card .desc {
  min-height: 76px;
  margin: 4px 0 0;
  color: #cbdcf0;
}
.vote-badges,
.server-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.server-tags { margin-top: 12px; }
.vote-scores {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;
}
.vote-scores strong,
.vote-detail-scores strong {
  font-size: 1.25rem;
  text-shadow: 0 0 14px rgba(0, 145, 255, 0.28);
}
.server-actions { margin-top: 16px; }
.server-actions .btn { flex: 1 1 auto; }
.theme-ranking .badge.premium-slot {
  border-color: rgba(255, 210, 95, 0.45) !important;
  background: rgba(255, 196, 79, 0.14) !important;
  color: #ffe3a4 !important;
}
.theme-ranking .badge,
.theme-ranking .tag {
  min-height: 28px;
  padding: 6px 10px;
  background: rgba(0, 132, 255, 0.10) !important;
  border: 1px solid rgba(81, 189, 255, 0.22) !important;
  color: #dcefff !important;
  font-size: 0.78rem;
  font-weight: 800;
}
.theme-ranking .badge.boost { background: rgba(255, 187, 67, 0.12) !important; border-color: rgba(255, 187, 67, 0.30) !important; color: #ffe3a7 !important; }
.theme-ranking .badge.verified { background: rgba(67, 240, 166, 0.11) !important; border-color: rgba(67, 240, 166, 0.28) !important; color: #bdffe2 !important; }
.theme-ranking .badge.premium { background: rgba(0, 214, 255, 0.13) !important; border-color: rgba(0, 214, 255, 0.32) !important; color: #b7f5ff !important; }

.server-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 0;
  padding: 0;
  min-height: 520px;
}
.server-detail-cover {
  position: relative;
  min-height: 520px;
  background: #030b18;
}
.detail-banner,
.detail-banner-fallback {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center;
}
.detail-banner-fallback {
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 190, 255, 0.18), transparent 18rem),
    url('/assets/fivem-guard-deco-banner.png') center/cover;
  opacity: 0.56;
}
.server-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(3, 10, 24, 0.72));
  pointer-events: none;
}
.vote-detail-main {
  padding: clamp(26px, 4vw, 46px) !important;
  position: relative;
  z-index: 2;
}
.server-detail-hero .detail-title {
  align-items: center;
  gap: 18px;
}
.server-detail-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}
.server-detail-hero .detail-desc {
  max-width: 760px;
  font-size: 1.04rem;
}
.score-grid.vote-detail-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.vote-detail-scores > div {
  padding: 14px;
}
.detail-actions { margin-top: 18px; }
.server-detail-grid { margin-top: 22px; }
.ranking-panel-block { padding: 24px !important; clip-path: var(--vote-cut-md); }
.vote-review {
  clip-path: var(--vote-cut-sm);
  padding: 16px;
  margin-top: 12px;
}
.vote-review strong { color: #7feaff; letter-spacing: 0.04em; }
.vote-review p { margin: 8px 0; }
.vote-review span { color: var(--muted); font-size: 0.88rem; }
.vote-mini-stat {
  clip-path: var(--vote-cut-sm);
  margin-top: 12px;
}
.vote-mini-stat strong,
.vote-mini-stat span { display: block; }
.vote-mini-stat span { margin-top: 7px; color: var(--muted); }
.ranking-empty { padding: 26px !important; clip-path: var(--vote-cut-md); }

/* Note humaine sur la page bot */
body:not(.theme-ranking) .human-guard-note {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  max-width: 720px;
  padding: 16px 18px;
  clip-path: var(--fg-cut-md);
  border: 1px solid rgba(84, 199, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(0, 132, 255, 0.15), rgba(0, 31, 84, 0.24)),
    rgba(3, 15, 34, 0.72);
  box-shadow: inset 0 0 26px rgba(0, 145, 255, 0.08), 0 0 24px rgba(0, 145, 255, 0.10);
}
body:not(.theme-ranking) .human-guard-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6ae8ff, #126fff);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.70);
}
body:not(.theme-ranking) .human-guard-note strong,
body:not(.theme-ranking) .human-guard-note span {
  display: block;
  position: relative;
  z-index: 1;
}
body:not(.theme-ranking) .human-guard-note strong {
  margin-bottom: 6px;
  color: #fff;
}
body:not(.theme-ranking) .human-guard-note span {
  color: #d8eaff;
  line-height: 1.62;
}

@media (max-width: 1120px) {
  .ranking-hero,
  .server-detail-hero,
  .directory-head {
    grid-template-columns: 1fr;
  }
  .ranking-steps,
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-detail-cover,
  .detail-banner,
  .detail-banner-fallback { min-height: 320px; }
  .filter-main { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .theme-ranking .topbar { overflow: visible; }
  .theme-ranking .nav-links {
    border-radius: 0 !important;
    clip-path: var(--vote-cut-md);
    border-color: rgba(91, 194, 255, 0.30) !important;
    background: rgba(3, 12, 27, 0.96) !important;
  }
  .ranking-hero,
  .directory-head,
  .server-filter-hud,
  .server-detail-hero { clip-path: var(--vote-cut-md); }
  .ranking-search,
  .ranking-live-grid,
  .ranking-steps,
  .server-grid,
  .score-grid.vote-detail-scores,
  .vote-scores { grid-template-columns: 1fr; }
  .ranking-hero h1,
  .directory-head h1,
  .server-detail-hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .directory-head { align-items: stretch; }
  .vote-server-card .server-title-line { margin-top: -36px; }
  .vote-server-card h3 { margin-top: 44px; }
  .server-card-top { height: 136px; }
}
.theme-ranking .ranking-live-grid > div,
.theme-ranking .vote-detail-scores > div,
.theme-ranking .vote-scores > div {
  padding: 13px 12px;
}
.theme-ranking .ranking-live-grid > div span,
.theme-ranking .vote-detail-scores > div span,
.theme-ranking .vote-scores > div span {
  color: var(--muted);
}
.theme-ranking .actions {
  position: relative;
  z-index: 2;
}

/* =========================================================
   Patch V6 — Page bot : textes + outils professionnels
   ========================================================= */
body:not(.theme-ranking) .bot-tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body:not(.theme-ranking) .bot-tools-grid .premium-card {
  min-height: 360px;
}

body:not(.theme-ranking) .bot-tools-grid .premium-card p {
  min-height: 82px;
}

body:not(.theme-ranking) .bot-tools-grid .card-icon {
  font-size: 1.58rem;
}

body:not(.theme-ranking) .command-board .board-left h2 {
  max-width: 760px;
}

body:not(.theme-ranking) .bot-cta p {
  max-width: 860px;
}

@media (max-width: 1080px) {
  body:not(.theme-ranking) .bot-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:not(.theme-ranking) .bot-tools-grid .premium-card p {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  body:not(.theme-ranking) .bot-tools-grid {
    grid-template-columns: 1fr;
  }
  body:not(.theme-ranking) .bot-tools-grid .premium-card {
    min-height: 0;
  }
}

/* =========================================================
   Patch V7 — Page bot : stats publiques, validation humaine,
   visibilité FiveM et CTA final corrigé
   ========================================================= */
.delay-3 { transition-delay: 330ms; }

body:not(.theme-ranking) .bot-public-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body:not(.theme-ranking) .bot-public-stats .stat-tile {
  min-height: 148px;
  padding: 20px 18px;
}

body:not(.theme-ranking) .bot-public-stats .stat-tile strong {
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1;
}

body:not(.theme-ranking) .bot-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

body:not(.theme-ranking) .bot-tools-grid .premium-card {
  min-height: 390px;
  padding: 26px 24px;
}

body:not(.theme-ranking) .bot-tools-grid .premium-card p {
  min-height: 112px;
}

body:not(.theme-ranking) .bot-tools-grid .card-icon {
  font-size: 1.62rem;
}

body:not(.theme-ranking) .community-guard-panel {
  margin-top: 48px;
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  clip-path: var(--fg-cut-lg);
}

body:not(.theme-ranking) .community-guard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 214, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 88% 58%, rgba(0, 105, 255, 0.20), transparent 26rem),
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(74, 177, 255, 0.035) 29px 30px);
}

body:not(.theme-ranking) .community-guard-panel > * {
  position: relative;
  z-index: 1;
}

body:not(.theme-ranking) .community-guard-copy h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.02;
  text-transform: uppercase;
}

body:not(.theme-ranking) .community-guard-copy p:not(.section-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
}

body:not(.theme-ranking) .guard-validation-grid {
  display: grid;
  gap: 14px;
}

body:not(.theme-ranking) .guard-validation-grid > div {
  position: relative;
  min-height: 112px;
  padding: 20px 22px 20px 74px;
  border: 1px solid rgba(83, 185, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(8, 38, 80, 0.76), rgba(2, 11, 27, 0.90)),
    linear-gradient(90deg, rgba(72, 179, 255, 0.10), transparent 70%);
  clip-path: var(--fg-cut-md);
  box-shadow:
    inset 0 0 30px rgba(0, 132, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.24);
}

body:not(.theme-ranking) .guard-validation-grid > div::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 26px;
  height: 26px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(180deg, rgba(85, 231, 255, 0.95), rgba(0, 102, 255, 0.72));
  box-shadow: 0 0 22px rgba(0, 184, 255, 0.48);
}

body:not(.theme-ranking) .guard-validation-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

body:not(.theme-ranking) .guard-validation-grid span {
  display: block;
  color: var(--soft);
  line-height: 1.55;
}

body:not(.theme-ranking) .command-board .board-left h2 {
  max-width: 840px;
}

body:not(.theme-ranking) .bot-cta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(28px, 4vw, 44px) !important;
}

body:not(.theme-ranking) .bot-cta .bot-cta-copy {
  min-width: 0;
}

body:not(.theme-ranking) .bot-cta h2 {
  max-width: 940px;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
}

body:not(.theme-ranking) .bot-cta p:not(.section-kicker) {
  max-width: 900px;
  margin-top: 14px;
}

body:not(.theme-ranking) .bot-cta-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

body:not(.theme-ranking) .bot-cta-action .btn.big {
  width: 100%;
  max-width: 280px;
  min-height: 68px;
  padding: 16px 24px;
  text-align: center;
  line-height: 1.22;
  white-space: normal;
  clip-path: var(--fg-cut-md);
}

@media (max-width: 1320px) {
  body:not(.theme-ranking) .bot-public-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body:not(.theme-ranking) .bot-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:not(.theme-ranking) .bot-tools-grid .premium-card p {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  body:not(.theme-ranking) .community-guard-panel,
  body:not(.theme-ranking) .bot-cta {
    grid-template-columns: 1fr;
  }
  body:not(.theme-ranking) .bot-cta-action {
    justify-content: flex-start;
  }
  body:not(.theme-ranking) .bot-cta-action .btn.big {
    width: auto;
    min-width: 240px;
  }
}

@media (max-width: 720px) {
  body:not(.theme-ranking) .bot-public-stats,
  body:not(.theme-ranking) .bot-tools-grid {
    grid-template-columns: 1fr;
  }
  body:not(.theme-ranking) .bot-public-stats .stat-tile,
  body:not(.theme-ranking) .bot-tools-grid .premium-card {
    min-height: 0;
  }
  body:not(.theme-ranking) .guard-validation-grid > div {
    padding-left: 58px;
  }
  body:not(.theme-ranking) .guard-validation-grid > div::before {
    left: 19px;
  }
  body:not(.theme-ranking) .bot-cta-action .btn.big {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* =========================================================
   Patch V8 — Vexyon Utility : page orange en développement
   ========================================================= */
.theme-utility {
  --utility: #ff8a1f;
  --utility-2: #ffbf47;
  --utility-3: #ff5f1a;
  --utility-dark: #120904;
  --utility-panel: rgba(24, 12, 5, 0.86);
  --utility-line: rgba(255, 142, 35, 0.30);
  --utility-line-strong: rgba(255, 185, 73, 0.62);
  --line: rgba(255, 142, 35, 0.28);
  --line-strong: rgba(255, 185, 73, 0.58);
  --blue: #ff8a1f;
  --blue-2: #ffbf47;
  --cyan: #ffd27a;
  background:
    radial-gradient(circle at 16% -12%, rgba(255, 136, 31, 0.20), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(255, 188, 72, 0.13), transparent 28rem),
    linear-gradient(180deg, #070502 0%, #120904 44%, #030201 100%);
}

.theme-utility body::before,
.theme-utility body::after { content: none; }

.theme-utility .grid-layer {
  background:
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(255, 142, 35, 0.05) 29px 30px),
    radial-gradient(circle at 50% 30%, rgba(255, 142, 35, 0.14), transparent 38rem);
}

.theme-utility .scan-line {
  background: linear-gradient(180deg, transparent, rgba(255, 167, 42, 0.09), transparent);
}

.theme-utility .energy-orb {
  background: #ff7a1a;
  opacity: 0.28;
}

.theme-utility .orb-b {
  background: #ffbf47;
}

.theme-utility .topbar {
  border-color: rgba(255, 143, 32, 0.30);
  background:
    linear-gradient(135deg, rgba(22, 10, 4, 0.92), rgba(41, 18, 5, 0.78));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 119, 18, 0.10),
    inset 0 0 38px rgba(255, 142, 35, 0.07);
}

.theme-utility .topbar::before {
  background: linear-gradient(120deg, transparent, rgba(255, 183, 73, 0.50), transparent 62%);
}

.theme-utility .brand-mark.utility-mark {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 193, 82, 0.22), rgba(255, 117, 18, 0.08)),
    linear-gradient(145deg, rgba(46, 20, 5, 0.92), rgba(15, 7, 3, 0.96));
  border-color: rgba(255, 172, 64, 0.50);
  box-shadow:
    0 0 28px rgba(255, 130, 24, 0.32),
    inset 0 0 20px rgba(255, 192, 91, 0.11);
}

.utility-brand-glyph {
  font-weight: 1000;
  letter-spacing: -0.08em;
  color: #fff4dc;
  text-shadow:
    0 0 12px rgba(255, 184, 62, 0.85),
    0 0 28px rgba(255, 109, 22, 0.50);
}

.theme-utility .brand-copy em,
.theme-utility .nav-links a,
.theme-utility .link-button {
  color: #ffe2b8;
}

.theme-utility .nav-links a:hover,
.theme-utility .link-button:hover,
.theme-utility .nav-links a.active {
  color: #fff;
  border-color: rgba(255, 177, 60, 0.58);
  background: rgba(255, 117, 18, 0.13);
  box-shadow:
    inset 0 0 22px rgba(255, 142, 35, 0.13),
    0 0 22px rgba(255, 117, 18, 0.12);
}

.utility-hero,
.utility-intro-panel,
.utility-showcase,
.utility-cta,
.utility-card,
.utility-roadmap-card {
  position: relative;
  overflow: hidden;
  clip-path: var(--fg-cut-lg, polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px));
  border: 1px solid var(--utility-line);
  background:
    linear-gradient(180deg, rgba(26, 12, 5, 0.88), rgba(10, 5, 2, 0.92)),
    radial-gradient(circle at 15% 10%, rgba(255, 142, 35, 0.12), transparent 26rem);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(255, 115, 20, 0.10),
    inset 0 0 50px rgba(255, 142, 35, 0.055);
}

.utility-hero::before,
.utility-intro-panel::before,
.utility-showcase::before,
.utility-cta::before,
.utility-card::before,
.utility-roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 179, 70, 0.10), transparent 20%, transparent 78%, rgba(255, 113, 23, 0.08)),
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(255, 174, 70, 0.035) 29px 30px);
}

.utility-hero {
  min-height: 620px;
  margin-top: 12px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 143, 32, 0.20), transparent 25rem),
    radial-gradient(circle at 18% 88%, rgba(255, 190, 72, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(20, 9, 4, 0.94), rgba(6, 4, 2, 0.96));
}

.utility-hero-glow {
  position: absolute;
  inset: -25%;
  background:
    conic-gradient(from 180deg at 72% 45%, transparent, rgba(255, 143, 32, 0.28), transparent 42%),
    radial-gradient(circle at 70% 45%, rgba(255, 193, 83, 0.18), transparent 26rem);
  opacity: 0.78;
  animation: utilitySpin 28s linear infinite;
}

.utility-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 5.4vw, 78px);
}

.utility-hero-copy { max-width: 760px; }
.utility-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  color: #ffd78f;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 184, 69, 0.35);
  background: rgba(255, 128, 24, 0.105);
  clip-path: var(--fg-cut-sm, polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px));
}
.utility-status-pill i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #ff9b25;
  box-shadow: 0 0 18px #ff9b25;
  animation: utilityPulse 1.7s ease-in-out infinite;
}

.utility-hero h1 {
  margin: 24px 0 0;
  max-width: 900px;
  font-size: clamp(2.45rem, 5vw, 5.15rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 38px rgba(255, 119, 18, 0.22);
}

.utility-hero p,
.utility-intro-panel p,
.utility-showcase p,
.utility-cta p {
  color: #f0dcc4;
}

.utility-hero-copy > p {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.utility-note {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 183, 67, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 130, 24, 0.13), rgba(255, 186, 71, 0.055)),
    rgba(8, 4, 2, 0.46);
  clip-path: var(--fg-cut-md, polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px));
}
.utility-note strong,
.utility-note span {
  display: block;
}
.utility-note span {
  margin-top: 7px;
  color: #f3d6b8;
  line-height: 1.62;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.utility-disabled,
.utility-secondary,
.theme-utility .btn:not(.danger) {
  clip-path: var(--fg-cut-md, polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px));
  border-radius: 0 !important;
}

.utility-disabled {
  cursor: not-allowed;
  color: #fff0cf !important;
  background:
    linear-gradient(180deg, rgba(126, 70, 20, 0.88), rgba(64, 31, 9, 0.92)) !important;
  border-color: rgba(255, 181, 74, 0.32) !important;
  box-shadow: inset 0 0 24px rgba(255, 159, 44, 0.10) !important;
}

.utility-secondary,
.theme-utility .btn.secondary {
  background: rgba(36, 16, 5, 0.72) !important;
  color: #ffe7bd !important;
  border-color: rgba(255, 178, 65, 0.30) !important;
  box-shadow: inset 0 0 22px rgba(255, 142, 35, 0.10) !important;
}

.theme-utility .btn:not(.secondary):not(.danger):not(.utility-disabled) {
  background: linear-gradient(135deg, #ff7a1f, #ffb83d) !important;
  border-color: rgba(255, 214, 128, 0.56) !important;
  box-shadow: 0 16px 38px rgba(255, 117, 18, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.12) !important;
}

.utility-control-card {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.utility-control-card::before {
  content: "";
  position: absolute;
  width: min(92%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 151, 36, 0.22), transparent 56%),
    repeating-conic-gradient(from 0deg, rgba(255, 180, 62, 0.26) 0deg 2deg, transparent 2deg 14deg);
  animation: rotateRing 26s linear infinite;
  z-index: -2;
}
.utility-pulse-ring {
  position: absolute;
  width: min(90%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 174, 60, 0.38);
  box-shadow: 0 0 48px rgba(255, 128, 24, 0.30), inset 0 0 48px rgba(255, 168, 50, 0.12);
  animation: pulseRing 2.7s ease-in-out infinite;
}
.utility-core-badge {
  width: min(72%, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: clamp(4rem, 9vw, 8.8rem);
  font-weight: 1000;
  letter-spacing: -0.12em;
  padding-right: 0.08em;
  color: #fff6df;
  background:
    linear-gradient(145deg, rgba(64, 31, 8, 0.96), rgba(14, 7, 3, 0.98)),
    radial-gradient(circle at 50% 20%, rgba(255, 191, 71, 0.22), transparent 46%);
  border: 1px solid rgba(255, 184, 67, 0.54);
  clip-path: polygon(50% 0, 92% 18%, 100% 66%, 50% 100%, 0 66%, 8% 18%);
  text-shadow: 0 0 26px rgba(255, 132, 26, 0.74);
  box-shadow:
    0 0 56px rgba(255, 124, 24, 0.28),
    inset 0 0 44px rgba(255, 165, 44, 0.12);
  animation: logoFloat 5s ease-in-out infinite;
}

.utility-mini-panel {
  position: absolute;
  width: 138px;
  min-height: 76px;
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(255, 181, 69, 0.34);
  background: rgba(24, 11, 4, 0.78);
  clip-path: var(--fg-cut-md, polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px));
  box-shadow: 0 0 28px rgba(255, 121, 22, 0.18), inset 0 0 22px rgba(255, 154, 36, 0.10);
}
.utility-mini-panel span {
  color: #ffcc7a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.utility-mini-panel strong { font-size: 1rem; }
.panel-a { left: 2%; top: 12%; }
.panel-b { right: 0; top: 18%; }
.panel-c { left: 4%; bottom: 12%; }
.panel-d { right: 8%; bottom: 6%; }

.utility-intro-panel {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: center;
}
.utility-intro-panel h2,
.utility-showcase h2,
.utility-cta h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.theme-utility .section-kicker {
  color: #ffd27a;
}

.utility-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.utility-card {
  min-height: 355px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.utility-card:hover {
  transform: translateY(-4px);
  border-color: var(--utility-line-strong);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.40),
    0 0 42px rgba(255, 119, 18, 0.18),
    inset 0 0 50px rgba(255, 142, 35, 0.075);
}
.utility-card > * { position: relative; z-index: 1; }
.utility-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.55rem;
  border: 1px solid rgba(255, 181, 69, 0.35);
  background: rgba(255, 125, 24, 0.11);
  clip-path: var(--fg-cut-sm, polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px));
  box-shadow: 0 0 24px rgba(255, 130, 24, 0.20);
}
.utility-card h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}
.utility-card p {
  color: #f0dcc4;
  min-height: 116px;
}
.utility-list li::before,
.theme-utility .check-list li::before {
  color: #ffbd4a;
  text-shadow: 0 0 12px rgba(255, 151, 36, 0.68);
}

.utility-showcase {
  margin-top: 64px;
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.86fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.utility-showcase > * { position: relative; z-index: 1; }
.utility-slides {
  position: relative;
  min-height: 310px;
  perspective: 900px;
}
.utility-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid rgba(255, 183, 67, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 132, 25, 0.22), rgba(17, 8, 3, 0.88)),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px);
  clip-path: var(--fg-cut-lg, polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px));
  box-shadow: 0 18px 52px rgba(0,0,0,.34), inset 0 0 36px rgba(255, 142, 35, 0.12);
}
.utility-slide span {
  color: #fff6df;
  font-weight: 1000;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 129, 24, 0.52);
}
.slide-one { transform: translate3d(-18px, 12px, -30px) rotate(-2deg); opacity: 0.68; }
.slide-two { transform: translate3d(18px, -6px, -12px) rotate(2deg); opacity: 0.82; }
.slide-three { transform: translate3d(0, 26px, 28px); }
.slide-one::before,
.slide-two::before,
.slide-three::before {
  content: "";
  position: absolute;
  inset: 20px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 201, 96, 0.22), transparent 12rem),
    linear-gradient(90deg, rgba(255, 143, 32, 0.16), transparent 64%);
  clip-path: var(--fg-cut-md, polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px));
}

.utility-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.utility-roadmap-card {
  min-height: 178px;
  padding: 22px;
}
.utility-roadmap-card > * { position: relative; z-index: 1; }
.utility-roadmap-card span {
  display: inline-flex;
  color: #ffbf47;
  font-weight: 1000;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.utility-roadmap-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.utility-roadmap-card p {
  margin: 0;
  color: #efdbc1;
}
.utility-roadmap-card.active {
  border-color: rgba(255, 190, 72, 0.62);
}
.utility-roadmap-card.locked {
  opacity: 0.82;
}

.utility-cta {
  margin-top: 22px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 28px;
  align-items: center;
}
.utility-cta > * { position: relative; z-index: 1; }
.utility-cta .utility-disabled {
  justify-self: end;
  width: 100%;
  max-width: 300px;
  min-height: 70px;
}

@keyframes utilitySpin { to { transform: rotate(360deg); } }
@keyframes utilityPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 1320px) {
  .utility-feature-grid,
  .utility-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .utility-card p { min-height: 0; }
}

@media (max-width: 980px) {
  .utility-hero-grid,
  .utility-intro-panel,
  .utility-showcase,
  .utility-cta {
    grid-template-columns: 1fr;
  }
  .utility-control-card { min-height: 380px; }
  .utility-cta .utility-disabled { justify-self: start; }
}

@media (max-width: 720px) {
  .utility-feature-grid,
  .utility-roadmap {
    grid-template-columns: 1fr;
  }
  .utility-hero-grid { padding: 28px 22px; }
  .utility-hero h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .utility-mini-panel {
    width: 116px;
    min-height: 66px;
    font-size: 0.84rem;
  }
  .utility-slides { min-height: 260px; }
}

.theme-utility::before {
  background:
    linear-gradient(rgba(255, 143, 32, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 143, 32, 0.052) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%);
}
.theme-utility::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.45) 80%),
    radial-gradient(circle at 88% 12%, rgba(255, 128, 24, 0.10), transparent 28rem);
}

/* =========================================================
   Patch V9 — Vexyon Utility : affichage du logo image
   ========================================================= */
.theme-utility .brand-mark.utility-mark {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: visible;
}

.utility-brand-logo {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(255, 147, 32, 0.55))
    drop-shadow(0 0 22px rgba(255, 96, 18, 0.28));
}

.utility-brand-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.utility-logo-stage {
  overflow: visible;
}

.utility-hero-logo {
  position: relative;
  z-index: 3;
  width: min(74%, 360px);
  max-height: 360px;
  object-fit: contain;
  display: block;
  animation: logoFloat 5s ease-in-out infinite;
  filter:
    drop-shadow(0 0 18px rgba(255, 153, 34, 0.58))
    drop-shadow(0 0 48px rgba(255, 96, 18, 0.30));
}

.utility-logo-stage::after {
  content: "";
  position: absolute;
  width: min(78%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 147, 32, 0.18), transparent 62%),
    conic-gradient(from 90deg, transparent, rgba(255, 187, 74, 0.28), transparent 38%);
  filter: blur(1px);
  z-index: 0;
  animation: utilitySpin 24s linear infinite reverse;
}

.utility-logo-stage .utility-pulse-ring {
  z-index: 1;
}

.utility-logo-stage .utility-mini-panel {
  z-index: 4;
}

@media (max-width: 720px) {
  .utility-hero-logo {
    width: min(76%, 280px);
    max-height: 280px;
  }
}


/* =========================================================
   Patch V10 — Vexyon Utility : tickets, BDA et organisation staff
   ========================================================= */
.utility-ticket-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid rgba(255, 177, 62, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 126, 25, 0.18), rgba(20, 9, 3, 0.88)),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 32px);
  clip-path: var(--fg-cut-lg, polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px));
  box-shadow:
    0 24px 76px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(255, 119, 18, 0.14),
    inset 0 0 42px rgba(255, 142, 35, 0.085);
  overflow: hidden;
}
.utility-ticket-panel::before,
.utility-ticket-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.utility-ticket-panel::before {
  inset: 1px;
  background:
    linear-gradient(90deg, rgba(255, 194, 84, 0.16), transparent 30%, transparent 72%, rgba(255, 121, 20, 0.14)),
    radial-gradient(circle at 14% 10%, rgba(255, 188, 71, 0.18), transparent 22rem);
  clip-path: inherit;
}
.utility-ticket-panel::after {
  right: -80px;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 189, 72, 0.24);
  box-shadow: inset 0 0 42px rgba(255, 132, 24, 0.12), 0 0 36px rgba(255, 132, 24, 0.12);
}
.utility-ticket-panel > * {
  position: relative;
  z-index: 1;
}
.utility-ticket-copy h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.utility-ticket-copy p {
  margin: 0;
  max-width: 790px;
  color: #f3dfc8;
}
.utility-ticket-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.utility-ticket-types span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #fff8e7;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid rgba(255, 190, 72, 0.30);
  background: linear-gradient(180deg, rgba(255, 137, 29, 0.16), rgba(255, 137, 29, 0.055));
  clip-path: var(--fg-cut-sm, polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px));
  box-shadow: inset 0 0 18px rgba(255, 140, 24, 0.10);
}
.utility-card-highlight {
  border-color: rgba(255, 190, 72, 0.44) !important;
  background:
    linear-gradient(180deg, rgba(42, 19, 7, 0.90), rgba(16, 7, 3, 0.92)),
    radial-gradient(circle at top left, rgba(255, 152, 31, 0.12), transparent 18rem) !important;
}
.utility-card-highlight .utility-icon {
  background: rgba(255, 142, 35, 0.18);
  box-shadow: 0 0 30px rgba(255, 130, 24, 0.28);
}
@media (max-width: 980px) {
  .utility-ticket-panel { grid-template-columns: 1fr; }
  .utility-ticket-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .utility-ticket-types { grid-template-columns: 1fr; }
}


/* =========================================================
   Patch client — Page Guard + espace client
   ========================================================= */
.big-choice-grid.portal-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice-client {
  background-image: linear-gradient(135deg, rgba(68, 220, 255, 0.13), rgba(5, 15, 35, 0.88));
}
.client-profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}
.client-score-card {
  min-height: 100%;
}
.confidence-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 14px;
}
.confidence-score strong {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.92;
  color: #fff;
  text-shadow: 0 0 32px rgba(0, 180, 255, 0.38);
}
.confidence-score span {
  color: var(--muted);
  font-weight: 900;
}
.confidence-bar {
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(73, 183, 255, 0.26);
  border-radius: 999px;
  background: rgba(2, 10, 24, 0.82);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.30);
}
.confidence-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 132, 255, 0.65), rgba(100, 230, 255, 0.92));
  box-shadow: 0 0 22px rgba(0, 180, 255, 0.34);
}
.client-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.client-signal-list span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(72, 178, 255, 0.22);
  background: rgba(0, 132, 255, 0.10);
  color: #dcefff;
  font-weight: 800;
  font-size: 0.82rem;
}
.client-privacy-note {
  margin-top: 16px !important;
}
.client-form textarea {
  min-height: 92px;
}
.client-info-panels {
  margin-top: 18px;
}
.confidence-excellent .confidence-bar span,
.confidence-good .confidence-bar span {
  background: linear-gradient(90deg, rgba(23, 210, 145, 0.66), rgba(119, 245, 195, 0.94));
  box-shadow: 0 0 22px rgba(23, 210, 145, 0.30);
}
.confidence-standard .confidence-bar span {
  background: linear-gradient(90deg, rgba(255, 189, 74, 0.72), rgba(255, 225, 130, 0.94));
  box-shadow: 0 0 22px rgba(255, 189, 74, 0.26);
}
.confidence-watch .confidence-bar span,
.confidence-danger .confidence-bar span {
  background: linear-gradient(90deg, rgba(255, 105, 65, 0.72), rgba(255, 67, 104, 0.94));
  box-shadow: 0 0 22px rgba(255, 67, 104, 0.26);
}
@media (max-width: 1180px) {
  .big-choice-grid.portal-three,
  .client-profile-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Patch V10 — Header Utility : logo centré, sans texte FU fallback
   ========================================================= */
.theme-utility .brand-mark.utility-mark {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.theme-utility .brand-mark.utility-mark .utility-brand-logo {
  position: static;
  z-index: 2;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.theme-utility .brand-mark.utility-mark .utility-brand-fallback,
.theme-utility .brand-mark.utility-mark .utility-brand-glyph {
  display: none !important;
}

/* =========================================================
   Patch V11 — Liaison compte utilisateur => serveur
   ========================================================= */
.server-link-section {
  margin-top: 28px;
}
.server-link-layout {
  margin-top: 18px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.server-directory-form textarea {
  min-height: 140px;
}
.server-public-preview {
  overflow: hidden;
  border: 1px solid rgba(82, 184, 255, 0.18);
  background: rgba(2, 10, 24, 0.70);
  border-radius: 20px;
}
.server-preview-banner {
  height: 170px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(82, 184, 255, 0.14);
}
.server-preview-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}
.server-preview-body h3 {
  margin: 0 0 8px;
  color: #fff;
}
.server-preview-body p {
  margin: 0;
}
.server-preview-logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(91, 204, 255, 0.35);
  background: rgba(0, 132, 255, 0.10);
  box-shadow: 0 0 24px rgba(0, 160, 255, 0.18);
}
.server-preview-logo.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.06em;
}
.server-public-preview .vote-badges {
  padding: 0 18px 18px;
  margin: 0;
}
@media (max-width: 860px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .server-preview-body {
    flex-direction: column;
  }
}

/* =========================================================
   Patch navigation — organisation du compte en menu déroulant
   ========================================================= */
.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-group summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: #cfe6ff;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: 180ms ease;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "▾";
  font-size: 0.72rem;
  opacity: 0.72;
  transform: translateY(-1px);
}

.nav-group:hover summary,
.nav-group[open] summary,
.nav-group.active summary {
  color: #fff;
  border-color: rgba(72, 176, 255, 0.42);
  background: rgba(0, 119, 255, 0.12);
  box-shadow: inset 0 0 22px rgba(0, 132, 255, 0.12), 0 0 22px rgba(0, 132, 255, 0.10);
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  min-width: 220px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(82, 180, 255, 0.30);
  background:
    linear-gradient(180deg, rgba(5, 18, 39, 0.98), rgba(2, 9, 23, 0.98)),
    radial-gradient(circle at top, rgba(63, 183, 255, 0.16), transparent 18rem);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(0, 132, 255, 0.14),
    inset 0 0 24px rgba(0, 145, 255, 0.06);
  clip-path: var(--fg-cut-sm, polygon(10px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 8px 100%, 0 calc(100% - 8px), 0 10px));
}

.nav-menu-panel a,
.nav-menu-panel .link-button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  border-radius: 12px;
  padding: 10px 12px;
}

.nav-menu-panel .inline-form {
  width: 100%;
}

.nav-menu-panel .danger-text {
  color: #ffb1b1;
}

.admin-group .nav-menu-panel {
  right: 0;
}

@media (max-width: 820px) {
  .nav-group {
    width: 100%;
    display: block;
  }

  .nav-group summary {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-menu-panel {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: inset 0 0 22px rgba(0, 145, 255, 0.08);
  }
}


/* Patch V12 — Journaux serveur plus lisibles */
.account-log-board {
  margin-top: 56px;
}
.account-log-board .server-log-title {
  align-items: end;
  gap: 28px;
}
.server-log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 20px;
}
.server-log-summary > div {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid rgba(79, 196, 255, 0.24);
  background: linear-gradient(135deg, rgba(8, 36, 77, 0.70), rgba(2, 11, 27, 0.92));
  clip-path: var(--fg-cut-sm);
  box-shadow: inset 0 0 28px rgba(0, 132, 255, 0.08);
}
.server-log-summary span,
.server-log-summary small {
  display: block;
  color: var(--muted);
}
.server-log-summary strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 34px;
  line-height: 1;
  color: #f6fbff;
}
.account-log-board .server-log-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.account-log-board .backup-panel {
  grid-column: 1 / -1;
}
.account-log-board .log-panel {
  min-width: 0;
}
.account-log-board .panel-title-row {
  align-items: flex-start;
  gap: 16px;
}
.account-log-board .panel-title-row h2 {
  margin-bottom: 8px;
}
.account-log-board .count-pill {
  min-width: 34px;
  height: 30px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(92, 213, 255, 0.34);
  background: rgba(0, 132, 255, 0.13);
  color: #dff8ff;
  font-weight: 900;
  clip-path: var(--fg-cut-sm);
}
.account-log-board .compact-event-list {
  max-height: 540px;
  padding: 2px 8px 2px 2px;
}
.account-log-board .client-event-card {
  padding: 14px 15px;
  margin-bottom: 12px;
  border-color: rgba(82, 183, 255, 0.22) !important;
  background: linear-gradient(135deg, rgba(4, 26, 58, 0.78), rgba(1, 9, 22, 0.94)) !important;
}
.client-event-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.event-source-pill {
  width: 38px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(91, 214, 255, 0.34);
  background: linear-gradient(180deg, rgba(0, 152, 255, 0.20), rgba(0, 49, 108, 0.28));
  color: #dff8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  clip-path: var(--fg-cut-sm);
  box-shadow: inset 0 0 18px rgba(0, 132, 255, 0.12);
}
.event-source-pill.activity {
  border-color: rgba(61, 224, 176, 0.28);
  background: linear-gradient(180deg, rgba(0, 185, 150, 0.18), rgba(0, 55, 78, 0.28));
}
.client-event-title {
  min-width: 0;
}
.client-event-title strong,
.client-event-title small {
  display: block;
}
.client-event-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f6fbff;
}
.client-event-title small {
  margin-top: 3px;
  color: var(--muted);
}
.account-log-board .client-event-card .severity-pill {
  padding: 7px 10px;
  white-space: nowrap;
  font-size: 11px;
}
.account-log-board .client-event-card .event-summary {
  margin: 12px 0 0;
  color: #d8eaff;
  line-height: 1.55;
}
.client-event-metrics {
  margin-top: 12px;
}
.client-event-metrics span {
  padding: 9px 10px;
  min-width: 110px;
}
.client-event-actor {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(95, 201, 255, 0.14);
  color: var(--muted);
}
.client-event-actor strong {
  color: #f6fbff;
  text-align: right;
}
.account-log-board .backup-log-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.account-log-board .clean-backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px 15px 18px;
}
.account-log-board .clean-backup-item > div {
  min-width: 0;
}
.account-log-board .clean-backup-item strong {
  font-size: 15px;
  color: #f6fbff;
}
.account-log-board .clean-backup-item span {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(92, 213, 255, 0.20);
  background: rgba(0, 132, 255, 0.10);
  color: #dff8ff;
  white-space: nowrap;
  clip-path: var(--fg-cut-sm);
}
.account-log-board .clean-backup-item small {
  margin-top: 5px;
}

@media (max-width: 1040px) {
  .server-log-summary,
  .account-log-board .server-log-grid {
    grid-template-columns: 1fr;
  }
  .account-log-board .backup-panel {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .client-event-top {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .client-event-top .severity-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .account-log-board .compact-event-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* =========================================================
   Patch serveur — liens image + recadrage sans upload local
   ========================================================= */
.image-crop-grid select {
  min-height: 46px;
}
.image-crop-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}
.server-preview-banner,
.server-banner,
.detail-banner {
  background-repeat: no-repeat;
}
.server-preview-logo,
.server-title-line .logo,
.detail-logo {
  object-fit: cover;
}

/* =========================================================
   Patch — réglages rôles Vexyon Guard depuis le site
   ========================================================= */
.access-settings-block {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(82, 184, 255, 0.18);
  border-radius: 20px;
  background: rgba(2, 10, 24, 0.38);
}
.compact-title-row { margin-bottom: 0; }
.access-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.access-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(80, 178, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 18, 38, 0.58);
}
.mini-label {
  display: block;
  margin-bottom: 8px;
  color: #d7ebff;
  font-weight: 800;
}
.role-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(80, 178, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.role-choice {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #eef8ff;
  font-weight: 700;
}
.role-choice input {
  width: auto;
  min-height: 0;
  accent-color: #55d7ff;
}
.role-choice span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .access-settings-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Patch Liste des serveurs sécurisés — votes 2h, slots premium, statut FiveM
   ========================================================= */
.featured-server-strip {
  margin-top: 26px;
}
.featured-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.featured-slot-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.featured-slot-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.featured-slot-rank {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 18px;
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(255, 205, 94, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 198, 80, 0.20), transparent 12rem),
    rgba(5, 15, 34, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: center;
}
.featured-slot-rank strong {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  color: #ffd479;
  text-shadow: 0 0 22px rgba(255, 198, 80, 0.28);
}
.featured-slot-rank span {
  margin-top: 10px;
  color: #e8f5ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.featured-slot-content > .vote-server-card { min-height: 100%; }
.featured-slot-content .vote-server-card {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
}
.featured-slot-content .server-card-top { height: 100%; min-height: 235px; }
.featured-slot-content .vote-server-card .server-title-line,
.featured-slot-content .vote-server-card h3 { margin-top: 0; }
.featured-empty-slot {
  min-height: 280px !important;
  align-items: center;
  justify-content: center;
  padding: 26px !important;
  text-align: center;
  border-style: dashed !important;
  border-color: rgba(255, 202, 93, 0.28) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 191, 67, 0.12), transparent 16rem),
    rgba(4, 14, 31, 0.62) !important;
}
.empty-slot-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255, 196, 79, 0.10);
  border: 1px solid rgba(255, 196, 79, 0.28);
  font-size: 1.7rem;
}
.server-row-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.theme-ranking .server-row-list .vote-server-card {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  min-height: 235px;
}
.theme-ranking .server-row-list .server-card-top {
  height: 100%;
  min-height: 235px;
}
.theme-ranking .server-row-list .vote-server-card .server-title-line,
.theme-ranking .server-row-list .vote-server-card h3 {
  margin-top: 0;
}
.theme-ranking .server-row-list .vote-server-card .desc {
  min-height: 0;
}
.server-online-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #eaf7ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}
.server-online-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 14px currentColor;
}
.server-online-pill.online i,
.server-status.online { color: #b7ffdf !important; }
.server-online-pill.online i { background: var(--success); }
.server-online-pill.offline i,
.server-status.offline { color: #ffb6c1 !important; }
.server-online-pill.offline i { background: var(--danger); }
.server-online-pill.unknown i,
.server-status.unknown { color: #ffe1a3 !important; }
.server-live-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.server-live-panel > div,
.vote-locked-box {
  padding: 15px;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(92, 194, 255, 0.22);
  background: rgba(0, 132, 255, 0.08);
}
.server-live-panel span,
.vote-locked-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}
.server-live-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}
.detail-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(3, 10, 24, 0.72));
  pointer-events: none;
}
.detail-desc.full {
  white-space: pre-line;
  max-width: none !important;
}
.compact-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.vote-box-panel {
  position: sticky;
  top: 104px;
  align-self: start;
}
.site-vote-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.site-vote-form label {
  display: grid;
  gap: 8px;
  color: #d8edff;
  font-weight: 800;
}
.site-vote-form input {
  min-height: 48px;
  padding: 0 14px;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.small-note {
  margin-top: 14px;
  font-size: 0.86rem;
}
.vote-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.vote-pagination span {
  color: var(--muted);
  font-weight: 850;
}
.centered-actions {
  justify-content: center;
  margin-top: 24px;
}
.directory-results .section-title > p {
  color: var(--muted);
  font-weight: 800;
}
.premium-slot-admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.premium-slot-admin-form select {
  min-height: 36px;
  max-width: 150px;
}
.premium-slot-admin-form input { max-width: 72px; }
@media (max-width: 1180px) {
  .featured-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-slot-row,
  .featured-slot-content .vote-server-card,
  .theme-ranking .server-row-list .vote-server-card { grid-template-columns: 1fr; }
  .featured-slot-rank { min-height: auto; flex-direction: row; gap: 14px; justify-content: flex-start; }
  .featured-slot-rank span { margin-top: 0; text-align: left; }
  .theme-ranking .server-row-list .server-card-top { min-height: 176px; height: 176px; }
}
@media (max-width: 760px) {
  .featured-slot-grid,
  .featured-slot-stack,
  .server-live-panel,
  .compact-score-grid { grid-template-columns: 1fr !important; }
  .vote-box-panel { position: relative; top: auto; }
  .vote-pagination { flex-direction: column; }
}

/* =========================================================
   Patch Liste des serveurs sécurisés — liste horizontale sur /classement
   ========================================================= */
.theme-ranking .classement-home-server-list {
  width: 100%;
  max-width: 100%;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px;
}

.theme-ranking .classement-home-server-list .vote-server-card {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  align-items: stretch;
  min-height: 245px;
}

.theme-ranking .classement-home-server-list .server-card-top {
  height: 100% !important;
  min-height: 245px;
}

.theme-ranking .classement-home-server-list .vote-server-card .server-body {
  min-width: 0;
}

.theme-ranking .classement-home-server-list .vote-server-card .server-title-line,
.theme-ranking .classement-home-server-list .vote-server-card h3 {
  margin-top: 0 !important;
}

.theme-ranking .classement-home-server-list .vote-server-card .desc {
  min-height: 0 !important;
}

.theme-ranking .classement-home-server-list .vote-scores {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .theme-ranking .classement-home-server-list .vote-server-card {
    grid-template-columns: 1fr !important;
  }

  .theme-ranking .classement-home-server-list .server-card-top {
    height: 176px !important;
    min-height: 176px !important;
  }
}


/* =========================================================
   Patch Liste des serveurs sécurisés — /classement : bannière visible sur le côté
   ========================================================= */
.theme-ranking .classement-home-server-list {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.theme-ranking .classement-home-server-list .classement-line-card {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  display: grid !important;
  grid-template-columns: minmax(270px, 395px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  min-height: 250px !important;
  overflow: hidden !important;
}

.theme-ranking .classement-line-card .server-card-top {
  position: relative !important;
  height: 100% !important;
  min-height: 250px !important;
  border-right: 1px solid rgba(91, 181, 255, 0.28);
  background: #020b18 !important;
}

.theme-ranking .classement-line-card .server-banner {
  opacity: 1 !important;
  transform: none !important;
  filter: saturate(1.08) contrast(1.05) !important;
  background-size: cover !important;
  background-position: center !important;
}

.theme-ranking .classement-line-card .server-card-glow {
  height: 100% !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(2, 8, 19, 0.08), rgba(2, 8, 19, 0.00) 42%, rgba(3, 10, 24, 0.55)),
    linear-gradient(180deg, rgba(2, 8, 19, 0.12), transparent 42%, rgba(3, 10, 24, 0.50)) !important;
}

.theme-ranking .classement-line-card .server-side-logo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 0;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(112, 224, 255, 0.62);
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.22), rgba(0, 25, 66, 0.84));
  box-shadow: 0 0 28px rgba(0, 145, 255, 0.30), 0 14px 26px rgba(0, 0, 0, 0.34);
}

.theme-ranking .classement-line-card .server-side-logo-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
}

.theme-ranking .classement-line-card .server-title-line .server-body-logo {
  display: none !important;
}

.theme-ranking .classement-line-card .server-body {
  min-width: 0;
  padding: 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 245px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 20px;
  row-gap: 12px;
}

.theme-ranking .classement-line-card .server-title-line {
  grid-column: 1 / 2;
  grid-row: 1;
  display: block !important;
  margin-top: 0 !important;
}

.theme-ranking .classement-line-card .server-title-line h3,
.theme-ranking .classement-line-card h3 {
  margin: 0 !important;
  font-size: clamp(1.22rem, 1.6vw, 1.55rem) !important;
  line-height: 1.15;
}

.theme-ranking .classement-line-card .server-title-line .muted {
  margin: 7px 0 0;
}

.theme-ranking .classement-line-card .vote-badges {
  grid-column: 1 / 2;
  grid-row: 2;
  margin-top: 0;
}

.theme-ranking .classement-line-card .desc {
  grid-column: 1 / 2;
  grid-row: 3;
  min-height: 0 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-ranking .classement-line-card .server-tags {
  grid-column: 1 / 2;
  grid-row: 4;
  margin-top: 0;
  align-self: end;
}

.theme-ranking .classement-line-card .vote-scores {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: start;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
  margin-top: 0 !important;
}

.theme-ranking .classement-line-card .server-actions {
  grid-column: 2 / 3;
  grid-row: 4;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0 !important;
}

.theme-ranking .classement-line-card .server-actions .btn {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 1180px) {
  .theme-ranking .classement-home-server-list .classement-line-card {
    grid-template-columns: minmax(230px, 330px) minmax(0, 1fr) !important;
  }

  .theme-ranking .classement-line-card .server-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-ranking .classement-line-card .vote-scores,
  .theme-ranking .classement-line-card .server-actions {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .theme-ranking .classement-line-card .vote-scores {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .theme-ranking .classement-line-card .server-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .theme-ranking .classement-home-server-list .classement-line-card {
    grid-template-columns: 1fr !important;
  }

  .theme-ranking .classement-line-card .server-card-top {
    height: 190px !important;
    min-height: 190px !important;
    border-right: 0;
    border-bottom: 1px solid rgba(91, 181, 255, 0.28);
  }

  .theme-ranking .classement-line-card .server-side-logo {
    width: 68px;
    height: 68px;
  }

  .theme-ranking .classement-line-card .vote-scores,
  .theme-ranking .classement-line-card .server-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .theme-ranking .classement-line-card .vote-scores,
  .theme-ranking .classement-line-card .server-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Correctif Liste des serveurs sécurisés — /classement : bannière vraiment visible
   ========================================================= */
.theme-ranking .classement-home-server-list .classement-line-card {
  grid-template-columns: 132px minmax(0, 1fr) !important;
  min-height: 300px !important;
}

.theme-ranking .classement-line-card .server-card-top.classement-logo-panel {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  height: 100% !important;
  min-height: 300px !important;
  padding: 62px 14px 20px !important;
  border-right: 1px solid rgba(91, 181, 255, 0.28) !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 145, 255, 0.22), transparent 9rem),
    linear-gradient(180deg, rgba(5, 24, 52, 0.96), rgba(2, 9, 22, 0.98)) !important;
}

.theme-ranking .classement-line-card .server-card-top.classement-logo-panel .server-card-glow {
  display: none !important;
}

.theme-ranking .classement-line-card .server-card-top.classement-logo-panel .server-online-pill {
  left: 12px !important;
  right: 12px !important;
  top: 14px !important;
  justify-content: center !important;
  max-width: calc(100% - 24px) !important;
  font-size: 0.68rem !important;
  white-space: normal !important;
  text-align: center !important;
}

.theme-ranking .classement-line-card .server-card-top.classement-logo-panel .server-side-logo {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  z-index: 3 !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  clip-path: var(--vote-cut-sm) !important;
  border: 1px solid rgba(112, 224, 255, 0.70) !important;
  background: rgba(0, 30, 70, 0.72) !important;
  box-shadow: 0 0 30px rgba(0, 145, 255, 0.36), 0 14px 30px rgba(0, 0, 0, 0.36) !important;
}

.theme-ranking .classement-line-card .server-body {
  padding: 18px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  grid-template-areas:
    "banner banner"
    "title scores"
    "badges scores"
    "desc scores"
    "tags actions" !important;
  column-gap: 20px !important;
  row-gap: 12px !important;
}

.theme-ranking .classement-line-card .classement-inline-banner {
  grid-area: banner !important;
  display: block !important;
  width: 100% !important;
  min-height: 132px !important;
  border: 1px solid rgba(91, 181, 255, 0.28) !important;
  clip-path: var(--vote-cut-sm) !important;
  background-color: rgba(3, 12, 28, 0.92) !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  box-shadow: inset 0 0 30px rgba(0, 132, 255, 0.10) !important;
}

.theme-ranking .classement-line-card .classement-inline-banner-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 204, 255, 0.20), transparent 16rem),
    linear-gradient(135deg, rgba(0, 132, 255, 0.18), rgba(3, 15, 36, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(100, 210, 255, 0.055) 19px 20px) !important;
}

.theme-ranking .classement-line-card .server-title-line { grid-area: title !important; }
.theme-ranking .classement-line-card .vote-badges { grid-area: badges !important; }
.theme-ranking .classement-line-card .desc { grid-area: desc !important; }
.theme-ranking .classement-line-card .server-tags { grid-area: tags !important; }
.theme-ranking .classement-line-card .vote-scores { grid-area: scores !important; }
.theme-ranking .classement-line-card .server-actions { grid-area: actions !important; }

.theme-ranking .classement-line-card .vote-scores {
  align-self: stretch !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.theme-ranking .classement-line-card .server-actions {
  align-self: end !important;
  grid-template-columns: 1fr !important;
}

@media (max-width: 1180px) {
  .theme-ranking .classement-home-server-list .classement-line-card {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  .theme-ranking .classement-line-card .server-card-top.classement-logo-panel {
    min-height: 310px !important;
  }

  .theme-ranking .classement-line-card .server-card-top.classement-logo-panel .server-side-logo {
    width: 76px !important;
    height: 76px !important;
  }

  .theme-ranking .classement-line-card .server-body {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "banner"
      "title"
      "badges"
      "desc"
      "tags"
      "scores"
      "actions" !important;
  }

  .theme-ranking .classement-line-card .vote-scores {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .theme-ranking .classement-line-card .server-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .theme-ranking .classement-home-server-list .classement-line-card {
    grid-template-columns: 1fr !important;
  }

  .theme-ranking .classement-line-card .server-card-top.classement-logo-panel {
    min-height: 126px !important;
    height: 126px !important;
    padding: 54px 16px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(91, 181, 255, 0.28) !important;
  }

  .theme-ranking .classement-line-card .server-card-top.classement-logo-panel .server-side-logo {
    width: 66px !important;
    height: 66px !important;
  }

  .theme-ranking .classement-line-card .classement-inline-banner {
    min-height: 110px !important;
  }
}

@media (max-width: 520px) {
  .theme-ranking .classement-line-card .vote-scores,
  .theme-ranking .classement-line-card .server-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Liste des serveurs sécurisés /classement — version propre finale
   ========================================================= */
.theme-ranking .section-title .section-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(213, 232, 255, 0.72);
  font-weight: 700;
  line-height: 1.55;
}

.theme-ranking .classement-home-server-list {
  width: min(100%, 1420px) !important;
  max-width: 1420px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.theme-ranking .classement-home-server-list .fg-classment-card {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(340px, 455px) minmax(0, 1fr) !important;
  min-height: 255px !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  transform: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 171, 255, 0.18), transparent 25rem),
    linear-gradient(135deg, rgba(5, 22, 52, 0.98), rgba(2, 10, 25, 0.98)) !important;
  border-color: rgba(94, 202, 255, 0.36) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 150, 255, 0.06),
    inset 0 0 44px rgba(0, 122, 255, 0.08) !important;
}

.theme-ranking .classement-home-server-list .fg-classment-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(118, 226, 255, 0.68) !important;
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(0, 151, 255, 0.20),
    inset 0 0 50px rgba(0, 122, 255, 0.10) !important;
}

.theme-ranking .fg-classment-card::before {
  z-index: 3;
  opacity: 0.70;
}

.theme-ranking .fg-server-media {
  position: relative !important;
  display: block !important;
  min-height: 255px !important;
  height: 100% !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(91, 181, 255, 0.30) !important;
  background: #020b18 !important;
  text-decoration: none !important;
}

.theme-ranking .fg-server-banner {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  transform: scale(1.015);
  filter: saturate(1.12) contrast(1.04);
}

.theme-ranking .fg-server-banner-fallback {
  background:
    radial-gradient(circle at 35% 35%, rgba(0, 204, 255, 0.24), transparent 14rem),
    linear-gradient(135deg, rgba(0, 132, 255, 0.22), rgba(3, 15, 36, 0.96)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(100, 210, 255, 0.060) 19px 20px) !important;
}

.theme-ranking .fg-server-media-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 19, 0.06), transparent 42%, rgba(2, 8, 19, 0.34)),
    linear-gradient(180deg, rgba(2, 8, 19, 0.10), transparent 48%, rgba(2, 8, 19, 0.72));
}

.theme-ranking .fg-classment-card .server-online-pill {
  left: 16px !important;
  top: 16px !important;
  right: auto !important;
  max-width: calc(100% - 120px) !important;
  z-index: 4 !important;
}

.theme-ranking .fg-server-rank {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 4;
  min-width: 54px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 8px 12px;
  clip-path: var(--vote-cut-xs);
  color: #07111f;
  background: linear-gradient(180deg, #ffe28f, #f2ad35);
  border: 1px solid rgba(255, 226, 143, 0.72);
  font-size: 1.08rem;
  font-weight: 1000;
  letter-spacing: -0.02em;
  box-shadow: 0 0 28px rgba(255, 193, 68, 0.28);
}

.theme-ranking .fg-server-logo {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  width: 86px !important;
  height: 86px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(118, 226, 255, 0.76) !important;
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.22), rgba(0, 25, 66, 0.84)) !important;
  box-shadow: 0 0 34px rgba(0, 145, 255, 0.38), 0 16px 30px rgba(0, 0, 0, 0.44) !important;
}

.theme-ranking .fg-server-logo-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 1000;
}

.theme-ranking .fg-server-content {
  position: relative;
  z-index: 4;
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(218px, 260px) !important;
  gap: 22px !important;
  padding: 24px !important;
}

.theme-ranking .fg-server-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.theme-ranking .fg-server-title-row h3,
.theme-ranking .fg-classment-card h3 {
  margin: 0 !important;
  font-size: clamp(1.34rem, 1.6vw, 1.72rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
}

.theme-ranking .fg-server-title-row h3 a {
  color: #f3f8ff;
  text-decoration: none;
}

.theme-ranking .fg-server-title-row .muted {
  margin: 8px 0 0 !important;
}

.theme-ranking .fg-server-badges,
.theme-ranking .fg-server-tags {
  margin-top: 0 !important;
}

.theme-ranking .fg-server-desc {
  min-height: auto !important;
  margin: 0 !important;
  color: rgba(225, 239, 255, 0.84) !important;
  font-size: 0.96rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-ranking .fg-server-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  align-self: stretch;
}

.theme-ranking .fg-server-scores {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  align-content: start;
}

.theme-ranking .fg-server-scores > div {
  min-height: 74px;
  padding: 13px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-ranking .fg-server-scores strong {
  font-size: 1.44rem;
  line-height: 1;
}

.theme-ranking .fg-server-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
  align-self: end !important;
}

.theme-ranking .fg-server-actions .btn {
  width: 100% !important;
  min-height: 44px !important;
}

@media (max-width: 1160px) {
  .theme-ranking .classement-home-server-list .fg-classment-card {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) !important;
  }

  .theme-ranking .fg-server-content {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .theme-ranking .fg-server-side {
    grid-template-rows: auto auto;
  }

  .theme-ranking .fg-server-scores {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .theme-ranking .fg-server-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .theme-ranking .section-title {
    align-items: flex-start;
  }

  .theme-ranking .classement-home-server-list .fg-classment-card {
    grid-template-columns: 1fr !important;
  }

  .theme-ranking .fg-server-media {
    min-height: 210px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(91, 181, 255, 0.30) !important;
  }

  .theme-ranking .fg-server-logo {
    width: 74px !important;
    height: 74px !important;
  }

  .theme-ranking .fg-server-content {
    padding: 20px !important;
  }

  .theme-ranking .fg-server-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .theme-ranking .fg-server-media {
    min-height: 180px !important;
  }

  .theme-ranking .fg-server-rank {
    min-width: 46px;
    min-height: 34px;
    font-size: 0.95rem;
  }

  .theme-ranking .fg-server-scores,
  .theme-ranking .fg-server-actions {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   Liste des serveurs sécurisés /classement — bannière intégrée sur tout le panel
   ========================================================= */
.theme-ranking .classement-home-server-list .fg-classment-card.fg-banner-panel {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 156px minmax(0, 1fr) !important;
  min-height: 286px !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #020915 !important;
  border-color: rgba(99, 207, 255, 0.46) !important;
  box-shadow:
    0 26px 82px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(0, 179, 255, 0.12),
    0 0 44px rgba(0, 149, 255, 0.14),
    inset 0 0 54px rgba(0, 156, 255, 0.08) !important;
}

.theme-ranking .classement-home-server-list .fg-classment-card.fg-banner-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 24% 34%, rgba(75, 210, 255, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(2, 8, 20, 0.40) 0%, rgba(2, 8, 20, 0.58) 34%, rgba(2, 8, 20, 0.88) 72%, rgba(2, 8, 20, 0.95) 100%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.05), rgba(2, 8, 20, 0.74)),
    var(--fg-panel-banner, linear-gradient(135deg, rgba(0, 139, 255, 0.28), rgba(2, 10, 25, 0.96)));
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, var(--fg-panel-banner-position, center);
  background-repeat: no-repeat;
  filter: saturate(1.22) contrast(1.08);
  transform: scale(1.01);
}

.theme-ranking .classement-home-server-list .fg-classment-card.fg-banner-panel::before {
  z-index: 4 !important;
  opacity: 0.92 !important;
  background:
    linear-gradient(90deg, rgba(94, 226, 255, 0.95), transparent 22%, transparent 80%, rgba(0, 133, 255, 0.50)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(0, 118, 255, 0.38), transparent 30%, transparent 76%, rgba(94, 226, 255, 0.48)) bottom / 100% 1px no-repeat,
    radial-gradient(520px circle at var(--mx, 28%) var(--my, 18%), rgba(0, 198, 255, 0.20), transparent 44%);
}

.theme-ranking .fg-banner-panel > .fg-server-media,
.theme-ranking .fg-banner-panel > .fg-server-content {
  position: relative !important;
  z-index: 6 !important;
}

.theme-ranking .fg-banner-panel .fg-server-media {
  min-height: 286px !important;
  height: 100% !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(118, 226, 255, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(0, 37, 84, 0.74), rgba(1, 9, 23, 0.90)),
    radial-gradient(circle at 50% 76%, rgba(0, 177, 255, 0.18), transparent 9rem) !important;
  box-shadow: inset -22px 0 36px rgba(0, 0, 0, 0.24) !important;
}

.theme-ranking .fg-banner-panel .fg-server-banner,
.theme-ranking .fg-banner-panel .fg-server-media-shine {
  display: none !important;
}

.theme-ranking .fg-banner-panel .server-online-pill {
  left: 14px !important;
  top: 16px !important;
  right: auto !important;
  max-width: calc(100% - 28px) !important;
  white-space: normal !important;
  text-align: center !important;
  justify-content: center !important;
  z-index: 8 !important;
}

.theme-ranking .fg-banner-panel .fg-server-rank {
  left: 50% !important;
  right: auto !important;
  top: 84px !important;
  transform: translateX(-50%) !important;
  z-index: 8 !important;
  min-width: 62px !important;
  min-height: 44px !important;
  background: linear-gradient(180deg, #ffe493, #f3ad35) !important;
  box-shadow: 0 0 32px rgba(255, 197, 70, 0.36) !important;
}

.theme-ranking .fg-banner-panel .fg-server-logo {
  left: 50% !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  width: 92px !important;
  height: 92px !important;
  z-index: 8 !important;
  border-color: rgba(124, 235, 255, 0.86) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 42px rgba(0, 178, 255, 0.46),
    0 18px 34px rgba(0, 0, 0, 0.45) !important;
}

.theme-ranking .fg-banner-panel .fg-server-content {
  min-height: 286px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 318px) !important;
  align-items: stretch !important;
  gap: clamp(22px, 3vw, 38px) !important;
  padding: clamp(24px, 3vw, 34px) !important;
  background:
    linear-gradient(90deg, rgba(1, 8, 22, 0.42), rgba(1, 8, 22, 0.70) 58%, rgba(1, 8, 22, 0.84)),
    radial-gradient(circle at 18% 18%, rgba(0, 194, 255, 0.12), transparent 18rem) !important;
  backdrop-filter: blur(1.6px);
}

.theme-ranking .fg-banner-panel .fg-server-main {
  justify-content: center !important;
  gap: 14px !important;
  max-width: 820px !important;
}

.theme-ranking .fg-banner-panel .fg-server-title-row h3,
.theme-ranking .fg-banner-panel h3 {
  font-size: clamp(1.58rem, 2.1vw, 2.25rem) !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62) !important;
}

.theme-ranking .fg-banner-panel .fg-server-title-row .muted,
.theme-ranking .fg-banner-panel .fg-server-desc {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.60) !important;
}

.theme-ranking .fg-banner-panel .fg-server-badges .badge,
.theme-ranking .fg-banner-panel .fg-server-tags .tag {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

.theme-ranking .fg-banner-panel .fg-server-side {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: stretch !important;
  gap: 13px !important;
  min-width: 0 !important;
}

.theme-ranking .fg-banner-panel .fg-server-scores {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin: 0 !important;
}

.theme-ranking .fg-banner-panel .fg-server-scores > div {
  min-height: 58px !important;
  padding: 11px 12px !important;
  background:
    linear-gradient(180deg, rgba(0, 91, 176, 0.58), rgba(0, 34, 82, 0.76)),
    radial-gradient(circle at 20% 0%, rgba(100, 226, 255, 0.16), transparent 7rem) !important;
  border-color: rgba(118, 226, 255, 0.26) !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.20), inset 0 0 18px rgba(0, 155, 255, 0.10) !important;
}

.theme-ranking .fg-banner-panel .fg-server-scores strong {
  font-size: 1.34rem !important;
}

.theme-ranking .fg-banner-panel .fg-server-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  margin: 0 !important;
}

.theme-ranking .fg-banner-panel .fg-server-actions .btn {
  min-height: 40px !important;
  width: 100% !important;
  box-shadow: 0 14px 26px rgba(0, 91, 255, 0.22) !important;
}

.theme-ranking .fg-banner-panel:hover::after {
  filter: saturate(1.32) contrast(1.10) brightness(1.04);
}

@media (max-width: 1160px) {
  .theme-ranking .classement-home-server-list .fg-classment-card.fg-banner-panel {
    grid-template-columns: 132px minmax(0, 1fr) !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-content {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-side {
    justify-content: flex-start !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-scores {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .theme-ranking .classement-home-server-list .fg-classment-card.fg-banner-panel {
    grid-template-columns: 1fr !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-media {
    min-height: 122px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(118, 226, 255, 0.22) !important;
  }

  .theme-ranking .fg-banner-panel .server-online-pill {
    left: 16px !important;
    top: 16px !important;
    max-width: 160px !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-rank {
    top: 16px !important;
    left: auto !important;
    right: 16px !important;
    transform: none !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-logo {
    left: 50% !important;
    bottom: 14px !important;
    width: 76px !important;
    height: 76px !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-content {
    min-height: 0 !important;
    padding: 22px !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-main {
    justify-content: flex-start !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .theme-ranking .fg-banner-panel .fg-server-content {
    padding: 18px !important;
  }

  .theme-ranking .fg-banner-panel .fg-server-scores,
  .theme-ranking .fg-banner-panel .fg-server-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Liste des serveurs sécurisés — fiche serveur propre et intuitive
   ========================================================= */
.theme-ranking .fg-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(20px, 3vw, 36px);
  min-height: 430px;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  isolation: isolate;
  clip-path: var(--vote-cut-lg);
  border: 1px solid rgba(103, 214, 255, 0.45);
  background: #020915;
  box-shadow:
    0 30px 92px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 179, 255, 0.12),
    0 0 48px rgba(0, 149, 255, 0.16),
    inset 0 0 68px rgba(0, 156, 255, 0.08);
}

.theme-ranking .fg-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 24% 26%, rgba(69, 214, 255, 0.26), transparent 24rem),
    linear-gradient(90deg, rgba(1, 7, 18, 0.34) 0%, rgba(1, 7, 18, 0.60) 40%, rgba(1, 7, 18, 0.90) 76%, rgba(1, 7, 18, 0.97) 100%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.12), rgba(2, 8, 20, 0.78)),
    var(--fg-detail-banner, linear-gradient(135deg, rgba(0, 139, 255, 0.30), rgba(2, 10, 25, 0.96)));
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, var(--fg-detail-banner-position, center);
  background-repeat: no-repeat;
  filter: saturate(1.28) contrast(1.08) brightness(1.02);
  transform: scale(1.02);
}

.theme-ranking .fg-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(98, 230, 255, 0.95), transparent 22%, transparent 80%, rgba(0, 132, 255, 0.52)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(0, 118, 255, 0.42), transparent 30%, transparent 76%, rgba(98, 230, 255, 0.48)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(135deg, rgba(116, 225, 255, 0.035) 0 1px, transparent 1px 18px),
    radial-gradient(560px circle at var(--mx, 28%) var(--my, 18%), rgba(0, 198, 255, 0.20), transparent 44%);
  opacity: 0.92;
}

.theme-ranking .fg-detail-hero-content,
.theme-ranking .fg-detail-side-panel {
  position: relative;
  z-index: 2;
}

.theme-ranking .fg-detail-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}

.theme-ranking .fg-detail-identity {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
}

.theme-ranking .fg-detail-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(0, 48, 106, 0.58), rgba(1, 9, 23, 0.82)),
    radial-gradient(circle at 50% 78%, rgba(0, 177, 255, 0.18), transparent 8rem);
  box-shadow: inset 0 0 32px rgba(0, 150, 255, 0.10), 0 18px 35px rgba(0, 0, 0, 0.28);
}

.theme-ranking .fg-detail-logo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 0;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(124, 235, 255, 0.80);
  background: rgba(2, 10, 25, 0.84);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 42px rgba(0, 178, 255, 0.42),
    0 18px 34px rgba(0, 0, 0, 0.42);
}

.theme-ranking .fg-detail-logo-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
}

.theme-ranking .fg-detail-status {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  min-width: 138px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffe1a3;
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.theme-ranking .fg-detail-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 14px currentColor;
}

.theme-ranking .fg-detail-status.online { color: #b7ffdf; }
.theme-ranking .fg-detail-status.online i { background: var(--success); }
.theme-ranking .fg-detail-status.offline { color: #ffb6c1; }
.theme-ranking .fg-detail-status.offline i { background: var(--danger); }
.theme-ranking .fg-detail-status.unknown { color: #ffe1a3; }

.theme-ranking .fg-detail-title-block {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(1, 8, 22, 0.48), rgba(1, 8, 22, 0.74)),
    radial-gradient(circle at 18% 18%, rgba(0, 194, 255, 0.10), transparent 18rem);
  backdrop-filter: blur(2px);
}

.theme-ranking .fg-detail-title-block h1 {
  margin: 10px 0 8px;
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.62), 0 0 38px rgba(0, 164, 255, 0.22);
}

.theme-ranking .fg-detail-subtitle {
  margin: 0;
  color: #c7dbef;
  font-size: 1.04rem;
}

.theme-ranking .fg-detail-badges {
  margin-top: 18px;
}

.theme-ranking .fg-detail-preview {
  max-width: 850px;
  padding: 18px 20px;
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.16);
  background: rgba(1, 8, 22, 0.58);
  backdrop-filter: blur(2px);
}

.theme-ranking .fg-detail-preview p {
  margin: 0;
  color: #d7e7f7;
  font-size: 1rem;
  line-height: 1.7;
}

.theme-ranking .fg-detail-side-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 24px);
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(0, 38, 88, 0.54), rgba(1, 9, 23, 0.80)),
    radial-gradient(circle at 20% 0%, rgba(100, 226, 255, 0.14), transparent 12rem);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 36px rgba(0, 150, 255, 0.10), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.theme-ranking .fg-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-ranking .fg-detail-stats > div,
.theme-ranking .fg-detail-meta,
.theme-ranking .fg-detail-quality-grid > div {
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(118, 226, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(0, 91, 176, 0.54), rgba(0, 34, 82, 0.74)),
    radial-gradient(circle at 20% 0%, rgba(100, 226, 255, 0.16), transparent 7rem);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.20), inset 0 0 18px rgba(0, 155, 255, 0.10);
}

.theme-ranking .fg-detail-stats > div {
  min-height: 78px;
  padding: 14px;
}

.theme-ranking .fg-detail-stats span,
.theme-ranking .fg-detail-meta span,
.theme-ranking .fg-detail-quality-grid span {
  display: block;
  color: #9fb9d3;
  font-size: 0.78rem;
  font-weight: 800;
}

.theme-ranking .fg-detail-stats strong,
.theme-ranking .fg-detail-quality-grid strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1.42rem;
  line-height: 1.05;
  text-shadow: 0 0 16px rgba(0, 145, 255, 0.30);
}

.theme-ranking .fg-detail-meta {
  padding: 14px;
}

.theme-ranking .fg-detail-meta strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1.05rem;
}

.theme-ranking .fg-detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.theme-ranking .fg-detail-actions .btn,
.theme-ranking .fg-detail-refresh-form,
.theme-ranking .fg-detail-refresh-form .btn {
  width: 100%;
}

.theme-ranking .fg-detail-layout,
.theme-ranking .fg-detail-secondary-grid {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.theme-ranking .fg-detail-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  align-items: start;
}

.theme-ranking .fg-detail-secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-ranking .fg-detail-card {
  padding: clamp(22px, 3vw, 30px) !important;
  clip-path: var(--vote-cut-md) !important;
}

.theme-ranking .fg-detail-description {
  max-width: 920px;
  margin-top: 8px;
  color: #d7e7f7;
  line-height: 1.75;
  white-space: pre-line;
}

.theme-ranking .fg-detail-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.theme-ranking .fg-detail-quality-grid > div {
  min-height: 82px;
  padding: 14px;
}

.theme-ranking .fg-vote-card {
  position: sticky;
  top: 92px;
}

.theme-ranking .fg-vote-main-btn {
  width: 100%;
  margin-top: 8px;
}

.theme-ranking .fg-site-vote-form {
  margin-top: 18px;
}

.theme-ranking .fg-site-vote-form label {
  display: grid;
  gap: 8px;
}

.theme-ranking .fg-site-vote-form input {
  min-height: 48px;
}

.theme-ranking .fg-vote-locked {
  margin-top: 18px;
  background: rgba(255, 196, 79, 0.10);
  border-color: rgba(255, 196, 79, 0.28);
}

.theme-ranking .fg-scan-note {
  margin-top: 14px;
}

.theme-ranking .fg-detail-alert {
  margin: 22px 0 0;
  clip-path: var(--vote-cut-sm);
}

.theme-ranking .fg-review-list,
.theme-ranking .fg-snapshot-list {
  display: grid;
  gap: 12px;
}

.theme-ranking .fg-review-item,
.theme-ranking .fg-snapshot-item {
  margin-top: 0;
  background: rgba(2, 11, 27, 0.62) !important;
}

.theme-ranking .fg-review-item strong {
  color: #79eaff;
}

.theme-ranking .fg-detail-back {
  margin-top: 26px;
}

@media (max-width: 1180px) {
  .theme-ranking .fg-detail-hero {
    grid-template-columns: 1fr;
  }

  .theme-ranking .fg-detail-side-panel {
    justify-content: flex-start;
  }

  .theme-ranking .fg-detail-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .theme-ranking .fg-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .theme-ranking .fg-detail-layout,
  .theme-ranking .fg-detail-secondary-grid {
    grid-template-columns: 1fr;
  }

  .theme-ranking .fg-vote-card {
    position: relative;
    top: auto;
  }

  .theme-ranking .fg-detail-quality-grid,
  .theme-ranking .fg-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .theme-ranking .fg-detail-hero {
    padding: 20px;
  }

  .theme-ranking .fg-detail-identity {
    grid-template-columns: 1fr;
  }

  .theme-ranking .fg-detail-logo-wrap {
    min-height: 132px;
  }

  .theme-ranking .fg-detail-title-block h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .theme-ranking .fg-detail-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .theme-ranking .fg-detail-stats,
  .theme-ranking .fg-detail-quality-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Liste des serveurs sécurisés — fiche serveur : présentation en fenêtre dédiée
   ========================================================= */
.theme-ranking .fg-detail-preview {
  display: grid;
  gap: 14px;
}

.theme-ranking .fg-detail-preview p,
.theme-ranking .fg-detail-preview .fg-markdown,
.theme-ranking .fg-detail-description-preview-box .fg-detail-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-ranking .fg-detail-description-preview-box {
  position: relative;
  max-height: 178px;
  overflow: hidden;
  padding: 0 2px;
}

.theme-ranking .fg-detail-description-preview-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 10, 23, 0), rgba(3, 10, 23, 0.98));
}

.theme-ranking .fg-open-description-btn {
  width: fit-content;
  min-width: 230px;
  margin-top: 4px;
  text-align: center;
}

.theme-ranking .fg-description-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.theme-ranking .fg-description-modal:target {
  display: grid;
}

.theme-ranking .fg-description-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 12%, rgba(0, 190, 255, 0.22), transparent 32rem),
    rgba(0, 4, 12, 0.78);
  backdrop-filter: blur(12px);
}

.theme-ranking .fg-description-modal-card {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  max-height: min(86vh, 980px);
  display: grid;
  grid-template-rows: auto auto minmax(160px, 1fr) auto;
  overflow: hidden;
  clip-path: var(--vote-cut-lg);
  border: 1px solid rgba(112, 225, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(2, 10, 25, 0.98), rgba(1, 23, 49, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(0, 178, 255, 0.18), transparent 18rem);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 190, 255, 0.12),
    0 0 70px rgba(0, 160, 255, 0.20),
    inset 0 0 58px rgba(0, 150, 255, 0.08);
}

.theme-ranking .fg-description-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px) 16px;
  border-bottom: 1px solid rgba(118, 226, 255, 0.16);
}

.theme-ranking .fg-description-modal-head h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.theme-ranking .fg-description-modal-close {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #eaf7ff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(118, 226, 255, 0.30);
  background: rgba(0, 42, 90, 0.64);
  box-shadow: inset 0 0 18px rgba(0, 155, 255, 0.12);
}

.theme-ranking .fg-description-modal-banner {
  margin: 18px clamp(20px, 3vw, 34px) 0;
  height: clamp(180px, 28vw, 360px);
  overflow: hidden;
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.24);
  background: rgba(1, 8, 22, 0.72);
}

.theme-ranking .fg-description-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.04);
}

.theme-ranking .fg-description-modal-body {
  margin: 18px clamp(20px, 3vw, 34px) 0;
  padding: clamp(18px, 3vw, 28px);
  overflow: auto;
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(1, 9, 23, 0.62), rgba(1, 9, 23, 0.88)),
    radial-gradient(circle at 18% 0%, rgba(0, 194, 255, 0.10), transparent 16rem);
}

.theme-ranking .fg-description-modal-body p {
  margin: 0;
  color: #e0edf9;
  font-size: 1.03rem;
  line-height: 1.85;
  white-space: pre-line;
}

.theme-ranking .fg-description-modal-body img {
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(118, 226, 255, 0.24);
}

.theme-ranking .fg-description-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px clamp(20px, 3vw, 34px) clamp(20px, 3vw, 30px);
}

.theme-ranking .fg-description-modal-actions .btn {
  min-width: 180px;
}

@media (max-width: 760px) {
  .theme-ranking .fg-description-modal-card {
    max-height: 90vh;
  }

  .theme-ranking .fg-description-modal-head {
    align-items: center;
  }

  .theme-ranking .fg-description-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .theme-ranking .fg-description-modal-actions .btn,
  .theme-ranking .fg-open-description-btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Liste des serveurs sécurisés — fiche serveur : présentation intégrée limitée
   ========================================================= */
.theme-ranking .fg-detail-description-card {
  overflow: hidden;
}

.theme-ranking .fg-detail-limit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  color: #9feeff;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  clip-path: var(--vote-cut-xs);
  border: 1px solid rgba(118, 226, 255, 0.22);
  background: rgba(0, 54, 114, 0.44);
}

.theme-ranking .fg-detail-description-scroll {
  position: relative;
  max-height: clamp(300px, 42vh, 520px);
  min-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 18px;
  padding: clamp(16px, 2.4vw, 24px);
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(1, 9, 23, 0.64), rgba(1, 9, 23, 0.90)),
    radial-gradient(circle at 18% 0%, rgba(0, 194, 255, 0.10), transparent 16rem);
  box-shadow:
    inset 0 0 34px rgba(0, 150, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 226, 255, 0.58) rgba(2, 12, 30, 0.86);
}

.theme-ranking .fg-detail-description-scroll::-webkit-scrollbar {
  width: 10px;
}

.theme-ranking .fg-detail-description-scroll::-webkit-scrollbar-track {
  background: rgba(2, 12, 30, 0.86);
}

.theme-ranking .fg-detail-description-scroll::-webkit-scrollbar-thumb {
  background: rgba(116, 226, 255, 0.58);
  border: 2px solid rgba(2, 12, 30, 0.86);
}

.theme-ranking .fg-detail-inline-banner {
  width: 100%;
  height: clamp(120px, 20vw, 230px);
  overflow: hidden;
  margin-bottom: 18px;
  clip-path: var(--vote-cut-md);
  border: 1px solid rgba(118, 226, 255, 0.24);
  background: rgba(1, 8, 22, 0.72);
}

.theme-ranking .fg-detail-inline-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.04) brightness(0.96);
}

.theme-ranking .fg-detail-description-scroll .fg-detail-description {
  max-width: none;
  margin: 0;
  color: #e0edf9;
  font-size: 1.02rem;
  line-height: 1.82;
  white-space: normal;
  overflow-wrap: anywhere;
}

.theme-ranking .fg-detail-description-scroll img,
.theme-ranking .fg-detail-description-scroll iframe,
.theme-ranking .fg-detail-description-scroll video {
  max-width: 100%;
  max-height: 360px;
  height: auto;
  margin: 16px auto;
  display: block;
  clip-path: var(--vote-cut-sm);
  border: 1px solid rgba(118, 226, 255, 0.24);
}

.theme-ranking .fg-markdown strong {
  color: #ffffff;
  font-weight: 950;
  text-shadow: 0 0 12px rgba(107, 231, 255, 0.22);
}

.theme-ranking .fg-markdown em {
  color: #cfefff;
}

.theme-ranking .fg-markdown a {
  color: #7deaff;
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 234, 255, 0.42);
}

.theme-ranking .fg-markdown a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 14px rgba(90, 220, 255, 0.45);
}

.theme-ranking .fg-markdown h3,
.theme-ranking .fg-markdown h4 {
  margin: 18px 0 10px;
  color: #ffffff;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.theme-ranking .fg-markdown h3 {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.theme-ranking .fg-markdown h4 {
  font-size: 1.05rem;
}

.theme-ranking .fg-markdown code {
  padding: 2px 7px;
  color: #dffaff;
  border: 1px solid rgba(118, 226, 255, 0.22);
  background: rgba(0, 42, 90, 0.48);
  border-radius: 8px;
}

.theme-ranking .fg-md-image {
  margin: 18px auto;
  text-align: center;
}

.theme-ranking .fg-md-image figcaption {
  margin-top: 8px;
  color: #9fb6ca;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .theme-ranking .fg-detail-description-scroll {
    max-height: 440px;
  }
}

@media (max-width: 620px) {
  .theme-ranking .fg-detail-limit-label {
    margin-top: 8px;
  }

  .theme-ranking .fg-detail-description-scroll {
    max-height: 380px;
    min-height: 210px;
  }

  .theme-ranking .fg-detail-inline-banner {
    height: 145px;
  }
}

/* =========================================================
   Patch portail multi-bots — Guard + Utility + Liste des serveurs sécurisés
   ========================================================= */
.portal-hub .landing-choice-head {
  max-width: 980px;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 26px;
}
.big-choice-grid.portal-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.portal-product-card {
  min-height: 100%;
}
.choice-utility,
.utility-bot-card,
.utility-line {
  border-color: rgba(255, 154, 46, 0.34) !important;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 148, 35, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(255, 126, 24, 0.11), rgba(5, 15, 35, 0.90)) !important;
}
.choice-utility .choice-icon,
.utility-bot-card .bot-chip {
  background: rgba(255, 142, 35, 0.15);
  border-color: rgba(255, 170, 58, 0.38);
  box-shadow: 0 0 26px rgba(255, 126, 24, 0.22);
}
.portal-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-top: 42px;
}
.portal-flow-steps {
  display: grid;
  gap: 10px;
}
.portal-flow-steps span {
  display: block;
  padding: 13px 15px;
  border: 1px solid rgba(83, 185, 255, 0.20);
  border-radius: 16px;
  background: rgba(0, 132, 255, 0.075);
  color: #eaf7ff;
  font-weight: 850;
}
.account-bots-panel {
  margin: 22px 0;
}
.account-bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.account-bot-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(73, 183, 255, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(6, 25, 54, 0.76), rgba(4, 12, 26, 0.88));
  box-shadow: inset 0 0 34px rgba(0, 132, 255, 0.06);
}
.account-bot-card h3 {
  margin: 14px 0 8px;
}
.account-bot-card p {
  color: var(--muted);
}
.bot-chip {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(73, 183, 255, 0.26);
  border-radius: 999px;
  background: rgba(0, 132, 255, 0.11);
  color: #dff6ff;
  font-size: 0.78rem;
  font-weight: 900;
}
.product-guild-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.product-guild-card {
  display: grid;
  gap: 14px;
}
.server-product-stack {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.server-product-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(73, 183, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 132, 255, 0.065);
}
.server-product-line strong,
.server-product-line span {
  display: block;
}
.server-product-line span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}
.ranking-line {
  border-color: rgba(255, 206, 87, 0.22);
  background: rgba(255, 194, 71, 0.065);
}
.utility-btn,
.theme-utility .utility-btn {
  border-color: rgba(255, 182, 70, 0.44) !important;
  background: linear-gradient(135deg, #ff9c24, #ff6d1c) !important;
  color: #160904 !important;
  box-shadow: 0 0 24px rgba(255, 116, 28, 0.22);
}
.mini-muted-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 154, 46, 0.24);
  color: #ffd9ad;
  background: rgba(255, 142, 35, 0.08);
  font-weight: 900;
}
@media (max-width: 1280px) {
  .big-choice-grid.portal-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .big-choice-grid.portal-four,
  .account-bot-grid,
  .portal-flow {
    grid-template-columns: 1fr;
  }
  .server-product-line {
    grid-template-columns: 1fr;
  }
}

/* Liste sécurisée : fiche verrouillée tant que Vexyon Guard n'est pas installé */
.server-product-line.locked-line {
  border-style: dashed;
  opacity: 0.82;
  background: rgba(255, 255, 255, 0.035);
}
.server-product-line.locked-line .mini-muted-action {
  white-space: nowrap;
}

/* Patch statut FiveM 24h */
.theme-ranking .fg-status-section {
  margin-top: 24px;
}

.theme-ranking .fg-realtime-card {
  overflow: hidden;
}

.theme-ranking .fg-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.theme-ranking .fg-live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.theme-ranking .fg-live-pill.online { color: #b7ffdf; }
.theme-ranking .fg-live-pill.offline { color: #ffb6c1; }
.theme-ranking .fg-live-pill.unknown { color: #ffe1a3; }

.theme-ranking .fg-realtime-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.theme-ranking .fg-realtime-summary > div {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
}

.theme-ranking .fg-realtime-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.theme-ranking .fg-realtime-summary strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.theme-ranking .fg-status-chart {
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(91, 191, 255, 0.16);
  background: radial-gradient(circle at 20% 15%, rgba(0, 170, 255, 0.13), transparent 34%), rgba(3, 12, 28, 0.68);
  overflow: hidden;
  position: relative;
}

.theme-ranking .fg-chart-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.theme-ranking .fg-status-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  color: #5bbfff;
}

.theme-ranking .fg-status-bg {
  fill: rgba(255,255,255,0.018);
}

.theme-ranking #fg-status-fill stop:first-child {
  stop-color: #5bbfff;
}

.theme-ranking #fg-status-fill stop:last-child {
  stop-color: #5bbfff;
}

.theme-ranking .fg-status-grid-line {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.theme-ranking .fg-status-tick-line {
  stroke: rgba(91, 191, 255, 0.065);
  stroke-width: 1;
}

.theme-ranking .fg-status-y-label,
.theme-ranking .fg-status-x-label {
  fill: rgba(214, 231, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
}

.theme-ranking .fg-status-area {
  fill: url(#fg-status-fill);
}

.theme-ranking .fg-status-line {
  fill: none;
  stroke: #5bbfff;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(91, 191, 255, 0.45));
}

.theme-ranking .fg-status-point {
  fill: #d8f4ff;
  stroke: #0a1830;
  stroke-width: 2;
}

@media (max-width: 760px) {
  .theme-ranking .fg-realtime-summary {
    grid-template-columns: 1fr;
  }
}

/* Patch avis serveurs */
.fg-server-review-box {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(127, 234, 255, 0.18);
  border-radius: 18px;
  background: rgba(4, 16, 31, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.fg-review-form {
  display: grid;
  gap: 12px;
}

.fg-review-form label {
  display: grid;
  gap: 7px;
}

.fg-review-form select,
.fg-review-form textarea {
  width: 100%;
}

.fg-review-form textarea {
  min-height: 96px;
  resize: vertical;
}

.fg-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fg-review-average {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(127, 234, 255, 0.24);
  background: rgba(127, 234, 255, 0.08);
  color: #d9fbff;
  font-size: 0.86rem;
  font-weight: 700;
}

/* Patch avis serveurs : suppression + liste compacte */
.fg-review-delete-form {
  margin-top: 10px;
}

.btn.ghost,
button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.fg-review-list.is-compact {
  max-height: 430px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.fg-review-list.is-compact::-webkit-scrollbar {
  width: 8px;
}

.fg-review-list.is-compact::-webkit-scrollbar-thumb {
  background: rgba(127, 234, 255, 0.25);
  border-radius: 999px;
}

.fg-review-item {
  padding: 12px 14px;
}

.fg-review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.fg-review-item-head span {
  flex: 0 0 auto;
  text-align: right;
}

.fg-review-item p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fg-review-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .fg-review-item-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fg-review-item-head span {
    text-align: left;
  }
}

.webhook-settings-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(9, 14, 28, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-section-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.inline-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}

.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4f8cff;
}

.inline-check span {
  font-weight: 700;
}

/* Patch classement mensuel / votes globaux */
.theme-ranking .vote-scores {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.theme-ranking .fg-detail-quality-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.theme-ranking .fg-vote-locked small {
  display: block;
  margin-top: 8px;
  color: rgba(214, 231, 255, 0.70);
  font-weight: 700;
}

/* Patch graphique fiche serveur : ligne lisible, pas de nuage de gros points */
.theme-ranking .fg-status-line {
  stroke-width: 3;
}

.theme-ranking .fg-status-point {
  stroke-width: 1.5;
}

.theme-ranking .fg-status-point-last {
  filter: drop-shadow(0 0 8px rgba(91, 191, 255, 0.70));
}

/* Patch fiche serveur : badge En ligne plus visible sous le logo */
.theme-ranking .fg-detail-logo-wrap {
  min-height: 178px;
  padding-bottom: 50px;
  overflow: visible;
}

.theme-ranking .fg-detail-logo {
  transform: translateY(-10px);
}

.theme-ranking .fg-detail-status {
  bottom: 14px;
  z-index: 10;
  min-width: 128px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  color: #eafff5;
  border: 1px solid rgba(92, 255, 184, 0.72);
  background:
    linear-gradient(90deg, rgba(92, 255, 184, 0.22), transparent 36%, rgba(18, 122, 255, 0.18)) top / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(1, 23, 34, 0.96), rgba(0, 95, 68, 0.76));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 22px rgba(54, 255, 170, 0.26),
    0 10px 24px rgba(0, 0, 0, 0.42);
  text-shadow: 0 0 10px rgba(72, 255, 177, 0.55);
}

.theme-ranking .fg-detail-status i {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
  box-shadow:
    0 0 0 4px rgba(46, 255, 158, 0.13),
    0 0 16px rgba(46, 255, 158, 0.95);
}

.theme-ranking .fg-detail-status.online {
  color: #effff8;
  border-color: rgba(80, 255, 178, 0.86);
  background:
    linear-gradient(90deg, rgba(92, 255, 184, 0.30), transparent 35%, rgba(18, 122, 255, 0.20)) top / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(2, 28, 38, 0.97), rgba(0, 122, 81, 0.82));
}

.theme-ranking .fg-detail-status.online i {
  background: #36ff9b;
  animation: fgOnlinePulse 1.7s ease-in-out infinite;
}

.theme-ranking .fg-detail-status.offline {
  border-color: rgba(255, 105, 126, 0.66);
  background:
    linear-gradient(90deg, rgba(255, 105, 126, 0.24), transparent 40%, rgba(255, 166, 66, 0.12)) top / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(35, 5, 16, 0.96), rgba(105, 17, 32, 0.78));
}

.theme-ranking .fg-detail-status.unknown {
  border-color: rgba(255, 214, 128, 0.64);
  background:
    linear-gradient(90deg, rgba(255, 214, 128, 0.24), transparent 40%, rgba(18, 122, 255, 0.12)) top / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(35, 23, 5, 0.96), rgba(105, 78, 17, 0.72));
}

@keyframes fgOnlinePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.82;
  }
}

/* =========================================================
   Liste serveurs — descriptions courtes + couleurs premium
   ========================================================= */
.theme-ranking .vote-server-card .fg-markdown,
.theme-ranking .fg-server-desc.fg-markdown {
  overflow-wrap: anywhere;
}

.theme-ranking .vote-server-card .fg-markdown br {
  display: none;
}

.theme-ranking .vote-server-card .fg-markdown h3,
.theme-ranking .vote-server-card .fg-markdown h4 {
  margin: 0 0 4px !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
}

.theme-ranking .vote-server-card .fg-markdown a {
  color: inherit;
  border-bottom: 1px solid rgba(125, 234, 255, 0.34);
}

.theme-ranking .fg-premium-custom-theme.fg-banner-panel,
.theme-ranking .fg-detail-hero.fg-premium-custom-theme,
.theme-ranking .fg-detail-layout.fg-premium-custom-theme .ranking-panel-block {
  border-color: rgba(var(--fg-server-primary-rgb), 0.62) !important;
  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(var(--fg-server-primary-rgb), 0.18),
    0 0 54px rgba(var(--fg-server-primary-rgb), 0.18),
    inset 0 0 58px rgba(var(--fg-server-primary-rgb), 0.10) !important;
}

.theme-ranking .fg-premium-custom-theme.fg-banner-panel::after {
  background-image:
    radial-gradient(circle at 24% 34%, rgba(var(--fg-server-primary-rgb), 0.28), transparent 22rem),
    linear-gradient(90deg, rgba(2, 8, 20, 0.40) 0%, rgba(2, 8, 20, 0.58) 34%, rgba(2, 8, 20, 0.88) 72%, rgba(2, 8, 20, 0.95) 100%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.05), rgba(2, 8, 20, 0.74)),
    var(--fg-panel-banner, linear-gradient(135deg, rgba(var(--fg-server-primary-rgb), 0.30), rgba(var(--fg-server-secondary-rgb), 0.92))) !important;
}

.theme-ranking .fg-detail-hero.fg-premium-custom-theme::after {
  background-image:
    radial-gradient(circle at 24% 26%, rgba(var(--fg-server-primary-rgb), 0.28), transparent 24rem),
    linear-gradient(90deg, rgba(1, 7, 18, 0.34) 0%, rgba(1, 7, 18, 0.60) 40%, rgba(1, 7, 18, 0.90) 76%, rgba(1, 7, 18, 0.97) 100%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.12), rgba(2, 8, 20, 0.78)),
    var(--fg-detail-banner, linear-gradient(135deg, rgba(var(--fg-server-primary-rgb), 0.30), rgba(var(--fg-server-secondary-rgb), 0.96))) !important;
}

.theme-ranking .fg-premium-custom-theme .fg-server-title-row h3 a,
.theme-ranking .fg-detail-hero.fg-premium-custom-theme .fg-detail-title-block h1,
.theme-ranking .fg-detail-layout.fg-premium-custom-theme h2,
.theme-ranking .fg-premium-custom-theme .fg-markdown strong {
  color: var(--fg-server-text) !important;
  text-shadow: 0 0 18px rgba(var(--fg-server-primary-rgb), 0.36) !important;
}

.theme-ranking .fg-premium-custom-theme .fg-server-scores > div,
.theme-ranking .fg-detail-hero.fg-premium-custom-theme .fg-detail-stats > div,
.theme-ranking .fg-detail-hero.fg-premium-custom-theme .fg-detail-meta,
.theme-ranking .fg-detail-layout.fg-premium-custom-theme .fg-detail-quality-grid > div {
  border-color: rgba(var(--fg-server-primary-rgb), 0.34) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-primary-rgb), 0.42), rgba(var(--fg-server-secondary-rgb), 0.72)),
    radial-gradient(circle at 20% 0%, rgba(var(--fg-server-primary-rgb), 0.18), transparent 7rem) !important;
}

.theme-ranking .fg-premium-custom-theme .btn:not(.secondary):not(.danger),
.theme-ranking .fg-premium-custom-theme button.btn:not(.secondary):not(.danger),
.theme-ranking .fg-premium-custom-theme .fg-vote-main-btn {
  border-color: rgba(var(--fg-server-button-rgb), 0.74) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-button-rgb), 0.95), rgba(var(--fg-server-secondary-rgb), 0.92)) !important;
  color: var(--fg-server-text) !important;
  box-shadow:
    0 16px 32px rgba(var(--fg-server-button-rgb), 0.26),
    inset 0 0 22px rgba(255, 255, 255, 0.10) !important;
}

.theme-ranking .fg-premium-custom-theme .btn.secondary,
.theme-ranking .fg-premium-custom-theme button.btn.secondary {
  border-color: rgba(var(--fg-server-primary-rgb), 0.42) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-secondary-rgb), 0.78), rgba(1, 9, 23, 0.88)) !important;
  color: var(--fg-server-text) !important;
}

.theme-ranking .fg-premium-custom-theme .badge.premium {
  border-color: rgba(var(--fg-server-primary-rgb), 0.48) !important;
  background: rgba(var(--fg-server-primary-rgb), 0.18) !important;
  color: var(--fg-server-text) !important;
}

.server-preview-desc {
  margin-top: 6px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-preview-desc br { display: none; }
.server-preview-desc strong { color: #ffffff; }
.server-preview-desc a { color: #7deaff; text-decoration: none; }

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.premium-theme-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(118, 226, 255, 0.20);
  background:
    linear-gradient(135deg, rgba(0, 58, 128, 0.24), rgba(1, 9, 23, 0.70)),
    radial-gradient(circle at 12% 0%, rgba(0, 194, 255, 0.12), transparent 15rem);
  clip-path: var(--vote-cut-md, polygon(18px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 14px 100%, 0 calc(100% - 14px), 0 18px));
}

.premium-theme-card.locked {
  opacity: 0.70;
  filter: grayscale(0.25);
}

.theme-color-grid label {
  min-width: 0;
}

.theme-color-grid input[type="color"] {
  width: 100%;
  height: 46px;
  padding: 4px;
  border: 1px solid rgba(118, 226, 255, 0.24);
  background: rgba(2, 12, 30, 0.88);
  cursor: pointer;
}

.theme-color-grid input[type="color"]:disabled {
  cursor: not-allowed;
  opacity: 0.50;
}

@media (max-width: 900px) {
  .form-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Même rendu premium/horizontal sur la page complète /classement/serveurs */
.theme-ranking .vote-ranking-list {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.theme-ranking .vote-ranking-list .fg-classment-card.fg-banner-panel {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 156px minmax(0, 1fr) !important;
  min-height: 286px !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #020915 !important;
  border-color: rgba(99, 207, 255, 0.46) !important;
  box-shadow:
    0 26px 82px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(0, 179, 255, 0.12),
    0 0 44px rgba(0, 149, 255, 0.14),
    inset 0 0 54px rgba(0, 156, 255, 0.08) !important;
}

@media (max-width: 1160px) {
  .theme-ranking .vote-ranking-list .fg-classment-card.fg-banner-panel {
    grid-template-columns: 132px minmax(0, 1fr) !important;
  }
}

@media (max-width: 820px) {
  .theme-ranking .vote-ranking-list .fg-classment-card.fg-banner-panel {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Premium — pages achat / renouvellement
   ========================================================= */
.premium-shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  margin: 26px 0 30px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(91, 201, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 194, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(255, 183, 59, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(6, 25, 54, 0.84), rgba(3, 10, 24, 0.94));
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 132, 255, 0.08);
  overflow: hidden;
}
.premium-shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 12px);
  opacity: 0.28;
  pointer-events: none;
}
.premium-shop-copy,
.premium-shop-card {
  position: relative;
  z-index: 1;
}
.premium-shop-copy h1 {
  max-width: 920px;
  margin: 8px 0 12px;
  color: #f4fbff;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.premium-shop-copy p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.premium-shop-card {
  padding: 22px;
  border: 1px solid rgba(118, 226, 255, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(7, 32, 70, 0.82), rgba(2, 10, 24, 0.92)),
    radial-gradient(circle at 15% 0%, rgba(0, 204, 255, 0.12), transparent 16rem);
  box-shadow: inset 0 0 34px rgba(0, 132, 255, 0.08);
}
.premium-highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.premium-chip {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(255, 213, 105, 0.34);
  border-radius: 999px;
  background: rgba(255, 187, 63, 0.12);
  color: #ffe4a8;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.premium-highlight-card h2,
.premium-offer-card h2,
.premium-slot-card h2,
.premium-list-benefits h2,
.premium-flow-panel h2 {
  margin: 12px 0 10px;
  color: #f4fbff;
}
.premium-check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.premium-check-list li {
  position: relative;
  padding-left: 24px;
  color: #dcecff;
  line-height: 1.45;
}
.premium-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #7deaff;
  font-weight: 1000;
}
.premium-offer-grid,
.premium-slot-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.premium-slot-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.premium-offer-card,
.premium-slot-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.premium-offer-card .btn,
.premium-slot-card .btn { margin-top: auto; }
.premium-offer-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.premium-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(118, 226, 255, 0.24);
  border-radius: 18px;
  background: rgba(0, 132, 255, 0.12);
  font-size: 1.35rem;
}
.premium-price {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(118, 226, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 132, 255, 0.08);
}
.premium-price strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}
.premium-price span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
}
.utility-offer-card {
  border-color: rgba(255, 154, 46, 0.30);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 144, 35, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(58, 28, 6, 0.50), rgba(2, 10, 24, 0.92));
}
.list-offer-card,
.premium-slot-card.slot-one {
  border-color: rgba(255, 210, 94, 0.30);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 206, 87, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(54, 39, 7, 0.48), rgba(2, 10, 24, 0.92));
}
.premium-status-note {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 154, 46, 0.26);
  border-radius: 14px;
  background: rgba(255, 142, 35, 0.08);
  color: #ffd9ad;
  font-weight: 900;
}
.premium-flow-panel,
.premium-account-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(118, 226, 255, 0.20);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 194, 255, 0.11), transparent 16rem),
    rgba(4, 16, 36, 0.78);
}
.premium-flow-panel p,
.premium-account-strip p { color: var(--muted); }
.premium-flow-steps {
  display: grid;
  gap: 10px;
  min-width: min(460px, 42vw);
}
.premium-flow-steps span {
  display: block;
  padding: 13px 15px;
  border: 1px solid rgba(83, 185, 255, 0.20);
  border-radius: 15px;
  background: rgba(0, 132, 255, 0.075);
  color: #eaf7ff;
  font-weight: 850;
}
.premium-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.server-list-premium-hero {
  border-color: rgba(255, 210, 94, 0.26);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 206, 87, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(0, 194, 255, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(6, 25, 54, 0.84), rgba(3, 10, 24, 0.94));
}
.premium-slot-rank {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 213, 105, 0.38);
  border-radius: 22px;
  background: rgba(255, 187, 63, 0.13);
  color: #ffe4a8;
  font-size: 1.45rem;
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(255, 187, 63, 0.14);
}
.premium-slot-card.slot-two .premium-slot-rank {
  border-color: rgba(118, 226, 255, 0.30);
  background: rgba(0, 194, 255, 0.10);
  color: #bdf5ff;
}
.premium-list-benefits {
  margin: 24px 0;
}
.premium-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.premium-benefit-grid > div {
  padding: 15px;
  border: 1px solid rgba(118, 226, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 132, 255, 0.07);
}
.premium-benefit-grid strong,
.premium-benefit-grid span { display: block; }
.premium-benefit-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}
@media (max-width: 980px) {
  .premium-shop-hero,
  .premium-flow-panel,
  .premium-account-strip,
  .premium-offer-grid,
  .premium-slot-pricing,
  .premium-benefit-grid {
    grid-template-columns: 1fr;
  }
  .premium-flow-steps { min-width: 0; }
  .premium-account-actions { justify-content: flex-start; }
}

/* =========================================================
   Patch premium — prévisualisation directe + thèmes sauvegardés
   ========================================================= */
.server-public-preview.fg-premium-custom-theme {
  border-color: rgba(var(--fg-server-primary-rgb), 0.52);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--fg-server-primary-rgb), 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(var(--fg-server-secondary-rgb), 0.66), rgba(2, 10, 24, 0.88));
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(var(--fg-server-primary-rgb), 0.18),
    0 0 42px rgba(var(--fg-server-primary-rgb), 0.18);
}

.server-public-preview.fg-premium-custom-theme .server-preview-banner {
  border-color: rgba(var(--fg-server-primary-rgb), 0.32);
}

.server-public-preview.fg-premium-custom-theme .server-preview-logo {
  border-color: rgba(var(--fg-server-primary-rgb), 0.62);
  background: rgba(var(--fg-server-primary-rgb), 0.14);
  box-shadow: 0 0 30px rgba(var(--fg-server-primary-rgb), 0.28);
}

.server-public-preview.fg-premium-custom-theme .server-preview-body h3,
.server-public-preview.fg-premium-custom-theme .server-preview-desc strong {
  color: var(--fg-server-text);
  text-shadow: 0 0 18px rgba(var(--fg-server-primary-rgb), 0.36);
}

.server-public-preview.fg-premium-custom-theme .server-preview-desc a {
  color: var(--fg-server-text);
  border-bottom-color: rgba(var(--fg-server-primary-rgb), 0.45);
}

.server-public-preview.fg-premium-custom-theme .badge.premium,
.server-public-preview.fg-premium-custom-theme .badge.verified {
  border-color: rgba(var(--fg-server-primary-rgb), 0.48);
  background: rgba(var(--fg-server-primary-rgb), 0.18);
  color: var(--fg-server-text);
}

.theme-preset-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(118, 226, 255, 0.18);
  background: rgba(2, 12, 30, 0.46);
  border-radius: 18px;
}

.theme-preset-panel strong,
.theme-preset-panel small {
  display: block;
}

.theme-preset-panel small {
  margin-top: 4px;
  color: var(--muted);
}

.theme-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-preset-actions .btn.small {
  min-height: 38px;
}

.btn.danger-soft-btn {
  border-color: rgba(255, 98, 125, 0.36) !important;
  background: rgba(255, 75, 110, 0.10) !important;
  color: #ffd4dc !important;
}

.btn.danger-soft-btn:hover {
  border-color: rgba(255, 98, 125, 0.56) !important;
  background: rgba(255, 75, 110, 0.18) !important;
}

/* =========================================================
   Patch panel serveur — onglets de gestion + preview thème complet
   ========================================================= */
.server-manager-shell {
  margin: 22px 0 18px;
  padding: 10px;
  border: 1px solid rgba(118, 226, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 194, 255, 0.11), transparent 18rem),
    rgba(2, 10, 24, 0.58);
  box-shadow: inset 0 0 34px rgba(0, 132, 255, 0.06);
}

.server-manager-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.server-manager-tab {
  border: 1px solid rgba(118, 226, 255, 0.18);
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(7, 26, 56, 0.76), rgba(2, 10, 24, 0.86));
  color: #dcefff;
  font-weight: 950;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.server-manager-tab:hover,
.server-manager-tab.active {
  transform: translateY(-1px);
  border-color: rgba(125, 234, 255, 0.48);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 204, 255, 0.22), transparent 12rem),
    linear-gradient(180deg, rgba(0, 86, 164, 0.62), rgba(3, 18, 42, 0.92));
  box-shadow: 0 14px 32px rgba(0, 132, 255, 0.18), inset 0 0 22px rgba(125, 234, 255, 0.08);
  color: #ffffff;
}

.server-tab-panel {
  margin-top: 20px;
}

.server-tab-panel.is-hidden {
  display: none !important;
}

.server-tab-panel-single {
  width: 100%;
}

.server-tab-panel-single > .panel {
  max-width: 1120px;
  margin: 0 auto;
}

.server-link-layout {
  align-items: start;
}

.server-preview-panel {
  position: sticky;
  top: 18px;
}

.server-public-preview {
  position: relative;
}

.server-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 16px;
}

.server-preview-actions .btn {
  flex: 1 1 150px;
  justify-content: center;
  min-height: 42px;
  pointer-events: none;
}

.server-preview-info-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.server-preview-info-tab {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(118, 226, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 132, 255, 0.08);
  color: #eaf7ff;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-color-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-public-preview.fg-premium-custom-theme .server-preview-actions .btn:not(.secondary) {
  border-color: rgba(var(--fg-server-button-rgb), 0.74) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-button-rgb), 0.96), rgba(var(--fg-server-secondary-rgb), 0.88)) !important;
  color: var(--fg-server-button-text) !important;
  box-shadow: 0 16px 30px rgba(var(--fg-server-button-rgb), 0.25), inset 0 0 20px rgba(255, 255, 255, 0.10) !important;
}

.server-public-preview.fg-premium-custom-theme .server-preview-actions .btn.secondary {
  border-color: rgba(var(--fg-server-button-secondary-rgb), 0.60) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-button-secondary-rgb), 0.82), rgba(1, 9, 23, 0.88)) !important;
  color: var(--fg-server-button-text) !important;
}

.server-public-preview.fg-premium-custom-theme .server-preview-info-tab,
.server-public-preview.fg-premium-custom-theme .badge:not(.danger):not(.danger-soft) {
  border-color: rgba(var(--fg-server-badge-rgb), 0.48) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-badge-rgb), 0.25), rgba(var(--fg-server-secondary-rgb), 0.35)) !important;
  color: var(--fg-server-text) !important;
  box-shadow: inset 0 0 18px rgba(var(--fg-server-badge-rgb), 0.10) !important;
}

.theme-ranking .fg-premium-custom-theme .btn:not(.secondary):not(.danger),
.theme-ranking .fg-premium-custom-theme button.btn:not(.secondary):not(.danger),
.theme-ranking .fg-premium-custom-theme .fg-vote-main-btn {
  color: var(--fg-server-button-text) !important;
}

.theme-ranking .fg-premium-custom-theme .btn.secondary,
.theme-ranking .fg-premium-custom-theme button.btn.secondary {
  border-color: rgba(var(--fg-server-button-secondary-rgb), 0.52) !important;
  background:
    linear-gradient(180deg, rgba(var(--fg-server-button-secondary-rgb), 0.78), rgba(1, 9, 23, 0.88)) !important;
  color: var(--fg-server-button-text) !important;
}

.theme-ranking .fg-premium-custom-theme .badge:not(.danger):not(.danger-soft),
.theme-ranking .fg-premium-custom-theme .server-status:not(.offline) {
  border-color: rgba(var(--fg-server-badge-rgb), 0.50) !important;
  background: rgba(var(--fg-server-badge-rgb), 0.20) !important;
  color: var(--fg-server-text) !important;
}

.theme-ranking .fg-detail-hero.fg-premium-custom-theme .fg-detail-meta,
.theme-ranking .fg-detail-hero.fg-premium-custom-theme .fg-detail-stats > div,
.theme-ranking .fg-detail-layout.fg-premium-custom-theme .fg-detail-quality-grid > div {
  border-color: rgba(var(--fg-server-badge-rgb), 0.36) !important;
}

@media (max-width: 980px) {
  .server-manager-tabs,
  .theme-color-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-preview-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .server-manager-tabs,
  .theme-color-grid-wide,
  .server-preview-info-tabs {
    grid-template-columns: 1fr;
  }
}

/* Patch compte — modules bot */
.module-command-center {
  overflow: hidden;
}
.module-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.module-control-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(80, 180, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(5, 28, 62, 0.78), rgba(1, 9, 22, 0.94));
  box-shadow: inset 0 0 28px rgba(0, 132, 255, 0.05);
}
.module-control-card.active {
  border-color: rgba(72, 240, 167, 0.26);
  box-shadow: inset 0 0 28px rgba(72, 240, 167, 0.05), 0 0 22px rgba(0, 132, 255, 0.06);
}
.module-control-card.locked {
  opacity: 0.86;
  background: linear-gradient(135deg, rgba(35, 25, 52, 0.78), rgba(1, 9, 22, 0.94));
}
.module-control-card.mandatory {
  border-color: rgba(0, 210, 255, 0.28);
}
.module-control-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.module-control-head h3 {
  margin: 0 0 8px;
}
.module-control-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.module-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(77, 178, 255, 0.22);
}
.module-control-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.module-control-foot form {
  margin: 0;
}
.module-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(140, 170, 205, 0.24);
  background: rgba(140, 170, 205, 0.08);
  color: #d9eaff;
}
.module-status.on {
  border-color: rgba(72, 240, 167, 0.30);
  background: rgba(72, 240, 167, 0.11);
  color: #bfffe2;
}
.module-status.off {
  border-color: rgba(255, 190, 77, 0.26);
  background: rgba(255, 190, 77, 0.10);
  color: #ffe4aa;
}
.module-lock-note {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
@media (max-width: 720px) {
  .module-control-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .module-control-foot .btn,
  .module-control-foot form {
    width: 100%;
  }
  .module-control-foot .btn {
    justify-content: center;
  }
  .module-lock-note {
    text-align: left;
  }
}

/* Premium serveur / facturation Stripe */
.premium-server-panel {
  overflow: hidden;
  position: relative;
}

.premium-server-panel::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 190, 80, .22), transparent 65%);
  pointer-events: none;
}

.premium-server-title {
  position: relative;
  z-index: 1;
}

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

.premium-status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.premium-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255,255,255,.08);
  font-size: 22px;
}

.premium-status-card h3 {
  margin: 0 0 8px;
}

.premium-status-card p {
  margin: 0 0 8px;
}

.premium-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.premium-env-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.premium-env-box code {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text, #f6f7ff);
}

.premium-account-benefits {
  margin-top: 16px;
}

.premium-account-benefits article {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 16px;
}

.premium-account-benefits h3 {
  margin: 0 0 8px;
}

.premium-account-benefits p {
  margin: 0;
}

@media (max-width: 860px) {
  .premium-account-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Correctif Chrome — fonds blancs dans les droits d'accès
   ========================================================= */
.access-settings-block,
.access-settings-block *,
.role-choice-grid,
.role-choice {
  color-scheme: dark;
}

.access-settings-block select,
.access-settings-block input[type="text"],
.access-settings-block input:not([type]),
.access-settings-block textarea {
  width: 100%;
  color: #eef8ff !important;
  background: rgba(2, 10, 24, 0.92) !important;
  border: 1px solid rgba(85, 215, 255, 0.26) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.access-settings-block select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8bdfff 50%),
    linear-gradient(135deg, #8bdfff 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.access-settings-block select option {
  color: #eef8ff;
  background: #061326;
}

.role-choice {
  background: rgba(6, 19, 38, 0.72) !important;
}

.role-choice:hover {
  border-color: rgba(85, 215, 255, 0.34);
  background: rgba(10, 31, 58, 0.82) !important;
}

.role-choice input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  border: 1px solid rgba(85, 215, 255, 0.5);
  background: rgba(2, 10, 24, 0.92);
  accent-color: #20d27a;
}

/* =========================================================
   Correctif Chrome global — menus déroulants thème sombre
   ========================================================= */
html,
body,
select,
option,
optgroup,
input,
textarea,
button {
  color-scheme: dark !important;
}

select,
.settings-form select,
.filter-bar select,
.image-crop-grid select,
.form-grid-4 select,
.server-directory-form select,
.premium-slot-admin-form select,
.fg-review-form select,
.site-vote-form select,
.server-filter-hud select,
.module-control-foot select,
.access-settings-block select {
  color: #eef8ff !important;
  background-color: #061326 !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #8bdfff 50%),
    linear-gradient(135deg, #8bdfff 50%, transparent 50%),
    linear-gradient(180deg, rgba(2, 14, 33, 0.96), rgba(1, 8, 20, 0.98)) !important;
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  border-color: rgba(82, 183, 255, 0.34) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 42px !important;
}

select option,
select optgroup {
  color: #eef8ff !important;
  background-color: #061326 !important;
}

select option:checked,
select option:hover,
select option:focus {
  color: #ffffff !important;
  background-color: #104b82 !important;
}

select option:disabled {
  color: #6f829a !important;
  background-color: #061326 !important;
}

select::-ms-expand {
  display: none;
}

select::picker(select) {
  color: #eef8ff;
  background: #061326;
  border: 1px solid rgba(82, 183, 255, 0.34);
}

/* =========================================================
   Classement serveurs — filtres avancés, tags fixes, légal
   ========================================================= */
.vote-list-page {
  display: grid;
  gap: 22px;
}

.vote-tabs-bar,
.vote-page-numbers,
.vote-bottom-pagination,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vote-tabs-bar a,
.vote-page-numbers a,
.vote-btn,
.vote-premium-cta,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(91, 194, 255, 0.28);
  background: rgba(0, 132, 255, 0.08);
  color: #eaf7ff;
  font-weight: 850;
  text-decoration: none;
  clip-path: var(--vote-cut-xs, polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)));
}

.vote-tabs-bar a.active,
.vote-page-numbers a.active,
.vote-tag-choice.active,
.server-tag-choice.active {
  border-color: rgba(108, 220, 255, 0.62);
  background: linear-gradient(180deg, rgba(0, 145, 255, 0.24), rgba(0, 56, 130, 0.32));
  box-shadow: 0 0 22px rgba(0, 145, 255, 0.16), inset 0 0 24px rgba(0, 170, 255, 0.08);
}

.vote-premium-zone,
.vote-ranking-zone {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(91, 194, 255, 0.24);
  background: linear-gradient(180deg, rgba(6, 21, 48, 0.76), rgba(3, 11, 26, 0.88));
  clip-path: var(--vote-cut-md, polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)));
}

.vote-zone-head,
.vote-ranking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.vote-zone-head h1,
.vote-ranking-head h2 {
  margin: 0;
}

.vote-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vote-premium-empty {
  min-height: 260px;
  padding: 22px;
  border: 1px dashed rgba(255, 210, 95, 0.34);
  background: radial-gradient(circle at 18% 0%, rgba(255, 194, 77, 0.16), transparent 18rem), rgba(3, 11, 26, 0.62);
  clip-path: var(--vote-cut-md, polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)));
}

.vote-premium-rank {
  width: max-content;
  padding: 7px 11px;
  color: #ffe4a2;
  font-weight: 950;
  border: 1px solid rgba(255, 210, 95, 0.42);
  background: rgba(255, 194, 77, 0.12);
}

.vote-premium-empty-icon {
  margin-top: 20px;
  font-size: 2rem;
}

.vote-advanced-filter {
  display: grid;
  gap: 16px;
}

.vote-filter-main {
  grid-template-columns: minmax(230px, 1.25fr) repeat(5, minmax(130px, 0.72fr));
}

.vote-tag-filter {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.vote-tag-grid,
.server-tag-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.vote-tag-choice,
.server-tag-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(91, 194, 255, 0.22);
  background: rgba(0, 132, 255, 0.07);
  color: #dcefff;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  clip-path: var(--vote-cut-xs, polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)));
}

.vote-tag-choice input,
.server-tag-choice input {
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  accent-color: #1bbcff;
}

.vote-filter-actions {
  justify-content: flex-end;
}

.vote-ranking-list {
  display: grid;
  gap: 16px;
}

.vote-empty-box {
  padding: 22px;
  border: 1px solid rgba(91, 194, 255, 0.20);
  background: rgba(4, 16, 36, 0.70);
  color: #cfe7ff;
}

.server-tag-editor {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(85, 215, 255, 0.18);
  background: rgba(6, 19, 38, 0.46);
  border-radius: 18px;
}

.server-tag-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.server-tag-editor-head strong,
.server-tag-editor-head small {
  display: block;
}

.server-tag-editor-head small {
  margin-top: 4px;
  color: var(--muted, #9eb6cf);
}

.site-footer {
  align-items: flex-start;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 0.78rem;
  opacity: 0.86;
}

.legal-hero,
.legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 194, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(6, 21, 48, 0.80), rgba(3, 11, 26, 0.92)) !important;
  clip-path: var(--vote-cut-md, polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)));
}

.legal-hero {
  padding: clamp(26px, 4vw, 46px);
}

.legal-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.legal-card {
  padding: 22px !important;
}

.legal-card h2 {
  margin-top: 0;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #cfe0f2;
}

.legal-card li {
  margin: 7px 0;
}

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

@media (max-width: 820px) {
  .vote-featured-grid,
  .vote-filter-main {
    grid-template-columns: 1fr;
  }
  .vote-zone-head,
  .vote-ranking-head,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-links,
  .vote-filter-actions {
    justify-content: flex-start;
  }
}

.ranking-quick-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  max-width: 860px;
}

.ranking-quick-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(91, 194, 255, 0.26);
  background: rgba(0, 132, 255, 0.08);
  color: #dcefff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  clip-path: var(--vote-cut-xs, polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)));
}
