:root {
  --blue: #0b7cff;
  --blue-strong: #0069ff;
  --blue-cyan: #35c8ff;
  --blue-soft: rgba(11, 124, 255, 0.16);
  --white: #ffffff;
  --muted: #a8b7cc;
  --text: #edf5ff;
  --dark: #02060d;
  --panel: rgba(4, 10, 20, 0.64);
  --panel-strong: rgba(4, 12, 26, 0.84);
  --border: rgba(97, 162, 255, 0.28);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Outfit", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark);
  overflow-x: hidden;
}

body::selection {
  background: var(--blue);
  color: var(--white);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(1, 6, 14, 0.50) 58%, rgba(1, 5, 12, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 15, 38, 0.22) 48%, rgba(0, 0, 0, 0.48)),
    url("../assets/background-roleplay.png") center top / cover no-repeat fixed;
  filter: saturate(1.32) contrast(1.08) brightness(1.14);
  animation: bgDrift 22s ease-in-out infinite alternate;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 19%, rgba(0, 119, 255, 0.32), transparent 28%),
    radial-gradient(circle at 78% 32%, rgba(53, 200, 255, 0.16), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(0, 105, 255, 0.22), transparent 38%);
  mix-blend-mode: screen;
  opacity: 0.88;
  animation: glowMove 14s ease-in-out infinite alternate;
}

.animated-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(53, 200, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 200, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(11, 124, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 124, 255, 0.14) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0 42%, transparent 76%);
  animation: gridSlide 16s linear infinite;
}

.blue-orbs {
  position: fixed;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(circle at 12% 24%, rgba(11, 124, 255, 0.24), transparent 16%),
    radial-gradient(circle at 86% 12%, rgba(53, 200, 255, 0.16), transparent 17%),
    radial-gradient(circle at 72% 82%, rgba(0, 105, 255, 0.18), transparent 20%);
  filter: blur(8px);
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.05), transparent 26%);
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(0, 119, 255, 0.32);
  background: linear-gradient(180deg, rgba(1, 6, 14, 0.88), rgba(1, 6, 14, 0.68));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 200, 255, 0.92), transparent);
  opacity: 0.66;
  animation: headerLine 4s ease-in-out infinite;
}

.site-header.scrolled {
  background: rgba(1, 6, 14, 0.94);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(11, 124, 255, 0.5));
  animation: logoPulse 4s ease-in-out infinite;
}

.brand span {
  display: grid;
  line-height: 1.02;
}

.brand strong {
  font-size: 20px;
  font-weight: 800;
}

.brand em {
  color: var(--blue-cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.42em;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  color: rgba(237, 245, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  box-shadow: 0 0 18px rgba(11, 124, 255, 0.8);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.join-btn,
.primary-action,
.secondary-action,
.info-grid a,
.info-grid button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(69, 158, 255, 0.54);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 105, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.join-btn::before {
  content: "ᐱ";
  margin-right: 10px;
  color: #ff8a00;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.join-btn span,
.primary-action,
.secondary-action,
.info-grid a,
.info-grid button {
  position: relative;
  z-index: 1;
}

.join-btn::after,
.primary-action::after,
.secondary-action::after,
.info-grid a::after,
.info-grid button::after {
  content: "";
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-60%) rotate(10deg);
  transition: transform 0.6s ease;
}

.join-btn:hover,
.primary-action:hover,
.secondary-action:hover,
.info-grid a:hover,
.info-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0, 105, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border-color: rgba(160, 210, 255, 0.86);
}

.join-btn:hover::after,
.primary-action:hover::after,
.secondary-action:hover::after,
.info-grid a:hover::after,
.info-grid button:hover::after {
  transform: translateX(60%) rotate(10deg);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--white);
}

.section-pad {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-top: 74px;
  padding-bottom: 56px;
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding: 34px 38px;
  border: 1px solid rgba(97, 162, 255, 0.20);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(2, 8, 18, 0.48), rgba(2, 12, 28, 0.22));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 14% 0%, rgba(11, 124, 255, 0.24), transparent 38%),
    linear-gradient(90deg, rgba(53, 200, 255, 0.12), transparent 34%);
  pointer-events: none;
}

.hero-content > * {
  position: relative;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(237, 245, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span,
.section-kicker span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(11, 124, 255, 0.12), 0 0 24px rgba(11, 124, 255, 0.95);
  animation: dotPulse 1.8s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1.08;
  font-weight: 200;
  letter-spacing: -0.045em;
  text-transform: none;
  text-shadow: 0 12px 52px rgba(0, 0, 0, 0.66);
}

mark {
  background: transparent;
  color: var(--blue-cyan);
  text-shadow: 0 0 35px rgba(11, 124, 255, 0.62);
}

.hero-content p {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(237, 245, 255, 0.82);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  min-height: 58px;
  border-radius: 16px;
  padding: 0 24px;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.showcase {
  padding-top: 42px;
  padding-bottom: 52px;
}

.image-frame {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(89, 160, 255, 0.38);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(11, 124, 255, 0.32), rgba(255, 255, 255, 0.04), rgba(53, 200, 255, 0.14));
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.52), 0 0 90px rgba(11, 124, 255, 0.24);
  overflow: hidden;
  transform: translateZ(0);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(90deg, rgba(11, 124, 255, 0.24), transparent 22%, transparent 75%, rgba(255,255,255,0.18)),
    linear-gradient(120deg, transparent 10%, rgba(255,255,255,0.22) 28%, transparent 44%);
  background-size: 100% 100%, 220% 100%;
  background-position: center, -120% center;
  pointer-events: none;
  animation: imageSweep 6s ease-in-out infinite;
}

