﻿:root {
  --bg: #070a0e;
  --bg2: #0b1017;
  --fg: #e7edf5;
  --muted: rgba(231, 237, 245, 0.72);
  --faint: rgba(231, 237, 245, 0.12);
  --edge: rgba(231, 237, 245, 0.14);
  --edge2: rgba(231, 237, 245, 0.22);
  --accent: #83f0c9;
  --accent2: #a6b2ff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);

  --radius: 16px;
  --radius2: 22px;

  --maxw: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  min-height: 100%;
  /* background: radial-gradient(1200px 700px at 20% -10%, rgba(131, 240, 201, 0.10), transparent 58%),
    radial-gradient(900px 600px at 85% 10%, rgba(166, 178, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2)); */
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(131, 240, 201, 0.10), transparent 58%),
    radial-gradient(900px 600px at 85% 10%, rgba(166, 178, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  position: relative;

  z-index: 0;
}

/* Color blur layer (keeps the old vibe even with an image background). */
html::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(131, 240, 201, 0.10), transparent 58%),
    radial-gradient(900px 600px at 85% 10%, rgba(166, 178, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  filter: blur(55px);
  opacity: 0.45;
  mix-blend-mode: soft-light;
  pointer-events: none;
  /* Above the background image; subtle tint over the whole page. */
  z-index: 2;
}

html.is-loading body {
  overflow: hidden;
}

/* Forced short loader */
.preload {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 900px at 50% 40%, rgba(120, 255, 170, 0.08), transparent 60%),
    linear-gradient(180deg, #040706, #030405);
  color: rgba(170, 255, 205, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.02em;
}

.preload::before {
  /* scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.00) 0px,
      rgba(0, 0, 0, 0.00) 2px,
      rgba(0, 0, 0, 0.26) 3px,
      rgba(0, 0, 0, 0.26) 4px
    );
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.preload::after {
  /* vignette + subtle noise */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 700px at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(120, 255, 170, 0.04), transparent 55%, rgba(120, 255, 170, 0.04));
  opacity: 0.75;
  pointer-events: none;
}

.preload__inner {
  width: min(520px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(120, 255, 170, 0.18);
  background: rgba(0, 0, 0, 0.32);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(120, 255, 170, 0.06) inset,
    0 0 28px rgba(120, 255, 170, 0.08);
  text-shadow: 0 0 14px rgba(120, 255, 170, 0.14);
  position: relative;
  overflow: hidden;
  animation: crtFlicker 2.8s linear infinite;
}

.preload__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 240px at 50% 0%, rgba(120, 255, 170, 0.10), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

@keyframes crtFlicker {
  0% { filter: none; }
  7% { filter: brightness(1.02) contrast(1.02); }
  8% { filter: brightness(0.98) contrast(1.05); }
  9% { filter: brightness(1.03) contrast(1.02); }
  50% { filter: none; }
  51% { filter: brightness(1.02) contrast(1.04); }
  52% { filter: none; }
}

.preload__k {
  font-weight: 950;
  letter-spacing: 0.18em;
  /* text-transform: uppercase; */
  font-size: 12px;
  color: rgba(120, 255, 170, 0.82);
}

.preload__t {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(170, 255, 205, 0.92);
  display: block;
}

#preloadText {
  display: inline;
  white-space: pre-wrap;
  line-height: 1.55;
}

#preloadText::after {
  content: "_";
  display: inline-block;
  margin-left: 2px;
  width: 10px;
  color: rgba(170, 255, 205, 0.92);
  animation: caretBlink 800ms linear infinite;
}

.preload__caret {
  display: none;
  width: 12px;
  height: 2px;
  background: rgba(170, 255, 205, 0.92);
  border-radius: 2px;
  transform: translateY(-2px);
  animation: caretBlink 800ms linear infinite;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.preload.is-out {
  animation: preloadOut 220ms ease forwards;
}

@keyframes preloadOut {
  to {
    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
  }
}

/* With JS enabled, we run the site as "views": only one section visible at a time. */
html.js .section {
  display: none;
}

html.js .section.is-active {
  display: block;
  animation: sectionIn 260ms ease both;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(131, 240, 201, 0.10), transparent 58%),
    radial-gradient(900px 600px at 85% 10%, rgba(166, 178, 255, 0.10), transparent 55%),
    /* linear-gradient(180deg, rgba(7, 10, 14, 0.85), rgba(11, 16, 23, 0.80)), */
    linear-gradient(180deg, rgba(7, 10, 14, 0.65), rgba(11, 16, 23, 0.80)),
    url("./images/background.png") no-repeat center / cover;
  filter: blur(6px);
  transform: scale(1.05);
  z-index: -1;
  pointer-events: none;
}

