/* ============================================================
   METROPOLICE FORCE - COMBINE OVERWATCH TERMINAL SYSTEM
   Style inspiré des terminaux Combine de Half-Life 2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&display=swap');

/* ==================== COMBINE ALPHABET FONT (site-wide) ==================== */
@font-face {
  font-family: 'CombineAlphabet';
  src: url('../images/Combine_alphabet.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.combine-font {
  font-family: 'CombineAlphabet', monospace !important;
  color: var(--accent-cyan);
  letter-spacing: 3px;
}

/* ==================== VARIABLES ==================== */
:root {
  --bg-primary: #020810;
  --bg-secondary: #06101a;
  --bg-card: #0a1520;
  --bg-card-hover: #0e1a28;

  --accent-cyan: #00aaff;
  --accent-blue: #0077cc;
  --accent-purple: #6644aa;
  --accent-green: #00cc66;
  --accent-yellow: #ccaa00;
  --accent-orange: #cc6600;
  --accent-red: #cc2222;
  --accent-pink: #cc5577;

  --text-primary: #e2edf8;
  --text-secondary: #9fb5c8;
  --text-muted: #7e99b0;

  --border-color: rgba(0, 170, 255, 0.12);
  --border-glow: rgba(0, 170, 255, 0.35);

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 4px rgba(0, 170, 255, 0.08);

  --transition-fast: 0.1s ease;
  --transition-normal: 0.15s ease;
  --transition-slow: 0.25s ease;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Radius scale */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-round: 50%;

  --z-particles: -1;
  --z-content: 1;
  --z-decorative: 50;
  --z-header: 100;
  --z-dropdown: 200;
  --z-nav: 1000;
  --z-nav-dropdown: 1001;
  --z-float-panels: 1100;
  --z-float-tabs: 1101;
  --z-scanline: 2000;
  --z-badge: 3000;
  --z-options-gear: 9500;
  --z-site-header: 1050;
  --z-back-btn: 999;

  /* Layout editor — kept for _applyLayoutConfig() / admin offset system */
  --z-modal: 10000;
  --z-layout-editor: 45000;
  --z-confirm: 50000;

  /* Red accent: use --accent-red (#cc2222) for borders/muted, --accent-red-bright for badges/alerts */
  --accent-red-bright: #ff4444;
}

/* ==================== RESET ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Fix select dropdown: texte lisible (fond sombre) */
select, select option, select optgroup {
  background: #0a1628;
  color: var(--text-primary);
}
select optgroup {
  color: var(--accent-cyan);
  font-style: normal;
}

html { scroll-behavior: smooth; overflow-x: hidden; overflow-y: auto; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  font-family: 'Chakra Petch', 'Rajdhani', 'Courier New', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Pages publiques (login, register, pending) : révéler immédiatement */
body.public-page {
  visibility: visible;
  opacity: 1;
}
/* Pages protégées : révélées par auth.js via la classe mpf-authed */
body.mpf-authed {
  visibility: visible;
  opacity: 1;
}
/* Cacher nav/search/panneaux sur les pages publiques */
body.public-page .main-nav,
body.public-page .nav-tabs-bar,
body.public-page #search-container,
body.public-page .site-search-wrapper,
body.public-page .gp-float-panel,
body.public-page .gp-float-tab,
body.public-page #gpOnlinePanel,
body.public-page #gpOnlineTab,
body.public-page .mpf-options-gear {
  display: none !important;
}
@keyframes mpfBodyReveal { to { opacity: 1; } }
body.fonts-ready.public-page {
  opacity: 1;
  animation: none;
}

/* ==================== COMBINE TERMINAL BACKGROUND ==================== */
/* ─── BASE / DÉFAUT ─── (original) */
.particles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: var(--z-particles);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0, 40, 80, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(0, 20, 50, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(0, 15, 40, 0.15) 0%, transparent 50%),
    var(--bg-primary);
}

.particles-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(0, 170, 255, 0.025) 59px, rgba(0, 170, 255, 0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(0, 170, 255, 0.025) 59px, rgba(0, 170, 255, 0.025) 60px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}

.particles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 4px),
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Hide CRT horizontal lines when disabled */
body:not(.fx-crt) .particles-bg::after {
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Ambient sweeping light — default animation, toggleable */
body::before {
  content: '';
  position: fixed;
  top: 0; left: -50%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent 30%, rgba(0, 100, 200, 0.015) 48%, rgba(0, 170, 255, 0.03) 50%, rgba(0, 100, 200, 0.015) 52%, transparent 70%);
  z-index: var(--z-decorative);
  pointer-events: none;
  animation: ambientSweep 12s ease-in-out infinite;
  display: none;
}
/* body::before is only used by non-default themes — default uses .scanline-overlay only */
body.fx-scanline:is(.bg-citadelle, .bg-terminal, .bg-scanner, .bg-reseau)::before {
  display: block;
}

@keyframes ambientSweep {
  0% { transform: translateX(-20%); }
  50% { transform: translateX(20%); }
  100% { transform: translateX(-20%); }
}

/* Top accent line (shared, all themes) */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--accent-cyan) 50%, transparent 95%);
  z-index: var(--z-decorative);
  pointer-events: none;
  opacity: 0.5;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.15), 0 0 40px rgba(0, 170, 255, 0.05);
}

/* ─── THEME: CITADELLE ─── */
/* Hex grid teal glow — inspired by Citadel terminal screens */
body.bg-citadelle .particles-bg {
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(0, 180, 200, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 90% at 50% 0%, rgba(0, 80, 120, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(0, 15, 35, 0.35) 0%, transparent 60%),
    var(--bg-primary);
}
body.bg-citadelle .particles-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300cccc' fill-opacity='0.04'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: citadelleHex 6s ease-in-out infinite;
  background-size: 28px 49px;
}
body.bg-citadelle .particles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
body.bg-citadelle::before {
  content: '';
  position: fixed;
  top: 0; left: 50%;
  width: 300px; height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(0, 200, 220, 0.06) 0%, rgba(0, 170, 200, 0.03) 30%, transparent 60%);
  z-index: var(--z-decorative);
  pointer-events: none;
  filter: blur(40px);
  animation: citadelleGlow 5s ease-in-out infinite;
}
@keyframes citadelleHex {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes citadelleGlow {
  0%, 100% { opacity: 0.3; width: 300px; }
  50% { opacity: 0.6; width: 400px; }
}

/* ─── THEME: TERMINAL ─── */
/* Dark blue data panel — dense scanlines, vertical scan beam */
body.bg-terminal .particles-bg {
  background:
    radial-gradient(ellipse 60% 80% at 50% 30%, rgba(0, 30, 80, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(0, 10, 30, 0.3) 0%, transparent 50%),
    #010812;
}
body.bg-terminal .particles-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 100, 200, 0.012) 3px, rgba(0, 100, 200, 0.012) 4px);
  background-size: 100% 4px;
  animation: none;
}
body.bg-terminal .particles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 40, 100, 0.03) 0%, transparent 15%, transparent 85%, rgba(0, 20, 60, 0.04) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}
body.bg-terminal::before {
  content: '';
  position: fixed;
  top: -3px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent 10%, rgba(0, 100, 200, 0.15) 50%, transparent 90%);
  z-index: var(--z-decorative);
  pointer-events: none;
  animation: terminalScan 10s linear infinite;
  box-shadow: 0 0 30px rgba(0, 100, 200, 0.08);
}
@keyframes terminalScan {
  0% { top: -3px; }
  100% { top: 100%; }
}

/* ─── THEME: SCANNER ─── */
/* Horizontal glitch lines — CRT interference, dark oppressive */
body.bg-scanner .particles-bg {
  background:
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(0, 15, 30, 0.12) 0%, transparent 60%),
    #010a10;
}
body.bg-scanner .particles-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 1px,
      rgba(0, 170, 255, 0.008) 1px,
      rgba(0, 170, 255, 0.008) 2px,
      transparent 2px,
      transparent 4px
    );
  background-size: 100% 4px;
  animation: scannerFlicker 0.08s steps(2) infinite;
}
body.bg-scanner .particles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.015) 2px, rgba(0, 0, 0, 0.015) 4px),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}
body.bg-scanner::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(0, 170, 255, 0.008) 48%,
      rgba(0, 170, 255, 0.02) 50%,
      rgba(0, 170, 255, 0.008) 52%,
      transparent 100%
    );
  z-index: var(--z-decorative);
  pointer-events: none;
  animation: scannerSweep 6s ease-in-out infinite;
}
@keyframes scannerFlicker {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}
@keyframes scannerSweep {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

/* ─── THEME: RÉSEAU ─── */
/* Combine network — circuit grid, data node points, slow radar sweep */
body.bg-reseau .particles-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 30, 60, 0.12) 0%, transparent 60%),
    var(--bg-primary);
}
body.bg-reseau .particles-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(0, 170, 255, 0.02) 79px, rgba(0, 170, 255, 0.02) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0, 170, 255, 0.02) 79px, rgba(0, 170, 255, 0.02) 80px);
  background-size: 80px 80px;
  animation: reseauGrid 10s ease-in-out infinite;
}
body.bg-reseau .particles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 2px at 10% 20%, rgba(0, 170, 255, 0.12) 0%, transparent 100%),
    radial-gradient(circle 2px at 30% 60%, rgba(0, 170, 255, 0.1) 0%, transparent 100%),
    radial-gradient(circle 2px at 50% 10%, rgba(0, 170, 255, 0.08) 0%, transparent 100%),
    radial-gradient(circle 2px at 70% 80%, rgba(0, 170, 255, 0.1) 0%, transparent 100%),
    radial-gradient(circle 2px at 90% 40%, rgba(0, 170, 255, 0.12) 0%, transparent 100%),
    radial-gradient(circle 2px at 25% 90%, rgba(0, 170, 255, 0.06) 0%, transparent 100%),
    radial-gradient(circle 2px at 65% 35%, rgba(0, 170, 255, 0.08) 0%, transparent 100%),
    radial-gradient(circle 2px at 85% 15%, rgba(0, 170, 255, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  animation: reseauNodes 3s ease-in-out infinite;
}
body.bg-reseau::before {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  width: 100vmax; height: 100vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 170, 255, 0.015) 10deg, transparent 30deg);
  z-index: var(--z-decorative);
  pointer-events: none;
  animation: reseauSweep 20s linear infinite;
}
@keyframes reseauGrid {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}
@keyframes reseauNodes {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes reseauSweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(2, 8, 16, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  z-index: var(--z-site-header);
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 0.8rem;
  min-height: 52px;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--bg-primary);
  clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logo-icon:hover {
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
  transform: scale(1.05);
}

/* Server logo glow effect */
.header-server-logo {
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.3), 0 0 16px rgba(0, 170, 255, 0.15);
  animation: mpfLogoGlow 3s ease-in-out infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.header-server-logo:hover {
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.5), 0 0 28px rgba(0, 170, 255, 0.25);
  transform: scale(1.05);
}
@keyframes mpfLogoGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 170, 255, 0.3), 0 0 16px rgba(0, 170, 255, 0.15); }
  50% { box-shadow: 0 0 14px rgba(0, 170, 255, 0.5), 0 0 24px rgba(0, 170, 255, 0.25); }
}
body.mpf-potato .header-server-logo { animation: none; }

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 170, 255, 0.15);
}

.logo-subtitle {
  display: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .logo-subtitle { display: block; }
}

/* ==================== HEADER CENTER ZONE ==================== */
#mpfHeaderCenter {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  pointer-events: auto;
  z-index: 1;
}
.mpf-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.mpf-header-logo:hover { opacity: 1; }
.mpf-header-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.35));
}
#mpfHeaderCenter .mpf-money-widget {
  padding: 0.25rem 0.8rem;
  gap: 2px;
  min-width: 180px;
  max-height: calc(100% - 6px);
  overflow: hidden;
  margin: 3px 0;
}
#mpfHeaderCenter .mpf-money-label { font-size: 0.5rem; letter-spacing: 1.5px; }
#mpfHeaderCenter .mpf-money-amounts { font-size: 0.78rem; }
#mpfHeaderCenter .mpf-money-bottom { font-size: 0.56rem; }
#mpfHeaderCenter .mpf-money-bar-wrap { max-width: 130px; height: 4px; }
@media (max-width: 1100px) {
  #mpfHeaderCenter .mpf-money-widget { display: none; }
}
@media (max-width: 900px) {
  #mpfHeaderCenter { display: none; }
}

/* ==================== LAYOUT EDITOR OVERLAY ==================== */
/* Keep same max-width as production so editor is WYSIWYG */
.layout-editor-active .site-header {
  background-image:
    repeating-linear-gradient(to right, rgba(0,170,255,0.06) 0, rgba(0,170,255,0.06) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(to bottom, rgba(0,170,255,0.06) 0, rgba(0,170,255,0.06) 1px, transparent 1px, transparent 40px);
  background-size: 40px 40px;
}
.layout-editor-active .header-content {
  background-image:
    repeating-linear-gradient(to right, rgba(0,170,255,0.08) 0, rgba(0,170,255,0.08) 1px, transparent 1px, transparent 25px),
    repeating-linear-gradient(to bottom, rgba(0,170,255,0.08) 0, rgba(0,170,255,0.08) 1px, transparent 1px, transparent 25px);
  background-size: 25px 25px;
  position: relative;
}
.layout-editor-active .header-content::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  border: 1px dashed rgba(0,170,255,0.35);
  border-radius: 2px;
}
.layout-editor-active .header-content > * {
  outline: 1px dashed rgba(0,170,255,0.3);
  outline-offset: 2px;
  position: relative;
}
.layout-editor-active .header-content > *::after {
  content: attr(data-layout-label);
  position: absolute;
  bottom: -16px;
  left: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  color: rgba(0,170,255,0.7);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.5px;
  z-index: 51;
}
/* Column separators visible in edit mode */
.layout-editor-active .header-content > .logo-section {
  outline-color: rgba(0,200,80,0.35);
}
.layout-editor-active .header-content > #mpfHeaderCenter {
  outline-color: rgba(200,170,0,0.35);
}
.layout-editor-active .header-content > #authBtn {
  outline-color: rgba(255,80,80,0.35);
}
/* Individual draggable child elements get outlined too */
.layout-editor-active [data-lfe-drag] {
  outline: 1px dashed rgba(0,200,255,0.4) !important;
  outline-offset: 1px;
  cursor: move !important;
  position: relative;
}
.layout-editor-active [data-lfe-drag]:hover {
  outline-color: var(--accent-cyan) !important;
  box-shadow: 0 0 8px rgba(0,170,255,0.2);
}
/* Drag offset label shown above dragged elements */
.layout-editor-active [data-lfe-drag]::before {
  content: attr(data-lfe-drag);
  position: absolute;
  top: -14px;
  left: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.48rem;
  color: rgba(0,200,255,0.7);
  pointer-events: none;
  white-space: nowrap;
  z-index: 61;
}