.image-frame::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -16px;
  height: 44px;
  border-radius: 999px;
  background: rgba(11, 124, 255, 0.58);
  filter: blur(28px);
  opacity: 0.58;
  animation: glowBreathe 3.8s ease-in-out infinite;
}

.image-frame img {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 10px);
  transform: scale(1.01);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.image-frame:hover img {
  transform: scale(1.035);
  filter: brightness(1.08) saturate(1.12);
}

.outro {
  position: relative;
  padding: 42px 34px 58px;
  text-align: center;
  border: 1px solid rgba(97, 162, 255, 0.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(4, 12, 26, 0.62), rgba(2, 7, 16, 0.38));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.outro::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 50% 0%, rgba(11, 124, 255, 0.26), transparent 48%);
  pointer-events: none;
}

.outro > * {
  position: relative;
}

.outro h2 {
  max-width: 980px;
  margin: 0 auto 18px;
  font-size: clamp(32px, 4.8vw, 72px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.outro h2 span {
  color: var(--blue-cyan);
  text-shadow: 0 0 46px rgba(11, 124, 255, 0.52);
}

.outro p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 48px;
  padding-bottom: 78px;
}

.info-grid article {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-grid article::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 0%, rgba(11, 124, 255, 0.26), transparent 36%);
  opacity: 0.64;
  pointer-events: none;
}

.info-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 200, 255, 0.46);
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.32), 0 0 60px rgba(11, 124, 255, 0.14);
}

.info-grid article > * {
  position: relative;
}

.info-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border: 1px solid rgba(11, 124, 255, 0.44);
  border-radius: 14px;
  background: rgba(11, 124, 255, 0.14);
  color: var(--blue-cyan);
  font-weight: 800;
  box-shadow: 0 0 28px rgba(11, 124, 255, 0.16);
}

.info-grid h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.info-grid p {
  min-height: 78px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

.info-grid a,
.info-grid button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 12px;
}

.info-grid button {
  font: inherit;
  font-size: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 34px max(34px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(0, 119, 255, 0.24);
  background: rgba(1, 6, 14, 0.78);
  backdrop-filter: blur(16px);
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(11, 124, 255, 0.34));
}

.footer-brand span {
  font-size: 16px;
  font-weight: 750;
}

.footer-brand strong {
  color: var(--blue-cyan);
}

.site-footer p {
  margin: 18px 0 0;
  color: rgba(237, 245, 255, 0.66);
  line-height: 1.6;
  font-weight: 300;
}

.site-footer ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  display: grid;
  grid-template-columns: 110px minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
  color: rgba(237, 245, 255, 0.7);
  font-size: 14px;
}

.site-footer strong {
  color: var(--white);
  font-weight: 650;
}

.site-footer a,
.site-footer button {
  color: var(--muted);
  font: inherit;
  font-weight: 300;
  text-align: left;
  text-decoration: none;
}

.site-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--blue-cyan);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 8, 18, 0.94);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow), 0 0 36px rgba(11, 124, 255, 0.18);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@keyframes bgDrift {
  from { background-position: center top; }
  to { background-position: 52% 3%; }
}

@keyframes glowMove {
  from { transform: translate3d(-1%, -1%, 0) scale(1); opacity: 0.78; }
  to { transform: translate3d(2%, 2%, 0) scale(1.04); opacity: 0.95; }
}

@keyframes gridSlide {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
}

@keyframes orbFloat {
  from { transform: translate3d(-2%, 1%, 0) rotate(0deg); }
  to { transform: translate3d(2%, -2%, 0) rotate(8deg); }
}

@keyframes headerLine {
  0%, 100% { opacity: 0.28; transform: scaleX(0.34); }
  50% { opacity: 0.78; transform: scaleX(0.86); }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(11, 124, 255, 0.42)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 24px rgba(53, 200, 255, 0.72)); transform: translateY(-1px); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(11, 124, 255, 0.12), 0 0 24px rgba(11, 124, 255, 0.95); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(11, 124, 255, 0.06), 0 0 34px rgba(53, 200, 255, 1); }
}

