:root {
  --text-color-7: #ffffff;
  --text-color-8: #cecece;
  --text-color-9: #ebebeb;

  --gradient-1: linear-gradient(180deg, var(--color-1) 0%, var(--color-2) 100%);
  --gradient-2: linear-gradient(135deg, var(--color-3) 0%, var(--color-4) 100%);

  --gradient-1-reverted: linear-gradient(
    -180deg,
    var(--color-2) 0%,
    var(--color-1) 100%
  );
  --gradient-2-reverted: linear-gradient(
    -135deg,
    var(--color-3) 0%,
    var(--color-4) 100%
  );

  --gradient-1-vertical: linear-gradient(
    90deg,
    var(--color-1) 0%,
    var(--color-2) 100%
  );
  --gradient-2-vertical: linear-gradient(
    180deg,
    var(--color-3) 0%,
    var(--color-4) 100%
  );

  --text-size-sm: 13px;
  --text-size-md: 15px;
  --text-size-lg: 20px;
  --text-size-xl: 25px;
  --text-size-xxl: 35px;

  --sidebar-expand-width: 250px;
  --sidebar-width: 90px;
  --sidebar-start-img-width: 40px;

  --button-text-size: var(--text-size-md);
  --mini-button-text-size: var(--text-size-sm);
  --title-text-size: var(--text-size-lg);
  --mini-title-text-size: var(--text-size-md);
  --paragraphe-text-size: var(--text-size-sm);
  --content-padding: 40px;

  --button-padding: 15px 20px;
}
::-webkit-scrollbar {
  height: 12px;
  width: 7px;
  background: rgba(255, 255, 255, 0.178);
}

::-webkit-scrollbar-thumb {
  background: var(--text-color-3);
}
*::selection {
  background: #b3b3b386;
}
.table {
  --bs-table-bg: transparent !important;
}
body {
  overflow: hidden;
}
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  color: var(--text-color-1);
  font-family: "Nunito", sans-serif;
}
#content {
  background: var(--gradient-2);
  margin-left: var(--sidebar-width);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-attachment: fixed;
  background-size: cover;
}
#content .content-wrapper {
  min-height: 100vh;
  padding: calc(var(--content-padding) / 2) var(--content-padding);
  background: linear-gradient(
      0deg,
      var(--color-3) 0%,
      var(--color-3) 30%,
      var(--color-3) 40%,
      var(--color-5) 100%
    ),
    var(--settings-background);
  background-attachment: fixed;
  background-size: cover;
}
#socialLinks {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}
#socialLinks .social-item {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  background: var(--color-4);
  border-radius: 50px;
  font-size: 20px;
  transition: all ease 0.3s;
}
#socialLinks .social-item:hover {
  transform: scale(1.15);
  transition: all ease 0.3s;
}
#socialLinks .social-item i {
  line-height: 0;
}
#bigfooter {
  min-height: 200px;
  border-radius: 0 !important;
}
#bigfooter .bigfooter-image {
  width: 70%;
  align-self: center;
  transition: all ease 0.3s;
}
#bigfooter .bigfooter-image:hover {
  transform: scale(1.1);
  transition: all ease 0.3s;
}
#bigfooter .bigfooter-link {
  color: var(--text-color-1);
  transition: all ease 0.3s;
}
#bigfooter .bigfooter-link:hover {
  color: var(--text-color-2);
  font-weight: bold;
  transition: all ease 0.3s;
  text-decoration: none;
}
#bigfooter .bigfooter-link i {
  display: inline-block;
  color: var(--text-color-2);
  transform: scale(1.2);
  transition: all ease 0.3s;
}
#footer {
  border-top: 2px dashed rgba(255, 255, 255, 0.089);
  position: relative;
  font-weight: bold;
  color: var(--text-color-1);
}
#footer .Prolias-copyright {
  text-decoration: none;
  color: var(--text-color-1);
}
#footer .Prolias-copyright:hover {
  color: var(--text-color-2);
}
.btn-outline-primary {
  color: var(--text-color-1);
  border-color: var(--color-1);
}
.btn-outline-primary:hover {
  color: var(--text-color-1);
  background-color: var(--color-1);
  border-color: var(--color-1);
}
.badge {
  white-space: normal !important;
}
.deluxe-apex-modal .modal-content {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.deluxe-apex-modal .modal-body {
  padding: 18px;
}
.deluxe-apex-modal .modal-footer {
  gap: 10px;
}
.deluxe-apex-modal .apex-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: none;
  text-decoration: none !important;
  transition:
    background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    color 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}
.deluxe-apex-modal .apex-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
  text-decoration: none !important;
}
.deluxe-apex-modal .apex-popup-btn-light {
  background-color: #f8f9fa;
  color: #000 !important;
}
.deluxe-apex-modal .apex-popup-btn-light:hover {
  background-color: #fff;
  color: #000 !important;
}
.deluxe-apex-modal .apex-popup-btn-light:focus,
.deluxe-apex-modal .apex-popup-btn-light:visited {
  color: #000 !important;
}
.deluxe-apex-modal .apex-popup-btn-black {
  background-color: #050505;
  color: #fff;
}
.deluxe-apex-modal .apex-popup-btn-black:hover {
  background-color: #000;
  color: #fff;
}
.deluxe-apex-video {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #000;
}
.deluxe-apex-video iframe {
  border: 0;
}

