/* ==========================================================================
   HAMBURG ROLEPLAY - SLEEK & VIBRANT THEME WITH WALLPAPER BACKGROUND
   Unified Top Navbar Box, Bright Wallpaper Flow, Full Fraktionen Page Styles
   ========================================================================== */

/* ===== RESET & CSS VARIABLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: inherit;
}

:root {
  /* Elegant, Eye-friendly Slate-Sapphire Blue (Subtle, Soft & Modern) */
  --primary: #3b74db;
  --primary-hover: #2f60bd;
  --primary-dark: #1e458e;
  --primary-dim: rgba(59, 116, 219, 0.08);
  --primary-border: rgba(59, 116, 219, 0.22);
  --primary-glow: rgba(59, 116, 219, 0.08);
  --primary-glow-strong: rgba(59, 116, 219, 0.15);

  /* Faction Specific Colors (matching reference image style) */
  --police-color: #3b74db;
  --police-bg: rgba(59, 116, 219, 0.08);
  --police-border: rgba(59, 116, 219, 0.22);

  --fire-color: #ef4444;
  --fire-bg: rgba(239, 68, 68, 0.08);
  --fire-border: rgba(239, 68, 68, 0.25);

  --medic-color: #10b981;
  --medic-bg: rgba(16, 185, 129, 0.08);
  --medic-border: rgba(16, 185, 129, 0.25);

  --mechanic-color: #f59e0b;
  --mechanic-bg: rgba(245, 158, 11, 0.08);
  --mechanic-border: rgba(245, 158, 11, 0.25);

  --gang-color: #a855f7;
  --gang-bg: rgba(168, 85, 247, 0.08);
  --gang-border: rgba(168, 85, 247, 0.25);

  /* Frosted Glass Clean Palette (Deeply Transparent) */
  --bg-card: rgba(8, 14, 26, 0.22);
  --bg-card-hover: rgba(12, 18, 34, 0.35);
  --bg-inner: rgba(255, 255, 255, 0.04);
  --bg-inner-hover: rgba(255, 255, 255, 0.08);

  /* Text Shades */
  --text: #f0f6fc;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders */
  --border: rgba(255, 255, 255, 0.14);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.55);

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  background-color: #070c16;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Modern Atmospheric Wallpaper Background (Clean, Sharp Artwork - Atmospheric Dark) */
.site-bg,
.subpage-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 20, 0.40) 0%, rgba(6, 10, 20, 0.48) 45%, rgba(6, 10, 20, 0.65) 100%),
    url('assets/hero-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  image-rendering: -webkit-optimize-contrast;
  pointer-events: none;
}

.site-bg-overlay,
.subpage-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 130% 100% at 50% 35%, rgba(6, 10, 20, 0.15) 0%, rgba(6, 10, 20, 0.50) 100%);
  pointer-events: none;
}

/* Admin Panel Clean Styling (No Artwork Background, Pure Professional Dashboard) */
body.admin-page {
  background: #090d16 !important;
  background-color: #090d16 !important;
  color: #cdd4de;
}

body.admin-page .site-bg,
body.admin-page .subpage-bg,
body.admin-page .site-bg-overlay,
body.admin-page .subpage-bg-overlay {
  display: none !important;
  background: none !important;
}

body.admin-page #navbar.nav-box {
  background: rgba(9, 13, 22, 0.95);
  border-bottom: 1px solid #1c222d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

::selection {
  background: var(--primary);
  color: #070c16;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(7, 12, 22, 0.95);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== NAVIGATION BAR (FULL-WIDTH TOP HEADER) ===== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

#navbar.nav-box {
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  height: 68px;
  background: rgba(10, 15, 28, 0.28);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  transition: var(--transition);
}

#navbar.nav-box.scrolled {
  background: rgba(8, 12, 24, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.40), 0 0 20px rgba(56, 189, 248, 0.10);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 8px;
}
.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
.nav-brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.nav-brand-title span {
  color: var(--primary);
}
.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(59, 116, 219, 0.15);
  border: 1px solid rgba(59, 116, 219, 0.35);
  color: #60a5fa;
  margin-left: 8px;
}

/* Server Status Indicator Pill */
.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: #34d399;
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Unified Navbar Button Group */
.nav-button-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-actions-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn {
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30), 0 0 12px rgba(56, 189, 248, 0.25);
}

.nav-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

/* MDT-Systeme Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-caret {
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.15s;
}
.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: rgba(9, 15, 26, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-md);
  z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}
.nav-dropdown-menu a:hover {
  background: var(--primary-dim);
  color: var(--primary);
}
.nav-dropdown-menu a i { width: 16px; font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 4px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
}

.nav-btn-ip {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 0 13px;
}
.nav-btn-ip:hover {
  color: var(--primary);
}

.nav-btn-discord {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 0 18px;
}
.nav-btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* ===== CONTAINER & GLOBAL SECTION STYLES ===== */
.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 56px 0;
  position: relative;
}

