/* ElysiaLife — vert côtier Île d’Arz · simple, moderne, futuriste */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  --bg: #071411;
  --bg-2: #0c1c18;
  --panel: rgba(12, 28, 24, 0.92);
  --white: #eef8f3;
  --muted: #8faba0;
  --muted-2: #5f7a70;
  --green: #2ecf8f;
  --green-2: #6ee0b4;
  --green-deep: #0a5c48;
  --green-mid: #169e72;
  --accent: var(--green);
  --accent-2: var(--green-2);
  --ok: #2ecf8f;
  --wait: #d4a017;
  --bad: #e0615c;
  --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;
  --page-max: 70rem;
  --page-gutter: max(1.25rem, calc((100vw - var(--page-max)) / 2));
  --grad: linear-gradient(135deg, #9af0d0 0%, #4fd9a5 28%, #2ecf8f 55%, #169e72 78%, #0a5c48 100%);
  --grad-btn: linear-gradient(145deg, #8aecd0 0%, #4fd9a5 32%, #2ecf8f 58%, #169e72 85%, #0a5c48 100%);
  --grad-btn-hover: linear-gradient(145deg, #a8f5dc 0%, #62e4b4 32%, #3ad89c 58%, #1eb07f 85%, #0c6b54 100%);
  --grad-soft: linear-gradient(160deg, rgba(110, 224, 180, 0.18), transparent 55%),
    linear-gradient(20deg, rgba(10, 92, 72, 0.4), transparent 50%);
  --grad-bg: radial-gradient(1100px 620px at 10% -8%, rgba(46, 207, 143, 0.14), transparent 58%),
    radial-gradient(900px 500px at 95% 6%, rgba(22, 158, 114, 0.2), transparent 55%),
    radial-gradient(700px 420px at 50% 100%, rgba(10, 92, 72, 0.28), transparent 60%),
    var(--bg);
}

*, *::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(1.85rem, 4vw, 2.6rem);
  height: clamp(1.85rem, 4vw, 2.6rem);
  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;
}

/* Maintenance loader */
.maint-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 400px at 50% 30%, rgba(46, 207, 143, 0.14), transparent 60%),
    #040a08;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.maint-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.maint-loader-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}
.maint-loader-pct {
  margin: 0.15rem 0 0;
  font-family: "Share Tech Mono", var(--font-d), monospace;
  color: var(--green-2);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.maint-shell.is-hidden { opacity: 0; }
.maint-shell.is-shown {
  animation: stage-in 0.7s var(--ease) both;
}
.maint-card {
  max-width: 28rem;
}
@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(46, 207, 143, 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 var(--page-gutter);
  width: 100%;
  box-sizing: border-box;
  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 {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    filter 0.22s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::after { transform: translateX(120%); }
.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.32) inset,
    0 10px 24px rgba(22, 158, 114, 0.3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover,
.btn-red:hover {
  background: var(--grad-btn-hover);
  filter: none;
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 16px 34px rgba(46, 207, 143, 0.4);
}
.btn-primary:active,
.btn-red:active { transform: translateY(0) scale(0.99); }
.btn-discord { background: var(--discord); color: #fff; border-radius: 12px; }
.btn-discord:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.btn-ghost:hover {
  border-color: rgba(110, 224, 180, 0.5);
  background: rgba(46, 207, 143, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 92, 72, 0.22);
}
.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) + 2.5rem)
    var(--page-gutter)
    clamp(2.5rem, 6vw, 4.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(90deg, rgba(3,10,8,0.72) 0%, rgba(3,10,8,0.28) 14%, transparent 28%, transparent 72%, rgba(3,10,8,0.28) 86%, rgba(3,10,8,0.72) 100%),
    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;
  width: min(100%, 36rem);
  max-width: 36rem;
  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: 0.85rem;
  margin-bottom: 0.95rem;
}
.brand-hero {
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.hero-stage h1 {
  font-family: var(--font-b);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: rgba(243, 250, 247, 0.92);
}
.hero-tagline {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  max-width: 34ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero-cta .btn { animation: stage-in 0.9s var(--ease) 1s both; }

.section {
  scroll-margin-top: 5.5rem;
}
.section-ile .split-copy,
.section-framework .section-inner,
.section-factions .section-inner,
.section-vote .section-inner,
.section-equipe .equipe-inner {
  animation: stage-in 0.85s var(--ease) both;
}
.faction-card,
.equipe-card,
.feature-row article {
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.faction-card:hover,
.equipe-card:hover,
.feature-row article:hover {
  transform: translateY(-4px);
}

/* Grand écran : bandes latérales plus marquées, contenu recentré */
@media (min-width: 1280px) {
  :root {
    --page-max: 64rem;
  }
  .hero-flash {
    min-height: min(100svh, 52rem);
  }
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(3,10,8,0.88) 0%, rgba(3,10,8,0.45) 10%, transparent 22%, transparent 78%, rgba(3,10,8,0.45) 90%, rgba(3,10,8,0.88) 100%),
      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.9) 100%),
      radial-gradient(ellipse 80% 50% at 70% 45%, transparent 30%, rgba(4, 18, 14, 0.35) 100%);
  }
}
@media (min-width: 1600px) {
  :root {
    --page-max: 60rem;
  }
}

.hero-scroll {
  position: absolute; bottom: 1.4rem; right: var(--page-gutter);
  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: var(--page-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}
.split { display: grid; min-height: 60vh; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 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: #6ee0b4; }
.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(46, 207, 143, 0.12), transparent 55%);
}
.ferry-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: 3rem 1.5rem;
  width: min(100%, 40rem);
  margin-right: auto;
  margin-left: var(--page-gutter);
}
.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-ile .ile-plain {
  max-width: 42rem;
}
.section-equipe {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(46, 207, 143, 0.12), transparent 55%),
    #08110f;
}
.equipe-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-equipe h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.equipe-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
@media (min-width: 720px) {
  .equipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .equipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.equipe-card {
  padding: 1.2rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 22, 18, 0.55);
  backdrop-filter: blur(10px);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.equipe-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 224, 180, 0.35);
  background: rgba(12, 32, 26, 0.72);
}
.equipe-role {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--green-2);
  background: rgba(46, 207, 143, 0.12);
  border: 1px solid rgba(46, 207, 143, 0.25);
}
.equipe-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.equipe-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.1rem 0 0.35rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.18s var(--ease);
}
.footer-links a:hover { color: var(--green-2); }