/* ==========================================================================
   ZWORLD APOCALYPSE — CUSTOM THEME BY PROLIAS
   Habillage complet post-apocalyptique / infection zombie pour ZWorld FiveM
   ========================================================================== */

@keyframes zw-flicker {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 6px var(--text-color-2), 0 0 22px rgba(183,196,58,0.55), 2px 2px 0 rgba(0,0,0,0.65); }
  20% { opacity: 0.55; text-shadow: none; }
  22% { opacity: 0.85; text-shadow: 0 0 4px var(--text-color-2); }
  55% { opacity: 0.35; text-shadow: none; }
}
@keyframes zw-fog-drift {
  0%   { transform: translate3d(-4%, 0, 0) scale(1.05); opacity: 0.35; }
  50%  { transform: translate3d(3%, -1%, 0) scale(1.12); opacity: 0.5; }
  100% { transform: translate3d(-4%, 0, 0) scale(1.05); opacity: 0.35; }
}
@keyframes zw-pulse-toxic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183,196,58,0.45), 0 0 18px rgba(183,196,58,0.25) inset; }
  50%      { box-shadow: 0 0 0 6px rgba(183,196,58,0), 0 0 26px rgba(183,196,58,0.4) inset; }
}
@keyframes zw-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes zw-drip {
  0%   { background-position-y: -40px; opacity: 0.9; }
  100% { background-position-y: 40px; opacity: 0; }
}

/* Base typography — stencil / militaire, façon panneaux de quarantaine */
#app,
.btn,
.nav-link,
#sidebar .sidebar-link,
.section-title,
h1, h2, h3, h4,
.card .card-header,
.notification-item .content strong {
  font-family: "Oswald", "Nunito", sans-serif;
}
.section-title,
.login h1, .register h1, .password-request h1, .password-reset h1, .Afa h1, .Afa-verify h1, .password-confirm h1 {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.55), 0 0 14px rgba(183,196,58,0.25);
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 10px;
  min-width: 40px;
  background-image: repeating-linear-gradient(135deg, var(--text-color-2) 0 10px, #0a0a07 10px 20px);
  opacity: 0.85;
  border-radius: 2px;
}
.dash {
  background: none;
  background-image: repeating-linear-gradient(135deg, var(--text-color-2) 0 8px, #0a0a07 8px 16px);
  width: 60px;
}

/* Grain + vignette atmosphérique global, façon caméra de surveillance abandonnée */
#app {
  position: relative;
}
#app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 850; /* sous la sidebar (1100) et les modales (1300) */
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 840;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

/* Barre d'infection — liseré supérieur du contenu, façon ruban de quarantaine */
#content {
  position: relative;
}
#content::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 6px;
  width: 100%;
  z-index: 50;
  background-image: repeating-linear-gradient(-45deg, var(--text-color-2) 0 18px, #0a0a07 18px 36px);
  box-shadow: 0 0 16px rgba(183,196,58,0.5);
}

/* Scrollbar toxique */
::-webkit-scrollbar-thumb {
  background: var(--text-color-2) !important;
  box-shadow: 0 0 8px rgba(183,196,58,0.6);
}
*::selection {
  background: rgba(183,196,58,0.45);
  color: #0a0a07;
}

/* Sidebar — poste de garde délabré */
#sidebar {
  border-right: 1px solid rgba(183,196,58,0.18);
  box-shadow: 6px 0 30px rgba(0,0,0,0.55);
}
#sidebar::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background-image: repeating-linear-gradient(135deg, var(--text-color-2) 0 10px, #0a0a07 10px 20px);
  opacity: 0.9;
}
#sidebar .sidebar-start {
  position: relative;
}
#sidebar .sidebar-start img {
  filter: drop-shadow(0 0 8px rgba(183,196,58,0.55));
}
#sidebar .sidebar-link.active,
#sidebar .sidebar-link:hover {
  text-shadow: 0 0 10px rgba(183,196,58,0.6);
}
#sidebar .sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--text-color-2);
  box-shadow: 0 0 10px rgba(183,196,58,0.8);
}

/* Boutons — signalétique de survie, coins tranchés + lueur toxique au survol */
.btn {
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn.btn-gradient,
.btn.btn-primary,
.btn.btn-gradient-2 {
  border: 1px solid rgba(183,196,58,0.35);
}
.btn.btn-gradient:hover,
.btn.btn-primary:hover,
.btn.btn-gradient-2:hover {
  box-shadow: 0 0 22px rgba(183,196,58,0.55), 0 200px 100px -100px var(--color-2) inset;
}
#homebanner .btn-ip,
.btn.btn-primary {
  animation: zw-pulse-toxic 3.2s ease-in-out infinite;
}

/* Cartes — panneaux rouillés, rivets aux coins */
.card {
  border: 1px solid rgba(183,196,58,0.15) !important;
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("../img/zworld/cracks.svg");
  background-size: cover;
}
.card .card-header {
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(0,0,0,0.35);
}

/* Footer — panneau d'avertissement */
#footer {
  border-top: 2px solid rgba(183,196,58,0.2);
}

