/* ElysiaLife — green coastal / modern */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  --bg: #050c0a;
  --bg-2: #0a1613;
  --panel: rgba(8, 22, 18, 0.9);
  --white: #f2fbf7;
  --muted: #93aea4;
  --muted-2: #628074;
  --green: #1ecf8e;
  --green-2: #5dffc8;
  --green-deep: #066a55;
  --green-mid: #0d9a72;
  --accent: var(--green);
  --accent-2: var(--green-2);
  --ok: #1ecf8e;
  --wait: #d4a017;
  --bad: #e05151;
  --discord: #5865f2;
  --line: rgba(255, 255, 255, 0.09);
  --font-d: "Syne", sans-serif;
  --font-b: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --top: 4.35rem;
  --grad: linear-gradient(135deg, #b8ffe6 0%, #6fffd0 22%, #2ee59a 48%, #12b87a 72%, #087a5c 100%);
  --grad-btn: linear-gradient(145deg, #a8ffde 0%, #5dffc8 28%, #1ecf8e 55%, #0ea872 82%, #067a58 100%);
  --grad-btn-hover: linear-gradient(145deg, #c5ffeb 0%, #7affe0 28%, #36e8a8 55%, #18c488 82%, #0a8a66 100%);
  --grad-soft: linear-gradient(160deg, rgba(93, 255, 200, 0.22), transparent 55%),
    linear-gradient(20deg, rgba(6, 106, 85, 0.45), transparent 50%);
  --grad-bg: radial-gradient(1100px 620px at 12% -8%, rgba(93, 255, 200, 0.16), transparent 58%),
    radial-gradient(900px 500px at 92% 8%, rgba(14, 154, 114, 0.22), transparent 55%),
    radial-gradient(700px 420px at 50% 100%, rgba(6, 106, 85, 0.28), transparent 60%),
}

/* —— Intégration & Surcharges Bootstrap 5.3 ElysiaLife —— */
:root, [data-bs-theme="dark"] {
  --bs-primary: #1ecf8e;
  --bs-primary-rgb: 30, 207, 142;
  --bs-primary-text-emphasis: #7dffb8;
  --bs-primary-bg-subtle: rgba(30, 207, 142, 0.15);
  --bs-primary-border-subtle: rgba(30, 207, 142, 0.35);
  --bs-success: #3dffb0;
  --bs-success-rgb: 61, 255, 176;
  --bs-info: #22d3ee;
  --bs-info-rgb: 34, 211, 238;
  --bs-warning: #ffd56a;
  --bs-warning-rgb: 255, 213, 106;
  --bs-danger: #ff6b6b;
  --bs-danger-rgb: 255, 107, 107;
  --bs-dark: #070d0c;
  --bs-dark-rgb: 7, 13, 12;
  --bs-body-bg: #070d0c;
  --bs-body-bg-rgb: 7, 13, 12;
  --bs-body-color: #e8fff4;
  --bs-body-color-rgb: 232, 255, 244;
  --bs-secondary-color: #93aea4;
  --bs-tertiary-color: #628074;
  --bs-border-color: rgba(30, 207, 142, 0.18);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
  --bs-card-bg: rgba(13, 24, 20, 0.7);
  --bs-card-border-color: rgba(30, 207, 142, 0.2);
  --bs-card-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --bs-font-sans-serif: "Outfit", system-ui, -apple-system, sans-serif;
  --bs-font-monospace: "Share Tech Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  background: var(--grad-bg);
  color: var(--white);
  line-height: 1.6;
  font-size: 1.02rem;
  min-height: 100vh;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, kbd {
  font-family: var(--font-b);
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}
kbd { border: 1px solid var(--line); }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Triangle mark */
.logo-mark {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  background: var(--grad);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.logo-mark--hero {
  width: clamp(2.2rem, 5vw, 3.2rem);
  height: clamp(2.2rem, 5vw, 3.2rem);
  animation: mark-in 1s var(--ease) 0.85s both;
}
.logo-mark--xl {
  width: 3.5rem;
  height: 3.5rem;
}

.ely { color: var(--white); }
.sia {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.life {
  margin-left: 0.35em;
  font-size: 0.5em;
  letter-spacing: 0.2em;
  color: var(--muted);
  vertical-align: middle;
  font-weight: 600;
}

.brand, .brand-hero, h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-text { font-size: 1.15rem; letter-spacing: -0.02em; }
.brand--sm .brand-text { font-size: 1rem; }
.brand--lg { font-size: 2rem; }

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-2);
}

/* Intro flash (legacy) */
.intro-flash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #050a09;
  animation: intro-out 1.1s var(--ease) 0.55s forwards;
  pointer-events: none;
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}
@keyframes mark-in {
  from { opacity: 0; transform: translateY(12px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

/* Site loader */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 400px at 50% 30%, rgba(93, 255, 200, 0.14), transparent 60%),
    #040a08;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}
.site-loader-mark {
  animation: loader-pulse 1.4s var(--ease) infinite;
  filter: drop-shadow(0 0 18px rgba(93, 255, 200, 0.35));
}
.site-loader-brand {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.04em;
}
.site-loader-bar {
  width: min(220px, 55vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.35rem;
}
.site-loader-bar > i {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: var(--grad);
  animation: loader-bar 1.1s ease-in-out infinite;
}
.site-loader-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes loader-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* Dev ribbon / locked UI */
.dev-ribbon {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
  align-items: center;
  padding: 0.45rem 1rem;
  background: linear-gradient(90deg, rgba(6, 106, 85, 0.92), rgba(13, 154, 114, 0.88), rgba(30, 207, 142, 0.75));
  color: #04140f;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
}
.dev-ribbon em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}
.landing-body .topbar { top: 2.15rem; }
.landing-body { padding-top: 0; }
.dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 255, 200, 0.35);
  background: rgba(6, 106, 85, 0.35);
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: mark-in 0.8s var(--ease) 0.2s both;
}
.btn-locked {
  opacity: 0.72;
  cursor: not-allowed;
  position: relative;
  filter: saturate(0.85);
}
.btn-locked .lock-ico {
  margin-right: 0.35rem;
}
.btn[disabled].btn-locked,
button.btn-locked[disabled] {
  pointer-events: auto;
}

/* Info modal */
.info-modal[hidden] { display: none !important; }
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.72);
  backdrop-filter: blur(6px);
}
.info-modal-card {
  position: relative;
  width: min(440px, 100%);
  background:
    var(--grad-soft),
    linear-gradient(180deg, rgba(14, 32, 28, 0.98), rgba(7, 16, 14, 0.98));
  border: 1px solid rgba(93, 255, 200, 0.22);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.35rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: mark-in 0.45s var(--ease);
}
.info-modal-ico {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.4rem;
}
.info-modal-card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
}
.info-modal-card p {
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.info-modal-card .btn { margin-top: 0.6rem; min-width: 9rem; }

/* Vote */
.section-vote {
  background: var(--grad-soft);
}
.vote-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.vote-form {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem auto 0.75rem;
  max-width: 420px;
  text-align: left;
}
.vote-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.vote-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 10, 0.75);
  color: var(--white);
  font: inherit;
}
.vote-form .btn { width: 100%; justify-content: center; }