.section-header {
  margin-bottom: 32px;
}
.section-header.center {
  text-align: center;
}

.section-tag {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #FFFFFF 20%, #E2E8F0 65%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  display: block;
}

.section-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 600px;
}
.section-header.center .section-desc {
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 68vh;
  padding: 125px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 820px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.8vw, 62px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #FFFFFF 20%, #E2E8F0 65%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  display: block;
}

.hero-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.hero-emblem-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.7)) drop-shadow(0 0 50px rgba(34, 211, 238, 0.35));
  animation: emblemPulse 4s ease-in-out infinite alternate;
}
@keyframes emblemPulse {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 35px rgba(34, 211, 238, 0.3));
  }
  100% {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 55px rgba(34, 211, 238, 0.5));
  }
}

.gradient-text,
.hero-highlight {
  color: #38bdf8;
  background: linear-gradient(135deg, #67e8f9 0%, #38bdf8 55%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}

.hero-sub {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

/* Green Launcher CTA Button (Matching Reference) */
.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.btn-green-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 16px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 200, 83, 0.45), 0 0 16px rgba(0, 230, 118, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn-green-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 200, 83, 0.6), 0 0 28px rgba(0, 230, 118, 0.55);
  filter: brightness(1.06);
}
.btn-green-launcher:active {
  transform: translateY(1px) scale(0.99);
}
.btn-green-launcher i {
  font-size: 16px;
}

/* Launcher Button Container & WIP Tooltip */
.launcher-btn-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.launcher-wip-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(12, 18, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 7px;
}

.launcher-wip-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(245, 158, 11, 0.55);
}

.launcher-btn-container:hover .launcher-wip-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Download Counter Subtext */
.hero-download-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-download-counter i {
  color: #00e676;
  font-size: 15px;
}

.hero-download-counter strong {
  color: #ffffff;
  font-weight: 800;
}

/* Reassurance / Security Subtext */
.hero-trust-subtext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 24px;
}
.hero-trust-subtext .trust-icon {
  color: #fbbf24;
  font-size: 13px;
}

/* Secondary Actions (Discord, Regelwerk, IP) */
.hero-actions-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}
.btn-secondary-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 116, 219, 0.09);
  border: 1px solid rgba(59, 116, 219, 0.28);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hero-badge i {
  color: #3b82f6;
}

/* Hero Quick IP Terminal Card */
.hero-quick-ip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 20, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-top: 6px;
}
.ip-prefix {
  color: #60a5fa;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-quick-ip code {
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 13px;
}
.copy-small-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.copy-small-btn:hover {
  background: rgba(59, 116, 219, 0.2);
  border-color: rgba(59, 116, 219, 0.4);
  color: #fff;
}

/* Hero Stats Strip */
.hero-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 21, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-stat-pill strong {
  color: #fff;
}
.hero-stat-pill i {
  color: var(--primary);
}

/* Bento Features Grid (Modern Authentic Layout) */
.bento-features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.bento-card {
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.bento-col-7 { grid-column: span 7; }
.bento-col-5 { grid-column: span 5; }
.bento-col-6 { grid-column: span 6; }
.bento-col-4 { grid-column: span 4; }
.bento-col-8 { grid-column: span 8; }

@media (max-width: 960px) {
  .bento-col-7, .bento-col-5, .bento-col-6, .bento-col-4, .bento-col-8 {
    grid-column: span 12;
  }
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 116, 219, 0.12);
  border: 1px solid rgba(59, 116, 219, 0.28);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bento-icon.police { background: rgba(59, 116, 219, 0.12); color: #60a5fa; border-color: rgba(59, 116, 219, 0.28); }
.bento-icon.medic { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.28); }
.bento-icon.tech { background: rgba(168, 85, 247, 0.12); color: #c084fc; border-color: rgba(168, 85, 247, 0.28); }
.bento-icon.economy { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.28); }

.bento-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.bento-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  list-style: none;
  padding: 0;
}
.bento-taglist li {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento-taglist li i {
  color: #60a5fa;
  font-size: 11px;
}

/* Subpage Styling */
body.subpage {
  background-color: #080c14;
}

/* ===== LAUNCHER SECTION ===== */
.launcher-section {
  padding: 10px 0 36px;
}
.launcher-banner {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-dim);
  transition: var(--transition);
}
.launcher-banner:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 28px var(--primary-glow);
}
.launcher-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.launcher-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #050a08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--primary-glow);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.stat-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.stat-card-action {
  border-color: var(--primary-border);
  background: rgba(0, 170, 255, 0.08);
  cursor: pointer;
}
.stat-card-action:hover {
  background: rgba(0, 170, 255, 0.18);
  border-color: var(--primary);
  box-shadow: 0 6px 24px var(--primary-glow);
  transform: translateY(-3px);
}
.icon-download {
  background: var(--primary) !important;
  color: #050a08 !important;
  box-shadow: 0 0 14px var(--primary-glow);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== FRAKTIONEN SECTION ON INDEX ===== */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.faction-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: var(--transition);
}
.faction-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.faction-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.icon-blue { background: rgba(0, 170, 255, 0.18); color: #38bdf8; border: 1px solid rgba(0, 170, 255, 0.35); }
.icon-red { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.icon-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

.faction-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.faction-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.faction-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.faction-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}
.faction-link:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}