.site-footer {
  padding: 2.5rem var(--page-gutter);
  border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
  background: #050a09;
  max-width: none;
}
.site-footer .footer-brand-row,
.site-footer .footer-note {
  max-width: var(--page-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.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:
    radial-gradient(900px 480px at 20% 0%, rgba(46, 207, 143, 0.14), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(10, 92, 72, 0.28), transparent 50%),
    linear-gradient(180deg, #071411, #040a08);
}
.maint-body {
  background:
    radial-gradient(900px 480px at 50% 10%, rgba(46, 207, 143, 0.12), transparent 55%),
    #040a08;
}
.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(46, 207, 143, 0.28);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(46, 207, 143, 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(46,207,143,0.12); border: 1px solid rgba(46,207,143,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 —— */
.panel-body { background: var(--bg); }
.panel-layout { display: grid; min-height: 100vh; }
@media (min-width: 900px) { .panel-layout { grid-template-columns: 256px 1fr; } }
.panel-sidebar {
  padding: 1.15rem 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  display: flex; flex-direction: column; gap: 0.8rem;
}
@media (min-width: 900px) {
  .panel-sidebar {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none;
  }
}
.panel-nav .nav-group {
  margin: 0.65rem 0 0.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-nav .nav-group:first-child {
  margin-top: 0.2rem;
}
.panel-nav .nav-group:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}
.panel-nav .nav-section {
  margin: 0 0 0.4rem;
  padding: 0 0.75rem 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  border-bottom: 1px solid rgba(46, 207, 143, 0.35);
}
.panel-user { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--muted); font-size: 0.9rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.badge {
  display: inline-flex; align-self: flex-start;
  padding: 0.25rem 0.65rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}
.badge-ok { background: rgba(46,207,143,0.15); color: #7dffb8; }
.badge-wait { background: rgba(212,160,23,0.15); color: #ffd56a; }
.badge-bad { background: rgba(224,81,81,0.15); color: #ff9b96; }
.badge-mute { background: rgba(255,255,255,0.06); color: var(--muted); }
.panel-nav { display: grid; gap: 0.2rem; margin-top: 0.5rem; }
.panel-nav a {
  padding: 0.55rem 0.75rem; border-radius: 10px; color: rgba(238, 248, 243, 0.72); font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.panel-nav a:hover { background: rgba(46, 207, 143, 0.08); color: #fff; transform: translateX(2px); }
.panel-nav a.is-active {
  background: rgba(46, 207, 143, 0.12);
  color: #fff;
  border-color: rgba(46, 207, 143, 0.22);
  box-shadow: inset 3px 0 0 var(--green);
}
.panel-side-foot {
  margin-top: auto;
  display: grid;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.panel-side-foot a,
.side-foot-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.7rem;
  border-radius: 11px;
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.side-foot-ico {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.side-foot-label { display: grid; gap: 0.02rem; min-width: 0; }
.side-foot-label strong { font-size: 0.82rem; font-weight: 650; line-height: 1.2; }
.side-foot-label small { font-size: 0.7rem; color: rgba(238, 248, 243, 0.55); line-height: 1.2; }
.side-foot-btn--primary { background: rgba(46, 207, 143, 0.12); border-color: rgba(46, 207, 143, 0.28); }
.side-foot-btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.side-foot-btn--danger { background: rgba(224, 97, 92, 0.1); border-color: rgba(224, 97, 92, 0.28); }
.side-foot-btn:hover,
.panel-side-foot a:hover {
  background: rgba(46, 207, 143, 0.14);
  border-color: rgba(46, 207, 143, 0.32);
  transform: translateY(-1px);
}
.panel-main { padding: clamp(1.1rem, 2.4vw, 1.85rem) clamp(1rem, 2.6vw, 2rem) 2.4rem; }
.panel-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem; align-items: end;
}
.panel-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.panel-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.25rem 0; border-radius: 0; margin-bottom: 1.25rem;
  border: 0; border-bottom: 1px solid var(--line);
}
.status-banner h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.status-banner p { margin: 0; color: var(--muted); font-weight: 300; max-width: 40rem; }
.status-banner--ok h2 { color: var(--green-2); }
.status-banner--wait h2 { color: #ffd56a; }
.status-banner--bad h2 { color: #ff9b96; }
.panel-grid { display: grid; gap: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 800px) { .panel-grid { grid-template-columns: 1fr 1fr; } }
.panel-card {
  padding: 0 0 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  margin-bottom: 1.25rem;
}
.panel-card h3 { font-size: 1.2rem; margin-bottom: 0.85rem; }
.hint { color: var(--muted-2); font-size: 0.88rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.timeline li { display: grid; gap: 0.15rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-d); font-weight: 700; color: var(--green-2); letter-spacing: 0.04em; }
.timeline span { color: var(--muted); font-weight: 300; font-size: 0.92rem; }
.schedule-table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.schedule-table th, .schedule-table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); }
.schedule-table th { color: var(--muted-2); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.schedule-table tr.is-accept td { color: #b8ffd9; }
.prose ol, .steps-ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.55rem; color: rgba(255,255,255,0.85); }
.empty-state { text-align: left; padding: 1.5rem 0; }

.ticket {
  border-radius: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(46,207,143,0.35);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  background: transparent;
}
.ticket--ok { border-top-color: rgba(46,207,143,0.7); }
.ticket--wait { border-top-color: rgba(212,160,23,0.7); }
.ticket--bad { border-top-color: rgba(224,81,81,0.7); }
.ticket-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 0; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.ticket-status { color: #fff; font-weight: 700; }
.ticket-body { padding: 0.5rem 0 1.25rem; }
.ticket-body h2 { font-size: 2rem; margin-bottom: 0.35rem; }
.ticket-meta { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; }
@media (min-width: 600px) { .ticket-meta { grid-template-columns: repeat(3, 1fr); } }
.ticket-meta dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.ticket-meta dd { margin: 0.2rem 0 0; font-family: var(--font-d); font-weight: 600; }
.ticket-note { margin-top: 1rem; color: #ffb4b0; }
.ticket-foot {
  padding: 0.85rem 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.friend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.friend-list li {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.inline-forms { display: flex; gap: 0.4rem; }

/* —— Panel top live strip (style Panelis) —— */
.panel-topbar {
  display: block;
  margin-bottom: 1.35rem;
  padding-bottom: 0;
  border-bottom: 0;
}
.panel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
}
.server-status-pill {
  position: relative;
  appearance: none;
  border: 1px solid rgba(93, 255, 200, 0.28);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.server-status-pill:hover {
  background: rgba(46, 207, 143, 0.08);
  border-color: rgba(93, 255, 200, 0.45);
  transform: translateY(-1px);
}
.server-status-copy { display: grid; gap: 0.05rem; min-width: 0; }
.server-status-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.server-status-title .muted-slash { color: var(--muted); margin: 0 0.1rem; }
.server-status-ip {
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.copy-ico { opacity: 0.7; }
.copy-toast {
  position: absolute;
  top: -0.55rem;
  right: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #04140f;
  background: var(--green-2);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}
.weather-display-card,
.clock-display-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.weather-display-card:hover,
.clock-display-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}
.weather-ico { font-size: 1.05rem; line-height: 1; }
.weather-temp,
.clock-time {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.15;
}
.weather-sub,
.clock-tz {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: none;
}
.clock-ico { color: var(--muted); display: grid; place-items: center; }
.clock-time {
  font-family: "Share Tech Mono", var(--font-d), monospace;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.btn-join-server {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(93, 255, 200, 0.18), 0 8px 24px rgba(14, 154, 114, 0.28);
  white-space: nowrap;
}
.btn-join-server:hover { filter: brightness(1.06); }

.live-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #666;
  position: relative;
  flex-shrink: 0;
}
.live-dot.is-online { background: var(--green-2); }
.live-dot.is-online::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green-2);
  opacity: 0.75;
  animation: pulse-radar 1.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}
.live-dot.is-offline { background: #e05151; }
@keyframes pulse-radar {
  0% { transform: scale(0.85); opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,255,176,0.45); }
  50% { box-shadow: 0 0 0 8px rgba(61,255,176,0); }
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  margin-left: auto;
  transition: 0.25s var(--ease);
}
.profile-chip:hover, .profile-chip.is-active {
  border-color: rgba(46,207,143,0.5);
  background: linear-gradient(135deg, rgba(46,207,143,0.16), rgba(255,255,255,0.03));
  transform: translateY(-1px);
}
.profile-chip-text { display: grid; line-height: 1.2; }
.profile-chip-text strong { font-size: 0.9rem; }
.profile-chip-text small { color: var(--muted-2); font-size: 0.7rem; }
.avatar--md { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.avatar--fallback {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a3a32, #0d1f1a);
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .weather-display-card { display: none; }
}
@media (max-width: 820px) {
  .btn-join-server span { display: none; }
  .profile-chip-text small { display: none; }
}
@media (max-width: 560px) {
  .clock-display-card { display: none; }
}

.hover-glow {
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.hover-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(46, 207, 143, 0.12);
}

.empty-panel {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(46,207,143,0.08), transparent 60%);
}
.empty-panel--wait {
  background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.1), transparent 60%);
}
.empty-panel--bad {
  background: radial-gradient(ellipse at 50% 0%, rgba(224,81,81,0.1), transparent 60%);
}
.empty-panel-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-panel h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.empty-panel p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; font-weight: 300; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.stat-card:hover {
  border-color: rgba(46,207,143,0.45);
  background: linear-gradient(160deg, rgba(46,207,143,0.16), rgba(10,143,110,0.05));
}
.stat-emoji { font-size: 1.55rem; }
.stat-card small {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-card strong { font-family: var(--font-d); font-size: 1.35rem; }

.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(46,207,143,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(46,207,143,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(46,207,143,0.35);
  background: linear-gradient(135deg, rgba(46,207,143,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(46,207,143,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(46,207,143,0.07); }
.airport-row.is-mine {
  background: rgba(46,207,143,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(46,207,143,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(46, 207, 143, 0.35);
  box-shadow: 0 0 40px rgba(46, 207, 143, 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(46, 207, 143, 0.08);
  border: 1px solid rgba(46, 207, 143, 0.2);
  color: #c8ffe0 !important;
  font-size: 0.92rem !important;
}
.modal-card .btn { width: 100%; margin-top: 0.35rem; }
.bp-note--info {
  background: rgba(46, 207, 143, 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: #2ecf8f;
  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(46,207,143,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(46,207,143,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(46,207,143,0.35);
  box-shadow: 0 0 0 1px rgba(46,207,143,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(46,207,143,0.12);
  border-color: rgba(46,207,143,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, #2ecf8f, 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; }
.admin-point-bar--top {
  margin-top: 0;
  margin-bottom: 1rem;
  border-color: rgba(46, 207, 143, 0.28);
}
.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(46,207,143,0.4);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(46,207,143,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(46,207,143,0.45);
  background: rgba(46,207,143,0.08);
  transform: translateY(-2px);
  outline: none;
}
.admin-metric--link.is-ok:hover,
.admin-metric--link.is-ok:focus-visible {
  border-color: rgba(46,207,143,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(46,207,143,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);
}
.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-start;
}
.admin-ferry-card-actions--top {
  padding-bottom: 0.65rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.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(46, 207, 143, 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(46, 207, 143, 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(46,207,143,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: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.settings-card-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}
.settings-card-head h2 { margin: 0; }
.settings-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 280px;
  min-width: 240px;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.settings-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.settings-toggle-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: 0.2s var(--ease);
}
.settings-toggle.is-on .settings-toggle-badge {
  background: rgba(46, 207, 143, 0.16);
  border-color: rgba(46, 207, 143, 0.35);
  color: #9af0d0;
}
.settings-toggle.is-off .settings-toggle-badge {
  background: rgba(224, 97, 92, 0.14);
  border-color: rgba(224, 97, 92, 0.32);
  color: #ffb4b0;
}
.settings-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.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(46,207,143,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; }
.settings-field select {
  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;
}

/* —— Panel mode développement (vide) —— */
.panel-dev-hero {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0 2rem;
  min-height: min(62vh, 520px);
  border-radius: 22px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 80, 80, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(28, 10, 10, 0.92), rgba(8, 12, 14, 0.96));
  animation: panel-dev-in 0.55s var(--ease) both;
}
.panel-dev-hero--green {
  border-color: rgba(93, 255, 200, 0.28);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(46, 207, 143, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(8, 28, 22, 0.92), rgba(8, 12, 14, 0.96));
}
.panel-dev-hero--amber {
  border-color: rgba(255, 186, 80, 0.32);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 170, 60, 0.2), transparent 55%),
    linear-gradient(160deg, rgba(32, 22, 8, 0.92), rgba(8, 12, 14, 0.96));
}
.panel-dev-hero-glow {
  position: absolute;
  inset: auto 10% -40% 10%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 90, 90, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.panel-dev-hero--green .panel-dev-hero-glow {
  background: radial-gradient(circle, rgba(93, 255, 200, 0.16), transparent 70%);
}
.panel-dev-hero--amber .panel-dev-hero-glow {
  background: radial-gradient(circle, rgba(255, 186, 80, 0.16), transparent 70%);
}
.panel-dev-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.panel-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 140, 140, 0.4);
  color: #ffc9c4;
  background: rgba(120, 20, 20, 0.35);
}
.panel-dev-hero--green .panel-dev-badge {
  border-color: rgba(93, 255, 200, 0.35);
  color: #b8ffe0;
  background: rgba(10, 80, 60, 0.35);
}
.panel-dev-hero--amber .panel-dev-badge {
  border-color: rgba(255, 186, 80, 0.4);
  color: #ffe0a8;
  background: rgba(90, 55, 10, 0.35);
}
.panel-dev-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.55);
  animation: panel-dev-pulse 1.6s ease-out infinite;
}
.panel-dev-hero--green .panel-dev-dot {
  background: #6ee0b4;
  box-shadow: 0 0 0 0 rgba(93, 255, 200, 0.55);
}
.panel-dev-hero--amber .panel-dev-dot {
  background: #ffba50;
  box-shadow: 0 0 0 0 rgba(255, 186, 80, 0.55);
}
.panel-dev-hero h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  line-height: 1.15;
  color: #fff;
}
.panel-dev-hero--red h2 { color: #ffd0cc; }
.panel-dev-hero--green h2 { color: #d6fff0; }
.panel-dev-hero--amber h2 { color: #ffe8c2; }
.panel-dev-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 300;
}
.panel-dev-points {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
  width: min(100%, 28rem);
}
.panel-dev-points li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: #d7e8df;
  font-size: 0.92rem;
}
.panel-dev-points li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: currentColor;
  opacity: 0.7;
}
.panel-dev-hero--red .panel-dev-points li::before { background: #ff8a80; }
.panel-dev-hero--green .panel-dev-points li::before { background: #6ee0b4; }
.panel-dev-hero--amber .panel-dev-points li::before { background: #ffba50; }
.panel-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.35rem;
}
@keyframes panel-dev-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-dev-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.feature-closed-card {
  margin: 1.5rem auto 2rem;
  max-width: 34rem;
  text-align: center;
  padding: 2.4rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 140, 140, 0.22);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 90, 90, 0.12), transparent 55%),
    rgba(10, 14, 16, 0.85);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  animation: panel-dev-in 0.45s var(--ease) both;
}
.feature-closed-ico {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffb4ae;
  background: rgba(120, 30, 30, 0.35);
  border: 1px solid rgba(255, 140, 140, 0.3);
}
.feature-closed-card h1 {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}
.feature-closed-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}
.panel-nav a.is-dim {
  opacity: 0.55;
}

.auth-sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.1rem 0 0.85rem;
}

/* —— Communauté HRP / Forum / MP / Support —— */
.nav-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--grad-btn, var(--grad));
  color: #04120e;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
}
.hrp-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background:
    linear-gradient(120deg, rgba(212, 160, 23, 0.14), transparent 55%),
    rgba(20, 16, 8, 0.65);
}
.hrp-banner strong { display: block; margin-bottom: 0.35rem; color: #ffd37a; }
.hrp-banner p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hrp-banner--slim {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}
.hrp-banner--slim strong { display: inline; margin: 0 0.35rem 0 0; }

.xf-board { display: grid; gap: 0.65rem; }
.xf-cat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(93, 255, 200, 0.06), transparent 40%), rgba(8, 18, 15, 0.75);
  transition: 0.25s var(--ease);
}
.xf-cat:hover {
  border-color: rgba(93, 255, 200, 0.28);
  transform: translateY(-2px);
}
.xf-cat-ico { font-size: 1.6rem; }
.xf-cat-body { display: grid; gap: 0.2rem; min-width: 0; }
.xf-cat-body strong { font-size: 1.08rem; }
.xf-cat-body em { color: var(--muted); font-style: normal; font-size: 0.9rem; font-weight: 300; }
.xf-cat-last { color: var(--muted-2); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xf-cat-stats { display: grid; gap: 0.2rem; text-align: right; color: var(--muted); font-size: 0.8rem; }
.xf-cat-stats b { color: var(--green-2); }

.xf-thread-list { list-style: none; margin: 0; padding: 0; }
.xf-thread-list li { border-bottom: 1px solid var(--line); }
.xf-thread-list li:last-child { border-bottom: 0; }
.xf-thread-list a {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 0.25rem;
  transition: 0.2s;
}
.xf-thread-list a:hover { padding-left: 0.4rem; }
.xf-thread-list .is-pinned a { background: rgba(93, 255, 200, 0.04); }
.xf-thread-title { font-weight: 600; }
.xf-thread-meta { color: var(--muted-2); font-size: 0.82rem; }
.xf-flag { margin-right: 0.25rem; }

.xf-posts { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.xf-post {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .xf-cat { grid-template-columns: auto 1fr; }
  .xf-cat-stats { grid-column: 2; text-align: left; grid-auto-flow: column; grid-template-columns: auto auto; gap: 0.75rem; }
  .xf-post { grid-template-columns: 1fr; }
}
.xf-post-author { display: grid; gap: 0.35rem; justify-items: start; }
.xf-post-author time { color: var(--muted-2); font-size: 0.75rem; }
.xf-avatar {
  width: 3.2rem; height: 3.2rem; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line);
}
.xf-avatar--empty {
  display: grid; place-items: center; background: rgba(255,255,255,0.05); font-size: 1.4rem;
}
.xf-sig {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--muted-2);
  font-size: 0.82rem;
  font-style: italic;
}
.hrp-content { line-height: 1.65; word-break: break-word; }
.hrp-content strong { color: #e8fff4; font-weight: 700; }
.hrp-content a { color: var(--green-2); text-decoration: underline; }

.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.pm-list a {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.pm-list .is-unread a { background: rgba(93, 255, 200, 0.06); border-radius: 8px; }
.pm-list strong { font-size: 1.02rem; }
.pm-list span { color: var(--muted); font-size: 0.85rem; }
.pm-list em { color: var(--muted-2); font-style: normal; font-size: 0.88rem; }
.pm-list time { color: var(--muted-2); font-size: 0.75rem; }

.pm-thread { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.pm-bubble {
  max-width: min(100%, 40rem);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 15, 0.8);
}
.pm-bubble.is-me {
  margin-left: auto;
  border-color: rgba(93, 255, 200, 0.25);
  background: linear-gradient(145deg, rgba(93, 255, 200, 0.12), rgba(8, 18, 15, 0.9));
}
.pm-bubble header {
  display: flex; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.4rem; font-size: 0.82rem; color: var(--muted);
}

.support-thread { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.support-msg.is-staff {
  border-color: rgba(93, 255, 200, 0.28);
  background: linear-gradient(155deg, rgba(93, 255, 200, 0.1), rgba(8, 18, 15, 0.92));
}
.support-msg-head {
  display: flex; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.55rem; color: var(--muted); font-size: 0.85rem;
}
.support-atts {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem;
}
.support-att img {
  width: 7.5rem; height: 7.5rem; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.support-att-video {
  max-width: min(100%, 360px);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.admin-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.admin-tab.is-active,
.admin-tab:hover {
  color: #fff;
  border-color: rgba(93, 255, 200, 0.4);
  background: rgba(93, 255, 200, 0.08);
}
.mono { font-family: "Share Tech Mono", ui-monospace, monospace; letter-spacing: 0.04em; }

/* —— Panel home refonte —— */
.panel-important {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}
@media (min-width: 720px) {
  .panel-important { grid-template-columns: 1fr 1.2fr; }
}
.panel-important-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(93, 255, 200, 0.16);
  background: linear-gradient(145deg, rgba(93, 255, 200, 0.08), rgba(8, 18, 15, 0.9));
}
.panel-important-item--update {
  border-color: rgba(212, 160, 23, 0.22);
  background: linear-gradient(145deg, rgba(212, 160, 23, 0.1), rgba(18, 14, 8, 0.92));
}
.panel-important-ico { font-size: 1.15rem; line-height: 1.4; }
.panel-important-item small {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.panel-important-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.ticket-compact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.ticket-compact-bar strong { display: block; }
.ticket-fade-hint { margin: -0.35rem 0 1.1rem; }

.situation-card { margin-bottom: 1.25rem; }
.situation-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 1rem;
}
.situation-head h3 { margin: 0; }
.situation-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.situation-grid article {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 0.2rem;
}
.situation-grid small { color: var(--muted-2); font-size: 0.75rem; }
.situation-grid strong { font-size: 1.15rem; }
.situation-grid .stat-emoji { font-size: 1.1rem; }
.situation-id em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 300;
}

.home-community { margin-top: 0.5rem; }
.home-community h3 { margin: 0 0 0.85rem; font-size: 1.15rem; }
.home-community-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .home-community-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-community-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(93, 255, 200, 0.14);
  background: linear-gradient(155deg, rgba(93, 255, 200, 0.07), rgba(8, 18, 15, 0.92));
  transition: 0.25s var(--ease);
}
.home-community-card:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 255, 200, 0.3);
}
.home-community-card strong { font-size: 1.02rem; }
.home-community-card span { color: var(--muted); font-size: 0.88rem; font-weight: 300; }

/* —— Panel strip left / right (météo + reboot à droite) —— */
.panel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.panel-strip-left,
.panel-strip-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
}
.panel-strip-right { margin-left: auto; }
.reboot-display-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.06);
}
.reboot-ico { font-size: 1.05rem; line-height: 1; }
.reboot-time {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.15;
}
.reboot-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-chip { margin-left: 0; }

@media (max-width: 1100px) {
  .weather-display-card { display: inline-flex; }
}
@media (max-width: 820px) {
  .panel-strip { gap: 0.5rem; }
  .reboot-sub { display: none; }
  .btn-join-server span:last-child { display: inline; }
}
@media (max-width: 640px) {
  .panel-strip-right .clock-display-card { display: none; }
  .profile-chip-text small { display: none; }
  .weather-sub { display: none; }
}

/* —— Mobile panel nav —— */
.panel-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.panel-nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.panel-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e8fff4;
  border-radius: 2px;
}
.nav-locked-hint {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.panel-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
}
.feature-closed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 899px) {
  .panel-nav-toggle { display: grid; }
  .panel-sidebar .badge,
  .panel-sidebar .panel-nav,
  .panel-sidebar .panel-side-foot {
    display: none;
  }
  .panel-sidebar.is-nav-open .badge,
  .panel-sidebar.is-nav-open .panel-nav,
  .panel-sidebar.is-nav-open .panel-side-foot {
    display: flex;
  }
  .panel-sidebar.is-nav-open .panel-nav { display: grid; }
  .panel-sidebar.is-nav-open {
    position: sticky;
    top: 0;
    z-index: 40;
    max-height: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  }
  .panel-main { padding: 1rem 0.9rem 2.5rem; }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .panel-header-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .panel-header-actions .btn { flex: 1 1 auto; justify-content: center; }
  .airport-board { overflow-x: auto; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
}

/* —— Accueil débutant / réaliste —— */
.panel-lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 300;
  max-width: 36rem;
}
.welcome-hero {
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(93, 255, 200, 0.16);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(93,255,200,0.12), transparent 55%),
    linear-gradient(160deg, rgba(12,28,24,0.95), rgba(8,14,12,0.98));
}
.welcome-hero h2 { margin: 0.2rem 0 0.55rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.welcome-hero p { margin: 0; color: var(--muted); max-width: 40rem; font-weight: 300; }
.starter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
@media (min-width: 720px) {
  .starter-grid { grid-template-columns: repeat(4, 1fr); }
}
.starter-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: 0.25s var(--ease);
  min-height: 7.2rem;
}
.starter-card span { font-size: 1.35rem; }
.starter-card strong { color: #fff; font-size: 0.98rem; }
.starter-card em { color: var(--muted); font-style: normal; font-size: 0.8rem; font-weight: 300; }
.starter-card:hover {
  border-color: rgba(93,255,200,0.35);
  transform: translateY(-2px);
  background: rgba(46,207,143,0.08);
}
.starter-note { margin-top: 0.5rem; }
.starter-note h3 { margin: 0 0 0.4rem; }
.starter-note p { margin: 0; color: var(--muted); font-weight: 300; }
.home-welcome-banner { align-items: center; }
.home-welcome-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.home-basics { margin-top: 1.25rem; }
.home-basics h3 { margin: 0 0 0.65rem; font-size: 1.05rem; }
.home-basics-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.btn-danger {
  background: rgba(224, 81, 81, 0.16);
  color: #ffb4b0;
  border: 1px solid rgba(224, 81, 81, 0.35);
}
.btn-danger:hover { background: rgba(224, 81, 81, 0.28); filter: none; }

/* —— Forum optimisé —— */
.xf-board { gap: 0.75rem; }
.xf-cat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(93, 255, 200, 0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(8,16,14,0.9));
  transition: 0.25s var(--ease);
}
.xf-cat:hover {
  border-color: rgba(93, 255, 200, 0.32);
  transform: translateY(-1px);
  background: linear-gradient(145deg, rgba(46,207,143,0.1), rgba(8,16,14,0.92));
}
.xf-cat-ico {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(46,207,143,0.1);
  font-size: 1.35rem;
}
@media (max-width: 700px) {
  .xf-cat { grid-template-columns: auto 1fr; }
  .xf-cat-stats {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    text-align: left;
  }
  .starter-grid { grid-template-columns: 1fr; }
  .home-welcome-actions { width: 100%; }
  .home-welcome-actions .btn { flex: 1; justify-content: center; }
}

/* Landing / site mobile polish */
@media (max-width: 700px) {
  .hero-cta { display: grid; gap: 0.65rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .topnav { display: none; }
}

/* —— Espace citoyen (inspiration Panelis) —— */
.citoyen-header h1 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); }
.citoyen-status-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.citoyen-status-card--ok {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(145deg, rgba(34,197,94,0.12), rgba(8,16,14,0.9));
}
.citoyen-status-card--wait {
  border-color: rgba(217, 119, 6, 0.3);
  background: linear-gradient(145deg, rgba(217,119,6,0.1), rgba(8,16,14,0.9));
}
.citoyen-status-card h2 { margin: 0.15rem 0 0.4rem; font-size: 1.25rem; }
.citoyen-status-card p { margin: 0; color: var(--muted); font-weight: 300; }
.citoyen-empty-card {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.08), transparent 60%);
  margin-bottom: 1.25rem;
}
.citoyen-empty-card--bad {
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,0.1), transparent 60%);
}
.citoyen-empty-ico { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.citoyen-empty-card h2 { margin: 0 0 0.55rem; }
.citoyen-empty-card p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.1rem; font-weight: 300; }
.citoyen-empty-card blockquote {
  margin: 0 auto 1rem;
  max-width: 32rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-left: 3px solid #dc2626;
  background: rgba(220,38,38,0.08);
  color: #ffb4b0;
  font-style: italic;
  text-align: left;
}
.citoyen-empty-inline {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.2);
}
.citoyen-empty-inline > span { font-size: 1.6rem; line-height: 1; }
.citoyen-empty-inline strong { display: block; margin-bottom: 0.25rem; }
.citoyen-empty-inline p { margin: 0 0 0.75rem; color: var(--muted); font-weight: 300; font-size: 0.92rem; }
.citoyen-stats article { min-height: 5.5rem; }
.reboot-cycles { margin-top: 1.1rem; }
.reboot-cycle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
@media (min-width: 700px) {
  .reboot-cycle-list { grid-template-columns: repeat(4, 1fr); }
}
.reboot-cycle-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.reboot-cycle-list li.is-next {
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
}
.reboot-cycle-list strong { font-size: 1.05rem; }
.reboot-cycle-list em { color: var(--muted); font-style: normal; font-size: 0.78rem; }
.reboot-update-hint { margin: 0.85rem 0 0; }