body {
  margin: 0;
  color: var(--fg);
  background: transparent;
  min-height: 100vh;
  font-family: "Bahnschrift", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;

  z-index: 1;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::selection {
  background: rgba(131, 240, 201, 0.25);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--edge2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
}

.topbar {
  position: fixed;
  top: 12px;
  right: max(14px, calc((100vw - var(--maxw)) / 2));
  left: auto;
  z-index: 50;
  padding: 0;
}

.topbar__inner {
  position: relative;
  margin: 0;
  max-width: calc(100vw - 28px);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.navbtn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.navbtn:focus-visible {
  outline: 2px solid rgba(131, 240, 201, 0.55);
  outline-offset: 2px;
}

.navbtn__icon {
  width: 18px;
  height: 10px;
  display: inline-block;
  position: relative;
}

.navbtn__icon::before,
.navbtn__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(231, 237, 245, 0.85);
  border-radius: 999px;
}

.navbtn__icon::before {
  top: 0;
}

.navbtn__icon::after {
  bottom: 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav::before {
  content: "";
  position: absolute;
  left: var(--hl-x, 0px);
  top: 50%;
  transform: translateY(-50%);
  width: var(--hl-w, 0px);
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(131, 240, 201, 0.28);
  background: rgba(131, 240, 201, 0.10);
  /* box-shadow: 0 0 0 6px rgba(131, 240, 201, 0.10); */
  opacity: 0;
  pointer-events: none;
}

.nav.is-ready::before {
  opacity: 1;
  transition: left 220ms linear, width 220ms linear, opacity 140ms linear;
}

.nav__link {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(231, 237, 245, 0.85);
  letter-spacing: 0.01em;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav__link:hover {
  background: rgba(231, 237, 245, 0.06);
  border-color: rgba(231, 237, 245, 0.10);
  color: var(--fg);
}

.nav__link:active {
  transform: translateY(1px);
}

.nav__link.is-active {
  color: var(--fg);
}

.nav__link--cta {
  border-color: rgba(131, 240, 201, 0.28);
  background: rgba(131, 240, 201, 0.10);
  color: var(--fg);
}

.nav__link--cta:not(.is-active) {
  /* Soft "breathing" glow while not selected */
  animation: ctaPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(131, 240, 201, 0);
}

.nav__link--cta:not(.is-active):hover,
.nav__link--cta:not(.is-active):focus-visible {
  /* Stop pulsing and lock at a brighter, larger glow */
  animation: none;
  border-color: rgba(131, 240, 201, 0.62);
  background: rgba(131, 240, 201, 0.18);
  transform: translateY(-1px);
}

.nav__link--cta.is-active {
  /* Distinct selected state (not the same as other links) */
  animation: none;
  border-color: rgba(131, 240, 201, 0.72);
  background: rgba(131, 240, 201, 0.22);
  /* box-shadow: 0 0 0 6px rgba(131, 240, 201, 0.12); */
}

@keyframes ctaPulse {
  0%,
  100% {
    border-color: rgba(131, 240, 201, 0.26);
    background: rgba(131, 240, 201, 0.10);
    box-shadow: 0 0 0 0 rgba(131, 240, 201, 0.06);
  }
  50% {
    border-color: rgba(131, 240, 201, 0.54);
    background: rgba(131, 240, 201, 0.16);
    box-shadow: 0 0 0 8px rgba(131, 240, 201, 0.10);
  }
}

.brand-logo {
  display: block;
  border-radius: 999px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  background: rgba(0, 0, 0, 0.25);

  height: 46px;
  width: 46px;

  margin-right: 0;
}

.brand {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  background: rgba(0, 0, 0, 0.25);
  min-width: 92px;
}

.brand__mark {
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 13px;
}

.brand__sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(231, 237, 245, 0.62);
}

.section {
  padding: 96px 14px 70px;
  scroll-margin-top: 92px;
}

.hero {
  padding-top: 120px;
}

.container {
  max-width: var(--maxw);
  margin: 5% auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: stretch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(231, 237, 245, 0.78);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(131, 240, 201, 0.6);
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(131, 240, 201, 0.30);
  background: rgba(131, 240, 201, 0.12);
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  background: rgba(131, 240, 201, 0.16);
  border-color: rgba(131, 240, 201, 0.45);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  border-color: rgba(231, 237, 245, 0.16);
  background: rgba(231, 237, 245, 0.06);
}

.btn--ghost:hover {
  background: rgba(231, 237, 245, 0.09);
  border-color: rgba(231, 237, 245, 0.22);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 237, 245, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(231, 237, 245, 0.84);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.panel {
  height: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(231, 237, 245, 0.12);
  background:
    radial-gradient(800px 360px at 30% 0%, rgba(131, 240, 201, 0.10), transparent 60%),
    radial-gradient(680px 340px at 110% 40%, rgba(166, 178, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.85), rgba(7, 10, 14, 0.65));
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(231, 237, 245, 0.06) 0,
      rgba(231, 237, 245, 0.06) 1px,
      transparent 1px,
      transparent 12px
    );
  opacity: 0.20;
  pointer-events: none;
}

.panel__title {
  position: relative;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(231, 237, 245, 0.75);
}

.panel__lines {
  position: relative;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  background: rgba(0, 0, 0, 0.20);
}

.tag {
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: rgba(131, 240, 201, 0.92);
}

.txt {
  color: rgba(231, 237, 245, 0.82);
  font-weight: 600;
  font-size: 13px;
}

.panel__footer {
  position: relative;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(231, 237, 245, 0.12);
  color: rgba(231, 237, 245, 0.70);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(131, 240, 201, 0.95);
  box-shadow: 0 0 0 6px rgba(131, 240, 201, 0.12);
  animation: dotPulse 1.6s ease-in-out infinite;
}

.panel:hover .dot,
.panel__footer:hover .dot {
  box-shadow: 0 0 0 10px rgba(131, 240, 201, 0.18), 0 0 28px rgba(131, 240, 201, 0.18);
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(131, 240, 201, 0.08);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(131, 240, 201, 0.14);
    filter: brightness(1.18);
  }
}

.section__head {
  margin-bottom: 20px;
  padding-bottom: 40px
}

.section__head h2 {
  margin: 0 0 8px;
  font-size: 44px;
  letter-spacing: 0.02em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Reglement: docs layout (sidebar + content + toc) */
#reglement .container {
  /* Wider than the rest of the site to make the center column noticeably larger */
  max-width: 1400px;
}

#panel .container {
  max-width: 1400px;
}

.docs {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 10%;
  align-items: start;
}

.docs__left,
.docs__right {
  position: sticky;
  top: 92px; /* topbar offset */
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}

/* Sticky + transform don't mix well across browsers. Sidebars should not be transformed. */
#reglement .docs__left.reveal,
#reglement .docs__right.reveal {
  transform: none;
  transition-property: opacity;
}

.snav,
.toc {
  height: 100%;
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  padding: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}

.snav::-webkit-scrollbar,
.toc::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.snav__top,
.toc__top {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.60);
  font-weight: 900;
  margin-bottom: 10px;
}

.snav__grouphead {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.78);
}

.snav__item,
.snav__subitem,
.snav__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(231, 237, 245, 0.82);
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
}

.snav__item:hover,
.snav__subitem:hover,
.snav__toggle:hover {
  background: rgba(231, 237, 245, 0.06);
  border-color: rgba(231, 237, 245, 0.10);
  color: var(--fg);
}

.snav__item.is-active,
.snav__subitem.is-active {
  border-color: rgba(131, 240, 201, 0.30);
  background: rgba(131, 240, 201, 0.08);
  color: var(--fg);
}

.snav__toggle {
  margin-top: 8px;
  color: rgba(231, 237, 245, 0.74);
}