/* ==================== LAYOUT FLOATING EDITOR ==================== */
#layoutFloatEditor {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 290px;
  background: rgba(6, 16, 30, 0.97);
  border: 1px solid rgba(0, 170, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  z-index: var(--z-layout-editor);
  font-family: 'Share Tech Mono', monospace;
  display: none;
}
#layoutFloatEditor .lfe-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 170, 255, 0.1);
  border-bottom: 1px solid rgba(0, 170, 255, 0.25);
  cursor: move;
  border-radius: 8px 8px 0 0;
  user-select: none;
}
#layoutFloatEditor .lfe-hdr span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}
#layoutFloatEditor .lfe-body {
  padding: 0.5rem 0.6rem;
}
#layoutFloatEditor .lfe-hint {
  margin: 0 0 0.4rem;
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.4;
}
#layoutFloatEditor .lfe-lbl {
  display: block;
  font-size: 0.55rem;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
  opacity: 0.8;
}
#layoutFloatEditor .lfe-grp {
  margin-bottom: 0.35rem;
}
#layoutFloatEditor .lfe-inp {
  padding: 0.2rem 0.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  border-radius: 2px;
  outline: none;
  box-sizing: border-box;
}
#layoutFloatEditor .lfe-inp:focus {
  border-color: var(--accent-cyan);
}
#layoutFloatEditor .lfe-col {
  width: 70px;
}
#layoutFloatEditor .lfe-num {
  width: 52px;
}
#layoutFloatEditor .lfe-num-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.58rem;
  color: var(--text-muted);
}
#layoutFloatEditor .lfe-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
#layoutFloatEditor .lfe-dims {
  margin-top: 0.35rem;
  font-size: 0.55rem;
  color: var(--text-muted);
  line-height: 1.5;
}
#layoutFloatEditor .lfe-dims b {
  color: var(--accent-cyan);
}
#layoutFloatEditor .lfe-ftr {
  padding: 0.4rem 0.6rem;
  border-top: 1px solid rgba(0, 170, 255, 0.15);
  display: flex;
  gap: 0.3rem;
}
#layoutFloatEditor .lfe-status {
  padding: 0 0.6rem 0.3rem;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 0.8rem;
}
/* ── Drag resize handles on header elements ── */
.lfe-handle {
  position: absolute;
  background: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.2s;
}
.layout-editor-active .lfe-handle {
  opacity: 0.7;
}
.lfe-handle:hover, .lfe-handle:active {
  opacity: 1 !important;
  background: #fff;
}
.lfe-handle-br {
  bottom: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  cursor: nwse-resize;
  border-radius: 50%;
}
.lfe-handle-r {
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 20px;
  cursor: ew-resize;
}
.lfe-handle-b {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 6px;
  cursor: ns-resize;
}
/* Drag-move handle (crosshair dot on draggable items) */
.lfe-move-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: move;
  z-index: 65;
  opacity: 0;
  transition: opacity 0.2s;
}
.layout-editor-active .lfe-move-dot {
  opacity: 0.7;
}
.lfe-move-dot:hover {
  opacity: 1 !important;
  transform: scale(1.3);
}

/* ==================== AUTH BUTTONS ==================== */
#authBtn {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#authBtn .btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

#authBtn .btn:not(.secondary) {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.15);
}

#authBtn .btn:not(.secondary):hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
  transform: translateY(-1px);
}

#authBtn .btn.secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 170, 255, 0.4);
  transition: all 0.2s ease;
}

#authBtn .btn.secondary:hover {
  background: rgba(0, 170, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
  transform: translateY(-1px);
}

/* ==================== PAY FLOATING MODULE (gp-float based) ==================== */
.mpf-pay-gp { width: 240px; }
.mpf-pay-gp .gp-float-inner { border-color: rgba(0, 200, 80, 0.2); }
.mpf-pay-gp .gp-float-header { background: rgba(0, 200, 80, 0.08); border-bottom-color: rgba(0, 200, 80, 0.2); cursor: pointer; }
.mpf-pay-gp .gp-float-header h3 { color: #00cc55; }
.mpf-pay-gp .gp-float-toggle { color: #00cc55; }
.mpf-pay-gp .gp-vdrag-handle { background: rgba(0, 200, 80, 0.05); color: rgba(0, 200, 80, 0.25); }
.mpf-pay-gp .gp-vdrag-handle:hover { background: rgba(0, 200, 80, 0.12); color: rgba(0, 200, 80, 0.5); }
.mpf-pay-gp .gp-float-body { text-align: center; }
.mpf-pay-gp.gp-right .gp-float-inner { border-color: rgba(0, 200, 80, 0.2); }
.mpf-pay-amount { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 900; color: #00cc55; letter-spacing: 1px; margin-bottom: 0.4rem; text-shadow: 0 0 12px rgba(0, 200, 80, 0.3); }
.mpf-pay-amount span { font-size: 0.9rem; opacity: 0.7; }
.mpf-pay-info { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.6rem; }
.mpf-pay-link { display: block; text-align: center; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: #00cc55; text-decoration: none; letter-spacing: 1px; padding: 0.3rem 0.8rem; border: 1px solid rgba(0, 200, 80, 0.3); border-radius: 3px; transition: all 0.15s; }
.mpf-pay-link:hover { background: rgba(0, 200, 80, 0.1); border-color: #00cc55; }
.mpf-pay-tab-mark { border-color: rgba(0, 200, 80, 0.25) !important; color: #00cc55 !important; }
.mpf-pay-tab-mark:hover { background: rgba(0, 200, 80, 0.1) !important; border-color: #00cc55 !important; }
@media (max-width: 640px) {
  .mpf-pay-gp { width: 200px; }
  .mpf-pay-amount { font-size: 1.2rem; }
}

/* ==================== MODULE OPACITY (user setting) ==================== */
:root { --mpf-module-opacity: 1; }
.gp-float .gp-float-inner,
.gp-collapsed-tab {
  opacity: var(--mpf-module-opacity);
}

/* ==================== HOLOGRAPHIC MODE ==================== */
@keyframes mpfHoloScan {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}
@keyframes mpfHoloPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 170, 255, 0.15), inset 0 0 12px rgba(0, 170, 255, 0.03); }
  50% { box-shadow: 0 0 16px rgba(0, 170, 255, 0.3), inset 0 0 20px rgba(0, 170, 255, 0.06); }
}
@keyframes mpfHoloFlicker {
  0%, 100% { opacity: var(--mpf-module-opacity, 1); }
  92% { opacity: var(--mpf-module-opacity, 1); }
  93% { opacity: calc(var(--mpf-module-opacity, 1) * 0.7); }
  94% { opacity: var(--mpf-module-opacity, 1); }
  97% { opacity: calc(var(--mpf-module-opacity, 1) * 0.85); }
  98% { opacity: var(--mpf-module-opacity, 1); }
}
body.mpf-holo .gp-float .gp-float-inner {
  background: rgba(6, 16, 30, 0.75);
  border-color: rgba(0, 170, 255, 0.35);
  animation: mpfHoloPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
body.mpf-holo .gp-float .gp-float-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 170, 255, 0.03) 2px,
    rgba(0, 170, 255, 0.03) 4px
  );
  pointer-events: none;
  z-index: 10;
}
body.mpf-holo .gp-float .gp-float-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 170, 255, 0.08) 50%,
    transparent 100%
  );
  background-size: 100% 60%;
  animation: mpfHoloScan 8s linear infinite;
  pointer-events: none;
  z-index: 11;
}
/* Hide scan line when user disables it */
body.mpf-holo.mpf-holo-noscan .gp-float .gp-float-inner::after,
body.mpf-holo.mpf-holo-noscan .mpf-pay-gp .gp-float-inner::after {
  display: none !important;
}
body.mpf-holo .gp-float {
  animation: mpfHoloFlicker 6s step-end infinite;
}
body.mpf-holo .gp-collapsed-tab {
  background: rgba(6, 16, 30, 0.7);
  border-color: rgba(0, 170, 255, 0.35);
  animation: mpfHoloPulse 3s ease-in-out infinite;
}
body.mpf-holo .mpf-pay-gp .gp-float-inner {
  border-color: rgba(0, 200, 80, 0.35);
}
body.mpf-holo .mpf-pay-gp .gp-float-inner::after {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 200, 80, 0.06) 50%,
    transparent 100%
  );
  background-size: 100% 60%;
}
body.mpf-holo .mpf-options-gear {
  background: rgba(6, 16, 30, 0.7);
  border-color: rgba(0, 170, 255, 0.35);
  animation: mpfHoloPulse 3s ease-in-out infinite;
}
/* Disable holo in potato mode */
body.mpf-potato.mpf-holo .gp-float,
body.mpf-potato.mpf-holo .gp-float .gp-float-inner,
body.mpf-potato.mpf-holo .gp-collapsed-tab,
body.mpf-potato.mpf-holo .mpf-options-gear {
  animation: none !important;
}
body.mpf-potato.mpf-holo .gp-float .gp-float-inner::before,
body.mpf-potato.mpf-holo .gp-float .gp-float-inner::after {
  display: none !important;
}

/* ==================== COMBINE SCREEN MODE ==================== */
/* HL2 Overwatch terminal aesthetic — angular borders, circuit patterns, data-noise */
@keyframes mpfCombineGlowPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(60, 140, 220, 0.2), inset 0 0 20px rgba(30, 100, 180, 0.05), 0 0 1px rgba(80, 160, 240, 0.6); }
  50% { box-shadow: 0 0 14px rgba(60, 140, 220, 0.35), inset 0 0 30px rgba(30, 100, 180, 0.1), 0 0 2px rgba(80, 160, 240, 0.8); }
}

/* Main panel inner — Combine terminal frame */
body.mpf-combine-screen .gp-float .gp-float-inner {
  background: linear-gradient(175deg, rgba(8, 22, 48, 0.96) 0%, rgba(4, 12, 30, 0.98) 50%, rgba(10, 28, 55, 0.94) 100%);
  border: 2px solid rgba(60, 140, 220, 0.55);
  border-radius: 0;
  animation: mpfCombineGlowPulse 5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(40, 110, 200, 0.15), 0 0 12px rgba(30, 90, 180, 0.15);
}
body.mpf-combine-screen .gp-float.gp-right .gp-float-inner,
body.mpf-combine-screen .gp-float.gp-left .gp-float-inner {
  border-radius: 0;
}

/* Scanline overlay — subtle CRT lines */
body.mpf-combine-screen .gp-float .gp-float-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(20, 80, 160, 0.03) 2px,
    rgba(20, 80, 160, 0.03) 3px
  );
  pointer-events: none;
  z-index: 10;
}

/* Subtle grid overlay */
body.mpf-combine-screen .gp-float .gp-float-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(40, 120, 200, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 120, 200, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 11;
  opacity: 0.5;
}

/* Header — Combine designation bar */
body.mpf-combine-screen .gp-float-header {
  background: linear-gradient(90deg, rgba(25, 70, 145, 0.3) 0%, rgba(15, 45, 90, 0.15) 100%);
  border-bottom: 1px solid rgba(60, 140, 220, 0.5);
  border-top: 1px solid rgba(60, 140, 220, 0.15);
  position: relative;
}
body.mpf-combine-screen .gp-float-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: rgba(80, 170, 255, 0.7);
  box-shadow: 0 0 8px rgba(80, 170, 255, 0.5);
}
body.mpf-combine-screen .gp-float-header h3 {
  color: rgba(140, 200, 255, 0.95);
  text-shadow: 0 0 8px rgba(60, 140, 220, 0.5);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.68rem;
}



/* Collapsed tab — Combine style */
body.mpf-combine-screen .gp-collapsed-tab {
  background: linear-gradient(180deg, rgba(8, 22, 48, 0.96), rgba(4, 12, 30, 0.98));
  border: 2px solid rgba(60, 140, 220, 0.45);
  border-radius: 0;
  animation: mpfCombineGlowPulse 5s ease-in-out infinite;
}
body.mpf-combine-screen .gp-collapsed-tab .gp-tab-label {
  color: rgba(140, 200, 255, 0.85);
  text-shadow: 0 0 4px rgba(60, 140, 220, 0.3);
  letter-spacing: 1.5px;
}

/* Vdrag handle — Combine accent line */
body.mpf-combine-screen .gp-vdrag-handle {
  background: linear-gradient(90deg, rgba(40, 120, 200, 0.15), rgba(40, 120, 200, 0.05), rgba(40, 120, 200, 0.15));
  border-top: 1px solid rgba(60, 140, 220, 0.2);
}
body.mpf-combine-screen .gp-vdrag-handle::after {
  content: '▪ ▪ ▪ ▪ ▪' !important;
  color: rgba(80, 170, 255, 0.3);
  font-size: 0.4rem;
}