/* ===== PAGE HERO FOR FRAKTIONEN.HTML ===== */
.page-hero {
  padding: 135px 0 35px;
  text-align: center;
}
.page-hero-container {
  max-width: 1050px;
}

.faction-overview-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 38px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.overview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.overview-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.overview-val {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.overview-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.text-green { color: #10b981; }

/* ===== CATEGORY FILTER BAR (MATCHING REFERENCE SCREENSHOT) ===== */
.faction-filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 38px auto 26px;
  flex-wrap: wrap;
}

.faction-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 11px 30px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.faction-filter-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.faction-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(59, 116, 219, 0.28);
}

/* ===== FRAKTIONEN DETAIL CARDS (MATCHING REFERENCE IMAGE) ===== */
.factions-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.faction-card-detail {
  background: rgba(8, 14, 26, 0.20);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--police-color);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.faction-card-detail:hover {
  transform: translateY(-4px);
  background: rgba(12, 18, 34, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-left-color: rgba(255, 255, 255, 0.25);
  border-right-color: rgba(255, 255, 255, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.faction-card-detail.border-police { border-top-color: var(--police-color); }
.faction-card-detail.border-fire { border-top-color: var(--fire-color); }
.faction-card-detail.border-medic { border-top-color: var(--medic-color); }
.faction-card-detail.border-mechanic { border-top-color: var(--mechanic-color); }
.faction-card-detail.border-gang { border-top-color: var(--gang-color); }
.faction-card-detail.border-justice { border-top-color: #3b82f6; }
.faction-card-detail.border-lawyer { border-top-color: #eab308; }

.faction-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.faction-card-header-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.bg-police { background: var(--police-bg); color: var(--police-color); border: 1px solid var(--police-border); }
.bg-fire { background: var(--fire-bg); color: var(--fire-color); border: 1px solid var(--fire-border); }
.bg-medic { background: var(--medic-bg); color: var(--medic-color); border: 1px solid var(--medic-border); }
.bg-mechanic { background: var(--mechanic-bg); color: var(--mechanic-color); border: 1px solid var(--mechanic-border); }
.bg-gang { background: var(--gang-bg); color: var(--gang-color); border: 1px solid var(--gang-border); }
.bg-justice { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.30); }
.bg-lawyer { background: rgba(234, 179, 8, 0.12); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.30); }

.faction-card-titles h2,
.faction-card-titles h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.25;
}

.faction-category-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}
.tag-police { color: var(--police-color); }
.tag-fire { color: var(--fire-color); }
.tag-medic { color: var(--medic-color); }
.tag-mechanic { color: var(--mechanic-color); }
.tag-gang { color: var(--gang-color); }
.tag-justice { color: #3b82f6; }
.tag-lawyer { color: #eab308; }

.faction-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 10px 0 16px;
  min-height: 44px;
}

/* Side by Side Stats Metric Box (as in reference image) */
.faction-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: center;
}

.faction-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.faction-stat-box:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-metric-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 3px;
}
.stat-metric-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Date / Since Badge */
.faction-since-line {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.faction-since-line strong {
  color: #ffffff;
}

/* Two Action Buttons (Zur Fraktion + Details) */
.faction-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-faction-main {
  flex: 1.3;
  padding: 10.5px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}
.btn-main-police { background: var(--police-color); color: #fff; }
.btn-main-police:hover { background: #2563eb; transform: translateY(-1px); }

.btn-main-fire { background: var(--fire-color); color: #fff; }
.btn-main-fire:hover { background: #dc2626; transform: translateY(-1px); }

.btn-main-medic { background: var(--medic-color); color: #fff; }
.btn-main-medic:hover { background: #059669; transform: translateY(-1px); }

.btn-main-mechanic { background: var(--mechanic-color); color: #050a08; }
.btn-main-mechanic:hover { background: #d97706; transform: translateY(-1px); }

.btn-main-gang { background: var(--gang-color); color: #fff; }
.btn-main-gang:hover { background: #9333ea; transform: translateY(-1px); }

.btn-main-justice { background: #3b82f6; color: #fff; }
.btn-main-justice:hover { background: #2563eb; transform: translateY(-1px); }

.btn-main-lawyer { background: #eab308; color: #050a08; }
.btn-main-lawyer:hover { background: #ca8a04; transform: translateY(-1px); }

.btn-faction-details {
  flex: 0.85;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 10.5px 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}
.btn-faction-details:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Steps Grid & Faction Page Support Card */
.steps-support-card {
  max-width: 100% !important;
  width: 100%;
  padding: 48px 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.step-card {
  background: rgba(8, 14, 26, 0.20);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.45);
}
.step-card h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== STREAMER SECTION ===== */
.streamer-card {
  background: rgba(8, 14, 26, 0.20);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.streamer-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(59, 116, 219, 0.15);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.streamer-body {
  flex-grow: 1;
}
.streamer-btn-wrap {
  flex-shrink: 0;
}

/* ===== TEAM SECTION ===== */
#team .container {
  max-width: 1240px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* Obere Reihe: 3 Karten (je 2 Spalten breit) */
.team-grid .team-card:nth-child(1),
.team-grid .team-card:nth-child(2),
.team-grid .team-card:nth-child(3) {
  grid-column: span 2;
}

/* Untere Reihe: 2 Karten (je 3 Spalten breit - extra geräumig & symmetrisch) */
.team-grid .team-card:nth-child(4),
.team-grid .team-card:nth-child(5) {
  grid-column: span 3;
}

.team-card {
  background: rgba(8, 14, 26, 0.24);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 28px 26px 24px;
  transition: var(--transition);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.team-card:hover {
  background: rgba(14, 22, 40, 0.42);
  border-color: rgba(56, 189, 248, 0.50);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.team-role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.team-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}
.team-footer {
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  margin-top: auto;
}
.team-footer strong {
  color: #fff;
  font-weight: 600;
}
.team-footer-multi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-footer-multi div {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-footer-multi strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid .team-card:nth-child(1),
  .team-grid .team-card:nth-child(2),
  .team-grid .team-card:nth-child(3),
  .team-grid .team-card:nth-child(4) {
    grid-column: span 1;
  }
  .team-grid .team-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-grid .team-card {
    grid-column: span 1 !important;
    padding: 24px 20px;
  }
}

/* ===== SUPPORT SECTION ===== */
.support-card {
  background: rgba(8, 14, 26, 0.22);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 44px 28px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.support-card .section-desc {
  margin: 8px auto 22px;
}
.support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(8, 12, 24, 0.35);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: var(--transition-fast);
}
.footer-col a:hover {
  color: var(--primary);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
  animation: pulseDot 1.8s infinite ease-in-out;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-socials a:hover {
  background: var(--primary);
  color: #050a08;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: rgba(10, 16, 30, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal-large {
  max-width: 680px;
}

.modal-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.text-blue { color: var(--primary); }

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--primary);
  color: #050a08;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-input {
  width: 100%;
  background: rgba(7, 12, 22, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition-fast);
}
.form-input:focus {
  border-color: var(--primary);
}

/* Rules Search */
.rules-search-wrap {
  position: relative;
  margin-bottom: 16px;
}
.rules-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}
.rules-search {
  width: 100%;
  background: rgba(7, 12, 22, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 36px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition-fast);
}
.rules-search:focus {
  border-color: var(--primary);
}

.rule-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.rule-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.rule-group ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rule-group ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rule-group li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.rule-group ul > li > strong {
  color: var(--primary);
  font-weight: 700;
  margin-right: 6px;
}
.rule-group .rules-sub {
  list-style: disc;
  padding-left: 20px;
  margin-top: 5px;
  gap: 3px;
}
.rules-intro {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: rgba(13, 22, 38, 0.95);
  border: 1px solid var(--primary-border);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideToast 0.2s ease;
}
.toast i {
  color: var(--primary);
}
@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== SCROLL REVEAL UTILITIES ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .nav-button-group {
    gap: 4px;
  }
  .nav-btn {
    padding: 0 8px;
    font-size: 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .factions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .factions-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .border-gang {
    grid-column: span 1;
  }
  .steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .factions-detail-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .streamer-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .navbar-wrapper {
    top: 0;
    padding: 0;
  }
  #navbar.nav-box {
    height: 56px;
    padding: 0 16px;
    border-radius: 0;
  }
  .nav-button-group {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 56px);
    background: rgba(9, 15, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    flex-direction: column;
    padding: 14px;
    gap: 6px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav-button-group.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-btn {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 13.5px;
    justify-content: flex-start;
  }
  .nav-actions-box {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .faction-overview-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 12px;
    padding: 16px 20px;
  }
  .overview-divider {
    display: none;
  }
}

/* ==========================================
   ADMIN DASHBOARD & MODERATION PANEL STYLES
   ========================================== */
.admin-container {
  max-width: none;
  margin: 0;
  padding: 115px 40px 60px;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.admin-title-wrap h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.admin-title-wrap p {
  color: var(--text-secondary);
  font-size: 15px;
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.admin-user-info {
  display: flex;
  flex-direction: column;
}
.admin-username {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.admin-user-role {
  font-size: 11px;
  color: #3b82f6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-logout-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
}
.admin-logout-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Tabs Navigation */
/* Admin-Shell: Sidebar links + Inhalt rechts */
.admin-shell {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.admin-sidenav {
  flex-shrink: 0;
  width: 300px;
  order: 1;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.admin-sidenav-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 18px 14px 9px;
}
.admin-sidenav-label:first-child { padding-top: 4px; }

.admin-content {
  flex: 1;
  min-width: 0;
  order: 2;
}

.admin-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(59, 116, 219, 0.28);
}

/* Sidebar-spezifisches Layout (vertikal, volle Breite je Eintrag) */
.admin-sidenav .admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 15.5px;
}
.admin-sidenav .admin-tab-btn i,
.admin-sidenav .admin-tab-btn svg { width: 21px; text-align: center; flex-shrink: 0; font-size: 18px; }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidenav {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-sidenav .admin-tab-btn { width: auto; }
  .admin-sidenav-label { display: none; }
}

/* Tab Panels */
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.active {
  display: block;
}

/* 2-Column Grid for Forms & Actions */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 992px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-card-note {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.admin-card-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.admin-card-full { grid-column: 1 / -1; }

.admin-btn-block {
  width: 100%;
  padding: 12px;
  font-weight: 700;
}
.admin-btn-amber {
  background: #f59e0b;
  color: #050a08;
}
.admin-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-btn-flex {
  flex: 1;
  min-width: 160px;
  padding: 11px;
  font-weight: 600;
}

/* "In Bearbeitung"-Banner ueber einem Tab (Admin) */
.admin-wip-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.admin-wip-banner i { font-size: 16px; }

/* "In Bearbeitung"-Banner auf oeffentlichen Seiten */
.page-wip-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.page-wip-banner i { font-size: 14px; }

/* Vollbild "In Bearbeitung"-Seite mit abgerundetem, grau-transparentem Glaskasten */
.page-wip-full {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  z-index: 2;
}

.wip-glass-card {
  max-width: 660px;
  width: 100%;
  background: rgba(18, 24, 38, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 56px 46px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  animation: wipCardFadeIn 0.4s ease-out;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wip-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

@keyframes wipCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wip-card-icon {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 22px;
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.15);
}

.wip-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 18px;
}

.wip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: wipPulse 2s infinite;
}

@keyframes wipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.wip-glass-card h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.3;
}

.wip-glass-card p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.82);
  margin: 0 0 28px;
  max-width: 520px;
}

.wip-redirect-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wip-redirect-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.wip-redirect-info i {
  color: #60a5fa;
  font-size: 18px;
  transform: none !important;
  animation: none !important;
}

.wip-countdown-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 9px;
  color: #60a5fa;
  font-weight: 800;
  font-size: 16px;
}

.wip-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.wip-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 1s linear;
}

.wip-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.wip-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  cursor: pointer !important;
}

.wip-actions .btn * {
  cursor: pointer !important;
}

@media (max-width: 640px) {
  .wip-glass-card {
    padding: 36px 24px;
  }
  .wip-glass-card h1 {
    font-size: 24px;
  }
  .wip-actions {
    flex-direction: column;
    gap: 10px;
  }
  .wip-actions .btn {
    width: 100%;
  }
}

/* "Noch nicht verbunden" Platzhalter-Zustand */
.admin-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 40px;
  min-height: 520px;
}
.admin-placeholder-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.admin-placeholder h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.admin-placeholder p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.65;
}

/* Anticheat: einfache WaveShield-Weiterleitungskarte */
.admin-waveshield {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 40px;
  min-height: 520px;
}
.admin-waveshield-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(59, 116, 219, 0.35);
  margin-bottom: 28px;
}
.admin-waveshield-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.admin-waveshield h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.admin-waveshield p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 30px;
}

.admin-form-group {
  margin-bottom: 16px;
}
.admin-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  transition: var(--transition-fast);
}
.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-dim);
}
.admin-textarea {
  min-height: 85px;
  resize: vertical;
}

/* Tables */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge-ban {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-kick {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-timeout {
  background: rgba(59, 116, 219, 0.15);
  color: #3b74db;
  border: 1px solid rgba(59, 116, 219, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-warn {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge-open {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-badge-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================
   COPNET DESKTOP OS (VPC 3.0) STYLES
   ========================================== */
.copnet-os-body {
  background: #060a12;
  color: #e2e8f0;
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
}

/* 1. OS Lockscreen / Login */
.os-lockscreen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, #101c36 0%, #060a14 85%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.os-lockscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.lockscreen-card {
  position: relative;
  z-index: 10;
  background: rgba(11, 18, 33, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 34px 30px;
  animation: fadeInDown 0.3s ease;
}

.lockscreen-header {
  text-align: center;
  margin-bottom: 20px;
}
.lockscreen-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}
.lockscreen-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.lockscreen-header h2 span {
  color: #3b82f6;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lockscreen-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Faction Tabs on Lockscreen */
.lockscreen-faction-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.faction-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.faction-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.faction-tab-btn.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* 2. Desktop Workspace */
.os-desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #0d172b 0%, #060a12 90%);
  background-color: #060a12;
  overflow: hidden;
}
.os-desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Desktop Icons Grid */
.os-desktop-icons {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
  height: calc(100vh - 90px);
  z-index: 10;
}
.desktop-icon {
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}
.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.desktop-icon:active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
}
.icon-img-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.icon-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bg-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-green { background: linear-gradient(135deg, #10b981, #047857); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bg-slate { background: linear-gradient(135deg, #64748b, #334155); }
.bg-dark { background: linear-gradient(135deg, #1e293b, #0f172a); }

/* 3. Windows Container & Floating Windows */
.os-windows-container {
  position: absolute;
  inset: 0;
  bottom: 48px;
  pointer-events: none;
  overflow: hidden;
}

.os-window {
  position: absolute;
  pointer-events: auto;
  background: rgba(11, 18, 33, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: winOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes winOpen {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.os-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - 48px) !important;
  border-radius: 0;
}
.os-window.minimized {
  display: none !important;
}

.window-titlebar {
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}
.window-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.window-controls {
  display: flex;
  gap: 6px;
}
.win-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.win-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.win-close:hover {
  background: #ef4444;
  color: #fff;
}

.window-toolbar {
  min-height: 48px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.toolbar-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.toolbar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}
.toolbar-search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px 8px 34px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}
.toolbar-search input:focus {
  border-color: #3b82f6;
}

.window-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* 4. Bottom Taskbar */
.os-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(9, 15, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.taskbar-start-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.taskbar-start-btn:hover {
  background: #2563eb;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}
.start-btn-logo {
  width: 22px;
  height: 22px;
}

.taskbar-windows-list {
  display: flex;
  gap: 6px;
  flex: 1;
  margin: 0 14px;
  overflow-x: auto;
}
.taskbar-app-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.taskbar-app-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.taskbar-app-tab.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tray-item {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tray-panic-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: panicPulse 1.8s infinite;
}
.tray-duty-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}
.tray-clock {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

/* Logout Button in Tray */
.tray-logout-btn {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.tray-logout-btn:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

/* FMS Status Panel */
.fms-status-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.fms-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fms-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 4px;
}
.fms-btn strong {
  font-size: 20px;
  font-family: var(--font-display);
}
.fms-btn span {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
.fms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.fms-1 { border-color: rgba(16, 185, 129, 0.4); }
.fms-1 strong { color: #10b981; }
.fms-1:hover { background: rgba(16, 185, 129, 0.2); }

.fms-2 { border-color: rgba(59, 130, 246, 0.4); }
.fms-2 strong { color: #3b82f6; }
.fms-2:hover { background: rgba(59, 130, 246, 0.2); }

.fms-3 { border-color: rgba(245, 158, 11, 0.4); }
.fms-3 strong { color: #f59e0b; }
.fms-3:hover { background: rgba(245, 158, 11, 0.2); }

.fms-4 { border-color: rgba(168, 85, 247, 0.4); }
.fms-4 strong { color: #a855f7; }
.fms-4:hover { background: rgba(168, 85, 247, 0.2); }

.fms-5 { border-color: rgba(6, 182, 212, 0.4); }
.fms-5 strong { color: #06b6d4; }
.fms-5:hover { background: rgba(6, 182, 212, 0.2); }

.fms-6 { border-color: rgba(239, 68, 68, 0.4); }
.fms-6 strong { color: #ef4444; }
.fms-6:hover { background: rgba(239, 68, 68, 0.2); }

/* 5. Start Menu Popup */
.os-start-menu {
  position: absolute;
  bottom: 56px;
  left: 12px;
  width: 320px;
  background: rgba(11, 18, 33, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  backdrop-filter: blur(24px);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 100000;
  animation: fadeInDown 0.2s ease;
}
.os-start-menu.open {
  display: flex;
}
.start-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.start-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #3b82f6;
  object-fit: cover;
}
.start-username {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.start-userrole {
  font-size: 11px;
  color: var(--text-muted);
}
.start-menu-apps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.start-app-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}
.start-app-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.start-menu-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.start-footer-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.start-footer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.start-footer-btn.logout-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Modals & Detail Styles */
.copnet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.copnet-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.copnet-modal-card {
  background: rgba(11, 18, 33, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-extra-large { max-width: 820px; }
.modal-large { max-width: 680px; }

.copnet-modal-header {
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copnet-modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.copnet-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.copnet-modal-close:hover { background: #ef4444; color: #fff; }
.copnet-modal-body { padding: 22px; overflow-y: auto; }

/* Print Stylesheet */
.print-sheet {
  background: #fff;
  color: #000;
  padding: 10px;
}
.print-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.print-header h2 { font-size: 16px; font-weight: 800; }
.print-header h3 { font-size: 13px; font-weight: 700; }
.print-header p { font-size: 11px; color: #555; }

/* 6. Desktop Window Content Card & Grid Styles */
.citizens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.citizen-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.citizen-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3b82f6;
  transform: translateY(-2px);
}
.citizen-card.is-wanted {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 22, 38, 0.95) 70%);
}
.citizen-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.citizen-info-wrap { flex: 1; }
.citizen-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.citizen-name-line h3 { font-size: 15px; font-weight: 700; color: #fff; }
.citizen-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.citizen-arrow { color: var(--text-muted); font-size: 12px; }

.tag-wanted-pulse {
  background: #ef4444;
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: wantedPulse 1.5s infinite;
}
@keyframes wantedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.tag-clean {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

/* Vehicles Grid */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.vehicle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.vehicle-card.is-stolen {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 22, 38, 0.95) 70%);
}
.vehicle-plate-badge {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  font-weight: 800;
  font-size: 15px;
  padding: 3px 10px;
  letter-spacing: 2px;
  align-self: flex-start;
}
.vehicle-plate-badge::before {
  content: 'D';
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 5px;
  margin-right: 6px;
  border-radius: 2px;
}
.vehicle-model-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 4px;
}
.vehicle-model-line h3 { font-size: 15px; font-weight: 700; color: #fff; }
.vehicle-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Warrants Grid */
.warrants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.warrant-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.warrant-card.yellow { border-left-color: #f59e0b; }
.warrant-badge-num { font-size: 11px; font-weight: 800; color: #ef4444; }
.warrant-card.yellow .warrant-badge-num { color: #f59e0b; }
.warrant-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.warrant-title-line h3 { font-size: 16px; font-weight: 700; color: #fff; }
.warrant-reward { font-size: 12.5px; font-weight: 700; color: #f59e0b; }
.warrant-reason { font-size: 12.5px; color: #cbd5e1; line-height: 1.4; }
.warrant-meta { font-size: 11px; color: var(--text-muted); }

/* Dispatch Feed */
.dispatch-feed-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dispatch-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 14px 16px;
  transition: var(--transition-fast);
}
.dispatch-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.dispatch-card.prio-1 { border-left-color: #ef4444; background: linear-gradient(90deg, rgba(239, 68, 68, 0.06) 0%, rgba(13, 22, 38, 0.95) 40%); }
.dispatch-card.prio-2 { border-left-color: #f59e0b; }
.dispatch-card.prio-3 { border-left-color: #3b82f6; }

.dispatch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.dispatch-code-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
}
.dispatch-card.prio-1 .dispatch-code-badge { background: #ef4444; }
.dispatch-title-wrap { flex: 1; }
.dispatch-title { font-size: 14.5px; font-weight: 700; color: #fff; }
.dispatch-location { font-size: 12px; color: #60a5fa; }
.dispatch-time { font-size: 11.5px; color: var(--text-muted); }
.dispatch-desc { font-size: 13px; color: #cbd5e1; line-height: 1.4; margin-bottom: 12px; }
.dispatch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.dispatch-units { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.units-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.unit-pill {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.dispatch-actions { display: flex; gap: 6px; }

.btn-copnet-small {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}
.btn-primary-copnet { background: #2563eb; color: #fff; }
.btn-primary-copnet:hover { background: #1d4ed8; }
.btn-secondary-copnet { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; border-color: var(--border); }
.btn-secondary-copnet:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-success-copnet { background: #10b981; color: #fff; }
.btn-success-copnet:hover { background: #059669; }
.btn-danger-copnet { background: #ef4444; color: #fff; }
.btn-danger-copnet:hover { background: #dc2626; }

/* Penal Code Categories & Grid */
.penal-categories-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.penal-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.penal-cat-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.penal-cat-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.law-cat-tag {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Medical Cards */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.medical-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.medical-card.triage-red { border-left: 4px solid #ef4444; }
.medical-card.triage-yellow { border-left: 4px solid #f59e0b; }
.medical-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.triage-indicator {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.medical-card.triage-red .triage-indicator { background: #ef4444; color: #fff; }
.medical-card.triage-yellow .triage-indicator { background: #f59e0b; color: #000; }
.patient-time { margin-left: auto; font-size: 11.5px; color: var(--text-muted); }
.medical-body p { font-size: 12.5px; color: #cbd5e1; margin-bottom: 5px; line-height: 1.4; }
.medical-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-muted);
}
.patient-status-badge { color: #10b981; font-weight: 600; }

/* Citizen Detail Content */
.citizen-detail-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #3b82f6;
}
.detail-badges-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}
.detail-id-badge {
  background: rgba(255, 255, 255, 0.08);
  font-family: 'Space Grotesk', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #60a5fa;
  padding: 2px 7px;
  border-radius: 4px;
}
.wanted-warning-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.wanted-warning-box h4 { color: #ef4444; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.wanted-warning-box p { color: #cbd5e1; font-size: 12.5px; margin-bottom: 8px; }

.detail-section { margin-bottom: 18px; }
.detail-section h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lic-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.badge-lic-ok {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
}
.badge-lic-no {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
}

/* Records List */
.records-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.record-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  padding: 10px 12px;
}
.record-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}
.record-law { font-weight: 700; color: #60a5fa; font-size: 13px; }
.record-date { font-size: 11px; color: var(--text-muted); }
.record-penalties { display: flex; gap: 10px; font-size: 12px; margin-bottom: 4px; }
.record-fine { color: #f59e0b; font-weight: 600; }
.record-prison { color: #ef4444; font-weight: 600; }
.record-notes { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 4px; }
.record-officer { font-size: 11px; color: var(--text-muted); }

.detail-footer-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Law Selector & Calculator */
.record-calc-summary-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.calc-box-item { display: flex; flex-direction: column; }
.calc-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.calc-val { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.selected-laws-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  min-height: 34px;
}
.selected-law-pill {
  background: #2563eb;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.law-selector-scroll {
  max-height: 160px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.law-select-item {
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}
.law-select-item:hover { background: rgba(255, 255, 255, 0.06); }
.law-select-item.selected { background: rgba(37, 99, 235, 0.2); border-color: #3b82f6; }
.law-item-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #fff; }
.law-item-cat { font-size: 10.5px; color: var(--text-muted); }
.law-item-penalties { font-size: 11px; color: #f59e0b; margin-top: 2px; }

/* Panic Flashing Background */
body.panic-flashing { animation: panicBgFlash 0.5s infinite; }
@keyframes panicBgFlash {
  0%, 100% { background: #060a12; }
  50% { background: #450a0a; }
}
.panic-modal-box { text-align: center; padding: 32px 24px; border-color: #ef4444; }
.panic-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  border: 2px solid #ef4444;
  animation: wantedPulse 1s infinite;
}



/* ========================================================================
   hr_anticheat Admin Panel
   ======================================================================== */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px 18px;
}
.ac-f {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.ac-f.ac-f-num { flex-direction: column; align-items: flex-start; gap: 3px; }
.ac-f.ac-f-num > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); }
.ac-f input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); }
#tab-anticheat .admin-table td { vertical-align: middle; }
#tab-anticheat .admin-table th { position: sticky; top: 0; background: var(--bg-card, #10151f); }

/* ========================================================================
   Impressum Modal & Page Styles
   ======================================================================== */
.impressum-modal-card {
  max-width: 540px;
  width: 100%;
}

.impressum-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.impressum-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.impressum-law-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.impressum-card-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.impressum-section-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.impressum-section-box:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.impressum-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.impressum-company {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: block;
  margin-bottom: 4px;
}

.impressum-location {
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.impressum-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.impressum-contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 80px;
}

.contact-value {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
  word-break: break-all;
}

.contact-value:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.btn-copy-small {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11.5px;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.btn-copy-small:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: scale(1.05);
}

.impressum-disclaimer-box {
  background: rgba(8, 14, 26, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.impressum-disclaimer-box p {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.impressum-disclaimer-box i {
  color: #38bdf8;
  margin-top: 2px;
  flex-shrink: 0;
}