.chev {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid rgba(231, 237, 245, 0.55);
  border-bottom: 2px solid rgba(231, 237, 245, 0.55);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.snav__toggle[aria-expanded="false"] .chev {
  transform: rotate(-45deg);
}

.snav__sub {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(231, 237, 245, 0.10);
  display: none;
}

.snav__sub.is-open {
  display: block;
}

.snav__subitem {
  padding: 9px 10px;
  font-weight: 600;
  color: rgba(231, 237, 245, 0.76);
}

.docs__main {
  min-width: 0;
}

.dochead {
  margin-bottom: 14px;
  padding: 0 0 6px;
}

.dochead__k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: rgba(131, 240, 201, 0.72);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.dochead__t {
  margin: 0 0 8px;
  font-size: 44px;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.dochead__p {
  margin: 0;
  max-width: 70ch;
  line-height: 1.6;
}

.doc {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.docsec + .docsec {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(231, 237, 245, 0.10);
}

.docsec {
  position: relative;
}

.docsec::before {
  content: "";
  position: absolute;
  inset: -10px -12px;
  border-radius: 18px;
  background: rgba(131, 240, 201, 0.08);
  box-shadow: 0 0 0 10px rgba(131, 240, 201, 0.10);
  opacity: 0;
  pointer-events: none;
}

.docsec.is-glow::before {
  animation: docGlow 900ms ease-out;
}

@keyframes docGlow {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

.docsec h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.01em;
  /* Prevent headings from being hidden under the fixed topbar when using scrollIntoView */
  scroll-margin-top: 110px;
}

.docsec p {
  margin: 0;
  line-height: 1.65;
}

.docsec p + p {
  margin-top: 12px;
}

.icode {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(231, 237, 245, 0.14);
  background: rgba(0, 0, 0, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  color: rgba(231, 237, 245, 0.88);
}

.copycode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(231, 237, 245, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.copycode__text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  color: rgba(231, 237, 245, 0.88);
}

.copycode__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(231, 237, 245, 0.50);
  cursor: pointer;
  opacity: 1;
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}


.copycode__btn:hover {
  background: rgba(231, 237, 245, 0.08);
  border-color: rgba(231, 237, 245, 0.14);
  color: rgba(231, 237, 245, 0.90);
}

.copycode__btn.is-copied {
  opacity: 1;
  color: rgba(131, 240, 201, 0.90);
}

.doclist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(231, 237, 245, 0.82);
  line-height: 1.65;
}

.doclist li + li {
  margin-top: 6px;
}

.callout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.callout__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 237, 245, 0.14);
  background: rgba(231, 237, 245, 0.06);
  color: rgba(231, 237, 245, 0.86);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

.callout__icon::before {
  content: "i";
}

.callout__title {
  font-weight: 850;
  letter-spacing: 0.01em;
  color: rgba(231, 237, 245, 0.92);
  margin-bottom: 6px;
}

.callout__content p {
  margin: 0;
  color: rgba(231, 237, 245, 0.86);
}

.callout__content p + p {
  margin-top: 10px;
}

.callout__content .doclist {
  margin-top: 10px;
}

.callout--info {
  border-color: rgba(166, 178, 255, 0.22);
  background: rgba(166, 178, 255, 0.08);
}

.callout--info .callout__icon {
  border-color: rgba(166, 178, 255, 0.30);
  background: rgba(166, 178, 255, 0.12);
}

.callout--tip {
  border-color: rgba(131, 240, 201, 0.22);
  background: rgba(131, 240, 201, 0.08);
}

.callout--tip .callout__icon {
  border-color: rgba(131, 240, 201, 0.30);
  background: rgba(131, 240, 201, 0.12);
}

.callout--tip .callout__icon::before {
  content: "+";
}

.callout--note {
  border-color: rgba(231, 237, 245, 0.16);
  background: rgba(231, 237, 245, 0.06);
}

.callout--warning {
  border-color: rgba(255, 196, 92, 0.22);
  background: rgba(255, 196, 92, 0.08);
}

.callout--warning .callout__icon {
  border-color: rgba(255, 196, 92, 0.30);
  background: rgba(255, 196, 92, 0.12);
  color: rgba(255, 230, 184, 0.95);
}

.callout--warning .callout__icon::before {
  content: "!";
}

.callout--danger {
  border-color: rgba(255, 92, 120, 0.22);
  background: rgba(255, 92, 120, 0.08);
}

.callout--danger .callout__icon {
  border-color: rgba(255, 92, 120, 0.30);
  background: rgba(255, 92, 120, 0.12);
  color: rgba(255, 206, 215, 0.95);
}

.callout--danger .callout__icon::before {
  content: "x";
}

.toc__list {
  display: grid;
  gap: 8px;
}

.toc__link {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(231, 237, 245, 0.72);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.toc__link:hover {
  background: rgba(231, 237, 245, 0.06);
  border-color: rgba(231, 237, 245, 0.10);
  color: var(--fg);
}

.card {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.card h3 {
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(231, 237, 245, 0.78);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

/* A propos: story + image */
.aboutstory {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;

  padding-bottom: 80px
}

.aboutstory__title {
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.aboutstory__sub {
  margin: 0 0 12px;
  line-height: 1.6;
}

.aboutimg {
  margin: 0;
  border-radius: var(--radius2);
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.aboutimg img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.aboutimg__cap {
  padding: 12px 14px;
  border-top: 1px solid rgba(231, 237, 245, 0.10);
  font-size: 12px;
}

/* A propos: staff */
.staffwrap {
  margin-top: 22px;
}

.staffhead__t {
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.staffhead__d {
  margin: 0 0 14px;
  line-height: 1.6;

  padding-bottom: 20px
}

.tiers {
  display: grid;
  gap: 14px;
}

.tier {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.tier__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.62);
  font-weight: 900;
  margin-bottom: 12px;
}

.staffgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.staffcard {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  background: rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  outline: none;
  cursor: default;
  overflow: hidden;

  /* height: 126px; */
}

.staffcard.has-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--staff-banner);
  background-color: #ffffff00;
  background-size: cover;
  background-position: center;
  opacity: 1;
  /* filter: saturate(1.05) contrast(1.05); */
  transform: scale(1.02);
  pointer-events: none;
}

.staffcard.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background:
    radial-gradient(600px 220px at 20% 0%, rgba(0, 0, 0, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.58)); */
  pointer-events: none;
}

.staffcard > * {
  position: relative;
  z-index: 1;
}

.staffcard:hover,
.staffcard:focus-visible {
  transform: scale(1.05);

}

.staffcard.has-banner:hover::before,
.staffcard.has-banner:focus-visible::before {
  opacity: 1;
}

.staffcard__av {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(231, 237, 245, 0.14);
  background: rgba(231, 237, 245, 0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(231, 237, 245, 0.70);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.staffcard__av[data-fallback="1"]::before {
  content: "STAFF";
  font-size: 9px;
}

.staffcard__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staffcard__name {
  font-weight: 850;
  color: rgba(231, 237, 245, 0.92);
}

.staffcard__role {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.60);
  font-weight: 800;
}

.staffcard__motto {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(231, 237, 245, 0.10);
  color: rgba(231, 237, 245, 0.82);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
  line-height: 1.45;
}

.staffcard:hover .staffcard__motto,
.staffcard:focus-visible .staffcard__motto {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

.facts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fact {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 12px;
}

.fact__k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.68);
}

.fact__v {
  margin-top: 6px;
  font-weight: 750;
  color: rgba(231, 237, 245, 0.90);
}

.quote {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background:
    radial-gradient(900px 320px at 25% 0%, rgba(131, 240, 201, 0.10), transparent 60%),
    rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.quote p {
  margin: 0;
  color: rgba(231, 237, 245, 0.86);
  line-height: 1.65;
}

.quote__by {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.62);
}

.note {
  margin-top: 12px;
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  padding: 16px;
}

.note__title {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(166, 178, 255, 0.86);
  margin-bottom: 8px;
}

.section--final {
  padding-bottom: 40px;
}

.join {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: stretch;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.20);
}

.steps__k {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(131, 240, 201, 0.30);
  background: rgba(131, 240, 201, 0.10);
  font-weight: 900;
}

.steps__v {
  color: rgba(231, 237, 245, 0.82);
  line-height: 1.45;
  font-weight: 600;
}

.join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.servercard {
  height: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(231, 237, 245, 0.12);
  /* background: rgba(0, 0, 0, 0.24); */
  background:
    radial-gradient(800px 360px at 30% 0%, rgba(131, 240, 201, 0.10), transparent 60%),
    radial-gradient(680px 340px at 110% 40%, rgba(166, 178, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.85), rgba(7, 10, 14, 0.65));
  box-shadow: var(--shadow);
  padding: 16px;
}

.servercard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(231, 237, 245, 0.12);
}

.servercard__name {
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.servercard__badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(166, 178, 255, 0.26);
  background: rgba(166, 178, 255, 0.10);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.84);
}