/* Vresize handle — Combine */
body.mpf-combine-screen .gp-vresize-handle {
  background: linear-gradient(90deg, transparent, rgba(40, 120, 200, 0.12), transparent);
  border-top: 1px solid rgba(60, 140, 220, 0.15);
}

/* Resize handle — Combine thick line */
body.mpf-combine-screen .gp-resize-handle:hover,
body.mpf-combine-screen .gp-resize-handle.active {
  background: rgba(60, 140, 220, 0.3);
  box-shadow: 0 0 8px rgba(60, 140, 220, 0.2);
}

/* Pay module — Combine green variant */
body.mpf-combine-screen .mpf-pay-gp .gp-float-inner {
  border-color: rgba(40, 180, 100, 0.55);
  background: linear-gradient(175deg, rgba(6, 30, 18, 0.96), rgba(3, 18, 10, 0.98), rgba(10, 38, 24, 0.94));
  box-shadow: inset 0 0 0 1px rgba(30, 150, 80, 0.15), 0 0 12px rgba(30, 140, 80, 0.15);
  animation-name: mpfCombineGlowPulseGreen;
}
@keyframes mpfCombineGlowPulseGreen {
  0%, 100% { box-shadow: 0 0 6px rgba(40, 180, 100, 0.2), inset 0 0 20px rgba(30, 140, 80, 0.05), 0 0 1px rgba(60, 200, 120, 0.6); }
  50% { box-shadow: 0 0 14px rgba(40, 180, 100, 0.35), inset 0 0 30px rgba(30, 140, 80, 0.1), 0 0 2px rgba(60, 200, 120, 0.8); }
}
body.mpf-combine-screen .mpf-pay-gp .gp-float-header::before {
  background: rgba(60, 200, 120, 0.6);
  box-shadow: 0 0 6px rgba(60, 200, 120, 0.4);
}
body.mpf-combine-screen .mpf-pay-gp .gp-float-inner::after {
  background:
    linear-gradient(90deg, rgba(40, 180, 100, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 180, 100, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 180, 100, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 180, 100, 0.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
}


/* Options gear — Combine frame */
body.mpf-combine-screen .mpf-options-gear {
  background: linear-gradient(175deg, rgba(8, 22, 48, 0.96), rgba(4, 12, 30, 0.98));
  border: 2px solid rgba(60, 140, 220, 0.45);
  border-radius: 0;
  animation: mpfCombineGlowPulse 5s ease-in-out infinite;
}

/* Online badge — Combine frame */
body.mpf-combine-screen .mpf-online-badge {
  background: rgba(4, 12, 30, 0.95);
  border: 2px solid rgba(60, 140, 220, 0.45);
  border-radius: 0;
  backdrop-filter: blur(8px);
}
body.mpf-combine-screen .mpf-online-badge:hover {
  border-color: rgba(80, 170, 255, 0.6);
  box-shadow: 0 0 10px rgba(60, 140, 220, 0.2);
}

/* Body text in Combine mode — sharper, more terminal-like */
body.mpf-combine-screen .gp-float-body {
  color: rgba(160, 210, 255, 0.9);
}

/* Flicker effect for Combine mode */
body.mpf-combine-screen .gp-float {
  animation: mpfHoloFlicker 8s step-end infinite;
}

/* Combine screen + Holo mode stacks (Combine takes priority on borders, holo adds scan) */
body.mpf-combine-screen.mpf-holo .gp-float .gp-float-inner {
  animation: mpfCombineGlowPulse 4s ease-in-out infinite;
}

/* Disable combine-screen in potato mode */
body.mpf-potato.mpf-combine-screen .gp-float,
body.mpf-potato.mpf-combine-screen .gp-float .gp-float-inner,
body.mpf-potato.mpf-combine-screen .gp-collapsed-tab,
body.mpf-potato.mpf-combine-screen .mpf-options-gear {
  animation: none !important;
}
body.mpf-potato.mpf-combine-screen .gp-float .gp-float-inner::before,
body.mpf-potato.mpf-combine-screen .gp-float .gp-float-inner::after {
  display: none !important;
}

/* ==================== OPTIONS GEAR ICON ==================== */
.mpf-options-gear {
  position: fixed;
  top: 96px;
  right: 14px;
  z-index: var(--z-options-gear);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 30, 0.95);
  border: 1px solid rgba(0, 170, 255, 0.4);
  border-radius: 8px;
  color: var(--accent-cyan);
  cursor: grab;
  user-select: none;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 6px rgba(0, 170, 255, 0.1);
}
.mpf-options-gear svg {
  width: 20px;
  height: 20px;
}
.mpf-options-gear:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 170, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 170, 255, 0.15);
}
.mpf-options-gear.dragging {
  cursor: grabbing;
  opacity: 0.8;
  border-color: var(--accent-cyan);
}

/* ==================== MODE POTATO (Performance) ==================== */
body.mpf-potato *,
body.mpf-potato *::before,
body.mpf-potato *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}
body.mpf-potato .gp-float,
body.mpf-potato .gp-collapsed-tab,
body.mpf-potato .mpf-options-gear { transition: none !important; }
body.mpf-potato .particles-bg,
body.mpf-potato .scanline-overlay,
body.mpf-potato .combine-cursor,
body.mpf-potato .gp-online-dot { display: none !important; }
body.mpf-potato *:not(img):not(video) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* ==================== AUTH IDENTITY FRAME ==================== */
.mpf-auth-identity {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0, 170, 255, 0.22);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.06) 0%, rgba(0, 100, 200, 0.03) 100%);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.3;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  min-width: 140px;
}
.mpf-auth-identity::before {
  content: '';
  position: absolute;
  top: -1px; left: 12px;
  width: 24px; height: 2px;
  background: var(--accent-cyan);
  opacity: 0.6;
  border-radius: 0 0 2px 2px;
}
.mpf-auth-identity:hover {
  border-color: rgba(0, 170, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.1);
}
.mpf-auth-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}
.mpf-auth-matricule {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.8px;
}
.mpf-auth-accred {
  font-size: 0.62rem;
  color: rgba(0, 170, 255, 0.65);
  letter-spacing: 0.5px;
}

/* Auth actions group (bell + messagerie + admin + logout) */
.mpf-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* ==================== MESSAGERIE BUTTON ==================== */
.mpf-notif-msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 170, 255, 0.06);
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
  height: 36px;
  box-sizing: border-box;
}
.mpf-notif-msg-btn:hover {
  background: rgba(0, 170, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

/* Auth separator line */
.mpf-auth-sep {
  width: 1px;
  height: 32px;
  background: rgba(0, 170, 255, 0.18);
  margin: 0 0.15rem;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .mpf-auth-identity { padding: 0.3rem 0.6rem; min-width: 120px; }
  .mpf-auth-label { font-size: 0.48rem; }
  .mpf-auth-matricule { font-size: 0.75rem; }
  .mpf-notif-msg-btn { padding: 0.3rem 0.55rem; font-size: 0.64rem; height: 30px; }
  #authBtn .btn { padding: 0.3rem 0.7rem; font-size: 0.7rem; height: 30px; }
}
@media (max-width: 768px) {
  .mpf-auth-identity { display: none; }
  .mpf-notif-msg-btn { font-size: 0; padding: 0.3rem; height: auto; }
  .mpf-notif-msg-btn::before { content: '\1F4E8'; font-size: 0.9rem; }
  .mpf-auth-sep { display: none; }
  #authBtn .btn { padding: 0.3rem 0.6rem; font-size: 0.65rem; height: auto; }
  #maintenanceIndicator { display: none !important; }
  .header-content { min-height: 42px; }
}

/* ==================== MAIN CONTENT ==================== */
main {
  position: relative;
  z-index: var(--z-content);
  min-height: calc(100vh - 200px);
  padding: 1.5rem 0;
  opacity: 0;
  visibility: hidden;
}
/* Pages publiques : afficher immédiatement */
body.public-page main {
  opacity: 1;
  visibility: visible;
}
/* Pages protégées après auth : révéler le contenu */
body.mpf-authed main {
  opacity: 1;
  visibility: visible;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .nav a { padding: 0.5rem 0.7rem; font-size: 0.78rem; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }

  .header-content { flex-wrap: wrap; }
  #mpfHeaderCenter { display: none; }

  .nav {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .nav.active { max-height: 1000px; }

  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    background: rgba(0, 170, 255, 0.02);
  }

  .logo { font-size: 1.1rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* ==================== CMS: Hide editable zones until content loaded ==================== */
[data-editable] { opacity: 0; transition: opacity 0.15s ease; }
[data-editable].cms-ready { opacity: 1; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse { 0%, 100% { opacity: 1; } }
@keyframes glow { 0%, 100% { opacity: 1; } }

.animate-fadeInUp { animation: fadeInUp 0.4s ease-out; }
.animate-fadeInDown { animation: fadeInDown 0.4s ease-out; }
.animate-fadeIn { animation: fadeIn 0.4s ease-out; }
.animate-slideIn { animation: slideIn 0.4s ease-out; }
.animate-pulse { animation: pulse 2s ease infinite; }
.animate-glow { animation: glow 3s ease infinite; }

.delay-1 { animation-delay: 0.05s; animation-fill-mode: backwards; }
.delay-2 { animation-delay: 0.1s; animation-fill-mode: backwards; }
.delay-3 { animation-delay: 0.15s; animation-fill-mode: backwards; }
.delay-4 { animation-delay: 0.2s; animation-fill-mode: backwards; }
.delay-5 { animation-delay: 0.25s; animation-fill-mode: backwards; }

/* ==================== SCROLL REVEAL ==================== */
.combine-terminal-wrapper,
.announcement-card,
.loyalty-card,
.verdict-item,
.hierarchy-node,
.contraband-level,
.proto-box,
.niv-card,
.code-block,
.alert-box {
  animation: revealUp 0.5s ease-out both;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger children inside grids */
.loyalty-container > :nth-child(1),
.verdict-grid > :nth-child(1),
.contraband-scale > :nth-child(1) { animation-delay: 0s; }
.loyalty-container > :nth-child(2),
.verdict-grid > :nth-child(2),
.contraband-scale > :nth-child(2) { animation-delay: 0.06s; }
.loyalty-container > :nth-child(3),
.verdict-grid > :nth-child(3),
.contraband-scale > :nth-child(3) { animation-delay: 0.12s; }
.loyalty-container > :nth-child(4),
.verdict-grid > :nth-child(4),
.contraband-scale > :nth-child(4) { animation-delay: 0.18s; }
.loyalty-container > :nth-child(5),
.verdict-grid > :nth-child(5),
.contraband-scale > :nth-child(5) { animation-delay: 0.24s; }
.loyalty-container > :nth-child(6),
.verdict-grid > :nth-child(6) { animation-delay: 0.30s; }

/* ==================== DYNAMIC HOVER GLOW FOR LINKS ==================== */
a:not(.nav-link):not([class*="btn"]) {
  transition: color 0.2s ease, text-shadow 0.3s ease;
}
a:not(.nav-link):not([class*="btn"]):hover {
  text-shadow: 0 0 8px currentColor;
}

/* ==================== ENHANCED BADGES ==================== */
.badge {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.1);
}

/* ==================== ENHANCED TABLES ==================== */
.frequency-table tbody tr {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.frequency-table tbody tr:hover {
  background: rgba(0, 170, 255, 0.05);
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}
/* COMBINE TERMINAL COMPONENTS - HL2 STYLE */

/* ==================== BASE TERMINAL ==================== */
.combine-terminal-wrapper {
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.95) 0%, rgba(8, 20, 32, 0.92) 100%);
  border: 1px solid rgba(0, 170, 255, 0.1);
  border-left: 2px solid rgba(0, 170, 255, 0.3);
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 170, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.combine-terminal-wrapper:hover {
  border-color: rgba(0, 170, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 170, 255, 0.03), inset 0 1px 0 rgba(0, 170, 255, 0.08);
}

.combine-terminal-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.3), transparent);
}

.combine-terminal-wrapper::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 100, 200, 0.02) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.combine-terminal-wrapper:hover::after {
  opacity: 1;
}

/* ==================== TERMINAL HEADER ==================== */
.combine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  position: relative;
}

/* Full decorated header (top-bar, dispatch-line, symbol) → stacked layout */
.combine-header:has(.combine-top-bar) {
  display: block;
  background: linear-gradient(90deg, #0c111a, #151d2b);
  border-bottom: 2px solid #2a4a6a;
  padding: 20px;
}

.combine-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 0 12px rgba(0, 170, 255, 0.15);
}

.combine-header h2::before {
  content: '//';
  font-size: 0.9rem;
  opacity: 0.4;
  color: var(--accent-cyan);
}

.combine-top-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #1a2d42;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8ca0c7;
}

.dispatch-line {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6d8cc7;
}

.combine-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #4287f5;
  margin-left: 8px;
  animation: combine-blink 0.8s step-end infinite;
}
@keyframes combine-blink { 50% { opacity: 0; } }

.combine-symbol {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  opacity: 0.15;
  color: #4287f5;
}

.header-code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-green);
  background: rgba(0, 204, 102, 0.06);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(0, 204, 102, 0.2);
}

/* ==================== TERMINAL BODY ==================== */
.combine-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.combine-body p { margin-bottom: 0.8rem; }

.combine-body ul, .combine-body ol {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
}

.combine-body li {
  margin: 0.4rem 0;
  position: relative;
  padding-left: 0.5rem;
}

.combine-body li::before {
  content: '>';
  position: absolute;
  left: -1rem;
  color: var(--accent-cyan);
  font-weight: bold;
  opacity: 0.5;
}

.combine-body strong { color: var(--accent-yellow); font-weight: 700; }
.combine-body em { color: var(--accent-purple); }

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid;
  position: relative;
  margin: 0.2rem;
}