/* Locked page */
.locked-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.25rem 3rem;
}
.locked-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(93, 255, 200, 0.18);
  background: var(--grad-soft), rgba(8, 20, 17, 0.92);
}
.locked-lock { font-size: 2rem; display: block; margin-bottom: 0.4rem; }
.locked-card h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 0.75rem; }
.locked-card p { color: var(--muted); margin: 0; }

/* —— Topbar —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(7,13,12,0.7), transparent);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.topbar.is-scrolled,
.topbar--solid {
  background: rgba(7, 13, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.topnav {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
}
.topnav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--grad);
  transition: right 0.3s var(--ease);
}
.topnav a:hover { color: #fff; }
.topnav a:hover::after { right: 0; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
@media (min-width: 960px) {
  .topnav { display: flex; }
  .topbar-actions { margin-left: 0; }
  .nav-toggle { display: none !important; }
}
.nav-toggle {
  width: 2.4rem; height: 2.4rem;
  border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 959px) {
  .topnav {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.5rem; background: rgba(7,13,12,0.97);
    opacity: 0; visibility: hidden; transition: 0.35s var(--ease);
  }
  .topnav.is-open { opacity: 1; visibility: visible; }
  .topnav a { font-family: var(--font-d); font-size: 2rem; font-weight: 700; color: #fff; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.95rem 1.55rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-primary,
.btn-red {
  background: var(--grad-btn);
  color: #04120e;
  border: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 22px rgba(14, 168, 114, 0.32);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover,
.btn-red:hover {
  background: var(--grad-btn-hover);
  filter: none;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 14px 32px rgba(30, 207, 142, 0.42);
}
.btn-discord { background: var(--discord); color: #fff; border-radius: 4px; }
.btn-discord:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-ghost:hover {
  border-color: rgba(61, 255, 176, 0.55);
  background: rgba(61, 255, 176, 0.06);
}
.btn-steam { background: #2a475e; color: #fff; }

/* —— Hero open composition —— */
.hero-flash {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--top) + 2rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vw, 5rem);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.05);
  transition: opacity 1.6s var(--ease), transform 12s linear, filter 1.6s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  animation: kenburns 14s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(3,10,8,0.88) 0%, rgba(4,14,11,0.42) 38%, rgba(4,14,11,0.18) 100%),
    linear-gradient(180deg, rgba(3,10,8,0.35) 0%, transparent 42%, rgba(3,10,8,0.88) 100%),
    radial-gradient(ellipse 80% 50% at 70% 45%, transparent 30%, rgba(4, 18, 14, 0.35) 100%),
    linear-gradient(25deg, rgba(6, 106, 85, 0.18), transparent 45%);
}
.hero-aurora {
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: 70%;
  height: 55%;
  background:
    radial-gradient(ellipse at center, rgba(93, 255, 200, 0.28), transparent 62%),
    radial-gradient(ellipse at 80% 20%, rgba(14, 154, 114, 0.22), transparent 55%);
  filter: blur(14px);
  animation: aurora 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aurora {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4%); }
}