.servercard__body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

.kv__k {
  color: rgba(231, 237, 245, 0.64);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.kv__v {
  color: rgba(231, 237, 245, 0.86);
  font-weight: 700;
}

.servercard__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(231, 237, 245, 0.12);
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(131, 240, 201, 0.95);
  box-shadow: 0 0 0 6px rgba(131, 240, 201, 0.12);
  animation: dotPulse 1.6s ease-in-out infinite;
}

.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(231, 237, 245, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .aboutstory {
    grid-template-columns: 1fr;
  }
  .staffgrid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .join {
    grid-template-columns: 1fr;
  }
  .docs {
    grid-template-columns: 1fr;
  }
  .docs__left,
  .docs__right {
    position: static;
    height: auto;
  }
  .docs__right {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    justify-content: space-between;
    border-radius: var(--radius2);
  }
  .navbtn {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 220px;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(231, 237, 245, 0.12);
    background: rgba(9, 12, 18, 0.92);
    box-shadow: var(--shadow);
  }
  .nav::before {
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav__link {
    border-radius: 12px;
  }
}

/* ═══════════════════════════════════════════════════════ AUTH / DISCORD BTN */

.btn--discord {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.14);
  gap: 10px;
}

.btn--discord:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.65);
}

.btn--discord img {
  flex-shrink: 0;
}

.btn--sm {
  padding: 8px 12px;
  font-size: 13px;
}

.hero__discord {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.20);
}

.hero__user-av {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(231, 237, 245, 0.14);
}

/* ═══════════════════════════════════════════════════════ PANEL */

.panel-army-select {
  margin-bottom: 20px;
}

.panel-army-select__label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.panel-army-select__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-army-btn.is-active {
  border-color: rgba(131, 240, 201, 0.45);
  background: rgba(131, 240, 201, 0.14);
}

.panel-layout {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 16px;
  align-items: start;
}

.panel-main {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius2);
  padding: 20px;
  min-height: 300px;
}

.panel-placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
}

.panel-login-prompt {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 300px;
  text-align: center;
}

/* Colonne membres (style Discord) */
.panel-members {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  padding: 12px 8px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}

.members-grade {
  padding: 12px 8px 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.52);
}

.members-grade:first-child {
  padding-top: 4px;
}

.members-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 140ms ease;
  cursor: default;
}

.members-item:hover {
  background: rgba(231, 237, 245, 0.06);
}

.members-item--highrank .members-item__name {
  color: rgba(131, 240, 201, 0.92);
}

.members-item__av {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(231, 237, 245, 0.10);
  flex-shrink: 0;
}

.members-item__name {
  font-size: 14px;
  font-weight: 650;
  color: rgba(231, 237, 245, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar panel (réutilise les classes .snav existantes) */
.panel-snav {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
}

/* ── Section header + bouton créer ────────────────────────────────── */
.panel-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fg);
}

/* ── Cards (Documents / Rapports) ─────────────────────────────────── */
.panel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.panel-card {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease;
  position: relative;
}

.panel-card:hover {
  border-color: rgba(231, 237, 245, 0.22);
}

.panel-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.panel-card__noimg {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(131, 240, 201, 0.12), rgba(166, 178, 255, 0.10));
}

.panel-card__footer {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.30);
}

.panel-card__title {
  font-size: 14px;
  font-weight: 650;
  color: rgba(231, 237, 245, 0.88);
}

.panel-card__meta {
  font-size: 11px;
  color: rgba(231, 237, 245, 0.45);
  margin-top: 2px;
}

.panel-card__actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.panel-card:hover .panel-card__actions {
  opacity: 1;
}