.badge-blue {
  background: rgba(0, 136, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 136, 255, 0.3);
}

.badge-green {
  background: rgba(0, 204, 102, 0.1);
  color: #00cc66;
  border-color: rgba(0, 204, 102, 0.3);
}

.badge-red {
  background: rgba(204, 34, 34, 0.1);
  color: var(--accent-red);
  border-color: rgba(204, 34, 34, 0.3);
}

.badge-yellow {
  background: rgba(204, 170, 0, 0.1);
  color: #ccaa00;
  border-color: rgba(204, 170, 0, 0.3);
}

.badge-pink {
  background: rgba(204, 85, 119, 0.1);
  color: #cc5577;
  border-color: rgba(204, 85, 119, 0.3);
}

.badge-purple {
  background: rgba(102, 68, 170, 0.1);
  color: #8866cc;
  border-color: rgba(102, 68, 170, 0.3);
}

.badge-orange {
  background: rgba(204, 102, 0, 0.1);
  color: #cc7722;
  border-color: rgba(204, 102, 0, 0.3);
}

/* ==================== TERMINAL FOOTER ==================== */
.combine-footer {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 170, 255, 0.1);
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== ANNOUNCEMENT CARDS ==================== */
.announcement-card {
  background: rgba(6, 16, 26, 0.8);
  border: 1px solid;
  padding: 1.2rem;
  margin: 1.2rem 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border-left-width: 3px;
}

.announcement-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(3px);
  box-shadow: -3px 0 20px rgba(0, 170, 255, 0.06);
}

.announcement-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.announcement-blue { border-color: rgba(0, 136, 255, 0.3); color: var(--accent-blue); }
.announcement-green { border-color: rgba(0, 204, 102, 0.3); color: var(--accent-green); }
.announcement-red { border-color: rgba(204, 34, 34, 0.3); color: var(--accent-red); }
.announcement-yellow { border-color: rgba(204, 170, 0, 0.3); color: var(--accent-yellow); }
.announcement-pink { border-color: rgba(204, 85, 119, 0.3); color: var(--accent-pink); }

/* ==================== RADIO & FREQUENCIES ==================== */
.frequency-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
}

.frequency-table th,
.frequency-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 170, 255, 0.08);
}

.frequency-table th {
  background: rgba(0, 170, 255, 0.06);
  color: var(--accent-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.frequency-table tbody tr {
  transition: background var(--transition-fast);
}

.frequency-table tbody tr:hover {
  background: rgba(0, 170, 255, 0.03);
}

.frequency-table td:first-child {
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent-green);
  font-weight: 700;
}

/* ==================== LOYALTY LEVELS ==================== */
.loyalty-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.loyalty-card {
  background: rgba(6, 16, 26, 0.9);
  border: 1px solid;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.loyalty-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 170, 255, 0.04);
}

.loyalty-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.loyalty-card ul {
  list-style: none;
  padding: 0;
}

.loyalty-card li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.loyalty-card li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  opacity: 0.4;
}

.loyalty-suspect { border-color: rgba(204, 34, 34, 0.3); }
.loyalty-suspect h3 { color: var(--accent-red); }
.loyalty-solidaire { border-color: rgba(204, 102, 0, 0.3); }
.loyalty-solidaire h3 { color: var(--accent-orange); }
.loyalty-loyal { border-color: rgba(204, 170, 0, 0.3); }
.loyalty-loyal h3 { color: var(--accent-yellow); }
.loyalty-distingue { border-color: rgba(0, 204, 102, 0.3); }
.loyalty-distingue h3 { color: var(--accent-green); }
.loyalty-exemplaire { border-color: rgba(0, 170, 255, 0.3); }
.loyalty-exemplaire h3 { color: var(--accent-cyan); }
.loyalty-citoyen { border-color: rgba(102, 68, 170, 0.3); }
.loyalty-citoyen h3 { color: var(--accent-purple); }

/* ==================== VERDICT PANELS ==================== */
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.verdict-item {
  background: rgba(0, 170, 255, 0.03);
  border: 1px solid rgba(0, 170, 255, 0.12);
  padding: 1.2rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.verdict-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  background: rgba(0, 170, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 170, 255, 0.05);
}

.verdict-item h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.verdict-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==================== HIERARCHY ==================== */
.hierarchy-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
  align-items: center;
}

.hierarchy-level {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hierarchy-node {
  background: rgba(6, 16, 26, 0.9);
  border: 1px solid;
  padding: 1rem 1.5rem;
  min-width: 180px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.hierarchy-node:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 170, 255, 0.06);
}

.hierarchy-rank {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.hierarchy-salute {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hierarchy-supreme { border-color: rgba(102, 68, 170, 0.3); color: var(--accent-purple); }
.hierarchy-elite { border-color: rgba(204, 85, 119, 0.3); color: var(--accent-pink); }
.hierarchy-command { border-color: rgba(204, 34, 34, 0.3); color: var(--accent-red); }
.hierarchy-officer { border-color: rgba(204, 170, 0, 0.3); color: var(--accent-yellow); }
.hierarchy-trooper { border-color: rgba(0, 170, 255, 0.3); color: var(--accent-cyan); }
.hierarchy-recruit { border-color: rgba(0, 204, 102, 0.3); color: var(--accent-green); }

/* ==================== CONTRABAND ==================== */
.contraband-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.contraband-level {
  background: rgba(6, 16, 26, 0.9);
  border: 1px solid;
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.contraband-level:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 170, 255, 0.04);
}

.contraband-level h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

.contraband-level p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contraband-1 { border-color: rgba(0, 204, 102, 0.3); color: var(--accent-green); }
.contraband-2 { border-color: rgba(204, 170, 0, 0.3); color: var(--accent-yellow); }
.contraband-3 { border-color: rgba(204, 102, 0, 0.3); color: var(--accent-orange); }
.contraband-4 { border-color: rgba(204, 34, 34, 0.3); color: var(--accent-red); }
.contraband-5 { border-color: rgba(102, 68, 170, 0.3); color: var(--accent-purple); }

/* ==================== CODE BLOCKS ==================== */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 170, 255, 0.12);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.8rem 1.2rem;
  margin: 0.8rem 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-green);
  overflow-x: auto;
}

/* ==================== ALERT BOXES ==================== */
.alert-box {
  background: rgba(204, 34, 34, 0.04);
  border: 1px solid rgba(204, 34, 34, 0.2);
  border-left: 3px solid var(--accent-red);
  padding: 1.2rem;
  margin: 1.2rem 0;
}

.alert-box h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-red);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .contraband-scale { grid-template-columns: 1fr; }
  .loyalty-container { grid-template-columns: 1fr; }
  .verdict-grid { grid-template-columns: 1fr; }
  .hierarchy-level { flex-direction: column; align-items: stretch; }
  .combine-terminal-wrapper { padding: 1rem; }
}

/* ========================================
   NAVIGATION GLOBALE - COMBINE TERMINAL v2
   ======================================== */

.main-nav {
    background: linear-gradient(180deg, rgba(2, 8, 16, 0.98) 0%, rgba(4, 12, 22, 0.96) 100%);
    border-bottom: 1px solid rgba(0, 170, 255, 0.15);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: var(--z-site-header);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 170, 255, 0.1) inset;
    backdrop-filter: blur(16px);
}

/* Animated accent line under nav */
.main-nav::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(0, 170, 255, 0.4) 50%, transparent 90%);
    animation: navGlow 4s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

/* Séparateur entre les 2 lignes de nav */
.nav-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(0, 170, 255, 0.2) 30%, rgba(0, 170, 255, 0.2) 70%, transparent 95%);
    margin: 0;
}

/* ========== NAV LIST ========== */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.nav-item {
    position: relative;
    margin: 0;
}

/* ========== NAV LINKS ========== */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.65rem 0.75rem;
    color: rgba(176, 196, 222, 0.85);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s, background 0.2s, border-color 0.2s, text-shadow 0.3s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 170, 255, 0.08);
    border-bottom-color: rgba(0, 170, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 170, 255, 0.1);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.2);
}

/* ========== FLÈCHE DROPDOWN (inline dans le lien) ========== */
.nav-link .nav-arrow {
    font-size: 0.5em;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.15s;
    display: inline-block;
    margin-left: 0.1rem;
}

.nav-item:hover .nav-link .nav-arrow,
.nav-item.dropdown-open .nav-link .nav-arrow {
    opacity: 0.9;
    color: var(--accent-cyan);
}

.nav-item.dropdown-open .nav-link .nav-arrow {
    transform: rotate(180deg);
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 210px;
    background: rgba(4, 12, 22, 0.98);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-top: 2px solid rgba(0, 170, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 170, 255, 0.05);
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    animation: navDropIn 0.15s ease;
    backdrop-filter: blur(12px);
    border-radius: 0 0 4px 4px;
}

@keyframes navDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Desktop: hover natif CSS */
@media (min-width: 769px) {
    .nav-item.has-dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Mobile: ouvert via JS click */
.nav-item.dropdown-open > .dropdown-menu {
    display: block;
}

.dropdown-item {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.55rem 1rem;
    color: rgba(176, 196, 222, 0.85);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.12s ease;
    border-left: 2px solid transparent;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: rgba(0, 170, 255, 0.1);
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    padding-left: 1.3rem;
    text-shadow: 0 0 6px rgba(0, 170, 255, 0.2);
}

.dropdown-link.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    background: rgba(0, 170, 255, 0.05);
}

/* ========== MODULE STATE INDICATORS ========== */
.nav-state-badge {
    display: inline-block;
    font-size: 0.48rem;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 0.3rem;
    vertical-align: middle;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.nav-state-badge.badge-new {
    background: rgba(0, 170, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 170, 255, 0.35);
    animation: navBadgePulse 2s ease-in-out infinite;
}
.nav-state-badge.badge-maintenance {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}
.nav-state-badge.badge-disabled {
    background: rgba(255, 60, 60, 0.1);
    color: #ff6666;
    border: 1px solid rgba(255, 60, 60, 0.2);
}
.nav-item.state-maintenance > .nav-link,
.dropdown-item.state-maintenance > .dropdown-link {
    opacity: 0.65;
}
.nav-item.state-disabled > .nav-link,
.dropdown-item.state-disabled > .dropdown-link {
    opacity: 0.35;
    text-decoration: line-through;
    pointer-events: none;
}
.nav-item .nav-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.5rem;
    font-weight: 700;
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border-radius: 8px;
    margin-left: 0.3rem;
    vertical-align: middle;
    font-family: 'Orbitron', sans-serif;
}
@keyframes navBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ========== QUICK SEARCH OVERLAY (Ctrl+K) ========== */
.nav-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    animation: navSearchFadeIn 0.15s ease-out;
}
@keyframes navSearchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.nav-search-box {
    width: 90%;
    max-width: 520px;
    background: rgba(5, 15, 35, 0.98);
    border: 1px solid rgba(0, 170, 255, 0.35);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 170, 255, 0.08);
}
.nav-search-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(0, 170, 255, 0.15);
}
.nav-search-header .search-icon {
    font-size: 1rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}
.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    outline: none;
}
.nav-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
.nav-search-hint {
    font-size: 0.55rem;
    color: var(--text-muted);
    opacity: 0.6;
    padding: 1px 5px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    white-space: nowrap;
}
.nav-search-results {
    max-height: 42vh;
    overflow-y: auto;
}
.nav-search-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: background 0.12s;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-primary);
    border-left: 3px solid transparent;
}
.nav-search-item:hover,
.nav-search-item.selected {
    background: rgba(0, 170, 255, 0.08);
    border-left-color: var(--accent-cyan);
}
.nav-search-item .search-item-icon {
    font-size: 0.85rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.nav-search-item .search-item-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-search-item .search-item-label mark {
    background: rgba(0, 170, 255, 0.25);
    color: var(--accent-cyan);
    padding: 0 2px;
    border-radius: 2px;
}
.nav-search-item .search-item-category {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.nav-search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.nav-search-footer {
    padding: 0.4rem 1rem;
    border-top: 1px solid rgba(0, 170, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.55rem;
    color: var(--text-muted);
}
.nav-search-footer kbd {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
}

/* ========== SEPARATEUR VISUEL entre items ========== */
.nav-item + .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(0, 170, 255, 0.08);
}

/* ========== SUB-TABS ========== */
.sub-tabs {
    background: rgba(4, 10, 20, 0.95);
    border-bottom: 1px solid rgba(0, 170, 255, 0.08);
    padding: 0;
    margin-bottom: 1.5rem;
}

.sub-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-tab-item { margin: 0; }

.sub-tab-link {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.1s ease;
    border-bottom: 2px solid transparent;
}

.sub-tab-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 170, 255, 0.03);
}

.sub-tab-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 170, 255, 0.06);
    border-bottom-color: var(--accent-cyan);
    font-weight: 700;
}