@keyframes imageSweep {
  0%, 52% { background-position: center, -120% center; }
  100% { background-position: center, 140% center; }
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.42; transform: scaleX(0.88); }
  50% { opacity: 0.78; transform: scaleX(1); }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto auto;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    display: grid;
    justify-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(1, 7, 16, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid p {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 70px;
    gap: 14px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand em {
    font-size: 9px;
  }

  .join-btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .join-btn span {
    display: none;
  }

  .join-btn::before {
    margin: 0;
  }

  .main-nav {
    top: 70px;
  }

  .section-pad {
    width: min(100% - 26px, var(--max));
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 34px;
  }

  .hero-content {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: clamp(28px, 9.5vw, 46px);
    letter-spacing: -0.04em;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .image-frame {
    border-radius: 22px;
    padding: 7px;
  }

  .image-frame::before {
    inset: 7px;
    border-radius: 16px;
  }

  .image-frame img {
    min-height: 230px;
    border-radius: 16px;
  }

  .outro {
    padding: 34px 18px 42px;
  }

  .site-footer {
    padding: 28px 16px;
  }

  .site-footer li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

/* Ajustements demandés : premier bloc, visuel FiveM, footer et micro-animations */
:root {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.brand {
  position: relative;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand::before {
  content: "";
  position: absolute;
  left: -7px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(53, 200, 255, 0.24);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.76) rotate(0deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.brand:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 18px rgba(11, 124, 255, 0.18));
}

.brand:hover::before {
  opacity: 1;
  transform: scale(1) rotate(180deg);
}

.brand:hover img {
  animation: logoHover 0.72s ease both;
}

.main-nav a {
  isolation: isolate;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-cyan);
  box-shadow: 0 0 18px rgba(53, 200, 255, 0.9);
  opacity: 0;
  transform: translateX(-5px) scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.main-nav a.active {
  background: linear-gradient(90deg, #ffffff, var(--blue-cyan), #ffffff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: navTextShine 3.2s ease-in-out infinite;
}

.hero {
  align-items: flex-start;
  min-height: max(560px, calc(86vh - 78px));
  padding-top: clamp(46px, 5.8vw, 86px);
  padding-bottom: clamp(44px, 5vw, 72px);
}

.hero-content {
  width: min(1040px, 100%);
  max-width: 1040px;
  padding: clamp(34px, 4.6vw, 56px) clamp(30px, 5.4vw, 66px);
  border-color: rgba(97, 162, 255, 0.28);
  background: linear-gradient(135deg, rgba(2, 8, 18, 0.62), rgba(2, 12, 28, 0.34));
}

.hero-content::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 200, 255, 0.58), transparent);
  opacity: 0.68;
  animation: heroLine 4.6s ease-in-out infinite;
}

.hero-content p {
  max-width: 870px;
}

.showcase {
  perspective: 1400px;
  padding-top: clamp(8px, 1.6vw, 20px);
  padding-bottom: clamp(58px, 6vw, 88px);
}

.image-frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: clamp(16px, 1.8vw, 24px);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift));
  transition: transform 0.18s ease, filter 0.25s ease;
  will-change: transform;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  border-radius: inherit;
  background: radial-gradient(circle 330px at var(--spotlight-x) var(--spotlight-y), rgba(53, 200, 255, 0.26), rgba(11, 124, 255, 0.08) 38%, transparent 68%);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateZ(46px);
  transition: opacity 0.25s ease;
}

.image-frame::after {
  display: none;
}

.image-frame:hover::before {
  opacity: 1;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  border-radius: inherit;
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.42), 0 0 52px rgba(11, 124, 255, 0.18);
  transform: translateZ(28px) scale(1.002);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.image-frame:hover img {
  transform: translateZ(44px) scale(1.01);
  filter: brightness(1.07) saturate(1.08);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.52), 0 0 70px rgba(53, 200, 255, 0.22);
}

.site-footer {
  position: relative;
  display: block;
  padding: 76px max(28px, calc((100vw - var(--max)) / 2)) 48px;
  border-top: 1px solid rgba(53, 200, 255, 0.18);
  background:
    radial-gradient(circle at 16% 0%, rgba(11, 124, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(1, 6, 14, 0.44), rgba(1, 6, 14, 0.94));
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(53, 200, 255, 0.13), transparent),
    radial-gradient(circle at 82% 40%, rgba(53, 200, 255, 0.12), transparent 26%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 480px);
  gap: 24px;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-main,
.footer-panel {
  position: relative;
  border: 1px solid rgba(97, 162, 255, 0.22);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.footer-main {
  padding: 30px;
}

.footer-main::after,
.footer-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 8% 0%, rgba(11, 124, 255, 0.22), transparent 42%);
  opacity: 0.82;
  pointer-events: none;
}

.footer-main > *,
.footer-panel > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  gap: 16px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 18px rgba(11, 124, 255, 0.52));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-brand:hover img {
  transform: rotate(-6deg) scale(1.08);
  filter: drop-shadow(0 0 26px rgba(53, 200, 255, 0.72));
}

.footer-brand span {
  font-size: 18px;
  font-weight: 800;
}

.site-footer p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(237, 245, 255, 0.72);
  line-height: 1.75;
  font-weight: 300;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(53, 200, 255, 0.22);
  border-radius: 999px;
  background: rgba(11, 124, 255, 0.08);
  color: rgba(237, 245, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-panel {
  padding: 22px;
}

.footer-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-panel-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-cyan);
  box-shadow: 0 0 20px rgba(53, 200, 255, 0.8);
}

.site-footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 12px 15px;
  border: 1px solid rgba(97, 162, 255, 0.16);
  border-radius: 16px;
  background: rgba(1, 8, 19, 0.48);
  color: rgba(237, 245, 255, 0.74);
  font-size: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.site-footer li:hover {
  transform: translateX(4px);
  border-color: rgba(53, 200, 255, 0.38);
  background: rgba(11, 124, 255, 0.1);
}