.panel-card__edit,
.panel-card__del {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(231, 237, 245, 0.70);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 140ms ease, color 140ms ease;
}

.panel-card__edit:hover {
  background: rgba(131, 240, 201, 0.25);
  color: #fff;
}

.panel-card__del:hover {
  background: rgba(220, 60, 60, 0.7);
  color: #fff;
}

/* ── News (rectangles horizontaux) ────────────────────────────────── */
.panel-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-news-card {
  display: flex;
  gap: 16px;
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  padding: 16px;
  align-items: flex-start;
  position: relative;
  transition: border-color 160ms ease;
}

.panel-news-card:hover {
  border-color: rgba(231, 237, 245, 0.22);
}

.panel-news-card__img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.panel-news-card__body {
  flex: 1;
  min-width: 0;
}

.panel-news-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.panel-news-card__text {
  font-size: 13px;
  color: rgba(231, 237, 245, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-news-card__meta {
  font-size: 11px;
  color: rgba(231, 237, 245, 0.40);
  margin-top: 6px;
}

.panel-news-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.panel-news-card:hover .panel-news-card__actions {
  opacity: 1;
}

.panel-news-card__edit,
.panel-news-card__del {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(231, 237, 245, 0.70);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 140ms ease, color 140ms ease;
}

.panel-news-card__edit:hover {
  background: rgba(131, 240, 201, 0.25);
  color: #fff;
}

.panel-news-card__del:hover {
  background: rgba(220, 60, 60, 0.7);
  color: #fff;
}

/* ── Missions ─────────────────────────────────────────────────────── */
.panel-mission {
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.panel-mission__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.panel-mission__actions {
  display: flex;
  gap: 8px;
}

.panel-mission__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.panel-mission__meta {
  font-size: 11px;
  color: rgba(231, 237, 245, 0.40);
}

.panel-mission__desc {
  font-size: 13px;
  color: rgba(231, 237, 245, 0.72);
  margin: 8px 0;
  white-space: pre-wrap;
}

.panel-mission__images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: flex-start;
}

.panel-mission__images img {
  display: block;

  height: 140px;
  width: max(100%, 220px);

  border-radius: 8px;
  border: 1px solid rgba(231, 237, 245, 0.10);
  object-fit: cover;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
}

.panel-mission__edit,
.panel-mission__del,
.panel-mission__pin {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(231, 237, 245, 0.60);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 140ms ease, color 140ms ease;
}

.panel-mission__pin:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
}
.panel-mission__pin--active {
  color: rgba(59, 130, 246, 0.9);
  background: rgba(59, 130, 246, 0.15);
}
.panel-mission__pin--active:hover {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}
.panel-mission__pin:disabled {
  opacity: 0.4;
  cursor: default;
}

.panel-mission__edit:hover {
  background: rgba(131, 240, 201, 0.25);
  color: #fff;
}

.panel-mission__del:hover {
  background: rgba(220, 60, 60, 0.7);
  color: #fff;
}

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  z-index: 1000;
  animation: modalFadeIn 160ms ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: #151a24;
  border: 1px solid rgba(231, 237, 245, 0.15);
  border-radius: var(--radius2);
  padding: 24px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.modal__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--fg);
}

.modal label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(231, 237, 245, 0.78);
}

.modal input[type="text"],
.modal input[type="number"],
.modal textarea,
.modal select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(231, 237, 245, 0.18);
  background: rgba(0, 0, 0, 0.30);
  border-radius: 8px;
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.modal input[type="text"]:focus,
.modal input[type="number"]:focus,
.modal textarea:focus {
  outline: none;
  border-color: rgba(131, 240, 201, 0.45);
}

.modal input[type="file"] {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(231, 237, 245, 0.70);
}

.modal__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(231, 237, 245, 0.78);
  cursor: pointer;
}

.modal__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: rgba(131, 240, 201, 0.8);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.modal--read {
  max-width: 760px;
}

.modal__content {
  display: grid;
  gap: 12px;
}