/* ========== MOBILE ========== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    margin: 0.5rem;
    letter-spacing: 0.1em;
    transition: background 0.15s;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 170, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-list { display: none; width: 100%; flex-direction: column; }
    .nav-list.active { display: flex; }
    .nav-separator { display: none; }
    .nav-separator.active { display: block; }

    .nav-item {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-link {
        flex: 1;
        padding: 0.7rem 1rem;
        border-bottom: 1px solid rgba(0, 170, 255, 0.05);
        font-size: 0.8rem;
    }

    .nav-item + .nav-item::before { display: none; }

    .dropdown-menu {
        position: relative;
        display: none;
        left: 0;
        transform: none;
        width: 100%;
        border: none;
        border-top: none;
        box-shadow: none;
        background: rgba(0, 170, 255, 0.02);
        border-radius: 0;
        animation: none;
        padding: 0;
    }

    .nav-item.dropdown-open > .dropdown-menu { display: block; }

    .dropdown-link {
        padding-left: 2rem;
    }

    .sub-tabs-list { flex-direction: column; }

    .sub-tab-link {
        border-bottom: 1px solid rgba(0, 170, 255, 0.05);
    }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 0.6rem 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 170, 255, 0.05);
}

.breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.4rem;
    opacity: 0.4;
}

/* ========== BOUTON RETOUR FLOTTANT ========== */
.back-btn-float {
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
    z-index: var(--z-back-btn);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(2, 8, 16, 0.92);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: var(--accent-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.back-btn-float:hover {
    background: rgba(0, 170, 255, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 2px 16px rgba(0, 170, 255, 0.2);
}
.back-btn-float .back-arrow {
    font-size: 1rem;
    line-height: 1;
}
@media (max-width: 768px) {
    .back-btn-float {
        padding: 0.45rem 0.8rem;
        font-size: 0.72rem;
        bottom: 1rem;
        left: 1rem;
    }
}

/* SYSTÈME INTERACTIF COMBINE - HALF-LIFE 2 TERMINAL */

/* ==================== SCANLINES (subtle CRT) ==================== */
.scanlines { position: relative; overflow: hidden; }

.scanlines::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

/* ==================== TABS ==================== */
.tabs-container { margin: 1.5rem 0; }

.tabs-header {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 170, 255, 0.12);
}

.tab-btn {
    padding: 0.7rem 1.3rem;
    background: transparent;
    border: 1px solid rgba(0, 170, 255, 0.1);
    border-bottom: none;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: rgba(0, 170, 255, 0.25);
    color: var(--text-primary);
    background: rgba(0, 170, 255, 0.03);
}

.tab-btn.active {
    background: rgba(0, 170, 255, 0.06);
    border-color: rgba(0, 170, 255, 0.25);
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.tab-content.active { display: block; }

/* ==================== FILTERS ==================== */
.filter-section {
    background: rgba(4, 10, 20, 0.9);
    border: 1px solid rgba(0, 170, 255, 0.1);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 170, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn.active {
    background: rgba(0, 170, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn .color-badge {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
    border: 1px solid currentColor;
}

/* ==================== INTERACTIVE CARDS ==================== */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.info-card {
    background: rgba(4, 10, 20, 0.95);
    border: 1px solid rgba(0, 170, 255, 0.1);
    padding: 1.3rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.1s ease;
    cursor: default;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--accent-cyan);
    opacity: 0.15;
    transition: opacity 0.1s ease;
}

.info-card:hover::before { opacity: 0.5; }

.info-card:hover {
    border-color: rgba(0, 170, 255, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon { font-size: 1.1rem; }

.card-badge {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid currentColor;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: 'Share Tech Mono', monospace;
}

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 170, 255, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.card-content li:last-child { border-bottom: none; }

.card-content li::before {
    content: '\25B9';
    color: var(--accent-cyan);
    font-size: 0.8rem;
    opacity: 0.3;
}

.card-content li:hover { color: var(--text-primary); }
.card-content li:hover::before { opacity: 0.7; }

.card-highlight {
    background: rgba(0, 170, 255, 0.06);
    padding: 0.2rem 0.5rem;
    border-left: 2px solid var(--accent-cyan);
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

/* ==================== TOOLTIPS ==================== */
.tooltip-trigger {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted var(--accent-cyan);
}

.tooltip-content {
    position: absolute;
    bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(4, 10, 20, 0.98);
    border: 1px solid var(--accent-cyan);
    padding: 0.6rem 0.8rem;
    min-width: 180px;
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: var(--z-modal);
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent-cyan);
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== CARD ANIMATION ==================== */
.animate-card {
    animation: cardEnter 0.4s ease backwards;
}

.animate-card:nth-child(1) { animation-delay: 0.05s; }
.animate-card:nth-child(2) { animation-delay: 0.1s; }
.animate-card:nth-child(3) { animation-delay: 0.15s; }
.animate-card:nth-child(4) { animation-delay: 0.2s; }
.animate-card:nth-child(5) { animation-delay: 0.25s; }
.animate-card:nth-child(6) { animation-delay: 0.3s; }
.animate-card:nth-child(7) { animation-delay: 0.35s; }
.animate-card:nth-child(8) { animation-delay: 0.4s; }
.animate-card:nth-child(9) { animation-delay: 0.45s; }
.animate-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .interactive-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .tabs-header { flex-direction: column; }
    .tab-btn { width: 100%; text-align: center; }
    .filter-buttons { width: 100%; }
    .filter-btn { flex: 1; min-width: 100px; }
}
/* ============================================================
   COMBINE OVERWATCH - DYNAMIC ANIMATED VISUAL ELEMENTS
   Effets visuels dynamiques : scanlines, glitch, radar, data rain
   ============================================================ */

/* ==================== SCANLINE EFFECT (vertical moving beam) ==================== */
.scanline-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: var(--z-scanline, 2000);
  overflow: hidden;
  display: none;
}
body.fx-scanline .scanline-overlay {
  display: block;
}

.scanline-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.08), rgba(0, 170, 255, 0.15), rgba(0, 170, 255, 0.08), transparent);
  animation: scanlineMove 8s linear infinite;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
}

@keyframes scanlineMove {
  0% { top: -3px; }
  100% { top: 100%; }
}

/* ==================== CRT HORIZONTAL SCANLINES ==================== */
.scanlines::before {
  display: none;
}
body.fx-crt .scanlines::before {
  display: block;
}

/* ==================== GLITCH TEXT EFFECT ==================== */
/* Glitch effect removed - replaced by clean titles */

/* ==================== RADAR SWEEP ==================== */
.radar-widget {
  position: relative;
  width: 140px;
  height: 140px;
}

.radar-bg {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 204, 102, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 204, 102, 0.03) 0%, transparent 70%);
}

.radar-bg::before,
.radar-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 204, 102, 0.15);
}

.radar-bg::before { inset: 25%; }
.radar-bg::after { inset: 50%; }

.radar-grid-h, .radar-grid-v {
  position: absolute;
  background: rgba(0, 204, 102, 0.1);
}

.radar-grid-h {
  width: 100%; height: 1px;
  top: 50%; left: 0;
}

.radar-grid-v {
  width: 1px; height: 100%;
  top: 0; left: 50%;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  animation: radarSweep 3s linear infinite;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 50%;
  transform-origin: top left;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 204, 102, 0.4) 30deg, transparent 60deg);
  transform: rotate(-30deg);
}

.radar-dot {
  position: absolute;
  width: 4px; height: 4px;
  background: #00cc66;
  border-radius: 50%;
  box-shadow: 0 0 6px #00cc66;
  animation: radarDotBlink 3s ease infinite;
}

.radar-dot:nth-child(5) { top: 30%; left: 60%; animation-delay: -0.5s; }
.radar-dot:nth-child(6) { top: 65%; left: 35%; animation-delay: -1.2s; }
.radar-dot:nth-child(7) { top: 40%; left: 75%; animation-delay: -2s; }

@keyframes radarSweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes radarDotBlink { 0%, 60%, 100% { opacity: 0.2; } 10%, 50% { opacity: 1; } }

/* ==================== DATA STREAM / MATRIX ==================== */
.data-stream {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: rgba(0, 10, 20, 0.8);
  border: 1px solid rgba(0, 170, 255, 0.15);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: rgba(0, 170, 255, 0.4);
  line-height: 1.2;
  padding: 0.5rem;
}

.data-stream-col {
  position: absolute;
  top: -100%;
  animation: dataFall linear infinite;
  white-space: pre;
  writing-mode: vertical-lr;
}

@keyframes dataFall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ==================== SIGNAL BARS ==================== */
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.signal-bar {
  width: 4px;
  background: var(--accent-cyan);
  animation: signalPulse 1.5s ease infinite;
}

.signal-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.signal-bar:nth-child(2) { height: 8px; animation-delay: 0.15s; }
.signal-bar:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.signal-bar:nth-child(4) { height: 16px; animation-delay: 0.45s; }
.signal-bar:nth-child(5) { height: 20px; animation-delay: 0.6s; }

@keyframes signalPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==================== TYPING TERMINAL ==================== */
.typing-terminal {
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent-green);
  padding: 1rem;
  background: rgba(0, 10, 20, 0.9);
  border: 1px solid rgba(0, 204, 102, 0.2);
  border-left: 3px solid rgba(0, 204, 102, 0.5);
  overflow: hidden;
  position: relative;
}

.typing-line {
  opacity: 0;
  animation: typingAppear 0.3s ease forwards;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.8;
}

.typing-line::before {
  content: '> ';
  color: rgba(0, 204, 102, 0.5);
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent-green);
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes typingAppear {
  from { opacity: 0; max-width: 0; }
  to { opacity: 1; max-width: 100%; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==================== COMBINE SHIELD / BADGE ==================== */
.combine-badge {
  position: relative;
  width: 80px;
  height: 92px;
  margin: 0 auto;
}

.combine-badge svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.4));
}

.badge-pulse {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 170, 255, 0.7)); }
}

/* ==================== HOLOGRAPHIC CONTAINER ==================== */
.holo-container {
  position: relative;
  border: 1px solid rgba(0, 170, 255, 0.2);
  background: rgba(0, 10, 20, 0.6);
  overflow: hidden;
}

.holo-container::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 170, 255, 0.03), transparent);
  animation: holoSweep 6s linear infinite;
  pointer-events: none;
}

@keyframes holoSweep {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ==================== PULSING STATUS INDICATORS ==================== */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s ease infinite;
}

.status-dot.online { background: #00cc66; box-shadow: 0 0 8px rgba(0, 204, 102, 0.6); }
.status-dot.warning { background: #ccaa00; box-shadow: 0 0 8px rgba(204, 170, 0, 0.6); }
.status-dot.alert { background: var(--accent-red); box-shadow: 0 0 8px rgba(204, 34, 34, 0.6); animation-duration: 1s; }
.status-dot.scanning { background: var(--accent-cyan); box-shadow: 0 0 8px rgba(0, 170, 255, 0.6); animation-duration: 1.5s; }

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ==================== ANIMATED BORDER CARDS ==================== */
.animated-border-card {
  position: relative;
  background: rgba(4, 10, 20, 0.95);
  padding: 1.5rem;
  overflow: hidden;
}

.animated-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: conic-gradient(from var(--border-angle, 0deg), transparent 25%, rgba(0, 170, 255, 0.5) 50%, transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 4s linear infinite;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

/* Fallback for browsers without @property */
.animated-border-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(0, 170, 255, 0.15), transparent 30%);
  animation: rotateBorderFallback 4s linear infinite;
  z-index: -1;
}

@keyframes rotateBorderFallback {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==================== ENERGY WAVE ==================== */
.energy-wave {
  position: relative;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.energy-wave-line {
  position: absolute;
  width: 100%;
  height: 2px;
}

.energy-wave-line::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: energyWaveMove 3s ease-in-out infinite;
}

.energy-wave-line:nth-child(1)::before { animation-delay: 0s; }
.energy-wave-line:nth-child(2) { top: 30%; }
.energy-wave-line:nth-child(2)::before { animation-delay: -0.7s; animation-duration: 2.5s; }
.energy-wave-line:nth-child(3) { top: 70%; }
.energy-wave-line:nth-child(3)::before { animation-delay: -1.4s; animation-duration: 3.5s; }

@keyframes energyWaveMove {
  0% { left: -60px; }
  100% { left: calc(100% + 60px); }
}

/* ==================== OVERWATCH ALERT BANNER ==================== */
.overwatch-alert {
  position: relative;
  background: rgba(204, 34, 34, 0.05);
  border: 1px solid rgba(204, 34, 34, 0.3);
  padding: 0.8rem 1.2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.overwatch-alert::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(204, 34, 34, 0.06), transparent);
  animation: alertSweep 3s ease infinite;
}

@keyframes alertSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.alert-icon {
  width: 24px; height: 24px;
  border: 2px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent-red);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: alertIconPulse 1.5s ease infinite;
  flex-shrink: 0;
}

@keyframes alertIconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==================== PROGRESS BARS ==================== */
.combine-progress {
  height: 4px;
  background: rgba(0, 170, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.combine-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 2px;
  position: relative;
  transition: width 1.5s ease;
}

.combine-progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: progressShine 2s ease infinite;
}

@keyframes progressShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ==================== HEXAGONAL GRID DECORATION ==================== */
.hex-grid-bg {
  position: relative;
  overflow: hidden;
}

.hex-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300aaff' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* ==================== NOTIFICATION FLASH ==================== */
.notification-flash {
  position: relative;
  overflow: hidden;
}

.notification-flash::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.08), transparent);
  animation: notificationFlash 4s ease infinite;
}

@keyframes notificationFlash {
  0%, 80% { left: -50%; }
  100% { left: 150%; }
}

/* ==================== COMBINE LOADING SPINNER ==================== */
.combine-spinner {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 0 auto;
}

.combine-spinner::before,
.combine-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 50%;
}

.combine-spinner::before {
  border-top-color: var(--accent-cyan);
  animation: spinnerRotate 1s linear infinite;
}

.combine-spinner::after {
  inset: 4px;
  border-bottom-color: var(--accent-blue);
  animation: spinnerRotate 1.5s linear infinite reverse;
}

@keyframes spinnerRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==================== FLICKER EFFECT ==================== */
.flicker {
  animation: flicker 5s steps(1) infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
}

/* ==================== WAVE DIVIDER ==================== */
.wave-divider {
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: waveDividerMove 8s linear infinite;
}

@keyframes waveDividerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .combine-eye { width: 80px; height: 80px; }
  .combine-eye-core { inset: 20px; }
  .combine-eye-ring:nth-child(2) { inset: 6px; }
  .combine-eye-ring:nth-child(3) { inset: 13px; }
  
  .radar-widget { width: 100px; height: 100px; }
  
  .data-stream { height: 120px; }
  
  .hero-visual-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}