.site-footer strong {
  color: var(--white);
  font-weight: 750;
}

.site-footer a,
.site-footer button {
  color: rgba(237, 245, 255, 0.72);
  font: inherit;
  font-weight: 400;
  text-align: right;
  text-decoration: none;
  word-break: break-word;
}

.site-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--blue-cyan);
}

@keyframes navTextShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes logoHover {
  0% { transform: rotate(0deg) scale(1); }
  42% { transform: rotate(-8deg) scale(1.08); }
  74% { transform: rotate(5deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1.02); }
}

@keyframes heroLine {
  0%, 100% { opacity: 0.28; transform: scaleX(0.42); }
  50% { opacity: 0.78; transform: scaleX(1); }
}

@media (max-width: 1050px) {
  .main-nav a.active {
    -webkit-text-fill-color: currentColor;
    color: var(--white);
    background: transparent;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand::before {
    width: 56px;
    height: 56px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 32px;
  }

  .hero-content {
    padding: 28px 20px;
  }

  .showcase {
    padding-bottom: 54px;
  }

  .image-frame {
    border-radius: 16px;
  }

  .image-frame img {
    min-height: 0;
    border-radius: 16px;
  }

  .site-footer {
    padding: 48px 14px 28px;
  }

  .footer-main,
  .footer-panel {
    border-radius: 22px;
  }

  .footer-main {
    padding: 24px 20px;
  }

  .footer-panel {
    padding: 18px;
  }

  .site-footer li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer a,
  .site-footer button {
    text-align: left;
  }
}

/* V5 : rapprochement hero/showcase, icônes PNG, menu profil Discord et pages admin */
.site-header {
  grid-template-columns: auto 1fr auto;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-icon,
.btn-icon,
.inline-icon,
.card-icon,
.footer-link-icon,
.profile-dropdown img,
.chevron-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(53, 200, 255, 0.34));
}

.nav-icon {
  width: 17px;
  height: 17px;
  margin-right: 9px;
}

.btn-icon {
  position: relative;
  z-index: 1;
  margin-right: 10px;
}

.join-logo-icon {
  width: 22px;
  height: 22px;
}

.inline-icon {
  width: 24px;
  height: 24px;
  margin-right: 2px;
}

.join-btn::before {
  display: none;
}