/* —— Roles admin UI —— */
.roles-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1100px) {
  .roles-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}
.perm-grid {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  margin: 1rem 0;
  display: grid;
  gap: 0.35rem;
  max-height: 28rem;
  overflow: auto;
}
.perm-grid legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.perm-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}
.perm-check:hover { background: rgba(46,207,143,0.06); }
.perm-check input { margin-top: 0.25rem; }
.perm-check strong { display: block; font-size: 0.88rem; }
.perm-check small { display: block; color: var(--muted); font-size: 0.78rem; }
.roles-list { display: grid; gap: 0.85rem; }
.role-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(8, 22, 18, 0.55);
}
.role-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.role-card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.perm-tags {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.perm-tags li {
  font-size: 0.72rem;
  font-family: "Share Tech Mono", monospace;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(46,207,143,0.08);
  color: var(--green-2);
}
.perm-tags li.is-empty { opacity: 0.6; font-style: italic; }
.btn-danger {
  border-color: rgba(224,81,81,0.45);
  color: #ffb4b0;
}
.btn-danger:hover {
  background: rgba(224,81,81,0.15);
}

/* —— Dashboard citoyen (maquette) —— */
.panel-side-user {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  margin: 0.15rem 0 0.35rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 36, 30, 0.95), rgba(8, 18, 14, 0.88));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.panel-side-user:hover {
  border-color: rgba(46, 207, 143, 0.35);
  background: linear-gradient(145deg, rgba(22, 44, 36, 0.98), rgba(10, 22, 18, 0.92));
}
.avatar--side {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(46, 207, 143, 0.25);
}
.panel-side-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}
.panel-side-user-name {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-side-user-status {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.panel-side-user.is-citoyen .panel-side-user-status {
  background: rgba(46,207,143,0.15);
  color: #7dffb8;
}
.panel-side-user.is-wait .panel-side-user-status {
  background: rgba(212,160,23,0.15);
  color: #ffd56a;
}
.panel-side-user.is-bad .panel-side-user-status,
.panel-side-user.is-dev .panel-side-user-status {
  background: rgba(224,81,81,0.15);
  color: #ff9b96;
}
.panel-side-user-uid {
  font-size: 0.72rem;
  color: var(--muted-2);
  opacity: 0.9;
}
.panel-side-server {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  margin: 0.15rem 0;
  border-radius: 12px;
  border: 1px solid rgba(46, 207, 143, 0.18);
  background: rgba(46, 207, 143, 0.06);
}
.panel-side-server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 207, 143, 0.2);
  flex-shrink: 0;
}
.panel-side-server strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}
.panel-side-server small {
  color: var(--muted);
  font-size: 0.7rem;
}
.settings-preset-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 800px) {
  .settings-preset-grid { grid-template-columns: 1fr 1fr; }
}
.settings-preset-grid .full { grid-column: 1 / -1; }
.devblog-list { display: grid; gap: 0.75rem; }
.devblog-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.devblog-card h2 { margin: 0.2rem 0 0.35rem; font-size: 1.15rem; }
.devblog-card.is-unread {
  border-color: rgba(46, 207, 143, 0.4);
  box-shadow: inset 3px 0 0 var(--green);
}
.devblog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.devblog-body { white-space: pre-wrap; line-height: 1.55; }