/* ============================================================
   ACCORDION SYSTEM - Sections déroulantes
   ============================================================ */

.accordion-section {
  border: 1px solid rgba(0, 170, 255, 0.1);
  margin-bottom: 0.4rem;
  background: var(--bg-card);
  transition: border-color 0.15s ease;
}

.accordion-section:hover {
  border-color: rgba(0, 170, 255, 0.2);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.accordion-header:hover {
  background: rgba(0, 170, 255, 0.03);
}

.accordion-header h3 {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.accordion-header .accordion-code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid rgba(0, 170, 255, 0.1);
  padding: 0.15rem 0.5rem;
}

.accordion-header .accordion-arrow {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
  font-family: 'Share Tech Mono', monospace;
}

.accordion-section.open .accordion-arrow {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-section.open .accordion-content {
  max-height: 2000px;
}

.accordion-content-inner {
  padding: 0 1.2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.accordion-content-inner p {
  margin-bottom: 0.5rem;
}

.accordion-content-inner a.accordion-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 1rem;
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 170, 255, 0.2);
  text-decoration: none;
  transition: all 0.15s ease;
}

.accordion-content-inner a.accordion-link:hover {
  background: rgba(0, 170, 255, 0.06);
  border-color: rgba(0, 170, 255, 0.4);
}

/* Search bar component */
#search-container {
  margin: 0;
}

#site-search {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  background: rgba(6,16,30,0.85);
  border: 1px solid rgba(0,170,255,0.2);
  color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

#site-search:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0,170,255,0.15);
}

#site-search::placeholder {
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}

#search-results {
  display: none;
  margin-top: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  max-height: 300px;
  overflow-y: auto;
}

#search-results a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(0, 170, 255, 0.06);
}

#search-results a:hover,
#search-results a.search-active {
  background: rgba(0, 170, 255, 0.06);
}
#search-results a.search-active {
  outline: 1px solid var(--accent-cyan);
  outline-offset: -1px;
}