.auth-btn,
.profile-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(97, 162, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover,
.profile-toggle:hover,
.account-area.open .profile-toggle {
  transform: translateY(-2px);
  border-color: rgba(53, 200, 255, 0.62);
  background: rgba(11, 124, 255, 0.13);
  box-shadow: 0 20px 48px rgba(0, 105, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-area {
  position: relative;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  border: 1px solid rgba(53, 200, 255, 0.35);
  border-radius: 999px;
  background: rgba(11, 124, 255, 0.12);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.account-area.open .chevron-icon {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 245px;
  padding: 10px;
  border: 1px solid rgba(97, 162, 255, 0.26);
  border-radius: 20px;
  background: rgba(1, 7, 16, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.44), 0 0 40px rgba(11, 124, 255, 0.16);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(97, 162, 255, 0.26);
  border-top: 1px solid rgba(97, 162, 255, 0.26);
  background: rgba(1, 7, 16, 0.96);
  transform: rotate(45deg);
}

.account-area.open .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 13px;
  color: rgba(237, 245, 255, 0.84);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-dropdown a:hover {
  transform: translateX(3px);
  background: rgba(11, 124, 255, 0.13);
  color: var(--white);
}

.hero {
  min-height: 0;
  padding-top: clamp(38px, 4vw, 64px);
  padding-bottom: clamp(10px, 1.2vw, 18px);
}

.showcase {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: clamp(48px, 5.2vw, 76px);
}

.hero-content {
  transform: translateY(-4px);
}

.hero-actions a,
.hero-actions button,
.join-btn,
.auth-btn,
.profile-toggle {
  gap: 0;
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.card-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 124, 255, 0.44);
  border-radius: 14px;
  background: rgba(11, 124, 255, 0.14);
  color: var(--blue-cyan);
  font-weight: 800;
  box-shadow: 0 0 28px rgba(11, 124, 255, 0.16);
}

.card-icon {
  width: 46px;
  height: 46px;
  padding: 9px;
  border: 1px solid rgba(53, 200, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 30px rgba(11, 124, 255, 0.12);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.info-grid article:hover .card-icon {
  transform: rotate(-5deg) scale(1.06);
  filter: drop-shadow(0 0 18px rgba(53, 200, 255, 0.62));
}

.site-footer li {
  grid-template-columns: 38px 108px minmax(0, 1fr);
}

.footer-link-icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 1px solid rgba(53, 200, 255, 0.20);
  border-radius: 12px;
  background: rgba(11, 124, 255, 0.10);
}

.admin-page,
.profile-page {
  min-height: 100vh;
  padding: 112px max(22px, calc((100vw - var(--max)) / 2)) 60px;
}

.admin-shell,
.profile-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.admin-hero,
.profile-card,
.admin-panel-card {
  border: 1px solid rgba(97, 162, 255, 0.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.064), rgba(255,255,255,0.018)), rgba(2, 8, 18, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.admin-hero {
  padding: clamp(26px, 4vw, 46px);
  margin-bottom: 22px;
}

.admin-hero h1,
.profile-card h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 66px);
  font-weight: 750;
  letter-spacing: -0.055em;
}

.admin-hero p,
.profile-card p,
.admin-help {
  color: rgba(237, 245, 255, 0.72);
  line-height: 1.7;
  font-weight: 300;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.admin-btn,
.admin-tab,
.asset-upload-button,
.profile-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(97, 162, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-btn.primary,
.profile-save {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  border-color: rgba(160, 210, 255, 0.64);
  box-shadow: 0 18px 44px rgba(0, 105, 255, 0.26);
}

.admin-btn:hover,
.admin-tab:hover,
.asset-upload-button:hover,
.profile-save:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 200, 255, 0.58);
  background-color: rgba(11, 124, 255, 0.13);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.admin-tab.active {
  background: rgba(11, 124, 255, 0.22);
  border-color: rgba(53, 200, 255, 0.58);
}

.admin-panel-card {
  padding: 22px;
}

.admin-section {
  display: none;
}

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

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

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field.full {
  grid-column: 1 / -1;
}

.admin-field label {
  color: rgba(237, 245, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field textarea,
.admin-field select,
.profile-field input,
.profile-field textarea {
  width: 100%;
  border: 1px solid rgba(97, 162, 255, 0.24);
  border-radius: 14px;
  background: rgba(1, 7, 16, 0.66);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-field textarea,
.profile-field textarea {
  min-height: 108px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus,
.profile-field input:focus,
.profile-field textarea:focus {
  border-color: rgba(53, 200, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(11, 124, 255, 0.12);
}

.asset-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
}

.asset-preview {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border: 1px solid rgba(53, 200, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.asset-upload-input {
  display: none;
}

.admin-json-editor {
  min-height: 520px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 13px !important;
  line-height: 1.55;
}

.admin-status {
  min-height: 26px;
  margin-top: 16px;
  color: var(--blue-cyan);
  font-weight: 700;
}

.profile-card {
  padding: clamp(24px, 4vw, 42px);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-top img {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 1px solid rgba(53, 200, 255, 0.26);
  background: rgba(11, 124, 255, 0.12);
}

.profile-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field label {
  color: rgba(237, 245, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.config-warning {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 194, 97, 0.34);
  border-radius: 16px;
  background: rgba(255, 138, 0, 0.08);
  color: rgba(255, 231, 190, 0.95);
  line-height: 1.6;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .header-actions {
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-actions {
    gap: 8px;
  }

  .auth-btn,
  .profile-toggle {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .auth-btn span,
  .profile-toggle span,
  .join-btn span {
    display: none;
  }

  .auth-btn .btn-icon,
  .join-btn .btn-icon,
  .profile-avatar {
    margin-right: 0;
  }

  .chevron-icon {
    display: none;
  }

  .profile-dropdown {
    right: -6px;
    width: min(260px, calc(100vw - 24px));
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 8px;
  }

  .showcase {
    padding-bottom: 42px;
  }

  .site-footer li {
    grid-template-columns: 34px 1fr;
  }

  .site-footer li a,
  .site-footer li button {
    grid-column: 2;
  }

  .asset-row {
    grid-template-columns: 1fr;
  }
}

/* V7 : header propre + vrai bouton Profil avec menu au survol */
[hidden] {
  display: none !important;
}

.header-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.account-area,
.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-menu[hidden],
.auth-btn[hidden],
.profile-dropdown a[hidden] {
  display: none !important;
}

.header-actions .join-btn,
.header-actions .auth-btn,
.header-actions .profile-toggle {
  isolation: isolate;
  min-height: 52px;
  height: 52px;
  border-radius: 18px;
  white-space: nowrap;
  line-height: 1;
}

.header-actions .join-btn {
  padding: 0 25px;
  gap: 10px;
}

.auth-btn,
.profile-toggle {
  min-width: 166px;
  padding: 0 18px;
  gap: 10px;
  border: 1px solid rgba(91, 169, 255, 0.42);
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 200, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(7, 22, 46, 0.92), rgba(3, 12, 27, 0.78));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(11, 124, 255, 0.07);
  overflow: hidden;
}

.auth-btn::before,
.profile-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(53, 200, 255, 0.18), transparent);
  opacity: 0;
  transform: translateX(-44%);
  transition: opacity 0.25s ease, transform 0.55s ease;
}

.auth-btn:hover,
.profile-toggle:hover,
.account-area.open .profile-toggle,
.account-area:hover .profile-toggle,
.account-area:focus-within .profile-toggle {
  transform: translateY(-2px);
  border-color: rgba(92, 199, 255, 0.78);
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 200, 255, 0.20), transparent 35%),
    linear-gradient(135deg, rgba(9, 31, 67, 0.96), rgba(4, 17, 38, 0.88));
  box-shadow:
    0 22px 55px rgba(0, 105, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 34px rgba(11, 124, 255, 0.18);
}

.auth-btn:hover::before,
.profile-toggle:hover::before,
.account-area.open .profile-toggle::before,
.account-area:hover .profile-toggle::before,
.account-area:focus-within .profile-toggle::before {
  opacity: 1;
  transform: translateX(44%);
}

.auth-btn .btn-icon,
.profile-avatar {
  width: 24px;
  height: 24px;
  margin: 0;
  object-fit: cover;
}

.profile-avatar {
  border-radius: 999px;
  border: 1px solid rgba(92, 199, 255, 0.42);
  background: rgba(11, 124, 255, 0.14);
  box-shadow: 0 0 18px rgba(53, 200, 255, 0.14);
}

.auth-btn span,
.profile-toggle span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.chevron-icon {
  width: 13px;
  height: 13px;
  margin: 0 0 0 2px;
  opacity: 0.78;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.account-area.open .chevron-icon,
.account-area:hover .chevron-icon,
.account-area:focus-within .chevron-icon {
  opacity: 1;
  transform: rotate(180deg);
}

.profile-dropdown {
  top: calc(100% + 12px);
  right: 0;
  width: 235px;
  padding: 9px;
  border-radius: 18px;
  border: 1px solid rgba(91, 169, 255, 0.35);
  background:
    radial-gradient(circle at 18% 0%, rgba(53, 200, 255, 0.12), transparent 36%),
    rgba(1, 7, 16, 0.96);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(11, 124, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.975);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.account-area.open .profile-dropdown,
.account-area:hover .profile-dropdown,
.account-area:focus-within .profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-dropdown::before {
  right: 26px;
  background: rgba(1, 7, 16, 0.96);
  border-color: rgba(91, 169, 255, 0.35);
}

.profile-dropdown a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(237, 245, 255, 0.86);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.045em;
  text-decoration: none;
  overflow: hidden;
}

.profile-dropdown a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(11, 124, 255, 0.13), rgba(53, 200, 255, 0.08));
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-dropdown a:hover {
  transform: translateX(3px);
  border-color: rgba(91, 169, 255, 0.20);
  color: var(--white);
}

.profile-dropdown a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.profile-dropdown img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .header-actions {
    gap: 9px;
  }

  .header-actions .join-btn,
  .header-actions .auth-btn,
  .header-actions .profile-toggle {
    min-height: 48px;
    height: 48px;
  }

  .auth-btn,
  .profile-toggle {
    min-width: 142px;
    padding: 0 14px;
  }
}

@media (max-width: 720px) {
  .header-actions {
    gap: 7px;
  }

  .header-actions .join-btn,
  .header-actions .auth-btn,
  .header-actions .profile-toggle {
    min-height: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .auth-btn,
  .profile-toggle {
    min-width: 0;
    padding: 0 12px;
  }

  .auth-btn span,
  .profile-toggle span,
  .join-btn span {
    display: none;
  }

  .auth-btn .btn-icon,
  .join-btn .btn-icon,
  .profile-avatar {
    margin: 0;
  }

  .profile-dropdown {
    right: -4px;
    width: min(236px, calc(100vw - 18px));
  }
}

/* V8 : bandeau activité, menu Profil au survol, footer moderne et panel enrichi */
.activity-ticker {
  position: sticky;
  top: 0;
  z-index: 70;
  height: 40px;
  border-bottom: 1px solid rgba(53, 200, 255, 0.22);
  background: linear-gradient(90deg, rgba(1, 7, 16, 0.98), rgba(3, 14, 31, 0.96), rgba(1, 7, 16, 0.98));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32), inset 0 -1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.activity-ticker[hidden] {
  display: none !important;
}

.activity-ticker::before,
.activity-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 90px;
  pointer-events: none;
}

.activity-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #010710, transparent);
}

.activity-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #010710, transparent);
}

.activity-ticker-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.activity-ticker-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border: 1px solid rgba(53, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(11, 124, 255, 0.13);
  color: #edf5ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-ticker-window {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.activity-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  animation: activityMarquee var(--ticker-duration, 36s) linear infinite;
  will-change: transform;
}

.activity-ticker:hover .activity-ticker-track {
  animation-play-state: paused;
}

.activity-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 0 12px 0 7px;
  border: 1px solid rgba(97, 162, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(237, 245, 255, 0.80);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}

button.activity-ticker-item,
a.activity-ticker-item {
  cursor: pointer;
}

.activity-ticker-item:hover {
  border-color: rgba(53, 200, 255, 0.45);
  background: rgba(11, 124, 255, 0.12);
  color: var(--white);
}

.activity-ticker-item img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(53, 200, 255, 0.22));
}

.activity-ticker-item strong {
  color: var(--blue-cyan);
  font-weight: 850;
}

.activity-ticker-item span {
  color: rgba(237, 245, 255, 0.82);
  font-weight: 650;
}

body.has-activity-ticker .site-header {
  top: 40px;
}

.account-area::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 270px;
  height: 18px;
  pointer-events: auto;
}

.profile-dropdown {
  top: calc(100% + 8px);
}

.account-area:hover .profile-dropdown,
.account-area:focus-within .profile-dropdown,
.account-area.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-footer {
  position: relative;
  display: block !important;
  padding: clamp(54px, 6vw, 82px) max(22px, calc((100vw - var(--max)) / 2)) 26px !important;
  border-top: 1px solid rgba(53, 200, 255, 0.18) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(11, 124, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(1, 6, 14, 0.78), #010710 72%) !important;
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(11, 124, 255, 0.08), transparent),
    linear-gradient(rgba(53, 200, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 100% 58px;
  opacity: 0.72;
  pointer-events: none;
}

.footer-v8-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-v8-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(520px, 2fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
  padding-bottom: 54px;
}

.footer-about {
  max-width: 520px;
}

.footer-brand {
  align-items: center;
  gap: 18px;
  text-transform: uppercase;
}

.footer-brand img {
  width: 70px !important;
  height: 70px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(11, 124, 255, 0.45));
}

.footer-brand span {
  color: rgba(237,245,255,0.98);
  font-size: clamp(18px, 1.4vw, 24px) !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em;
}

.footer-description {
  max-width: 430px !important;
  margin: 18px 0 0 !important;
  color: rgba(237, 245, 255, 0.66) !important;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: clamp(26px, 4vw, 74px);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 2px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.footer-column a,
.footer-column button,
.footer-column-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: fit-content;
  min-height: 24px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(237, 245, 255, 0.68) !important;
  font: inherit;
  font-size: clamp(14px, 1vw, 17px) !important;
  font-weight: 780 !important;
  line-height: 1.3;
  text-align: left !important;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.footer-column a:hover,
.footer-column button:hover,
.footer-column-link:hover {
  color: #edf5ff !important;
  transform: translateX(4px);
}

.footer-column-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.58;
  filter: drop-shadow(0 0 7px rgba(53, 200, 255, 0.24));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-column-link:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.footer-v8-bottom {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(237, 245, 255, 0.08);
  color: rgba(237, 245, 255, 0.42);
  font-size: 13px;
  font-weight: 700;
}

.footer-v8-bottom span:last-child {
  text-align: right;
}

.admin-panel-card {
  border-color: rgba(53, 200, 255, 0.28);
}

.admin-tabs {
  position: sticky;
  top: 94px;
  z-index: 4;
  padding: 10px;
  border: 1px solid rgba(97, 162, 255, 0.14);
  border-radius: 18px;
  background: rgba(1, 7, 16, 0.72);
  backdrop-filter: blur(14px);
}

body.has-activity-ticker .admin-tabs {
  top: 134px;
}

.admin-tab {
  min-height: 42px;
  border-radius: 12px;
  font-size: 12px;
}

.admin-section.active {
  animation: adminSectionIn 0.22s ease both;
}

.admin-field {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(97, 162, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
}

.admin-field.full {
  min-height: 0;
}

.asset-preview {
  background:
    linear-gradient(135deg, rgba(11,124,255,0.08), rgba(53,200,255,0.05)),
    rgba(255,255,255,0.045);
}

@keyframes activityMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@media (max-width: 1050px) {
  body.has-activity-ticker .site-header {
    top: 38px;
  }

  .activity-ticker {
    height: 38px;
  }

  .activity-ticker-inner {
    width: min(100% - 24px, var(--max));
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-ticker-label {
    display: none;
  }

  .footer-v8-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 720px) {
  body.has-activity-ticker .site-header {
    top: 36px;
  }

  .activity-ticker {
    height: 36px;
  }

  .activity-ticker-item {
    font-size: 11px;
    min-height: 24px;
  }

  .footer-v8-top {
    padding-bottom: 34px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand img {
    width: 56px !important;
    height: 56px !important;
  }

  .footer-v8-bottom {
    display: grid;
    gap: 10px;
  }

  .footer-v8-bottom span:last-child {
    text-align: left;
  }

  .admin-tabs {
    top: 80px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body.has-activity-ticker .admin-tabs {
    top: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-ticker-track {
    animation: none !important;
  }
}


/* V9 : panel staff propre, profil éditable plus lisible, bandeau sans bulle, menu Profil au survol */
.activity-ticker-inner {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.activity-ticker-label,
.activity-ticker-label[hidden] {
  display: none !important;
}

.activity-ticker {
  height: 38px;
}

.activity-ticker-item {
  min-height: 25px;
  padding: 0 13px 0 7px;
  background: rgba(255, 255, 255, 0.038);
}

body.has-activity-ticker .site-header {
  top: 38px;
}

.account-area:hover .profile-dropdown,
.account-area:focus-within .profile-dropdown,
.account-area.open .profile-dropdown {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.account-area::after {
  height: 22px;
  top: calc(100% - 2px);
}

.profile-dropdown {
  top: calc(100% + 7px) !important;
}

.admin-page {
  padding-top: 118px;
}

.admin-hero {
  position: relative;
  overflow: hidden;
}

.admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(11,124,255,0.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(53,200,255,0.08), transparent 30%);
  pointer-events: none;
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-panel-card {
  display: grid !important;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px !important;
  overflow: visible !important;
}

.admin-sidebar {
  position: sticky;
  top: 102px;
  z-index: 5;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 126px);
  padding: 14px;
  border: 1px solid rgba(97,162,255,0.18);
  border-radius: 22px;
  background: rgba(1, 7, 16, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.24);
  backdrop-filter: blur(16px);
}

body.has-activity-ticker .admin-sidebar {
  top: 140px;
}

.admin-sidebar-title {
  padding: 0 3px;
  color: rgba(237,245,255,0.94);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-search {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(97,162,255,0.24);
  border-radius: 14px;
  background: rgba(1,7,16,0.62);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  font: inherit;
  font-weight: 650;
}

.admin-search:focus {
  border-color: rgba(53,200,255,0.58);
  box-shadow: 0 0 0 4px rgba(11,124,255,0.12);
}

.admin-tabs {
  position: static !important;
  top: auto !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: calc(100vh - 230px);
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow-y: auto;
  backdrop-filter: none !important;
}

.admin-tab {
  justify-content: flex-start !important;
  min-height: 43px !important;
  width: 100%;
  padding: 0 13px !important;
  text-align: left;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 14px !important;
  color: rgba(237,245,255,0.76);
}

.admin-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(11,124,255,0.26), rgba(53,200,255,0.10)) !important;
  border-color: rgba(53,200,255,0.52) !important;
  box-shadow: 0 14px 34px rgba(11,124,255,0.16);
}

.admin-content-area {
  min-width: 0;
  padding: 2px;
}

.admin-section-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
  gap: 14px !important;
}

.admin-field {
  min-width: 0;
  background: rgba(255,255,255,0.032) !important;
}

.admin-field label {
  overflow-wrap: anywhere;
}

.asset-row {
  grid-template-columns: 70px minmax(0, 1fr) auto !important;
}

.asset-row input {
  min-width: 0;
}

.asset-upload-button {
  white-space: nowrap;
}

.admin-json-editor {
  width: 100%;
  min-height: 560px !important;
}

.profile-page-v9 {
  padding-top: 118px;
}

.profile-card-v9 {
  overflow: visible;
}

.profile-layout-v9 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.profile-form {
  max-width: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-field.full {
  grid-column: 1 / -1;
}

.profile-help-card {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(97,162,255,0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(11,124,255,0.16), transparent 38%),
    rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.22);
}

.profile-help-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(53,200,255,0.32);
  background: rgba(11,124,255,0.12);
  box-shadow: 0 0 32px rgba(11,124,255,0.18);
}

.profile-help-card h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.profile-help-card p {
  margin: 0;
  color: rgba(237,245,255,0.68);
  line-height: 1.65;
}

.profile-save {
  width: fit-content;
}

@media (max-width: 1100px) {
  .admin-panel-card {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    top: auto !important;
    max-height: none;
  }
  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
  .profile-layout-v9 {
    grid-template-columns: 1fr;
  }
  .profile-help-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .activity-ticker {
    height: 34px;
  }
  body.has-activity-ticker .site-header {
    top: 34px;
  }
  .admin-page,
  .profile-page-v9 {
    padding-top: 104px;
  }
  .admin-panel-card {
    padding: 12px !important;
  }
  .admin-tabs {
    grid-template-columns: 1fr;
  }
  .admin-form-grid,
  .profile-form {
    grid-template-columns: 1fr !important;
  }
  .asset-row {
    grid-template-columns: 1fr !important;
  }
  .profile-top {
    align-items: flex-start;
  }
}


/* V10 : présence membres en ligne + URLs propres */
.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 282px);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.hero .hero-content {
  width: 100%;
  max-width: none;
  transform: none;
}

.online-panel {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 14px;
  border: 1px solid rgba(97, 162, 255, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(53, 200, 255, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(1, 7, 16, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

body.has-activity-ticker .online-panel {
  top: 142px;
}

.online-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, rgba(11,124,255,0.20), transparent 28%, rgba(53,200,255,0.08));
  pointer-events: none;
  opacity: 0.72;
}

.online-panel > * {
  position: relative;
  z-index: 1;
}

.online-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.online-panel-head span {
  color: rgba(237, 245, 255, 0.94);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.online-panel-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(53, 200, 255, 0.34);
  border-radius: 999px;
  background: rgba(11, 124, 255, 0.14);
  color: var(--blue-cyan);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(11,124,255,0.16);
}

.online-list {
  display: grid;
  gap: 8px;
  max-height: 214px;
  overflow: auto;
  padding-right: 2px;
}

.online-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(97, 162, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.online-user:hover {
  transform: translateX(3px);
  border-color: rgba(53, 200, 255, 0.34);
  background: rgba(11, 124, 255, 0.10);
}

.online-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.online-avatar-wrap img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(53, 200, 255, 0.28);
  background: rgba(11, 124, 255, 0.12);
}

.online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #020812;
  border-radius: 999px;
  background: #23f59b;
  box-shadow: 0 0 14px rgba(35, 245, 155, 0.68);
}

.online-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(237, 245, 255, 0.86);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(97, 162, 255, 0.18);
  border-radius: 15px;
  color: rgba(237, 245, 255, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .online-panel {
    position: relative;
    top: auto !important;
    width: 100%;
  }

  .online-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .online-list {
    grid-template-columns: 1fr;
  }

  .online-panel {
    border-radius: 19px;
    padding: 12px;
  }
}