@media (max-width: 899px) {
  .panel-sidebar .panel-side-user,
  .panel-sidebar .panel-side-server {
    display: none;
  }
  .panel-sidebar.is-nav-open .panel-side-user,
  .panel-sidebar.is-nav-open .panel-side-server {
    display: flex;
  }
}
.nav-staff { color: #f0d060 !important; }
.citoyen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  background: rgba(46, 207, 143, 0.12);
  border: 1px solid rgba(46, 207, 143, 0.28);
  color: var(--green-2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.citoyen-header--dash {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.citoyen-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.citoyen-stats-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.25rem;
}
@media (min-width: 700px) {
  .citoyen-stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .citoyen-stats-row { grid-template-columns: repeat(6, 1fr); }
}
.citoyen-stat-card {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 18, 0.55);
  display: grid;
  gap: 0.25rem;
  min-height: 5.8rem;
}
.citoyen-stat-card .stat-emoji { font-size: 1.25rem; }
.citoyen-stat-card small { color: var(--muted-2); font-size: 0.75rem; }
.citoyen-stat-card strong { font-size: 1.2rem; font-weight: 700; }
.citoyen-stat-card--status strong { color: var(--green-2); }
.citoyen-empty-inline--stats { grid-column: 1 / -1; margin: 0; }
.citoyen-meta-line { margin: -0.5rem 0 1rem; }
.citoyen-ticket-section { margin-bottom: 1.5rem; }
.citoyen-ticket-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.85rem;
}
.citoyen-ticket-head h3 { margin: 0; }
.ferry-cta-card { text-align: center; }
.ferry-cta-steps {
  text-align: left;
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-weight: 300;
}
.ferry-cta-steps li { margin: 0.35rem 0; }
.input-locked {
  opacity: 0.85;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.22) !important;
}
label.is-locked small.hint { display: block; margin-top: 0.25rem; }
.support-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.perm-group { margin-bottom: 0.75rem; }
.perm-group-title {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.notif-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}
.notif-list li.is-unread {
  border-color: rgba(46, 207, 143, 0.35);
  background: rgba(46, 207, 143, 0.08);
}
.notif-list p { margin: 0.25rem 0; color: var(--muted); font-weight: 300; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: flex-start; }
.nav-cta-ferry {
  background: rgba(46, 207, 143, 0.12) !important;
  border: 1px solid rgba(46, 207, 143, 0.3);
  border-radius: 10px;
  font-weight: 600;
}
.nav-ferry-btn { margin: 0.35rem 0.85rem; }
.nav-locked-hint {
  display: block;
  padding: 0.35rem 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.pm-list li { position: relative; }
.pm-delete-form { position: absolute; top: 0.55rem; right: 0.55rem; }