.hero-stage {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: stage-in 1.05s var(--ease) 0.7s both;
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.brand-hero {
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.hero-stage h1 {
  font-family: var(--font-b);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: rgba(243, 250, 247, 0.92);
}
.hero-tagline {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  max-width: 34ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-scroll {
  position: absolute; bottom: 1.4rem; right: clamp(1.25rem, 5vw, 4rem);
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.22); border-radius: 12px;
}
.hero-scroll span {
  display: block; width: 4px; height: 8px; margin: 6px auto;
  background: var(--green-2); border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* —— Sections —— */
.section { position: relative; z-index: 1; }
.section-inner { max-width: 68rem; margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.5rem); }
.split { display: grid; min-height: 70vh; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; } }
.split-media {
  min-height: 320px;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(1.1) contrast(1.04);
  position: relative;
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(10, 22, 18, 0.35));
  pointer-events: none;
}
.split-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--bg-2);
}
.split-copy h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.split-copy p { color: var(--muted); font-weight: 300; max-width: 36rem; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.ticks li { padding-left: 1.2rem; position: relative; color: rgba(255,255,255,0.8); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 0.45rem; height: 0.45rem;
  background: var(--grad);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.section-framework { background: linear-gradient(180deg, #091210, #0b1412); }
.section-framework h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.lead { color: var(--muted); font-weight: 300; max-width: 40rem; margin: 0 0 2.5rem; }
.lead strong { color: var(--green-2); font-weight: 600; }
.feature-row { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .feature-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.feature-row article {
  padding: 0;
  border: 0;
  background: transparent;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.feature-row h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-row p { margin: 0; color: var(--muted); font-weight: 300; font-size: 0.95rem; }

.section-factions {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(93, 255, 200, 0.1), transparent 55%),
    radial-gradient(700px 380px at 95% 80%, rgba(14, 154, 114, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(8, 18, 15, 0.4), transparent);
}
.section-factions h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
.section-factions .lead-factions {
  color: var(--muted);
  font-weight: 300;
  max-width: 36rem;
  margin: 0 0 2.25rem;
}
.faction-grid {
  display: grid;
  gap: 1rem;
  border: 0;
}
@media (min-width: 700px) {
  .faction-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}
.faction-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid rgba(93, 255, 200, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(93, 255, 200, 0.1) 0%, transparent 42%),
    linear-gradient(180deg, rgba(12, 28, 24, 0.92), rgba(6, 16, 13, 0.96));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.faction-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-btn);
  opacity: 0.85;
}
.faction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 255, 200, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(93, 255, 200, 0.08);
}
.faction-card--civil { --faction-tint: #5dffc8; }
.faction-card--gendarmerie { --faction-tint: #6eb6ff; }
.faction-card--police { --faction-tint: #7ad4ff; }
.faction-card--pompiers { --faction-tint: #ff9a6b; }
.faction-card--gendarmerie { background: linear-gradient(155deg, rgba(110, 182, 255, 0.12) 0%, transparent 42%), linear-gradient(180deg, rgba(12, 22, 32, 0.94), rgba(6, 14, 20, 0.97)); border-color: rgba(110, 182, 255, 0.16); }
.faction-card--police { background: linear-gradient(155deg, rgba(122, 212, 255, 0.12) 0%, transparent 42%), linear-gradient(180deg, rgba(10, 24, 30, 0.94), rgba(6, 14, 18, 0.97)); border-color: rgba(122, 212, 255, 0.16); }
.faction-card--pompiers { background: linear-gradient(155deg, rgba(255, 154, 107, 0.14) 0%, transparent 42%), linear-gradient(180deg, rgba(28, 16, 12, 0.94), rgba(16, 10, 8, 0.97)); border-color: rgba(255, 154, 107, 0.18); }
.faction-card--gendarmerie::before { background: linear-gradient(180deg, #9ecbff, #3a7bd5); }
.faction-card--police::before { background: linear-gradient(180deg, #9ae3ff, #2a9fd8); }
.faction-card--pompiers::before { background: linear-gradient(180deg, #ffb38a, #e05a2b); }
.faction-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.faction-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.faction-num {
  color: var(--faction-tint, var(--green));
  font-family: var(--font-d);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  opacity: 0.9;
}
.faction-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}
.faction-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ferry-banner {
  min-height: 56vh;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  position: relative;
}
.ferry-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4,12,10,0.9) 0%, rgba(5,14,12,0.45) 48%, rgba(5,14,12,0.28) 100%),
    linear-gradient(180deg, rgba(4,12,10,0.25) 0%, transparent 40%, rgba(4,12,10,0.55) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(30, 207, 142, 0.12), transparent 55%);
}
.ferry-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 3rem 1.5rem;
  width: min(100%, 42rem);
  margin-right: auto;
  margin-left: clamp(1.25rem, 5vw, 4rem);
}
.ferry-banner h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.9rem; }
.ferry-banner p { color: rgba(255,255,255,0.78); font-weight: 300; margin: 0 0 1.5rem; }

.section-join { background: #08110f; }
.section-join h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 2rem; }
.connect-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .connect-grid { grid-template-columns: repeat(3, 1fr); } }
.connect-card {
  display: block;
  padding: 1.4rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  transition: 0.25s var(--ease);
}
.connect-card:hover { padding-left: 0.5rem; }
.connect-card strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.connect-label { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.4rem; }
.connect-card em { color: var(--muted); font-style: normal; font-size: 0.88rem; font-weight: 300; }

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
  background: #050a09;
}
.footer-brand-row { display: flex; gap: 0.85rem; align-items: flex-start; }
.site-footer p { margin: 0.35rem 0 0; color: var(--muted-2); font-size: 0.9rem; }
.footer-note { font-size: 0.78rem !important; }

/* —— Auth / ferry —— */
.auth-body, .ferry-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7,13,12,0.78), rgba(7,13,12,0.92)),
    url('/images/ferry-arz.jpg') center/cover fixed;
}
.auth-shell {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 2rem 1rem;
}
.auth-shell--wide { justify-content: flex-start; padding-top: 3rem; }
.auth-card {
  width: min(100%, 420px);
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid rgba(30, 207, 142, 0.28);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(30, 207, 142, 0.08);
  backdrop-filter: blur(16px);
}
.auth-card--wide { width: min(100%, 720px); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-card > p { color: var(--muted); font-weight: 300; margin-top: 0; }
.form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.form-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.form input, .form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font: inherit;
}
.form input:focus, .form textarea:focus { outline: 1px solid var(--green); border-color: var(--green); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-muted { display: inline-block; margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

.alert { padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.92rem; }
.alert-bad { background: rgba(224,81,81,0.12); border: 1px solid rgba(224,81,81,0.35); color: #ffb4b0; }
.alert-ok { background: rgba(30,207,142,0.12); border: 1px solid rgba(30,207,142,0.35); color: #9eecc4; }
.alert-wait { background: rgba(212,160,23,0.12); border: 1px solid rgba(212,160,23,0.35); color: #ffe2a0; }

/* —— Panel ElysiaLife Premium avec Bootstrap 5.3 —— */
.panel-body {
  background:
    radial-gradient(circle at 10% 15%, rgba(30, 207, 142, 0.07), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(10, 143, 110, 0.05), transparent 45%),
    #060c0a;
  color: #e8fff4;
  min-height: 100vh;
}

/* Grille & Offcanvas Sidebar Bootstrap */
.panel-sidebar-col {
  width: 100%;
}
@media (min-width: 992px) {
  .panel-sidebar-col {
    width: 270px;
    flex: 0 0 270px;
  }
}
.panel-sidebar-offcanvas {
  background: rgba(9, 18, 15, 0.98) !important;
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(30, 207, 142, 0.2) !important;
  width: 280px !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}
@media (min-width: 992px) {
  .panel-sidebar-offcanvas {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    transform: none !important;
    visibility: visible !important;
    z-index: 100 !important;
    width: 270px !important;
  }
}

.panel-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Surcharges Boutons & Modales Bootstrap */
.btn-primary {
  background: var(--grad-btn) !important;
  color: #04140f !important;
  font-weight: 700 !important;
  border: 0 !important;
  box-shadow: 0 4px 16px rgba(30, 207, 142, 0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--grad-btn-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 255, 176, 0.45);
  color: #04140f !important;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(30, 207, 142, 0.12);
  border-color: rgba(30, 207, 142, 0.4);
  color: #3dffb0;
}
.modal-content {
  background: rgba(9, 18, 15, 0.96) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 207, 142, 0.3) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  color: #e8fff4;
}
.modal-backdrop.show {
  opacity: 0.75 !important;
  backdrop-filter: blur(6px);
}
.panel-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-nav-close {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}
.panel-nav-close:hover {
  background: rgba(224, 81, 81, 0.2);
  color: #ff9b96;
  border-color: rgba(224, 81, 81, 0.4);
}

/* User Card dans la sidebar */
.panel-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 207, 142, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(30, 207, 142, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.sidebar-avatar-wrap {
  position: relative;
  display: inline-flex;
}
.sidebar-avatar-wrap .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(30, 207, 142, 0.4);
  box-shadow: 0 0 10px rgba(30, 207, 142, 0.25);
  object-fit: cover;
}
.user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #09120f;
}
.user-status-dot.is-online {
  background: var(--green-2);
  box-shadow: 0 0 8px rgba(61, 255, 176, 0.8);
}
.user-status-dot.is-offline {
  background: #e05151;
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-rp-name {
  font-family: var(--font-d);
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.sidebar-steam-id {
  font-size: 0.72rem;
  color: var(--muted-2);
  font-family: "Share Tech Mono", monospace;
}
.panel-sidebar-badge-wrap {
  display: flex;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.badge-ok {
  background: rgba(30, 207, 142, 0.15);
  color: #7dffb8;
  border-color: rgba(30, 207, 142, 0.35);
  box-shadow: 0 0 12px rgba(30, 207, 142, 0.15);
}
.badge-wait {
  background: rgba(212, 160, 23, 0.15);
  color: #ffd56a;
  border-color: rgba(212, 160, 23, 0.35);
}
.badge-bad {
  background: rgba(224, 81, 81, 0.15);
  color: #ff9b96;
  border-color: rgba(224, 81, 81, 0.35);
}
.badge-mute {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Liens de navigation Sidebar */
.panel-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.panel-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.panel-nav a .nav-ico {
  font-size: 1.15rem;
  transition: transform 0.25s;
}
.panel-nav a:hover {
  background: rgba(30, 207, 142, 0.08);
  color: #fff;
  border-color: rgba(30, 207, 142, 0.2);
  transform: translateX(3px);
}
.panel-nav a:hover .nav-ico {
  transform: scale(1.15);
}
.panel-nav a.is-active {
  background: linear-gradient(90deg, rgba(30, 207, 142, 0.2) 0%, rgba(30, 207, 142, 0.05) 100%);
  color: #3dffb0;
  border-color: rgba(30, 207, 142, 0.45);
  box-shadow: inset 3px 0 0 #3dffb0, 0 4px 16px rgba(30, 207, 142, 0.15);
  font-weight: 600;
}
.panel-nav a.nav-admin {
  margin-top: 0.5rem;
  background: rgba(212, 160, 23, 0.08);
  border-color: rgba(212, 160, 23, 0.25);
  color: #ffd56a;
}
.panel-nav a.nav-admin:hover {
  background: rgba(212, 160, 23, 0.16);
  border-color: rgba(212, 160, 23, 0.45);
}

.panel-side-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.side-foot-link {
  color: var(--muted-2);
  font-size: 0.82rem;
  text-decoration: none;
  transition: 0.2s;
}
.side-foot-link:hover { color: #fff; }
.side-foot-link--danger:hover { color: #ff8585; }


/* —— Topbar modernisée —— */
.panel-topbar {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(13, 24, 20, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 207, 142, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.panel-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(30, 207, 142, 0.25);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.panel-mobile-toggle span {
  width: 100%;
  height: 2px;
  background: #3dffb0;
  border-radius: 2px;
}
@media (min-width: 992px) {
  .panel-mobile-toggle { display: none !important; }
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(30, 207, 142, 0.2);
  cursor: pointer;
  transition: all 0.25s;
}
.live-status-pill:hover {
  background: rgba(30, 207, 142, 0.12);
  border-color: rgba(30, 207, 142, 0.45);
  transform: translateY(-1px);
}
.live-status-info { display: flex; flex-direction: column; line-height: 1.2; }
.live-status-title { font-size: 0.88rem; color: #fff; font-family: var(--font-d); }
.live-status-sub {
  font-size: 0.72rem;
  color: var(--muted-2);
  font-family: "Share Tech Mono", monospace;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.copy-hint { color: #3dffb0; font-size: 0.68rem; opacity: 0.85; }

.live-clock-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(30, 207, 142, 0.15);
}
.clock-icon { font-size: 1.1rem; }
.clock-content { display: flex; flex-direction: column; line-height: 1.15; }
.clock-digits {
  font-family: "Share Tech Mono", monospace;
  font-size: 1.15rem;
  color: #3dffb0;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(61, 255, 176, 0.4);
}
.clock-date { color: var(--muted-2); font-size: 0.7rem; text-transform: capitalize; }

.panel-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-copy-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Share Tech Mono", monospace;
}

/* Profile Chip */
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 207, 142, 0.25);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.profile-chip:hover, .profile-chip.is-active {
  border-color: rgba(61, 255, 176, 0.6);
  background: linear-gradient(135deg, rgba(30, 207, 142, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 16px rgba(30, 207, 142, 0.25);
  transform: translateY(-1px);
}
.profile-chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.profile-chip-text strong { font-size: 0.88rem; color: #fff; font-family: var(--font-d); }
.profile-chip-text small { color: #3dffb0; font-size: 0.68rem; }
.avatar--md { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar--fallback {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #14352b, #091b15);
  font-size: 1.1rem;
}

/* Status Banner Serveur / Ferry */
.panel-status-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(13, 24, 20, 0.6);
  border: 1px solid rgba(30, 207, 142, 0.2);
}
.panel-status-banner.is-closed {
  border-color: rgba(224, 81, 81, 0.4);
  background: rgba(224, 81, 81, 0.08);
}
.panel-status-banner-main { display: flex; flex-direction: column; gap: 0.2rem; }
.panel-status-banner-main strong { font-size: 0.95rem; }
.panel-status-banner-main span { color: var(--muted); font-size: 0.85rem; font-weight: 300; }
.panel-status-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-pill.is-on { background: rgba(30, 207, 142, 0.15); color: #3dffb0; border: 1px solid rgba(30, 207, 142, 0.35); }
.status-pill.is-off { background: rgba(224, 81, 81, 0.15); color: #ff9b96; border: 1px solid rgba(224, 81, 81, 0.35); }

/* —— Header Héros de bienvenue —— */
.panel-hero-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 207, 142, 0.12) 0%, rgba(13, 24, 20, 0.8) 60%, rgba(6, 12, 10, 0.9) 100%);
  border: 1px solid rgba(30, 207, 142, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.panel-hero-header::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61, 255, 176, 0.15), transparent 70%);
  pointer-events: none;
}
.panel-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 207, 142, 0.15);
  border: 1px solid rgba(30, 207, 142, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: #3dffb0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.panel-hero-intro h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #3dffb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.panel-hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44rem;
  margin: 0;
  font-weight: 300;
}
.panel-hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* —— Panneau Billet Vide (Empty State) —— */
.empty-panel {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed rgba(61, 255, 176, 0.3);
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 10%, rgba(30, 207, 142, 0.12), rgba(13, 24, 20, 0.7) 70%);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 2rem;
}
.empty-panel--bad {
  border-color: rgba(224, 81, 81, 0.4);
  background: radial-gradient(ellipse at 50% 10%, rgba(224, 81, 81, 0.12), rgba(24, 13, 13, 0.7) 70%);
}
.empty-panel-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(61, 255, 176, 0.4));
}
.empty-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-d);
}
.empty-panel p {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  font-weight: 300;
  line-height: 1.5;
  font-size: 1.05rem;
}

/* —— Cartes de Statistiques Joueur —— */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(13, 24, 20, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 207, 142, 0.4);
  box-shadow: 0 12px 32px rgba(30, 207, 142, 0.15);
  background: rgba(18, 34, 28, 0.8);
}
.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.stat-icon--emerald {
  background: rgba(30, 207, 142, 0.15);
  border: 1px solid rgba(30, 207, 142, 0.3);
  box-shadow: 0 0 12px rgba(30, 207, 142, 0.2);
}
.stat-icon--mint {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.2);
}
.stat-icon--cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}
.stat-icon--amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
.stat-icon--indigo {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}
.stat-icon--gold {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}
.stat-info { display: flex; flex-direction: column; }
.stat-info small {
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-info strong {
  font-family: var(--font-d);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.02em;
}

/* —— Panneaux & Cartes génériques —— */
.panel-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(13, 24, 20, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 207, 142, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}
.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.panel-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-d);
  letter-spacing: 0.03em;
}

/* —— Tableau Départs FIDS Airport Board —— */
.airport-board-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.airport-board-wrap::-webkit-scrollbar {
  height: 6px;
}
.airport-board-wrap::-webkit-scrollbar-thumb {
  background: rgba(30, 207, 142, 0.35);
  border-radius: 3px;
}
.fids-code, .fids-gate, .fids-seats {
  font-family: "Share Tech Mono", monospace;
  font-weight: 600;
}
.airport-foot-tz {
  margin-left: auto;
  color: #3dffb0;
  opacity: 0.85;
}

/* —— Système Toast Notifications —— */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}
.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  background: rgba(10, 22, 18, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-item.toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-item.toast--exit {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
}
.toast--ok {
  border-left: 4px solid #3dffb0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 16px rgba(61, 255, 176, 0.15);
}
.toast--bad {
  border-left: 4px solid #ff7570;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 117, 112, 0.15);
}
.toast--copy {
  border-left: 4px solid #22d3ee;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 16px rgba(34, 211, 238, 0.15);
}
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-text { flex: 1; line-height: 1.35; }
.toast-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  transition: 0.2s;
}
.toast-close:hover { color: #fff; }

/* —— Keycaps (Touches importantes) —— */
.keycap {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #3dffb0;
  background: linear-gradient(180deg, #1b2e27, #0e1c17);
  border: 1px solid rgba(61, 255, 176, 0.35);
  border-bottom: 3px solid rgba(61, 255, 176, 0.55);
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s, border-bottom 0.1s;
}
.keycap:hover {
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.keybinds-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .keybinds-grid { grid-template-columns: repeat(3, 1fr); }
}

/* —— Recherche Règlement —— */
.rules-search-card {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(13, 24, 20, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 207, 142, 0.25);
  margin-bottom: 2rem;
}
.rules-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(30, 207, 142, 0.3);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rules-search-box:focus-within {
  border-color: #3dffb0;
  box-shadow: 0 0 16px rgba(61, 255, 176, 0.25);
}
.rules-search-ico { font-size: 1.1rem; }
.rules-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}
.rules-search-count {
  font-size: 0.8rem;
  color: #3dffb0;
  font-family: "Share Tech Mono", monospace;
}
.rules-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 850px) {
  .rules-grid { grid-template-columns: 1fr 1fr; }
}
.rules-cat-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.rules-badge {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  color: #060c0a;
  background: #3dffb0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

/* —— Profil & Avatar Preview —— */
.profile-layout-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 850px) {
  .profile-layout-grid { grid-template-columns: 320px 1fr; }
}
.profile-card-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.profile-summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(61, 255, 176, 0.4);
  box-shadow: 0 0 16px rgba(30, 207, 142, 0.25);
}
.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.profile-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.meta-label { color: var(--muted-2); font-size: 0.8rem; text-transform: uppercase; }
.meta-val-copy { display: flex; align-items: center; gap: 0.4rem; }

/* —— Tutoriel Step Cards —— */
.tutorial-steps-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .tutorial-steps-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.tutorial-step-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.step-badge {
  align-self: flex-start;
  font-family: var(--font-d);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #3dffb0;
  background: rgba(30, 207, 142, 0.15);
  border: 1px solid rgba(30, 207, 142, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.tutorial-connect-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* —— Amis Cards —— */
.friend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.65rem;
}
.friend-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.friend-status-badge { display: flex; margin-top: 0.2rem; }

/* Timeline Reboots */
.reboot-list { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.reboot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.reboot-time {
  font-family: "Share Tech Mono", monospace;
  font-weight: 700;
  color: #3dffb0;
  font-size: 1.05rem;
}
.reboot-label { color: var(--muted); font-size: 0.9rem; }

.board-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1000px) { .board-grid { grid-template-columns: 1.2fr 1fr; } }

.fids-board {
  background: #050806;
  border: 1px solid #1a2e26;
  border-radius: 12px;
  overflow: hidden;
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
.fids-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, #0c1a14, #10241c);
  border-bottom: 1px solid #1f3a2e;
}
.fids-head h3 { font-family: var(--font-d); font-size: 1rem; letter-spacing: 0.06em; }
.fids-live {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #04120e;
  background: var(--green-2);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
}
.fids-row {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr 1.3fr 1fr;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #c8ffe6;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fids-row:hover { background: rgba(30,207,142,0.06); }
.fids-row--head {
  color: #6f9f88;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  background: rgba(0,0,0,0.35);
}
.fids-time { color: #fff; font-weight: 700; font-size: 0.95rem; }
.fids-status { font-weight: 700; }
.fids-status.is-boarding { color: #ffd56a; animation: blink-status 1.2s step-end infinite; }
.fids-status.is-scheduled { color: var(--green-2); }
@keyframes blink-status {
  50% { opacity: 0.35; }
}

/* —— Realistic ferry ticket —— */
.ferry-ticket {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f4ec 0%, #efe8da 100%);
  color: #1a1a1a;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
@media (min-width: 800px) {
  .ferry-ticket { grid-template-columns: 110px 1fr; }
}
.ferry-ticket-side {
  background: linear-gradient(180deg, #0b3d4a, #0a2a33);
  color: #e8fff6;
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}
.ferry-ticket-company {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: 0.2em;
  writing-mode: horizontal-tb;
}
.ferry-ticket-route-mini {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
}
.ferry-ticket-barcode {
  margin: 0;
  font-size: 0.58rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.12em;
  opacity: 0.75;
  word-break: break-all;
}
.ferry-ticket-main { padding: 1.25rem 1.35rem 1rem; position: relative; }
.ferry-ticket-main::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  border-left: 2px dashed rgba(0,0,0,0.15);
}
@media (max-width: 799px) {
  .ferry-ticket-main::before { display: none; }
  .ferry-ticket-side { flex-direction: row; }
  .ferry-ticket-barcode { writing-mode: horizontal-tb; transform: none; }
}
.ferry-ticket-banner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: flex-start; margin-bottom: 1.1rem;
}
.ferry-ticket-banner strong { display: block; font-family: var(--font-d); letter-spacing: 0.04em; }
.ferry-ticket-banner span { color: #666; font-size: 0.85rem; }
.ferry-stamp {
  border: 2px solid currentColor;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-6deg);
  border-radius: 4px;
}
.ferry-stamp--pending { color: #b8860b; }
.ferry-stamp--accepted { color: #0a8f6e; }
.ferry-stamp--rejected { color: #b33; }
.ferry-ticket-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}
.ferry-ticket-route small { display: block; color: #777; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.ferry-ticket-route strong { display: block; font-family: var(--font-d); font-size: 1.45rem; }
.ferry-ticket-route span { color: #555; font-size: 0.85rem; }
.ferry-ticket-wave { color: #0a8f6e; letter-spacing: 0.08em; font-size: 0.9rem; white-space: nowrap; }
.ferry-ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (min-width: 700px) { .ferry-ticket-grid { grid-template-columns: repeat(4, 1fr); } }
.ferry-ticket-grid small { display: block; color: #777; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ferry-ticket-grid strong { font-size: 0.95rem; }
.ferry-ticket-grid .mono { font-family: ui-monospace, monospace; font-size: 0.82rem; word-break: break-all; }
.ferry-ticket-note {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: rgba(179,51,51,0.08);
  border-radius: 8px;
  color: #842;
}
.ferry-ticket-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: 0.85rem;
  border-top: 1px dashed rgba(0,0,0,0.15);
  color: #777; font-size: 0.78rem;
}
.ferry-ticket-code-print { font-family: ui-monospace, monospace; color: #333; }

.ferry-ticket--pending .ferry-ticket-side { background: linear-gradient(180deg, #4a3b0b, #2a2208); }
.ferry-ticket--rejected .ferry-ticket-side { background: linear-gradient(180deg, #4a1515, #2a0c0c); }
.ferry-ticket--accepted .ferry-ticket-side { background: linear-gradient(180deg, #0b3d4a, #0a8f6e); }

.rich-block { margin-top: 1.1rem; }
.rich-content {
  margin-top: 0.4rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.88);
}
.rich-content img { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
.rich-field { display: grid; gap: 0.45rem; }
.rich-label { font-size: 0.85rem; color: var(--muted); }
.rich-editor {
  background: #fff;
  color: #111;
  border-radius: 0 0 10px 10px;
  min-height: 160px;
}
.ql-toolbar.ql-snow {
  border-radius: 10px 10px 0 0;
  border-color: var(--line) !important;
  background: #f7f7f7;
}
.ql-container.ql-snow {
  border-color: var(--line) !important;
  border-radius: 0 0 10px 10px;
  min-height: 160px;
  font-family: var(--font-b);
}

.inline-book { display: inline; margin: 0; }
.inline-book .btn { padding: 0.3rem 0.7rem; font-size: 0.75rem; }

.rp-name-box {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(30,207,142,0.1), rgba(255,255,255,0.02));
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.rp-name-box small {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rp-name-box strong { font-family: var(--font-d); font-size: 1.4rem; }

.profile-photo-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.profile-photo-preview,
.avatar--lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar--lg { display: grid; place-items: center; font-size: 1.6rem; }

.booking-chip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(30,207,142,0.35);
  background: linear-gradient(135deg, rgba(30,207,142,0.12), rgba(255,255,255,0.02));
}
.booking-chip small {
  display: block;
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.booking-chip strong { display: block; font-family: var(--font-d); font-size: 1.25rem; }
.booking-chip span { color: var(--muted); font-size: 0.9rem; }

.airport-board {
  background: #030805;
  border: 1px solid #1c3228;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 40px rgba(30,207,142,0.05);
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
.airport-board-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  background: linear-gradient(90deg, #0a1812, #10261c 55%, #0a1812);
  border-bottom: 1px solid #244536;
}
.airport-title {
  margin: 0;
  color: #7fb89a;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.airport-board-top h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-d);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.airport-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #b8ffd9;
  font-size: 0.95rem;
}
.airport-live {
  color: #04120e;
  background: #3dffb0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  animation: blink-status 1.4s step-end infinite;
}
.airport-cols {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.5fr 0.55fr 0.7fr 1fr 1fr;
  gap: 0.4rem;
  padding: 0.72rem 1rem;
  align-items: center;
}
.airport-cols--head {
  color: #6f9f88;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid #1c3228;
}
.airport-row {
  color: #d8ffe9;
  font-size: 0.84rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.25s;
}
.airport-row:hover { background: rgba(30,207,142,0.07); }
.airport-row.is-mine {
  background: rgba(30,207,142,0.12);
  box-shadow: inset 3px 0 0 #3dffb0;
}
.airport-row.is-closed { opacity: 0.45; }
.airport-row .dest { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.15; }
.airport-row .dest small {
  color: #6f9f88;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.board-status { font-weight: 700; letter-spacing: 0.04em; }
.status-ontime { color: #3dffb0; }
.status-boarding { color: #ffd56a; animation: blink-status 1.1s step-end infinite; }
.status-full, .status-closed, .status-departed { color: #ff8f8a; }
.board-action { text-align: right; }
.pill {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #8ab89c;
  border: 1px solid #2a4738;
}
.pill-mine { color: #04120e; background: #3dffb0; border-color: transparent; }
.pill-full, .pill-closed { color: #ffb4b0; border-color: #5a2a2a; }
.airport-foot {
  padding: 0.7rem 1rem;
  color: #6f9f88;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-top: 1px solid #1c3228;
  background: rgba(0,0,0,0.35);
}
@media (max-width: 900px) {
  .airport-cols {
    grid-template-columns: 0.7fr 0.7fr 1.2fr 0.8fr;
  }
  .airport-cols span:nth-child(4),
  .airport-cols span:nth-child(5),
  .airport-cols--head span:nth-child(4),
  .airport-cols--head span:nth-child(5) {
    display: none;
  }
}

/* Boarding pass — ferry ticket */
.boarding-pass {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
  border-radius: 18px;
  overflow: hidden;
  color: #10231c;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08);
  background:
    linear-gradient(145deg, #e8fff5 0%, #d4f3e8 28%, #c8e7f5 62%, #b8d4f0 100%);
  position: relative;
}
.boarding-pass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(62, 220, 170, 0.35), transparent 42%),
    radial-gradient(ellipse at 88% 100%, rgba(60, 140, 220, 0.28), transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 14px,
      rgba(255,255,255,0.04) 14px 15px
    );
  opacity: 0.9;
}
@media (min-width: 860px) {
  .boarding-pass { grid-template-columns: 1fr 200px; }
}
.bp-main {
  padding: 1.25rem 1.35rem 1.1rem;
  position: relative;
  z-index: 1;
}
.bp-main::after {
  content: "";
  position: absolute;
  right: -10px; top: 18px; bottom: 18px;
  border-right: 2px dashed rgba(10, 80, 60, 0.22);
}
@media (max-width: 859px) {
  .bp-main::after { display: none; }
}
.bp-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.bp-brand { display: flex; gap: 0.7rem; align-items: center; }
.logo-mark--ticket {
  width: 1.4rem; height: 1.4rem;
  background: linear-gradient(135deg, #0a8f6e, #3dffb0);
  box-shadow: 0 4px 12px rgba(10, 143, 110, 0.35);
}
.bp-brand strong { display: block; font-family: var(--font-d); letter-spacing: 0.04em; font-size: 0.95rem; }
.bp-brand small { color: #3d5c52; }
.bp-stamp {
  border: 2px solid currentColor;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: rotate(-8deg);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.bp-stamp--pending { color: #9a6b00; }
.bp-stamp--accepted { color: #0a8f6e; }
.bp-stamp--rejected { color: #b33; }
.bp-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid rgba(10, 80, 60, 0.12);
  border-bottom: 1px solid rgba(10, 80, 60, 0.12);
}
.bp-iata {
  display: block;
  font-family: var(--font-d);
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, #0a5c4a, #0a8f6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bp-city strong { display: block; font-size: 1rem; }
.bp-city small { color: #3d5c52; }
.bp-city--right { text-align: right; }
.bp-flight-line { text-align: center; color: #0a8f6e; }
.bp-dash {
  width: 70px; height: 2px;
  margin: 0.25rem auto;
  background: repeating-linear-gradient(90deg, #0a8f6e 0 6px, transparent 6px 10px);
}
.bp-validity {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10,143,110,0.16), rgba(60,140,220,0.14));
  border: 1px solid rgba(10,143,110,0.22);
  font-size: 0.86rem;
  font-weight: 600;
  color: #0a4d3c;
}
.bp-validity--ok {
  background: linear-gradient(90deg, rgba(10,143,110,0.22), rgba(30,207,142,0.12));
  border-color: rgba(10,143,110,0.35);
}
.ticket-on-screen {
  margin-bottom: 1.15rem;
}
.ticket-on-screen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.ticket-on-screen-head h2 {
  font-size: 1.25rem;
  margin: 0.1rem 0 0;
}
.ticket-on-screen .boarding-pass {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.bp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (min-width: 700px) { .bp-grid { grid-template-columns: repeat(4, 1fr); } }
.bp-grid small {
  display: block;
  color: #777;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bp-grid strong { font-size: 0.95rem; }
.bp-grid .mono { font-family: "Courier Prime", ui-monospace, monospace; font-size: 0.8rem; word-break: break-all; }
.bp-seat-band {
  margin-top: 1rem;
  padding: 0.65rem 0.8rem;
  background: #0b2e28;
  color: #d8ffe9;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.bp-seat-band--warn { background: #4a3b0b; color: #ffe9a8; }
.bp-note {
  margin: 0.85rem 0 0;
  padding: 0.7rem;
  background: rgba(179,51,51,0.08);
  border-radius: 8px;
  color: #842;
}
.bp-stub {
  background: linear-gradient(180deg, #0a5c6e 0%, #0a8f6e 55%, #087a5c 100%);
  color: #e8fff6;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}
.boarding-pass--pending .bp-stub {
  background: linear-gradient(180deg, #7a5a10 0%, #b8860b 55%, #8a6508 100%);
}
.boarding-pass--rejected .bp-stub {
  background: linear-gradient(180deg, #5a1515 0%, #a33 55%, #6a1010 100%);
}
.boarding-pass--accepted .bp-stub {
  background: linear-gradient(180deg, #0b3d4a 0%, #0a8f6e 60%, #087a5c 100%);
}
.bp-stub-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.bp-stub-route {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.bp-stub-name { margin: 0; font-weight: 700; }
.bp-stub-meta { margin: 0; font-size: 0.85rem; opacity: 0.85; line-height: 1.45; }
.bp-barcode {
  margin-top: auto;
  font-family: "Libre Barcode 39", cursive;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
}
.bp-stub-code {
  margin: 0;
  font-family: "Courier Prime", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  word-break: break-all;
  opacity: 0.8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.modal-backdrop.is-open { display: grid; }
.modal-card {
  width: min(100%, 440px);
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: #0c1613;
  border: 1px solid rgba(30, 207, 142, 0.35);
  box-shadow: 0 0 40px rgba(30, 207, 142, 0.15);
  text-align: center;
}
.modal-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.modal-card h2 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}
.modal-card p {
  color: var(--muted);
  font-weight: 300;
  margin: 0 0 0.85rem;
  text-align: left;
}
.modal-note {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(30, 207, 142, 0.08);
  border: 1px solid rgba(30, 207, 142, 0.2);
  color: #c8ffe0 !important;
  font-size: 0.92rem !important;
}
.modal-card .btn { width: 100%; margin-top: 0.35rem; }
.bp-note--info {
  background: rgba(30, 207, 142, 0.08) !important;
  color: #0a4a3a !important;
  border: 1px solid rgba(10, 143, 110, 0.2);
}

.airport-cols--actions {
  grid-template-columns: 0.65fr 0.65fr 1.3fr 0.5fr 0.65fr 0.9fr 1.35fr;
}
.board-action--stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}
.boarding-pass--compact {
  margin-bottom: 1rem;
  transform: scale(0.92);
  transform-origin: top center;
}
.boarding-pass--compact .bp-main { padding: 0.9rem 1rem; }
.boarding-pass--compact .bp-iata { font-size: 1.45rem; }
.boarding-pass--compact .bp-stub { padding: 0.85rem 0.75rem; }
.bp-route--compact { padding: 0.55rem 0 0.7rem; }
.bp-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.88rem;
  color: #444;
  margin-top: 0.55rem;
}
.bp-compact-meta .mono {
  font-family: "Courier Prime", monospace;
  font-size: 0.78rem;
}
.modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: stretch;
  margin-top: 0.75rem;
}
.modal-actions .btn { flex: 1; }
.modal-card--wide { width: min(100%, 520px); text-align: left; }
.modal-card--wide .btn { width: 100%; margin-top: 1rem; }
.modal-card--loading { min-height: 220px; display: grid; place-items: center; gap: 0.75rem; }
.loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #3dffb0;
  animation: spin 0.8s linear infinite;
}
.loader--ok {
  border: 0;
  background: #1ecf8e;
  position: relative;
  animation: none;
}
.loader--ok::after {
  content: "✓";
  color: #04120e;
  font-size: 1.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  height: 100%;
}
.loader--err {
  border: 0;
  background: #e05151;
  animation: none;
  position: relative;
}
.loader--err::after {
  content: "!";
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  height: 100%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.passenger-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 0.55rem;
}
.passenger-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.passenger-list strong { font-family: var(--font-d); }
.passenger-list span { color: var(--muted-2); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  .intro-flash, .site-loader, .site-loader-mark, .site-loader-bar > i, .hero-slide, .hero-aurora, .hero-stage, .hero-scroll span, .logo-mark--hero,
  .live-dot.is-online, .fids-status.is-boarding, .faction-card {
    animation: none !important;
    transition: none !important;
  }
  .hero-slide.is-active { transform: scale(1); }
  .intro-flash, .site-loader { display: none; }
}

/* —— Admin panel —— */
.admin-body .admin-sidebar .badge { margin: 0.75rem 1rem 0; }
.admin-denied-card h1 { color: #ff9b96; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.live-pill.is-online { border-color: rgba(30,207,142,0.45); color: var(--green-2); }
.live-pill.is-offline { border-color: rgba(224,81,81,0.4); color: #ff9b96; }
.admin-tranche {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(30,207,142,0.12), transparent 55%),
    rgba(255,255,255,0.03);
}
.admin-tranche.is-locked {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212,160,23,0.12), transparent 55%),
    rgba(255,255,255,0.03);
}
.admin-tranche.is-unlocked {
  border-color: rgba(30,207,142,0.35);
  box-shadow: 0 0 0 1px rgba(30,207,142,0.08), 0 12px 40px rgba(0,0,0,0.25);
}
.admin-tranche h2 { font-size: 1.35rem; margin: 0.2rem 0 0.35rem; }
.admin-tranche p { margin: 0; color: var(--muted); max-width: 40rem; }
.admin-tranche--sm {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  gap: 0.75rem 1.25rem;
}
.admin-tranche--sm strong { display: block; }
.admin-stats { margin-bottom: 1.25rem; }
.admin-two-col {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .admin-two-col { grid-template-columns: 1fr 1fr; }
}
.admin-kv {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.admin-kv li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.admin-kv span { color: var(--muted); }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-tabs a {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-tabs a em {
  font-style: normal;
  margin-left: 0.35rem;
  color: var(--green-2);
}
.admin-tabs a.is-active {
  background: rgba(30,207,142,0.12);
  border-color: rgba(30,207,142,0.35);
  color: var(--white);
}
.admin-tabs--ferry {
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.admin-tabs--ferry a {
  flex: 1 1 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.95rem 1.15rem;
  font-size: 1.05rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.admin-tabs--ferry a em {
  font-family: var(--font-d);
  font-size: 1.45rem;
  margin-left: 0;
  min-width: 1.5rem;
  text-align: right;
}
.admin-tab-label {
  line-height: 1.2;
}
.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.admin-close-choices {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
.admin-close-choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}
.admin-close-choice input { margin-top: 0.25rem; }
.admin-close-choice strong { display: block; color: var(--white); }
.admin-close-choice em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.admin-close-hour {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.9rem;
}
.admin-close-hour input[type="time"] {
  width: 8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font: inherit;
}
.ferry-close-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.ferry-close-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.ferry-close-overlay-inner {
  text-align: center;
  color: var(--white);
}
.ferry-close-gate {
  width: min(18rem, 70vw);
  height: 0.35rem;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d4a017, #1ecf8e, transparent);
  transform: scaleX(0.15);
  transform-origin: center;
  animation: ferry-gate-close 1.1s ease forwards;
}
.ferry-close-overlay.is-open .ferry-close-gate {
  animation: ferry-gate-close 1.1s ease forwards;
}
@keyframes ferry-gate-close {
  0% { transform: scaleX(0.12); opacity: 0.4; }
  55% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.85; filter: brightness(1.15); }
}
.ferry-close-overlay-inner p {
  font-family: var(--font-d);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
tr[data-ferry-row].is-closing {
  animation: ferry-row-close 0.55s ease forwards;
}
@keyframes ferry-row-close {
  0% { opacity: 1; filter: none; }
  100% { opacity: 0.35; filter: grayscale(0.8); }
}
.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(0,0,0,0.25);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .mono { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 0.8rem; }
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.admin-form-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 700px) {
  .admin-form-grid { grid-template-columns: repeat(3, 1fr); }
}
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-form input,
.admin-form select,
.admin-form textarea,
[data-motif-input] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font: inherit;
}
.admin-inline-input {
  width: 4.5rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font: inherit;
}
.admin-point-bar { margin-top: 1rem; }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1.05rem; }

/* —— Ticket wallet (client) —— */
.ticket-wallet {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  text-align: left;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,248,235,0.96), rgba(240,230,210,0.92));
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font: inherit;
}
.ticket-wallet:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.ticket-wallet-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #111;
  font-size: 1.15rem;
}
.ticket-wallet-body small {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #666;
}
.ticket-wallet-body strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.05rem;
}
.ticket-wallet-body span {
  display: block;
  font-size: 0.86rem;
  color: #444;
  margin-top: 0.15rem;
}
.ticket-wallet-cta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a8f6e;
  white-space: nowrap;
}
.ticket-wallet--accepted { border-color: rgba(10,143,110,0.35); }
.ticket-wallet--rejected { border-color: rgba(176,51,51,0.35); }
.modal-card--ticket {
  width: min(100%, 920px);
  max-height: 92vh;
  overflow: auto;
  background: #0b1412;
  text-align: left;
}
.ticket-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.ticket-modal .boarding-pass { margin: 0; }

/* —— Admin clarity —— */
.nav-section {
  margin: 1rem 1rem 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.admin-hero-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 960px) {
  .admin-hero-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.admin-hero-card {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.admin-hero-card.is-open {
  border-color: rgba(30,207,142,0.4);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(30,207,142,0.14), transparent 60%),
    rgba(255,255,255,0.03);
}
.admin-hero-card.is-closed {
  border-color: rgba(212,160,23,0.35);
}
.admin-hero-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.admin-hero-card h2 small {
  font-size: 0.55em;
  color: var(--muted);
  margin-left: 0.15rem;
}
.admin-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-section {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.admin-section-head h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.admin-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .admin-metric-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .admin-metric-row--wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.admin-metric {
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.admin-metric--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.admin-metric--link:hover,
.admin-metric--link:focus-visible {
  border-color: rgba(30,207,142,0.45);
  background: rgba(30,207,142,0.08);
  transform: translateY(-2px);
  outline: none;
}
.admin-metric--link.is-ok:hover,
.admin-metric--link.is-ok:focus-visible {
  border-color: rgba(30,207,142,0.55);
}
.admin-metric--link.is-warn:hover,
.admin-metric--link.is-warn:focus-visible {
  border-color: rgba(255,180,176,0.45);
  background: rgba(255,100,90,0.08);
}
.admin-metric span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.25rem;
}
.admin-metric strong {
  font-family: var(--font-d);
  font-size: 1.35rem;
}
.admin-top-staff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.admin-top-staff li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.admin-top-rank {
  font-family: var(--font-d);
  color: var(--green-2);
  font-size: 0.95rem;
  min-width: 2rem;
}
.admin-top-staff strong {
  display: block;
  color: var(--white);
}
.admin-top-staff em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.admin-top-score {
  font-family: var(--font-d);
  font-size: 1.2rem;
}
.admin-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.admin-simple-list li {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.admin-ferry-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.admin-ferry-status.is-open { border-color: rgba(30,207,142,0.35); }
.admin-ferry-status.is-closed { border-color: rgba(212,160,23,0.35); }
.admin-ferry-list {
  display: grid;
  gap: 0.75rem;
}
.admin-ferry-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
@media (min-width: 800px) {
  .admin-ferry-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.admin-ferry-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.admin-ferry-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.45rem;
  align-items: center;
}
.admin-ferry-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.admin-search {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.admin-search input {
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font: inherit;
}
.admin-form-card { margin-bottom: 1.25rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* —— Panel status banner —— */
.panel-status-banner {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.85rem;
  border: 1px solid transparent;
}
.panel-status-banner.is-closed {
  background: linear-gradient(105deg, rgba(180, 40, 40, 0.55), rgba(120, 20, 20, 0.35), rgba(40, 10, 10, 0.45));
  border-color: rgba(255, 120, 120, 0.28);
}
.panel-status-banner.is-open {
  background: linear-gradient(105deg, rgba(14, 154, 114, 0.55), rgba(30, 207, 142, 0.28), rgba(6, 106, 85, 0.4));
  border-color: rgba(93, 255, 200, 0.28);
}
.panel-status-banner-main {
  display: grid;
  gap: 0.2rem;
}
.panel-status-banner-main strong { font-family: var(--font-d); font-size: 1.02rem; }
.panel-status-banner-main span { color: rgba(255,255,255,0.88); font-size: 0.92rem; }
.panel-status-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}
.status-pill.is-on { background: rgba(30, 207, 142, 0.25); color: #b8ffe0; }
.status-pill.is-off { background: rgba(224, 81, 81, 0.28); color: #ffc9c4; }

/* —— Règlement categories —— */
.rules-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.rules-toc a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  color: var(--muted);
  transition: 0.2s var(--ease);
}
.rules-toc a:hover { color: #fff; border-color: rgba(93,255,200,0.35); }
.rules-cat { margin-bottom: 0.9rem; scroll-margin-top: 5rem; }
.rules-cat h2 { margin: 0.15rem 0 0.75rem; font-size: 1.25rem; }
.rules-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}
.rules-list li::marker { color: var(--green-2); }

/* —— Admin settings —— */
.settings-hero {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1rem;
}
.settings-state {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}
.settings-state span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.settings-state strong { font-family: var(--font-d); font-size: 1.35rem; }
.settings-state.is-on {
  background: linear-gradient(135deg, rgba(30,207,142,0.22), rgba(6,106,85,0.18));
  border-color: rgba(93,255,200,0.3);
  color: #b8ffe0;
}
.settings-state.is-off {
  background: linear-gradient(135deg, rgba(224,81,81,0.22), rgba(90,20,20,0.2));
  border-color: rgba(255,140,140,0.3);
  color: #ffc9c4;
}
.settings-grid { display: grid; gap: 1rem; }
.settings-card h2 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.settings-toggles { display: grid; gap: 0.75rem; margin-top: 1rem; }
.settings-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.settings-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.settings-toggle-ui {
  width: 3rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #5a1e1e;
  position: relative;
  border: 1px solid rgba(255,120,120,0.35);
  transition: 0.25s var(--ease);
}
.settings-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: #ffb4b0;
  transition: 0.25s var(--ease);
}
.settings-toggle.is-on {
  border-color: rgba(93,255,200,0.28);
  background: rgba(30,207,142,0.08);
}
.settings-toggle.is-on .settings-toggle-ui {
  background: #0d9a72;
  border-color: rgba(93,255,200,0.45);
}
.settings-toggle.is-on .settings-toggle-ui::after {
  left: calc(100% - 1.35rem);
  background: #e8fff4;
}
.settings-toggle.is-off {
  border-color: rgba(255,120,120,0.22);
  background: rgba(224,81,81,0.06);
}
.settings-toggle-copy { display: grid; gap: 0.15rem; }
.settings-toggle-copy strong { font-size: 0.98rem; }
.settings-toggle-copy small { color: var(--muted); font-size: 0.84rem; }
.settings-field {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.settings-field input,
.settings-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font: inherit;
}
.settings-kv {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.settings-kv li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.settings-kv strong { color: var(--white); }
.settings-kv .ok { color: #b8ffe0; }
.settings-kv .bad { color: #ffc9c4; }
.settings-actions { display: flex; justify-content: flex-start; padding-bottom: 2rem; }