/* Login / register — check-point de survie */
.login .card, .register .card, .password-request .card, .password-reset .card,
.Afa .card, .Afa-verify .card, .password-confirm .card {
  border: 1px solid rgba(183,196,58,0.25) !important;
}

/* ==========================================================================
   ZWORLD APOCALYPSE — PASS 2 : effets immersifs (Prolias)
   Cendres flottantes, redémarrage électrique, glitch, rivets, impacts de sang
   ========================================================================== */

:root {
  --zw-blood: #8a1414;
  --zw-toxic: var(--text-color-2);
}

@keyframes zw-ash-rise {
  from { background-position: 0 0, 60px 40px, 120px 100px; }
  to   { background-position: 0 -220px, 60px -300px, 120px -160px; }
}
@keyframes zw-power-surge {
  0%   { filter: brightness(0.25) saturate(0.4); }
  4%   { filter: brightness(1.4) saturate(1.3); }
  8%   { filter: brightness(0.15) saturate(0.4); }
  13%  { filter: brightness(1.5) saturate(1.2); }
  18%  { filter: brightness(0.3); }
  26%  { filter: brightness(1.05); }
  100% { filter: brightness(1) saturate(1); }
}
@keyframes zw-glitch {
  0%   { text-shadow: 2px 0 #ff2b2b, -2px 0 #2bf7ff; transform: translate(0, 0); }
  20%  { text-shadow: -2px 0 #ff2b2b, 2px 0 #2bf7ff; transform: translate(-1px, 1px); }
  40%  { text-shadow: 2px 0 #ff2b2b, -2px 0 #2bf7ff; transform: translate(1px, -1px); }
  60%  { text-shadow: -1px 0 #ff2b2b, 1px 0 #2bf7ff; transform: translate(0, 0); }
  100% { text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); transform: translate(0, 0); }
}
@keyframes zw-scan {
  0%   { top: 0%; opacity: 0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}
@keyframes zw-pulse-border {
  0%, 100% { box-shadow: 6px 0 30px rgba(0, 0, 0, 0.55), inset -1px 0 0 rgba(183, 196, 58, 0.15); }
  50%      { box-shadow: 6px 0 42px rgba(0, 0, 0, 0.6), inset -1px 0 0 rgba(183, 196, 58, 0.45); }
}
@keyframes zw-bolt-glint {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Redémarrage électrique au chargement de chaque page — l'écran "reprend vie" */
#app {
  animation: zw-power-surge 1.4s ease-out 1;
}

/* Cendres / braises flottantes sur tout le site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 860;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 196, 110, 0.6) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(183, 196, 58, 0.45) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0.8px, transparent 1.4px);
  background-size: 180px 220px, 260px 300px, 140px 160px;
  background-position: 0 0, 60px 40px, 120px 100px;
  animation: zw-ash-rise 22s linear infinite;
}

/* Impact de survol "glitch" pour les titres interactifs */
.section-title:hover,
.server-name:hover,
.post .content .title:hover {
  animation: zw-glitch 0.4s steps(2) 1;
}

/* Curseur en réticule sur les boutons d'action principaux — immersion FPS/survie */
.btn.btn-primary,
.btn.btn-gradient,
#homebanner .btn-ip {
  cursor: crosshair;
}

/* Rivets métalliques au-dessus du logo — panneau de garde rouillé */
#sidebar .sidebar-start {
  padding-top: 14px;
}
#sidebar .sidebar-start::before,
#sidebar .sidebar-start::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dfe3ac, #4a4f22 75%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  animation: zw-bolt-glint 4s ease-in-out infinite;
}
#sidebar .sidebar-start::before { top: 6px; }
#sidebar .sidebar-start::after  { top: 15px; animation-delay: 2s; }

/* Halo pulsant sur la garde (sidebar) */
#sidebar {
  animation: zw-pulse-border 5s ease-in-out infinite;
}

/* Éclaboussures de sang discrètes sur les cartes/panneaux */
.card {
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -14px;
  width: 100px;
  height: 100px;
  background-image: url("../img/zworld/blood-splatter.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* Balayage façon caméra de surveillance sur la bannière d'accueil */
#homebanner .hommebanner-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183, 196, 58, 0.7), transparent);
  animation: zw-scan 7s linear infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #app,
  body::after,
  .section-title:hover,
  .server-name:hover,
  .post .content .title:hover,
  #sidebar,
  #sidebar .sidebar-start::before,
  #sidebar .sidebar-start::after,
  #homebanner .hommebanner-content::after,
  #homebanner .hommebanner-content .title,
  #homebanner::before,
  #homebanner::after {
    animation: none !important;
  }
}