#search-results .search-category {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ==================== PANNEAUX FLOTTANTS GLOBAUX ==================== */
.gp-float{position:fixed;top:150px;width:280px;max-height:calc(100vh - 170px);height:auto;z-index:var(--z-float-panels, 1100);display:flex;flex-direction:column;transition:transform 0.3s ease,opacity 0.3s ease,left 0.25s ease,right 0.25s ease;pointer-events:auto;}
.gp-float.gp-dragging{transition:none !important;}
.gp-float.gp-left{left:0;}
.gp-float.gp-right{right:0;}
.gp-float.gp-collapsed.gp-left{transform:translateX(-100%);}
.gp-float.gp-collapsed.gp-right{transform:translateX(100%);}
.gp-collapsed-tab{position:fixed;z-index:var(--z-float-tabs, 1101);cursor:pointer;background:rgba(6,16,30,0.97);border:1px solid rgba(0,170,255,0.25);display:flex;align-items:center;justify-content:center;padding:0.5rem 0.3rem;writing-mode:vertical-lr;text-orientation:mixed;font-family:'Orbitron',sans-serif;font-size:0.6rem;color:var(--accent-cyan);letter-spacing:2px;user-select:none;transition:background 0.15s,border-color 0.15s,opacity 0.3s,transform 0.3s ease;box-shadow:0 4px 15px rgba(0,0,0,0.4);backdrop-filter:blur(8px);white-space:nowrap;}
.gp-collapsed-tab:hover{background:rgba(0,170,255,0.1);border-color:var(--accent-cyan);}
.gp-collapsed-tab.gp-tab-left{left:0;top:150px;border-radius:0 6px 6px 0;border-left:none;}
.gp-collapsed-tab.gp-tab-right{right:0;top:150px;border-radius:6px 0 0 6px;border-right:none;}
.gp-collapsed-tab.gp-tab-hidden{opacity:0;pointer-events:none;transform:translateX(-20px);}
.gp-collapsed-tab.gp-tab-right.gp-tab-hidden{transform:translateX(20px);}
.gp-collapsed-tab .gp-tab-icon{font-size:0.85rem;margin-bottom:0.4rem;}
.gp-float-inner{background:rgba(6,16,30,0.97);border:1px solid rgba(0,170,255,0.2);border-radius:0 4px 4px 0;overflow:hidden;display:flex;flex-direction:column;max-height:100%;box-shadow:0 4px 20px rgba(0,0,0,0.5);backdrop-filter:blur(8px);flex:1;min-height:0;}
.gp-float.gp-right .gp-float-inner{border-radius:4px 0 0 4px;}
.gp-float-header{display:flex;align-items:center;justify-content:space-between;padding:0.5rem 0.7rem;background:rgba(0,170,255,0.08);border-bottom:1px solid rgba(0,170,255,0.2);cursor:pointer;user-select:none;flex-shrink:0;}
.gp-float-header h3{font-family:'Orbitron',sans-serif;font-size:0.65rem;color:var(--accent-cyan);letter-spacing:1px;margin:0;white-space:nowrap;}
.gp-float-toggle{font-size:0.7rem;color:var(--accent-cyan);opacity:0.7;transition:opacity 0.15s;}
.gp-float-toggle:hover{opacity:1;}
.gp-float-body{padding:0.6rem;overflow-y:auto;flex:1;scrollbar-width:none;}
.gp-float-body:hover{scrollbar-width:thin;scrollbar-color:rgba(0,170,255,0.25) transparent;}
.gp-float-body::-webkit-scrollbar{width:3px;background:transparent;}
.gp-float-body:hover::-webkit-scrollbar{width:4px;}
.gp-float-body::-webkit-scrollbar-thumb{background:transparent;border-radius:2px;}
.gp-float-body:hover::-webkit-scrollbar-thumb{background:rgba(0,170,255,0.3);}
.gp-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;z-index:5;transition:background 0.15s;}
.gp-resize-handle:hover,.gp-resize-handle.active{background:rgba(0,170,255,0.25);}
.gp-float.gp-left .gp-resize-handle{right:-3px;}
.gp-float.gp-right .gp-resize-handle{left:-3px;}
.gp-notepad-textarea{width:100%;min-height:180px;max-height:350px;resize:vertical;background:rgba(0,0,0,0.3);border:1px solid rgba(0,170,255,0.15);color:var(--text-primary);font-family:'Share Tech Mono',monospace;font-size:0.75rem;padding:0.5rem;outline:none;border-radius:2px;line-height:1.5;box-sizing:border-box;}
.gp-notepad-textarea:focus{border-color:rgba(0,170,255,0.4);}
.gp-notepad-footer{display:flex;align-items:center;justify-content:space-between;padding:0.3rem 0;font-family:'Share Tech Mono',monospace;font-size:0.6rem;color:var(--text-muted);}
.gp-notepad-clear{padding:0.2rem 0.5rem;background:rgba(255,60,60,0.08);border:1px solid rgba(255,60,60,0.25);color:var(--accent-red-bright);font-family:'Share Tech Mono',monospace;font-size:0.62rem;cursor:pointer;border-radius:2px;transition:all 0.15s;}
.gp-notepad-clear:hover{background:rgba(255,60,60,0.2);}
.gp-day-separator{padding:0.25rem 0.5rem;margin:0.5rem 0 0.2rem;font-family:'Orbitron',sans-serif;font-size:0.55rem;color:var(--text-muted);letter-spacing:1.5px;border-bottom:1px solid rgba(0,170,255,0.1);text-transform:uppercase;}
.gp-day-separator:first-child{margin-top:0;}
.gp-day-separator.gp-today{color:var(--accent-cyan);border-bottom-color:rgba(0,170,255,0.3);font-weight:700;}
.gp-day-separator.gp-past{opacity:0.45;}
.gp-today-event{padding:0.4rem 0.55rem;margin-bottom:0.25rem;border-radius:3px;font-family:'Share Tech Mono',monospace;font-size:0.68rem;border-left:3px solid;display:flex;flex-direction:column;gap:0.15rem;position:relative;}
.gp-today-event:hover .gp-ev-del{opacity:0.8!important;}
.gp-today-event.gp-evt-past{opacity:0.4;}
.gp-today-event .gp-ev-row{display:flex;align-items:baseline;gap:0.4rem;}
.gp-today-event .gp-ev-time{font-weight:700;font-size:0.68rem;flex-shrink:0;}
.gp-today-event .gp-ev-type{font-size:0.66rem;text-transform:uppercase;letter-spacing:0.5px;font-weight:700;flex-shrink:0;}
.gp-today-event .gp-ev-duration{font-size:0.55rem;opacity:0.6;margin-left:auto;}
.gp-today-event .gp-ev-meta{display:flex;align-items:baseline;gap:0.4rem;font-size:0.58rem;opacity:0.7;}
.gp-today-event .gp-ev-who{font-weight:600;}
.gp-today-event .gp-ev-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gp-today-event.gp-type-formation{background:rgba(0,170,255,0.08);border-color:var(--accent-cyan);color:var(--accent-cyan);}
.gp-today-event.gp-type-test{background:rgba(255,200,0,0.08);border-color:#ffc800;color:#ffc800;}
.gp-today-event.gp-type-recrutement{background:rgba(0,200,80,0.08);border-color:#00cc55;color:#00cc55;}
.gp-today-event.gp-type-operation{background:rgba(255,100,60,0.08);border-color:#ff6644;color:#ff6644;}
.gp-today-event.gp-type-patrouille{background:rgba(100,200,255,0.08);border-color:#64c8ff;color:#64c8ff;}
.gp-today-event.gp-type-autre{background:rgba(200,100,255,0.08);border-color:#c864ff;color:#c864ff;}
.gp-today-event.gp-type-code7{background:rgba(255,30,30,0.12);border-color:var(--accent-red-bright);color:var(--accent-red-bright);}
.gp-no-events{text-align:center;padding:1rem 0.5rem;color:var(--text-muted);font-family:'Share Tech Mono',monospace;font-size:0.7rem;opacity:0.6;}
.gp-today-link{display:block;text-align:center;margin-top:0.5rem;padding:0.3rem;border:1px solid rgba(0,170,255,0.2);border-radius:2px;color:var(--accent-cyan);font-family:'Share Tech Mono',monospace;font-size:0.65rem;text-decoration:none;transition:background 0.15s;}
.gp-today-link:hover{background:rgba(0,170,255,0.08);}
/* Quick-add planning button & form */
.gp-plan-add-btn{display:flex;align-items:center;justify-content:center;gap:0.3rem;width:100%;padding:0.35rem;margin-bottom:0.4rem;background:rgba(0,170,255,0.06);border:1px dashed rgba(0,170,255,0.25);border-radius:3px;color:var(--accent-cyan);font-family:'Share Tech Mono',monospace;font-size:0.65rem;cursor:pointer;transition:all 0.15s;}
.gp-plan-add-btn:hover{background:rgba(0,170,255,0.14);border-color:rgba(0,170,255,0.5);}
.gp-plan-form{padding:0.4rem;margin-bottom:0.4rem;background:rgba(0,170,255,0.04);border:1px solid rgba(0,170,255,0.2);border-radius:3px;display:none;}
.gp-plan-form.visible{display:block;}
.gp-plan-form label{display:block;font-family:'Share Tech Mono',monospace;font-size:0.58rem;color:var(--text-muted);letter-spacing:0.8px;margin-bottom:0.15rem;margin-top:0.3rem;}
.gp-plan-form label:first-child{margin-top:0;}
.gp-plan-form select,.gp-plan-form input{width:100%;padding:0.25rem 0.4rem;background:rgba(0,170,255,0.04);border:1px solid rgba(0,170,255,0.18);color:var(--text-primary);font-family:'Share Tech Mono',monospace;font-size:0.7rem;outline:none;border-radius:2px;box-sizing:border-box;}
.gp-plan-form select option{background:#0a1628;}
.gp-plan-form .gp-plan-time-row{display:flex;gap:0.3rem;align-items:center;}
.gp-plan-form .gp-plan-time-row select{flex:1;}
.gp-plan-form .gp-plan-time-row span{color:var(--text-muted);font-size:0.65rem;}
.gp-plan-form .gp-plan-actions{display:flex;gap:0.3rem;margin-top:0.4rem;}
.gp-plan-form .gp-plan-actions button{flex:1;padding:0.28rem 0.5rem;font-family:'Share Tech Mono',monospace;font-size:0.65rem;cursor:pointer;border-radius:2px;transition:all 0.15s;}
.gp-plan-form .gp-plan-save{border:1px solid rgba(0,170,255,0.4);background:rgba(0,170,255,0.15);color:var(--accent-cyan);font-weight:700;}
.gp-plan-form .gp-plan-save:hover{background:rgba(0,170,255,0.3);}
.gp-plan-form .gp-plan-cancel{border:1px solid rgba(255,255,255,0.15);background:rgba(255,255,255,0.04);color:var(--text-muted);}
.gp-plan-form .gp-plan-cancel:hover{background:rgba(255,255,255,0.1);}
/* ===== Module Utilisateurs en ligne ===== */
.gp-float-online{width:260px;}
.gp-online-count{display:inline-block;min-width:18px;height:18px;line-height:18px;text-align:center;border-radius:9px;background:rgba(0,200,80,0.2);color:#00cc55;font-family:'Orbitron',sans-serif;font-size:0.55rem;font-weight:700;margin-left:0.4rem;padding:0 5px;vertical-align:middle;}
.gp-online-body{min-height:60px;}
.gp-online-list{display:flex;flex-direction:column;gap:2px;}
.gp-online-user{display:flex;align-items:center;gap:0.4rem;padding:0.25rem 0.5rem;border-radius:2px;font-family:'Share Tech Mono',monospace;font-size:0.72rem;transition:background 0.15s;}
.gp-online-user:hover{background:rgba(0,170,255,0.06);}
.gp-online-user.gp-online-self{background:rgba(0,200,80,0.06);border-left:2px solid rgba(0,200,80,0.4);}
.gp-online-dot{width:6px;height:6px;border-radius:50%;background:#00cc55;flex-shrink:0;box-shadow:0 0 4px rgba(0,204,85,0.5);animation:gp-dot-pulse 2s ease-in-out infinite;}
@keyframes gp-dot-pulse{0%,100%{opacity:1;box-shadow:0 0 4px rgba(0,204,85,0.5);}50%{opacity:0.6;box-shadow:0 0 8px rgba(0,204,85,0.8);}}
.gp-online-mat{font-family:'Orbitron',sans-serif;font-size:0.68rem;font-weight:700;color:var(--accent-cyan);min-width:45px;}
.gp-online-pseudo{color:var(--text-muted);font-size:0.68rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gp-tab-online{top:350px;}
.gp-vdrag-handle{height:12px;cursor:grab;background:rgba(0,170,255,0.05);text-align:center;font-size:0.6rem;color:rgba(0,170,255,0.25);user-select:none;flex-shrink:0;line-height:12px;letter-spacing:1px;position:relative;}
.gp-vdrag-handle::after{content:'· · · · ·';}
.gp-vdrag-handle:hover{background:rgba(0,170,255,0.12);color:rgba(0,170,255,0.5);}
.gp-vdrag-handle:active{cursor:grabbing;}
.gp-vresize-handle{height:4px;cursor:ns-resize;background:rgba(0,170,255,0.04);transition:background 0.15s;flex-shrink:0;text-align:center;font-size:0.35rem;color:transparent;line-height:4px;}
.gp-vresize-handle::after{content:'· ·';}
.gp-vresize-handle:hover{background:rgba(0,170,255,0.15);height:6px;line-height:6px;color:rgba(0,170,255,0.5);}
@media(max-width:768px){.gp-float{width:240px;top:130px;max-width:70vw;max-height:calc(100vh - 150px);}.gp-float.gp-collapsed.gp-left{transform:translateX(-100%);}.gp-float.gp-collapsed.gp-right{transform:translateX(100%);}.gp-resize-handle{display:none;}.gp-collapsed-tab{top:130px;}.gp-collapsed-tab .gp-tab-label{font-size:0.5rem;}.gp-float-online{width:220px;}.gp-tab-online{top:280px;}.gp-float-chat{max-height:50vh;}}
/* ===== Module Messagerie Chat v3.0 — See assets/css/chat-module.css ===== */
/* ===== Projet Hebdomadaire — Header Widget ===== */
/* ===== Badge En Ligne — Draggable ===== */
.mpf-online-badge{position:fixed;top:8px;left:12px;z-index:var(--z-badge, 3000);display:flex;flex-direction:column;align-items:center;gap:0;padding:0.2rem 0.5rem;background:rgba(2,8,16,0.88);border:1px solid rgba(0,170,255,0.2);border-radius:6px;backdrop-filter:blur(8px);cursor:grab;user-select:none;transition:border-color 0.2s,box-shadow 0.2s;}
.mpf-online-badge:hover{border-color:rgba(0,170,255,0.45);box-shadow:0 0 8px rgba(0,170,255,0.15);}
.mpf-online-num{font-family:'Orbitron',sans-serif;font-size:1.1rem;font-weight:700;color:var(--accent-cyan);line-height:1.1;}
.mpf-online-txt{font-family:'Share Tech Mono',monospace;font-size:0.5rem;color:var(--text-muted);letter-spacing:1.5px;text-transform:uppercase;}
@media(max-width:640px){.mpf-online-badge{top:auto;bottom:8px;left:8px;padding:0.15rem 0.35rem;}.mpf-online-num{font-size:0.9rem;}.mpf-online-txt{font-size:0.5rem;}}
.mpf-money-widget{display:flex;flex-direction:column;align-items:center;gap:4px;font-family:'Share Tech Mono',monospace;min-width:220px;transition:opacity 0.3s;padding:0.45rem 1.2rem;border:1px solid rgba(0,170,255,0.2);border-radius:8px;background:rgba(0,170,255,0.05);}
.mpf-money-label{font-family:'Orbitron',sans-serif;font-size:0.58rem;color:var(--accent-cyan);letter-spacing:2px;text-transform:uppercase;opacity:0.9;font-weight:600;}
.mpf-money-amounts{font-size:0.85rem;font-weight:700;color:var(--text-primary,#e0e6f0);white-space:nowrap;line-height:1.2;letter-spacing:0.5px;}
.mpf-money-amounts span{color:var(--accent-cyan);}
.mpf-money-bar-wrap{width:100%;max-width:160px;height:5px;background:rgba(255,255,255,0.1);border-radius:3px;overflow:hidden;margin:2px 0;}
.mpf-money-bar-fill{height:100%;border-radius:3px;transition:width 0.6s ease,background 0.4s;background:linear-gradient(90deg,var(--accent-cyan),#00cc55);width:0%;box-shadow:0 0 4px rgba(0,170,255,0.3);}
.mpf-money-bottom{display:flex;align-items:center;gap:5px;font-size:0.62rem;color:var(--text-muted);white-space:nowrap;font-weight:600;}
.mpf-money-days-badge{display:inline-block;padding:1px 6px;border-radius:8px;font-family:'Orbitron',sans-serif;font-size:0.6rem;font-weight:700;letter-spacing:0.5px;background:rgba(0,170,255,0.15);color:var(--accent-cyan);border:1px solid rgba(0,170,255,0.25);}
.mpf-days-warn{background:rgba(255,170,0,0.15);color:#ffaa00;border-color:rgba(255,170,0,0.3);}
.mpf-days-critical{background:rgba(255,68,68,0.15);color:var(--accent-red-bright);border-color:rgba(255,68,68,0.3);animation:mpfDaysPulse 1.5s ease-in-out infinite;}
@keyframes mpfDaysPulse{0%,100%{opacity:1;}50%{opacity:0.5;}}
.mpf-money-paused .mpf-money-bar-fill{opacity:0.35;}
.mpf-money-paused .mpf-money-amounts{opacity:0.5;}
.mpf-money-completed .mpf-money-bar-fill{background:linear-gradient(90deg,#00cc55,#00ff6a)!important;box-shadow:0 0 8px rgba(0,204,85,0.5);}
@keyframes mpfCelebrate{0%{box-shadow:0 0 0 0 rgba(0,204,85,0.4);border-color:rgba(0,204,85,0.5);}40%{box-shadow:0 0 18px 4px rgba(0,204,85,0.3);border-color:rgba(0,255,106,0.7);}100%{box-shadow:0 0 0 0 rgba(0,204,85,0);border-color:rgba(0,170,255,0.15);}}
.mpf-money-celebrate{animation:mpfCelebrate 2.2s ease-out;}
.mpf-money-widget:hover{opacity:0.85;border-color:rgba(0,170,255,0.3);}
@media(max-width:900px){.mpf-money-widget{display:none;}}
/* ===== Projet Monétaire — Admin Overlay ===== */
.mpf-money-admin-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.7);z-index:var(--z-modal, 10000);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);}
.mpf-money-admin-modal{background:var(--bg-secondary,#0a1628);border:1px solid var(--border-color,#1a2a3a);border-radius:8px;width:92%;max-width:580px;max-height:85vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,0.6);}
.mpf-money-admin-header{display:flex;justify-content:space-between;align-items:center;padding:0.8rem 1rem;border-bottom:1px solid var(--border-color,#1a2a3a);}
.mpf-money-admin-header h3{margin:0;font-family:'Orbitron',sans-serif;font-size:0.8rem;color:var(--accent-cyan,#00aaff);}
.mpf-money-close{background:none;border:none;color:var(--text-muted,#8899aa);font-size:1.1rem;cursor:pointer;padding:0 0.2rem;transition:color 0.15s;}
.mpf-money-close:hover{color:var(--accent-red-bright);}
.mpf-money-admin-body{padding:0.8rem 1rem;}
.mpf-money-info{display:grid;gap:0.25rem;font-size:0.72rem;font-family:'Share Tech Mono',monospace;color:var(--text-muted,#8899aa);margin-bottom:0.8rem;padding:0.5rem 0.6rem;background:rgba(0,170,255,0.04);border-radius:4px;border-left:3px solid var(--accent-cyan,#00aaff);}
.mpf-money-section{margin-top:0.8rem;}
.mpf-money-section h4{font-family:'Orbitron',sans-serif;font-size:0.65rem;color:var(--text-muted,#8899aa);text-transform:uppercase;letter-spacing:1px;margin:0 0 0.4rem;padding-bottom:0.25rem;border-bottom:1px solid rgba(255,255,255,0.06);}
.mpf-money-actions{display:flex;flex-direction:column;gap:0.4rem;}
.mpf-money-action-row{display:flex;gap:0.4rem;flex-wrap:wrap;align-items:center;}
.mpf-money-field-label{font-size:0.68rem;font-family:'Share Tech Mono',monospace;color:var(--text-muted);min-width:70px;}
.mpf-money-input{background:rgba(0,0,0,0.3);border:1px solid var(--border-color,#1a2a3a);color:var(--text-primary,#e0e6f0);padding:0.35rem 0.5rem;border-radius:4px;font-family:'Share Tech Mono',monospace;font-size:0.7rem;width:100px;}
.mpf-money-input-wide{flex:1;min-width:120px;}
.mpf-money-input:focus{outline:none;border-color:var(--accent-cyan,#00aaff);}
.mpf-money-input[type="date"]{color-scheme:dark;width:auto;min-width:130px;}
.mpf-money-btn{padding:0.3rem 0.6rem;border:1px solid var(--border-color,#1a2a3a);border-radius:4px;background:rgba(0,170,255,0.1);color:var(--accent-cyan,#00aaff);font-family:'Share Tech Mono',monospace;font-size:0.65rem;cursor:pointer;white-space:nowrap;transition:background 0.2s,border-color 0.2s;}
.mpf-money-btn:hover{background:rgba(0,170,255,0.2);border-color:var(--accent-cyan,#00aaff);}
.mpf-money-btn-add{background:rgba(0,204,85,0.1);color:#00cc55;border-color:rgba(0,204,85,0.3);}
.mpf-money-btn-add:hover{background:rgba(0,204,85,0.2);}
.mpf-money-btn-remove,.mpf-money-btn-danger{background:rgba(255,68,68,0.1);color:var(--accent-red-bright);border-color:rgba(255,68,68,0.3);}
.mpf-money-btn-remove:hover,.mpf-money-btn-danger:hover{background:rgba(255,68,68,0.2);}
.mpf-money-btn-warn{background:rgba(255,170,0,0.1);color:#ffaa00;border-color:rgba(255,170,0,0.3);}
.mpf-money-btn-warn:hover{background:rgba(255,170,0,0.2);}
.mpf-money-btn-set{background:rgba(0,170,255,0.1);color:var(--accent-cyan);border-color:rgba(0,170,255,0.3);}
.mpf-money-toggle-label{font-size:0.68rem;font-family:'Share Tech Mono',monospace;color:var(--text-muted,#8899aa);cursor:pointer;display:flex;align-items:center;gap:0.4rem;}
.mpf-money-txn-list{max-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;}
.mpf-money-txn{display:flex;align-items:center;gap:0.4rem;padding:0.25rem 0.4rem;font-size:0.65rem;font-family:'Share Tech Mono',monospace;border-radius:2px;background:rgba(0,0,0,0.2);}
.mpf-money-txn-note{flex:1;color:var(--text-primary,#e0e6f0);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mpf-money-txn-meta{color:var(--text-muted,#8899aa);font-size:0.58rem;white-space:nowrap;}
.mpf-money-empty{font-size:0.68rem;color:var(--text-muted,#8899aa);font-family:'Share Tech Mono',monospace;text-align:center;padding:0.5rem;}
.mpf-money-hist-list{display:flex;flex-direction:column;gap:2px;max-height:140px;overflow-y:auto;}
.mpf-money-hist{display:flex;align-items:center;gap:0.4rem;padding:0.25rem 0.4rem;font-size:0.62rem;font-family:'Share Tech Mono',monospace;color:var(--text-muted,#8899aa);background:rgba(0,0,0,0.2);border-radius:2px;}
.mpf-money-hist span:first-child{flex:1;}

/* ============================================================
   GLOBAL STYLED CONFIRM DIALOG — Combine Overwatch Theme
   Replaces native window.confirm() across the entire site.
   Usage: const ok = await mpfConfirm('Message');
   ============================================================ */
.mpf-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 8, 0.85);
  z-index: var(--z-confirm, 50000);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: mpfConfirmFadeIn 0.2s ease;
}
@keyframes mpfConfirmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mpf-confirm-box {
  background: linear-gradient(180deg, #0c1829 0%, #060e1a 100%);
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-top: 2px solid rgba(0, 170, 255, 0.6);
  padding: 0;
  border-radius: 4px;
  max-width: 480px;
  width: 92%;
  box-shadow:
    0 0 60px rgba(0, 170, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(0, 170, 255, 0.1);
  animation: mpfConfirmSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes mpfConfirmSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mpf-confirm-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 170, 255, 0.06);
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
}
.mpf-confirm-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.4));
}
.mpf-confirm-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  color: var(--accent-cyan, #00aaff);
  letter-spacing: 2px;
  text-transform: uppercase;
  flex: 1;
}
.mpf-confirm-body {
  padding: 1.4rem 1.5rem 1.2rem;
}
.mpf-confirm-msg {
  color: var(--text-primary, #e2edf8);
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-line;
}
.mpf-confirm-detail {
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid rgba(0, 170, 255, 0.3);
  border-radius: 2px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted, #6b8399);
  line-height: 1.5;
}
.mpf-confirm-footer {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  padding: 0 1.5rem 1.2rem;
}
.mpf-confirm-btn {
  padding: 0.55rem 1.6rem;
  border: 1px solid;
  border-radius: 2px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.mpf-confirm-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.4s ease;
}
.mpf-confirm-btn:hover::after {
  left: 100%;
}
.mpf-confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #6b8399);
  border-color: rgba(255, 255, 255, 0.1);
}
.mpf-confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary, #e2edf8);
  border-color: rgba(255, 255, 255, 0.25);
}
.mpf-confirm-btn.ok {
  background: rgba(0, 170, 255, 0.12);
  color: var(--accent-cyan, #00aaff);
  border-color: rgba(0, 170, 255, 0.35);
}
.mpf-confirm-btn.ok:hover {
  background: rgba(0, 170, 255, 0.22);
  border-color: var(--accent-cyan, #00aaff);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.12);
}
.mpf-confirm-btn.ok.danger {
  background: rgba(255, 68, 68, 0.1);
  color: var(--accent-red-bright);
  border-color: rgba(255, 68, 68, 0.3);
}
.mpf-confirm-btn.ok.danger:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: var(--accent-red-bright);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.1);
}
.mpf-confirm-btn.ok.success {
  background: rgba(0, 204, 102, 0.1);
  color: #00cc66;
  border-color: rgba(0, 204, 102, 0.3);
}
.mpf-confirm-btn.ok.success:hover {
  background: rgba(0, 204, 102, 0.2);
  border-color: #00cc66;
  box-shadow: 0 0 20px rgba(0, 204, 102, 0.1);
}
.mpf-confirm-btn.ok.warn {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
  border-color: rgba(255, 170, 0, 0.3);
}
.mpf-confirm-btn.ok.warn:hover {
  background: rgba(255, 170, 0, 0.2);
  border-color: #ffaa00;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.1);
}
/* Scanline decoration on confirm box */
.mpf-confirm-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 170, 255, 0.008) 2px,
    rgba(0, 170, 255, 0.008) 4px
  );
  pointer-events: none;
  border-radius: 4px;
}
@media (max-width: 500px) {
  .mpf-confirm-box { width: 95%; }
  .mpf-confirm-footer { flex-direction: column; gap: 0.5rem; }
  .mpf-confirm-btn { width: 100%; text-align: center; }
}

/* ============================================================
   GLOBAL DYNAMIC ENHANCEMENTS — COMBINE OVERWATCH AESTHETIC
   ============================================================ */

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 5, 15, 0.6); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.3), rgba(0, 100, 200, 0.2));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.5), rgba(0, 100, 200, 0.35));
}
html, body, .gp-float-body, .gp-chat-messages, .gp-chat-users-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 170, 255, 0.25) rgba(0, 5, 15, 0.4);
}

/* ===== Selection ===== */
::selection {
  background: rgba(0, 170, 255, 0.25);
  color: #fff;
}

/* ===== Focus outlines ===== */
:focus-visible {
  outline: 2px solid rgba(0, 170, 255, 0.6);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== Inputs & Textareas global glow ===== */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.1), 0 0 25px rgba(0, 170, 255, 0.03);
}

/* ===== Global button hover lift ===== */
button, .btn, [role="button"] {
  transition: all 0.2s ease;
}

/* ===== Image glow on hover ===== */
img {
  transition: filter 0.3s ease;
}
img:hover {
  filter: brightness(1.05);
}

/* ============================================================
   COMBINE OVERWATCH — TOGGLEABLE VISUAL FX SYSTEM
   Each effect is controlled by a body.fx-* class
   ============================================================ */

/* ── FX: VIGNETTE OVERWATCH ── */
/* Oppressive dark corners + blue surveillance tint at top */
.fx-vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-decorative, 50);
  display: none;
}
body.fx-vignette .fx-vignette-overlay {
  display: block;
  background:
    radial-gradient(ellipse 130% 90% at 50% 0%, rgba(0, 40, 100, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.75) 100%);
}

/* ── FX: BRUIT ANALOGIQUE (GRAIN) ── */
/* Subtle animated noise grain like an old CRT monitor */
.fx-grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-decorative, 50);
  display: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}
body.fx-grain .fx-grain-overlay {
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grainShift 0.3s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(2px, -2px); }
}

/* ── FX: INSTABILITÉ HOLOGRAPHIQUE (FLICKER) ── */
/* Subtle opacity flicker overlay — like a Combine holographic display */
.fx-flicker-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-decorative, 50);
  background: rgba(0, 20, 40, 0.06);
  display: none;
}
body.fx-flicker .fx-flicker-overlay {
  display: block;
  animation: holoFlicker 6s ease-in-out infinite;
}
@keyframes holoFlicker {
  0%, 100% { opacity: 0; }
  4% { opacity: 0; }
  4.5% { opacity: 1; }
  5% { opacity: 0; }
  48% { opacity: 0; }
  48.3% { opacity: 0.8; }
  48.6% { opacity: 0; }
  82% { opacity: 0; }
  82.2% { opacity: 1; }
  82.5% { opacity: 0.5; }
  83% { opacity: 0; }
}

/* ── FX: MARQUEURS HUD (HUD BRACKETS) ── */
/* Targeting brackets in the 4 corners — Combine scanner HUD */
/* Matches the outermost map-corner style: 8px inset, 24px L-brackets */
.fx-hud-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-scanline, 2000);
  display: none;
}
body.fx-hudbrackets .fx-hud-overlay {
  display: block;
}
.fx-hud-overlay .hud-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.25;
}
.fx-hud-overlay .hud-corner::before,
.fx-hud-overlay .hud-corner::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan, #00aaff);
  box-shadow: 0 0 4px rgba(0, 170, 255, 0.3);
}
/* Top-left */
.fx-hud-overlay .hud-tl { top: 8px; left: 8px; }
.fx-hud-overlay .hud-tl::before { top: 0; left: 0; width: 2px; height: 24px; }
.fx-hud-overlay .hud-tl::after  { top: 0; left: 0; width: 24px; height: 2px; }
/* Top-right */
.fx-hud-overlay .hud-tr { top: 8px; right: 8px; }
.fx-hud-overlay .hud-tr::before { top: 0; right: 0; width: 2px; height: 24px; }
.fx-hud-overlay .hud-tr::after  { top: 0; right: 0; width: 24px; height: 2px; }
/* Bottom-left */
.fx-hud-overlay .hud-bl { bottom: 8px; left: 8px; }
.fx-hud-overlay .hud-bl::before { bottom: 0; left: 0; width: 2px; height: 24px; }
.fx-hud-overlay .hud-bl::after  { bottom: 0; left: 0; width: 24px; height: 2px; }
/* Bottom-right */
.fx-hud-overlay .hud-br { bottom: 8px; right: 8px; }
.fx-hud-overlay .hud-br::before { bottom: 0; right: 0; width: 2px; height: 24px; }
.fx-hud-overlay .hud-br::after  { bottom: 0; right: 0; width: 24px; height: 2px; }
/* Subtle bracket pulse */
body.fx-hudbrackets .fx-hud-overlay .hud-corner {
  animation: hudPulse 4s ease-in-out infinite;
}
@keyframes hudPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

/* ── FX: ACCENT SUPÉRIEUR (TOP LINE) ── */
/* Default: top line hidden; shown when fx-topline is on */
/* NOTE: body::after is the top accent line; override default visibility */
body:not(.fx-topline)::after {
  opacity: 0 !important;
}

/* ── FX: SIGNAL PARASITE (STATIC) ── */
/* Occasional horizontal displacement lines — Combine scanner interference */
.fx-static-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-decorative, 50);
  display: none;
  overflow: hidden;
}
body.fx-static .fx-static-overlay {
  display: block;
}
.fx-static-overlay::before {
  content: '';
  position: absolute;
  width: 100%; height: 3px;
  left: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 170, 255, 0.04) 10%,
    rgba(0, 170, 255, 0.08) 15%,
    transparent 25%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 60%
  );
  animation: staticLine1 8s linear infinite;
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.05);
}
.fx-static-overlay::after {
  content: '';
  position: absolute;
  width: 100%; height: 2px;
  left: 0;
  background: linear-gradient(90deg,
    transparent 20%,
    rgba(0, 170, 255, 0.06) 40%,
    rgba(0, 170, 255, 0.1) 45%,
    transparent 55%,
    rgba(255, 255, 255, 0.03) 70%,
    transparent 80%
  );
  animation: staticLine2 12s linear infinite;
  animation-delay: -4s;
}
@keyframes staticLine1 {
  0% { top: -3px; opacity: 0; }
  3% { opacity: 1; }
  50% { opacity: 0.6; }
  97% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes staticLine2 {
  0% { top: 105%; opacity: 0; }
  3% { opacity: 0.8; }
  50% { opacity: 0.4; }
  97% { opacity: 0.7; }
  100% { top: -3px; opacity: 0; }
}

/* ── FX: ANIMATIONS GLOBALES ── */
/* When animations are disabled, pause all CSS animations globally */
body:not(.fx-animations) *,
body:not(.fx-animations) *::before,
body:not(.fx-animations) *::after {
  animation-play-state: paused !important;
}

/* ── FX: PARTICULES (GRILLE) ── */
/* When particles are disabled, hide the grid pattern */
body:not(.fx-particles) .particles-bg::before {
  opacity: 0 !important;
}

/* ===== Reduce motion for accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== NOTIFICATIONS BELL ==================== */
.mpf-notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.mpf-notif-bell {
  position: relative;
  background: rgba(0, 170, 255, 0.08);
  border: 1px solid rgba(0, 170, 255, 0.25);
  color: var(--accent-cyan);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.mpf-notif-bell svg {
  width: 18px;
  height: 18px;
}
.mpf-notif-bell:hover {
  background: rgba(0, 170, 255, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}
.mpf-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--accent-red-bright);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--bg-primary);
  animation: mpf-notif-pulse 2s ease-in-out infinite;
}
@keyframes mpf-notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Notification dropdown — portail fixe hors stacking context */
.mpf-notif-dropdown {
  position: fixed;
  width: 360px;
  max-height: 480px;
  background: #0a1628;
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
}
@media (max-width: 500px) {
  .mpf-notif-dropdown {
    width: calc(100vw - 2rem);
    right: 1rem !important;
  }
}
.mpf-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  font-weight: 700;
}
.mpf-notif-readall {
  background: none; border: 1px solid rgba(0, 170, 255, 0.25);
  color: var(--accent-cyan); font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem; cursor: pointer; padding: 0.2rem 0.5rem;
  border-radius: 2px; transition: all 0.15s;
}
.mpf-notif-readall:hover {
  background: rgba(0, 170, 255, 0.12);
  border-color: var(--accent-cyan);
}
/* ── Notification Category Tabs ── */
.mpf-notif-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
  padding: 0 0.4rem;
}
.mpf-notif-tab {
  flex: 1;
  padding: 0.5rem 0.3rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.mpf-notif-tab:hover { color: var(--text-primary); background: rgba(0, 170, 255, 0.03); }
.mpf-notif-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}
.mpf-notif-tab-count {
  display: inline-block;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  background: rgba(255, 170, 0, 0.2);
  color: #ffaa00;
  font-size: 0.55rem; font-weight: 700;
  border-radius: 8px;
  text-align: center;
  line-height: 16px;
  margin-left: 3px;
  vertical-align: middle;
}

/* ── Notification List ── */
.mpf-notif-list {
  max-height: 360px;
  overflow-y: auto;
}

/* ── Notification Item (flex layout with icon) ── */
.mpf-notif-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(0, 170, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s, border-left-color 0.15s;
  position: relative;
  border-left: 3px solid transparent;
}
.mpf-notif-item:hover { background: rgba(0, 170, 255, 0.06); }
.mpf-notif-item:hover .mpf-notif-dismiss { opacity: 1; }

/* Priority variants */
.mpf-notif-item.unread {
  background: rgba(0, 170, 255, 0.03);
  border-left-color: var(--accent-cyan);
}
.mpf-notif-item.priority-warning.unread {
  border-left-color: #ffaa00;
  background: rgba(255, 170, 0, 0.03);
}
.mpf-notif-item.priority-critical.unread {
  border-left-color: #ff4444;
  background: rgba(255, 68, 68, 0.03);
}

/* Dismiss button */
.mpf-notif-dismiss {
  position: absolute; top: 4px; right: 6px;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 2px 5px; border-radius: 3px;
  opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s;
  z-index: 2;
}
.mpf-notif-dismiss:hover { color: var(--accent-red-bright); background: rgba(255,68,68,0.1); }

/* Category icon */
.mpf-notif-item-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  border-radius: 6px;
  margin-top: 1px;
}

/* Item body */
.mpf-notif-item-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.mpf-notif-item-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.15rem;
  gap: 0.4rem;
}
.mpf-notif-from {
  font-size: 0.72rem; color: var(--text-primary); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpf-notif-date {
  font-size: 0.62rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.mpf-notif-type {
  font-size: 0.62rem; letter-spacing: 0.5px;
}
.mpf-notif-resume {
  font-size: 0.68rem; color: var(--text-muted);
  margin-top: 0.1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpf-notif-dot {
  position: absolute; top: 50%; right: 0.7rem;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.mpf-notif-empty {
  padding: 2rem; text-align: center;
  color: var(--text-muted); font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.mpf-notif-footer {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid rgba(0, 170, 255, 0.15);
  text-align: center;
}
.mpf-notif-footer a {
  color: var(--accent-cyan); text-decoration: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  transition: color 0.15s;
}
.mpf-notif-footer a:hover { color: #fff; }

/* Bell responsive overrides (must appear after base bell styles) */
@media (max-width: 1100px) {
  .mpf-notif-bell { width: 28px; height: 28px; }
  .mpf-notif-bell svg { width: 14px; height: 14px; }
}
@media (max-width: 768px) {
  .mpf-notif-bell { width: 28px; height: 28px; }
  .mpf-notif-bell svg { width: 14px; height: 14px; }
}