.modal__hero {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(231, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.modal__meta {
  font-size: 12px;
  color: rgba(231, 237, 245, 0.58);
}

.modal__text {
  white-space: pre-wrap;
  line-height: 1.6;
  color: rgba(231, 237, 245, 0.86);
}

.modal__list {
  margin: 0;
  padding-left: 18px;
  color: rgba(231, 237, 245, 0.84);
  line-height: 1.6;
}

.modal__list li + li {
  margin-top: 4px;
}

/* ── Panel empty state ────────────────────────────────────────────── */
.panel-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(231, 237, 245, 0.45);
  font-size: 14px;
}

/* ── Armement section ─────────────────────────────────────────────── */

.armement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.armement-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

/* Category tabs */
.armement-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.armement-tabs__btn {
  background: rgba(231, 237, 245, 0.06);
  border: 1px solid rgba(231, 237, 245, 0.08);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(231, 237, 245, 0.6);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.armement-tabs__btn:hover {
  background: rgba(231, 237, 245, 0.1);
  color: var(--fg);
}
.armement-tabs__btn.is-active {
  background: rgba(131, 240, 201, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

/* Item list */
.armement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single item card */
.armement-item {
  border: 1px solid rgba(231, 237, 245, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  transition: border-color 200ms ease;
}
.armement-item:hover {
  border-color: rgba(231, 237, 245, 0.16);
}

.armement-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}

.armement-item__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
}

.armement-item__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.armement-item__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: #070a0e;
  font-size: 13px;
  font-weight: 700;
}
.armement-item__count--zero {
  background: rgba(231, 237, 245, 0.12);
  color: rgba(231, 237, 245, 0.4);
}

.armement-item__chevron {
  width: 16px;
  height: 16px;
  color: rgba(231, 237, 245, 0.4);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.armement-item.is-expanded .armement-item__chevron {
  transform: rotate(180deg);
}

/* Expandable details */
.armement-item__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
              padding 400ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 18px;
}
.armement-item.is-expanded .armement-item__details {
  max-height: 700px;
  padding: 0 18px 18px;
}

/* Range buttons inside details */
.armement-range {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.armement-range__btn {
  background: rgba(231, 237, 245, 0.06);
  border: 1px solid rgba(231, 237, 245, 0.08);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(231, 237, 245, 0.5);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.armement-range__btn:hover {
  background: rgba(231, 237, 245, 0.1);
  color: var(--fg);
}
.armement-range__btn.is-active {
  background: rgba(131, 240, 201, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Chart */
.armement-chart-wrap {
  height: 180px;
  margin-bottom: 14px;
  position: relative;
}
.armement-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(231, 237, 245, 0.3);
  font-size: 13px;
}

/* Logs table */
.armement-logs {
  border-radius: 8px;
}
.armement-logs::-webkit-scrollbar { width: 5px; }
.armement-logs::-webkit-scrollbar-track { background: transparent; }
.armement-logs::-webkit-scrollbar-thumb { background: rgba(231, 237, 245, 0.15); border-radius: 4px; }

.armement-logs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.armement-logs th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(231, 237, 245, 0.35);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(231, 237, 245, 0.08);
  position: sticky;
  top: 0;
  background: rgba(11, 16, 23, 0.95);
}
.armement-logs td {
  padding: 6px 8px;
  color: rgba(231, 237, 245, 0.65);
  border-bottom: 1px solid rgba(231, 237, 245, 0.04);
  white-space: nowrap;
}
.armement-logs tr:hover td {
  color: var(--fg);
}

.armement-logs td.armement-action--add    { color: rgba(131, 240, 201, 0.55); }
.armement-logs td.armement-action--remove { color: rgba(240, 131, 131, 0.55); }
.armement-logs tr:hover td.armement-action--add    { color: rgba(131, 240, 201, 0.8); }
.armement-logs tr:hover td.armement-action--remove { color: rgba(240, 131, 131, 0.8); }

/* Pagination */
.armement-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 6px 0;
}
.armement-pagination__btn {
  background: rgba(231, 237, 245, 0.06);
  border: 1px solid rgba(231, 237, 245, 0.1);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.armement-pagination__btn:hover:not(:disabled) {
  background: rgba(231, 237, 245, 0.12);
  border-color: var(--accent);
}
.armement-pagination__btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.armement-pagination__info {
  font-size: 12px;
  color: rgba(231, 237, 245, 0.5);
  min-width: 50px;
  text-align: center;
}

/* Refresh buttons */
.armement-refresh-btn,
.armement-item-refresh {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  color: rgba(231, 237, 245, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 180ms ease, border-color 180ms ease, transform 400ms ease;
}
.armement-refresh-btn:hover,
.armement-item-refresh:hover {
  color: var(--accent);
}
.armement-refresh-btn.is-spinning,
.armement-item-refresh.is-spinning {
  animation: armementSpin 500ms ease;
}
@keyframes armementSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.armement-loading {
  text-align: center;
  padding: 12px;
  color: rgba(231, 237, 245, 0.4);
  font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .panel-snav {
    position: static;
    max-height: none;
  }
  .panel-members {
    position: static;
    max-height: 400px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ MEMBRES */

.membres-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.membres-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.membres-config-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(231, 237, 245, 0.4);
  cursor: pointer;
  transition: color 180ms ease;
}
.membres-config-btn:hover {
  color: var(--fg);
}

.membres-search-wrap {
  margin-bottom: 18px;
}
.membres-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(231, 237, 245, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease;
}
.membres-search:focus {
  border-color: rgba(131, 240, 201, 0.35);
}
.membres-search::placeholder {
  color: rgba(231, 237, 245, 0.3);
}

.membres-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.membres-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.5);
  border-bottom: 1px solid rgba(231, 237, 245, 0.06);
  margin-bottom: 6px;
}
.membres-group__count {
  background: rgba(231, 237, 245, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.membres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.membres-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(231, 237, 245, 0.05);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.membres-card:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(231, 237, 245, 0.12);
}

.membres-card__exclude {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(231, 237, 245, 0.2);
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, color 150ms ease, background 150ms ease;
}
.membres-card:hover .membres-card__exclude {
  opacity: 1;
}
.membres-card__exclude:hover {
  color: rgba(240, 131, 131, 0.85);
  background: rgba(240, 131, 131, 0.1);
}

.membres-card__av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.membres-card__name {
  font-size: 12px;
  font-weight: 650;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* ── Member detail view ── */

.membre-detail {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(231, 237, 245, 0.06);
  margin-bottom: 16px;
}

.membre-detail__av-wrap {
  flex-shrink: 0;
}
.membre-detail__av {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.membre-detail__info {
  flex: 1;
  min-width: 0;
}
.membre-detail__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.membre-detail__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
}
.membre-detail__role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(131, 240, 201, 0.7);
  margin-top: 4px;
}
.membre-detail__id {
  display: block;
  font-size: 12px;
  color: rgba(231, 237, 245, 0.35);
  font-family: monospace;
  margin-top: 2px;
}
.membre-detail__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.membre-detail__roles-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 237, 245, 0.4);
  margin-bottom: 10px;
  display: block;
}

/* ── Roles grid (all guild roles) ──────────────────────────────────────────── */
.membre-roles-section {
  margin-top: 8px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(231, 237, 245, 0.06);
}
.membre-roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.membre-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 5vh;
  background: rgba(231, 237, 245, 0.00);
  border: 1.5px solid rgba(231, 237, 245, 0.06);
  font-size: 12px;
  font-weight: 500;
  color: rgba(231, 237, 245, 0.8);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, opacity 200ms ease;
  user-select: none;
}
.membre-role-pill:hover:not(:disabled) {
  background: rgba(231, 237, 245, 0.1);
}
.membre-role-pill:disabled {
  cursor: default;
  opacity: 0.6;
}
.membre-role-pill.is-owned {
  border-color: rgba(131, 240, 201, 0.92);
  background: rgba(80, 200, 120, 0.08);
}
.membre-role-pill.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.membre-role-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Roles toolbar ─────────────────────────────────────────────────────────── */
.membre-roles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.membre-roles-toolbar .membre-detail__roles-label {
  margin-bottom: 0;
}
.membre-roles-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.membre-roles-search {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(231, 237, 245, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg);
  font-size: 12px;
  width: 160px;
  outline: none;
  transition: border-color 180ms ease;
}
.membre-roles-search::placeholder {
  color: rgba(231, 237, 245, 0.3);
}
.membre-roles-search:focus {
  border-color: rgba(131, 240, 201, 0.4);
}
.membre-roles-sort-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(231, 237, 245, 0.1);
  background: transparent;
  color: rgba(231, 237, 245, 0.5);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.membre-roles-sort-btn:hover {
  color: var(--fg);
  border-color: rgba(231, 237, 245, 0.2);
  background: rgba(231, 237, 245, 0.04);
}

.membres-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(231, 237, 245, 0.1);
  background: transparent;
  color: rgba(231, 237, 245, 0.5);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.membres-action-btn:hover {
  color: var(--fg);
  border-color: rgba(231, 237, 245, 0.2);
  background: rgba(231, 237, 245, 0.04);
}
.membres-action-btn--danger:hover {
  color: rgba(240, 131, 131, 0.85);
  border-color: rgba(240, 131, 131, 0.25);
  background: rgba(240, 131, 131, 0.06);
}
.membres-action-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Select dropdown (modal) */
.membres-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(231, 237, 245, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: var(--fg);
  font-size: 14px;
  outline: none;
  margin-top: 8px;
}
.membres-select option {
  background: #0b1017;
  color: var(--fg);
}

/* Modal warning text */
.modal__desc {
  color: rgba(231, 237, 245, 0.65);
  font-size: 14px;
  margin-bottom: 10px;
}
.modal__desc--warn {
  color: rgba(240, 131, 131, 0.8);
}

/* Config page */
.membres-config-desc {
  color: rgba(231, 237, 245, 0.5);
  font-size: 13px;
  margin-bottom: 16px;
}

.membres-config-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.membres-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(231, 237, 245, 0.05);
}
.membres-config-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

/* ═══════════════════════════════════════════════════════════════ TOAST */

.toast {
  position: fixed;
  top: 10%; /* 100px*/
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 250ms ease, transform 250ms ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--success {
  background: rgba(131, 240, 201, 0.15);
  border: 1px solid rgba(131, 240, 201, 0.3);
}
.toast--error {
  background: rgba(240, 131, 131, 0.15);
  border: 1px solid rgba(240, 131, 131, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .section.is-active {
    animation: none;
  }
  .dot, .signal {
    animation: none;
    filter: none;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .nav__link,
  .btn {
    transition: none;
  }
  .nav__link--cta:not(.is-active) {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RECRUITMENT SYSTEM
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Postuler page: army cards ──────────────────────────────────────────────── */
.postuler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.postuler-card {
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 200ms, box-shadow 200ms;
  text-align: center;
}
.postuler-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.postuler-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.postuler-card__form {
  font-size: 0.9rem;
}

/* ── Panel: recruitment form cards ──────────────────────────────────────────── */
.recruitment-forms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recruitment-form-card {
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.recruitment-form-card.is-active {
  border-color: var(--green, #43b581);
}
.recruitment-form-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.recruitment-form-card__title {
  font-weight: 600;
  font-size: 1.05rem;
}
.recruitment-form-card__status {
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}
.recruitment-form-card__status--active  { background: rgba(67,181,129,0.2); color: #43b581; }
.recruitment-form-card__status--draft   { background: rgba(255,255,255,0.1); color: #999; }
.recruitment-form-card__status--inactive { background: rgba(231,76,60,0.15); color: #e74c3c; }
.recruitment-form-card__meta {
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.recruitment-form-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Form builder modal ─────────────────────────────────────────────────────── */
.modal--wide {
  max-width: 780px;
}
.form-builder__meta label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.form-builder__meta input[type="text"],
.form-builder__meta textarea {
  width: 100%;
  margin-top: 4px;
}
.form-builder__colors {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.form-builder__colors label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
.form-builder__colors input[type="color"] {
  width: 32px;
  height: 28px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  padding: 0;
}
.form-builder__fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-builder__field-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg1);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  cursor: grab;
  align-items: center;
}
/* First row: drag handle + type select */
.form-builder__field-drag {
  grid-column: 1;
  cursor: grab;
  color: var(--muted);
  font-size: 1.1rem;
  user-select: none;
}
.form-builder__field-type-select {
  grid-column: 2;
  width: 100%;
}
/* Remaining inputs fill full width below */
.form-builder__field-label,
.form-builder__field-placeholder,
.form-builder__field-options {
  grid-column: 1 / -1;
  width: 100%;
}
.form-builder__field-req {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}
.form-builder__field-del {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--red, #e74c3c);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.form-builder__field-row {
  position: relative;
  padding-right: 32px;
}
.form-builder__field-row.is-dragging {
  opacity: 0.4;
}
.form-builder__field-row.drag-over {
  border-color: var(--accent);
}
.form-builder__field-del:hover {
  background: rgba(231,76,60,0.15);
}
/* Style all form-builder selects & inputs to match panel theme */
.form-builder__field-row select,
.form-builder__field-row input[type="text"] {
  padding: 7px 10px;
  border: 1px solid rgba(231, 237, 245, 0.18);
  background: rgba(0, 0, 0, 0.30);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.9rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.form-builder__field-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.form-builder__field-row select:focus,
.form-builder__field-row input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}
.form-builder__field-row select option {
  background: var(--bg2, #1e1f22);
  color: var(--fg);
}

/* ── Recruitment form overlay — cinematic military style ─────────────────────── */
.rf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 300ms ease;
}
.rf-overlay.is-visible {
  opacity: 1;
}
.rf-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rf-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1002;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.rf-close:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Hero ─────────────────────────────────────────────────────────────────────── */
.rf-hero {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--rf-bg, #0d0e10);
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.rf-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 60%, var(--rf-bg, #0d0e10) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 40%);
  pointer-events: none;
}
.rf-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 792px;
  padding: 48px 56px 40px;
}
.rf-hero__kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rf-accent, #c9a44a);
  margin-bottom: 10px;
}
.rf-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.rf-hero__rule {
  width: 60px;
  height: 3px;
  background: var(--rf-accent, #c9a44a);
  border-radius: 2px;
  opacity: 0.8;
}

/* ── Body ─────────────────────────────────────────────────────────────────────── */
.rf-body {
  background: var(--rf-bg, #0d0e10);
  padding: 40px 56px 56px;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 340px);
}
.rf-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  padding: 32px 36px 36px;
  width: 100%;
  max-width: 680px;
}
.rf-card__head {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rf-text, #e0e0e0);
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
}

/* ── Fields ────────────────────────────────────────────────────────────────────── */
.rf-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rf-field__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rf-text, #e0e0e0);
  letter-spacing: 0.01em;
}
.rf-req {
  color: #e05555;
}
.rf-fields input[type="text"],
.rf-fields input[type="number"],
.rf-fields input[type="date"],
.rf-fields textarea,
.rf-fields select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: var(--rf-text, #e0e0e0);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 200ms;
}
.rf-fields input::placeholder,
.rf-fields textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.rf-fields input:focus,
.rf-fields textarea:focus,
.rf-fields select:focus {
  outline: none;
  border-color: var(--rf-accent, #c9a44a);
  box-shadow: 0 0 0 2px rgba(201, 164, 74, 0.12);
}
.rf-fields select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.rf-fields select option {
  background: #1a1b1e;
  color: #e0e0e0;
}
.rf-fields textarea {
  resize: vertical;
  min-height: 90px;
}
.rf-fields input[type="range"] {
  width: 100%;
  accent-color: var(--rf-accent, #c9a44a);
  margin-top: 4px;
}
.rf-field__slider-val {
  font-size: 0.85rem;
  color: var(--rf-accent, #c9a44a);
  font-weight: 700;
  margin-top: 2px;
}
.rf-fields input[type="file"] {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.rf-fields input[type="file"]::file-selector-button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--rf-text, #e0e0e0);
  padding: 6px 14px;
  margin-right: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: background 150ms;
}
.rf-fields input[type="file"]::file-selector-button:hover {
  background: rgba(255,255,255,0.14);
}

/* Radio & Checkbox */
.rf-field__radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.rf-field__radio,
.rf-field__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--rf-text, #e0e0e0);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  transition: border-color 150ms, background 150ms;
}
.rf-field__radio:hover,
.rf-field__checkbox:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}
.rf-field__radio input,
.rf-field__checkbox input {
  display: none;
}
.rf-field__radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  position: relative;
  transition: border-color 200ms;
}
.rf-field__radio input:checked ~ .rf-field__radio-dot {
  border-color: var(--rf-accent, #c9a44a);
}
.rf-field__radio input:checked ~ .rf-field__radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--rf-accent, #c9a44a);
}
.rf-field__check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  position: relative;
  transition: border-color 200ms, background 200ms;
}
.rf-field__checkbox input:checked ~ .rf-field__check-box {
  border-color: var(--rf-accent, #c9a44a);
  background: var(--rf-accent, #c9a44a);
}
.rf-field__checkbox input:checked ~ .rf-field__check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Submit ────────────────────────────────────────────────────────────────────── */
.rf-submit {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 14px 24px;
  background: var(--rf-accent, #c9a44a);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 200ms, box-shadow 200ms;
}
.rf-submit:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(201, 164, 74, 0.25);
}
.rf-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.rf-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  animation: rfMsgIn .3s ease;
}
.rf-msg--error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}
.rf-msg--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}
@keyframes rfMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rf-preview-notice {
  text-align: center;
  margin-top: 24px;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .rf-hero__content { padding: 32px 24px 28px; }
  .rf-body { padding: 0 20px 40px; }
  .rf-card { padding: 24px 20px; }
  .rf-hero { min-height: 240px; }
}

/* ── Applications list ──────────────────────────────────────────────────────── */
.applications-filters {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.applications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.application-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms;
}
.application-card:hover {
  border-color: var(--accent);
}
.application-card__user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.application-card__avatar {
  border-radius: 50%;
}
.application-card__name {
  font-weight: 500;
}
.application-card__info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}
.application-card__status {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}
.application-card__status--pending  { background: rgba(250,166,26,0.2); color: #faa61a; }
.application-card__status--accepted { background: rgba(67,181,129,0.2); color: #43b581; }
.application-card__status--rejected { background: rgba(231,76,60,0.15); color: #e74c3c; }
.application-card__discord-id {
  font-size: 0.75rem;
  opacity: 0.5;
}
.application-card__del {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  opacity: 1;
  transition: opacity 150ms, color 150ms, background 150ms;
}
.application-card:hover .application-card__del { opacity: 1; }
.application-card__del:hover {
  color: var(--red, #e74c3c);
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.25);
}

/* ── Applications toolbar (filters + search) ───────────────────────────────── */
.applications-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.applications-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--muted);
  flex: 1;
  max-width: 320px;
  transition: border-color 150ms;
}
.applications-search:focus-within {
  border-color: var(--accent);
}
.applications-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  width: 100%;
}
.applications-search input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* ── Webhook config page ───────────────────────────────────────────────────── */
.wh-config__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.wh-config__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
}
.wh-config__back:hover {
  border-color: var(--accent);
  background: var(--bg1);
}
.wh-config__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.wh-config__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  background: rgba(250, 166, 26, 0.08);
  border: 1px solid rgba(250, 166, 26, 0.2);
  color: #faa61a;
}
.wh-config__status--active {
  background: rgba(67, 181, 129, 0.08);
  border-color: rgba(67, 181, 129, 0.2);
  color: #43b581;
}
.wh-config__card {
  background: var(--bg2);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 24px;
}
.wh-config__desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 540px;
}
.wh-config__field {
  margin-bottom: 20px;
}
.wh-config__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.wh-config__input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg1);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 200ms, box-shadow 200ms;
}
.wh-config__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.15);
}
.wh-config__input--error {
  border-color: var(--red, #e74c3c) !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}
.wh-config__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
  opacity: 0.7;
}
.wh-config__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
}
.wh-config__save {
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 150ms, box-shadow 150ms;
}
.wh-config__save:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 12px rgba(114, 137, 218, 0.3);
}
.wh-config__save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.wh-config__delete {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius);
  color: var(--red, #e74c3c);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}
.wh-config__delete:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.5);
}
.wh-config__delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wh-config__error {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: var(--radius);
  color: #fca5a5;
  font-size: 0.85rem;
}

/* ── Application answers in modal ───────────────────────────────────────────── */
.application-answers {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .recruitment-form-container {
    width: 95vw;
    min-width: 0;
    height: 85vh;
    padding: 20px 16px;
  }
  .form-builder__field-row {
    flex-wrap: wrap;
  }
}
