/* ========================================================
   SOCIETY V7 PRO — ULTRA TACTICAL & GRAPHIC CYBER OVERHAUL
   State-of-the-Art Visuals, Glassmorphism, Smooth 60FPS Micro-Animations
   ======================================================== */

:root {
  --pro-primary: #38bdf8;
  --pro-primary-rgb: 56, 189, 248;
  --pro-primary-hover: #7dd3fc;
  --pro-accent: #0ea5e9;
  --pro-glow: rgba(56, 189, 248, 0.35);
  --pro-glow-strong: rgba(56, 189, 248, 0.65);
  --pro-bg: #030712;
  --pro-card-bg: rgba(10, 18, 38, 0.72);
  --pro-card-border: rgba(56, 189, 248, 0.22);
  --pro-text: #f8fafc;
  --pro-text-muted: #94a3b8;
  --pro-danger: #f43f5e;
  --pro-danger-glow: rgba(244, 63, 94, 0.4);
  --pro-success: #10b981;
  --pro-warning: #f59e0b;
  --pro-glass-bg: rgba(8, 14, 28, 0.88);
}

/* ========================================================
   1. GLOBAL ATMOSPHERE & BACKGROUND GRAPHICS
   ======================================================== */
html {
  background-color: #030712 !important;
}

body {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--pro-text) !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
  position: relative !important;
}

/* Fullscreen Cinematic Police Background across entire website */
body::before {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  background-image: url('assets/police-hero-bg.png') !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  opacity: 1 !important;
  filter: brightness(1) contrast(1.05) saturate(1.1) !important;
}

/* Atmospheric subtle depth gradient: crystal clear over hero, softly transitions downwards */
body::after {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: linear-gradient(180deg, 
    rgba(3, 8, 20, 0.08) 0%, 
    rgba(3, 8, 20, 0.2) 550px, 
    rgba(2, 6, 16, 0.82) 1000px, 
    rgba(2, 6, 16, 0.96) 100%) !important;
  pointer-events: none !important;
}

.ambient, .ambient-one, .ambient-two,
.hero-reticle, .hero-stars, .hero-pointer-glow, .hero-sparks,
.hero-halo, .hero-halo-outer, #cyberTacticalCanvas {
  display: none !important;
}

/* Ambient glow orbs */
.ambient-one {
  display: block !important;
  position: fixed;
  top: -20%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

.ambient-two {
  display: block !important;
  position: fixed;
  bottom: -20%;
  right: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -2;
  animation: ambientFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Topbar sleek glassmorphic blur */
.topbar {
  background: rgba(4, 8, 20, 0.78) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
}

.brand-label b {
  color: #ffffff !important;
  text-shadow: 0 0 15px var(--pro-primary);
  letter-spacing: 1px;
}

.brand-label small {
  color: var(--pro-primary) !important;
  letter-spacing: 2px !important;
  font-weight: 800 !important;
}

/* ========================================================
   2. HERO SECTION — CINEMATIC COMMAND CENTER
   ======================================================== */
.hero {
  position: relative !important;
  background: rgba(6, 14, 32, 0.6) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
}

/* Inside the hero box: Server Wallpaper (society-wallpaper.webp) */
.hero-banner {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url('assets/society-wallpaper.webp') !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  opacity: 0.55 !important;
  filter: saturate(1.25) brightness(0.92) contrast(1.1) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* Atmospheric backdrop: keeps text on the right crystal clear and blends the society wallpaper */
.hero::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(270deg, 
    rgba(3, 8, 20, 0.88) 0%, 
    rgba(4, 10, 24, 0.58) 45%, 
    rgba(6, 14, 32, 0.25) 75%, 
    rgba(3, 8, 20, 0.7) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Subtle police emergency beacon reflection on hero perimeter */
@keyframes policeBeaconGlow {
  0% {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
                inset 16px 0 50px rgba(239, 68, 68, 0.12),
                inset -16px 0 50px rgba(56, 189, 248, 0.12);
  }
  50% {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
                inset 16px 0 50px rgba(56, 189, 248, 0.14),
                inset -16px 0 50px rgba(239, 68, 68, 0.14);
  }
  100% {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
                inset 16px 0 50px rgba(239, 68, 68, 0.12),
                inset -16px 0 50px rgba(56, 189, 248, 0.12);
  }
}

/* Animated neon top border beam */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pro-primary), #ffffff, var(--pro-primary), transparent);
  animation: beamSlide 4s linear infinite;
  z-index: 5;
}

@keyframes beamSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  color: var(--pro-primary) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
}

.hero .eyebrow i {
  width: 8px;
  height: 8px;
  background: var(--pro-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--pro-primary);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero h1 {
  font-family: 'Cairo', 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.hero h1 em {
  background: linear-gradient(135deg, #ffffff 0%, var(--pro-primary) 50%, #60a5fa 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 30px var(--pro-glow);
  font-style: normal;
}

.hero p {
  color: #cbd5e1 !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
}

/* Action buttons with rich tactile depth */
.button-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45), 0 0 15px rgba(56, 189, 248, 0.3) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.6), 0 0 25px var(--pro-primary) !important;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button-secondary:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: var(--pro-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px var(--pro-glow) !important;
}

/* Hero Layout & Tactical Police Badge HUD */
.hero {
  min-height: 520px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Tactical HUD Corner Reticles (Image 1 Style) */
.hero-reticle {
  position: absolute !important;
  inset: 14px !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

.hero-reticle span {
  position: absolute !important;
  width: 22px !important;
  height: 22px !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
  border-style: solid !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5)) !important;
}

.hero-reticle span:nth-child(1) {
  top: 0 !important;
  right: 0 !important;
  border-width: 2px 2px 0 0 !important;
  border-top-right-radius: 4px !important;
}

.hero-reticle span:nth-child(2) {
  top: 0 !important;
  left: 0 !important;
  border-width: 2px 0 0 2px !important;
  border-top-left-radius: 4px !important;
}

.hero-reticle span:nth-child(3) {
  bottom: 0 !important;
  right: 0 !important;
  border-width: 0 2px 2px 0 !important;
  border-bottom-right-radius: 4px !important;
}

.hero-reticle span:nth-child(4) {
  bottom: 0 !important;
  left: 0 !important;
  border-width: 0 0 2px 2px !important;
  border-bottom-left-radius: 4px !important;
}

/* Tactical HUD Footer Tags (Image 1 Style) */
.hero-footer {
  position: absolute !important;
  bottom: 16px !important;
  left: 38px !important;
  right: 38px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 4 !important;
  pointer-events: none !important;
  font-family: 'Outfit', 'Cairo', monospace !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
  color: rgba(148, 163, 184, 0.8) !important;
  text-transform: uppercase !important;
}

.hero-footer span:first-child::before {
  content: '⟦ ';
  color: #38bdf8;
}

.hero-footer span:first-child::after {
  content: ' ⟧';
  color: #38bdf8;
}

.hero-footer span:last-child::before {
  content: '⟦ ';
  color: #10b981;
}

.hero-footer span:last-child::after {
  content: ' ⟧';
  color: #10b981;
}

.hero-content {
  width: 58% !important;
  max-width: 720px !important;
  position: relative !important;
  z-index: 3 !important;
  padding: 65px 60px 65px 30px !important;
}

.hero-police-badge-card {
  position: absolute;
  left: 55px;
  top: 50%;
  transform: translateY(-50%);
  width: 290px;
  background: linear-gradient(135deg, rgba(6, 14, 32, 0.9) 0%, rgba(3, 8, 20, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 24px 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-police-badge-card:hover {
  transform: translateY(-53%) scale(1.02);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 45px rgba(56, 189, 248, 0.35);
}

.police-badge-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
  top: 15%;
  border-radius: 50%;
  filter: blur(15px);
  pointer-events: none;
}

.police-star-emblem {
  position: relative;
  font-size: 2.2rem;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(251, 191, 36, 0.4);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.14) 0%, transparent 70%);
  border: 1px dashed rgba(251, 191, 36, 0.45);
  animation: starPulse 2.8s ease-in-out infinite;
}

.police-star-emblem::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-top-color: #38bdf8;
  border-right-color: transparent;
  animation: radarSpin 5s linear infinite;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.55), 0 0 15px rgba(56, 189, 248, 0.4);
  }
}

.police-crest-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffffff;
}

.police-crest-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #38bdf8;
  margin-top: -6px;
}

.police-crest-divider {
  width: 65%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  margin: 4px 0;
}

.police-squads-count {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.police-squads-count strong {
  color: #38bdf8;
}

.police-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #10b981;
}

.police-badge-status .badge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

.hero-detail {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin-top: 18px !important;
}

.hero-detail-line {
  display: inline-block !important;
  width: 40px !important;
  height: 1px !important;
  background: rgba(56, 189, 248, 0.5) !important;
}

@media (max-width: 1080px) {
  .hero-police-badge-card {
    display: none !important;
  }
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 45px 25px !important;
  }
}

/* ========================================================
   3. STATS & OVERVIEW CARDS
   ======================================================== */
.stat-card {
  background: var(--pro-card-bg) !important;
  border: 1px solid var(--pro-card-border) !important;
  border-radius: 18px !important;
  padding: 18px 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--pro-primary) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 25px var(--pro-glow) !important;
}

.stat-icon {
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: var(--pro-primary) !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
  border-radius: 12px !important;
}

.stat-card strong {
  color: #ffffff !important;
  font-family: 'Outfit', 'Cairo', sans-serif !important;
  font-size: 2rem !important;
  text-shadow: 0 0 15px var(--pro-glow);
}

.stat-note {
  background: rgba(8, 16, 36, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 18px !important;
  color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================================
   4. VIOLATIONS SECTION & ADVANCED CARDS
   ======================================================== */
.finder {
  background: var(--pro-card-bg) !important;
  border: 1px solid var(--pro-card-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 22px !important;
}

.search-wrap {
  background: rgba(4, 9, 22, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s ease !important;
}

.search-wrap:focus-within {
  border-color: var(--pro-primary) !important;
  box-shadow: 0 0 20px var(--pro-glow), inset 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.search-wrap input {
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 1.05rem !important;
}

.search-wrap input::placeholder {
  color: #64748b !important;
}

/* Filter pills */
.filters .filter {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #cbd5e1 !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filters .filter:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.filters .filter.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.2)) !important;
  border-color: var(--pro-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px var(--pro-glow) !important;
}

.filters .filter.danger-filter.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.4), rgba(244, 63, 94, 0.2)) !important;
  border-color: var(--pro-danger) !important;
  box-shadow: 0 0 20px var(--pro-danger-glow) !important;
}

/* Favorites Filter Pill at Top */
.filters .filter[data-grade="favorites"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: #e2e8f0 !important;
}

.filters .filter[data-grade="favorites"] .fav-star-icon {
  color: #fbbf24 !important;
  font-size: 14px !important;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.7));
}

.filters .filter[data-grade="favorites"]:hover {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.filters .filter[data-grade="favorites"].active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.28)) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.fav-count-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(245, 158, 11, 0.35) !important;
  border: 1px solid rgba(245, 158, 11, 0.65) !important;
  color: #fef08a !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  padding: 1px 8px !important;
  border-radius: 99px !important;
  margin-right: 3px !important;
  line-height: 1.2 !important;
}

/* Violation Rules Cards */
.rules-cards {
  gap: 16px !important;
}

.rule-card {
  background: linear-gradient(145deg, rgba(10, 18, 38, 0.8), rgba(6, 12, 26, 0.9)) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.rule-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.rule-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px var(--pro-glow) !important;
}

.rule-card:hover::before {
  opacity: 1;
}

/* Danger / Grade 7 card with glowing hazard aura */
.rule-card.rule-danger {
  border-color: rgba(244, 63, 94, 0.35) !important;
  background: linear-gradient(145deg, rgba(28, 10, 16, 0.85), rgba(12, 4, 8, 0.95)) !important;
}

.rule-card.rule-danger:hover {
  border-color: var(--pro-danger) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--pro-danger-glow) !important;
}

.rule-category {
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--pro-primary) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
}

.rule-danger .rule-category {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #ff6b8b !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
}

.rule-code {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-family: 'Outfit', monospace !important;
  font-weight: 800 !important;
  transition: all 0.2s ease !important;
}

.rule-code:hover {
  background: var(--pro-primary) !important;
  color: #030712 !important;
  border-color: var(--pro-primary) !important;
  box-shadow: 0 0 15px var(--pro-primary) !important;
  transform: scale(1.05) !important;
}

/* Card Top Actions: Code + Star side-by-side */
.rule-top-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Star Button - Default State (Unstarred) */
.star-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 30px !important;
  min-width: 32px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  color: #94a3b8 !important; /* Muted slate/grey */
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  user-select: none !important;
  outline: none !important;
}

.star-btn:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
  transform: scale(1.08) !important;
}

/* ACTIVE / STARRED STATE: BRIGHT GLOWING GOLDEN YELLOW */
.star-btn.is-starred {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(217, 119, 6, 0.22)) !important;
  border: 1px solid #f59e0b !important;
  color: #fbbf24 !important; /* BRIGHT GOLDEN YELLOW */
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.55), inset 0 0 8px rgba(245, 158, 11, 0.25) !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.85) !important;
  transform: scale(1.04) !important;
}

.star-btn.is-starred:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.35)) !important;
  border-color: #fbbf24 !important;
  color: #fef08a !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.75), inset 0 0 10px rgba(245, 158, 11, 0.4) !important;
  transform: scale(1.14) !important;
}

.star-btn:active {
  transform: scale(0.92) !important;
}

.star-btn .star-icon {
  display: inline-block;
  line-height: 1;
}

.star-btn.is-starred .star-icon {
  color: #fbbf24 !important;
}

.rule-card p {
  color: #e2e8f0 !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}

/* ========================================================
   5. PENALTY CALCULATOR — TACTICAL MATRIX HUD
   ======================================================== */
.penalty-calculator {
  background: linear-gradient(135deg, rgba(10, 20, 44, 0.85) 0%, rgba(6, 12, 28, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.calc-controls select {
  background: #060b1b !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.calc-grade {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: #cbd5e1 !important;
  font-weight: 800 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.calc-grade:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.calc-grade.selected {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: var(--pro-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px var(--pro-glow) !important;
}

.calc-outcome {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.95), rgba(4, 9, 22, 0.98)) !important;
  border: 1px solid var(--pro-primary) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px var(--pro-glow), inset 0 0 15px rgba(56, 189, 248, 0.08) !important;
}

.calc-outcome strong {
  font-size: 1.35rem !important;
  color: #ffffff !important;
  text-shadow: 0 0 20px var(--pro-glow);
}

.calc-outcome strong.critical-result {
  color: #ff6b8b !important;
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.6) !important;
}

.calc-outcome strong.discretion-result {
  color: #fcd34d !important;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5) !important;
}

/* Penalties table overflow */
.table-overflow {
  background: rgba(6, 12, 26, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

.penalties-table thead th {
  background: rgba(14, 26, 56, 0.9) !important;
  color: var(--pro-primary) !important;
  font-weight: 800 !important;
}

/* Penalty severity cell styling in table */
.penalties-table td.penalty-critical {
  color: #ff6b8b !important;
  font-weight: 800 !important;
  background: rgba(244, 63, 94, 0.08) !important;
}

.penalties-table td.penalty-demotion {
  color: #fb923c !important;
  font-weight: 800 !important;
  background: rgba(249, 115, 22, 0.08) !important;
}

.penalties-table td.penalty-discretion {
  color: #7dd3fc !important;
  font-weight: 800 !important;
  background: rgba(56, 189, 248, 0.06) !important;
}

.penalties-table td.penalty-high {
  color: #facc15 !important;
  font-weight: 900 !important;
  font-family: 'Outfit', 'Cairo', sans-serif !important;
  letter-spacing: 0.5px;
}

.penalties-table td.penalty-medium {
  color: #38bdf8 !important;
  font-weight: 900 !important;
  font-family: 'Outfit', 'Cairo', sans-serif !important;
  letter-spacing: 0.5px;
}

.penalties-table td.penalty-low {
  color: #4ade80 !important;
  font-weight: 900 !important;
  font-family: 'Outfit', 'Cairo', sans-serif !important;
  letter-spacing: 0.5px;
}

/* Calculator Outcome Highlights */
.calc-outcome strong.demotion-result,
.mp-selected strong.mp-demotion {
  color: #fb923c !important;
  text-shadow: 0 0 16px rgba(251, 146, 60, 0.6) !important;
}

.calc-outcome strong.percentage-result,
.mp-selected strong.mp-percentage {
  color: #38bdf8 !important;
  font-family: 'Outfit', 'Cairo', sans-serif !important;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
}

.mp-step.penalty-demotion {
  border-color: rgba(249, 115, 22, 0.4) !important;
}
.mp-step.penalty-demotion .mp-step-outcome {
  color: #fb923c !important;
}

.mp-step.penalty-high .mp-step-outcome {
  color: #facc15 !important;
}

.mp-step.penalty-medium .mp-step-outcome {
  color: #38bdf8 !important;
}

.mp-step.penalty-low .mp-step-outcome {
  color: #4ade80 !important;
}

/* ========================================================
   6. PERMISSIONS & PROMOTIONS — TACTICAL DEPTH
   ======================================================== */
.permission-card {
  background: var(--pro-card-bg) !important;
  border: 1px solid var(--pro-card-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.permission-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--pro-primary) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 25px var(--pro-glow) !important;
}

.permission-id {
  background: rgba(56, 189, 248, 0.15) !important;
  color: var(--pro-primary) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 8px !important;
  font-family: 'Outfit', monospace !important;
  font-weight: 900 !important;
}

.permission-action.permission-dismiss {
  background: rgba(244, 63, 94, 0.2) !important;
  color: #ff6b8b !important;
  border: 1px solid rgba(244, 63, 94, 0.4) !important;
}

.permission-action.permission-action-special {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

.permission-card.card-high-command {
  background: linear-gradient(140deg, rgba(32, 22, 10, 0.85), rgba(12, 16, 28, 0.9)) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.12) !important;
}

.permission-card.card-high-command:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.3) !important;
}

.permission-card.card-high-command .permission-id {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.permission-card.card-high-command .permission-type {
  color: #f59e0b !important;
  font-weight: 800 !important;
}

.staff-course {
  background: linear-gradient(135deg, rgba(28, 20, 8, 0.9), rgba(16, 12, 4, 0.95)) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 18px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2) !important;
}

.staff-course .course-icon {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

/* Promotions Browser */
.promotions-hero {
  background: linear-gradient(135deg, rgba(8, 18, 40, 0.85), rgba(4, 10, 24, 0.95)) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

.promotion-browser {
  background: var(--pro-card-bg) !important;
  border: 1px solid var(--pro-card-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.promotion-tab {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #cbd5e1 !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.promotion-tab:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.promotion-tab.is-active {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: var(--pro-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px var(--pro-glow) !important;
}

.promotion-detail {
  background: linear-gradient(135deg, rgba(6, 14, 32, 0.9), rgba(4, 8, 20, 0.95)) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(56, 189, 248, 0.06) !important;
}

.promotion-req {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  transition: all 0.2s ease !important;
}

.promotion-req:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* ========================================================
   BILINGUAL RANKS — ENGLISH PRIMARY + ARABIC CLARIFICATION
   ======================================================== */
.rank-name-bilingual {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.25;
  text-align: right;
  vertical-align: middle;
}

.rank-en {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  color: #ffffff;
  direction: ltr !important;
  text-align: left;
  display: inline-block;
  font-size: 0.98em;
}

.rank-ar {
  font-family: 'Cairo', sans-serif !important;
  font-size: 0.8em !important;
  font-weight: 600 !important;
  color: var(--pro-primary, #38bdf8) !important;
  opacity: 0.95;
  letter-spacing: normal;
  direction: rtl !important;
  display: inline-block;
}

/* In cards, badges and buttons */
.rank-cell {
  align-items: center !important;
}

.rank-cell .rank-name-bilingual {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-cell .rank-en {
  font-size: 0.96rem;
  color: #f8fafc;
}

.rank-cell .rank-ar {
  font-size: 0.8rem;
  color: #38bdf8;
}

.permission-card h3 .rank-name-bilingual {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.permission-card h3 .rank-en {
  font-size: 1.15rem;
  color: #f8fafc;
}

.permission-card h3 .rank-ar {
  font-size: 0.86rem;
  color: #38bdf8;
}

.permission-target {
  font-size: 0.88rem !important;
}

.permission-target .rank-name-bilingual {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.permission-target .rank-en {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.permission-target .rank-ar {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ========================================================
   PROMOTIONS TABS & CELLS RESTRUCTURING (Request 4 / Image 4)
   ======================================================== */
.promotion-rank-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

@media (max-width: 1100px) {
  .promotion-rank-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .promotion-rank-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .promotion-rank-tabs {
    grid-template-columns: 1fr !important;
  }
}

.promotion-tab {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 12px 14px !important;
  min-height: 86px !important;
  border-radius: 12px !important;
  background: rgba(12, 22, 45, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  position: relative !important;
  overflow: visible !important;
  text-align: right !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  white-space: normal !important;
}

.promotion-tab:hover {
  background: rgba(18, 32, 65, 0.9) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.15) !important;
}

.promotion-tab.is-active {
  background: linear-gradient(135deg, rgba(8, 35, 75, 0.95) 0%, rgba(3, 20, 48, 0.98) 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35), inset 0 0 15px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-2px) !important;
}

.promotion-tab-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.promotion-tab-num {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  display: inline-block !important;
}

.promotion-tab.is-active .promotion-tab-num {
  background: #38bdf8 !important;
  color: #040814 !important;
  border-color: #38bdf8 !important;
}

.promotion-tab-step {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

.promotion-tab.is-active .promotion-tab-step {
  color: #93c5fd !important;
}

.promotion-tab .promotion-tab-text {
  width: 100% !important;
  overflow: visible !important;
}

.promotion-tab .rank-name-bilingual {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  text-align: right !important;
  width: 100% !important;
  overflow: visible !important;
  white-space: normal !important;
}

.promotion-tab .rank-en {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}

.promotion-tab .rank-ar {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  white-space: normal !important;
  line-height: 1.3 !important;
}

.promotion-tab.is-active .rank-ar {
  color: #7dd3fc !important;
}

.promotion-current h4 .rank-name-bilingual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promotion-current h4 .rank-en {
  font-size: 1.85rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.promotion-current h4 .rank-ar {
  font-size: 1.05rem;
  color: var(--pro-primary);
}

.promotion-requirement-heading strong .rank-name-bilingual {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  align-items: baseline;
}

.promotion-requirement-heading strong .rank-en {
  font-size: 1.05rem;
}

.promotion-requirement-heading strong .rank-ar {
  font-size: 0.9rem;
}

/* Mobile rank buttons */
.mp-rank .rank-name-bilingual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.mp-rank .rank-en {
  font-size: 0.8rem;
}

.mp-rank .rank-ar {
  font-size: 0.72rem;
}

/* Footnotes & aside badges */
.penalty-footnote .rank-name-bilingual,
.staff-course .rank-name-bilingual {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  align-items: baseline;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin: 0 4px;
  vertical-align: middle;
}

.penalty-footnote .rank-en,
.staff-course .rank-en {
  font-size: 0.92em;
  color: #ffffff;
  font-weight: 700;
}

.penalty-footnote .rank-ar,
.staff-course .rank-ar {
  font-size: 0.82em;
  color: var(--pro-primary);
  font-weight: 600;
}

#calculatorContext .rank-name-bilingual,
#mobilePenaltyContext .rank-name-bilingual {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

/* ========================================================
   RANKS HIERARCHY GRID (17 OFFICIAL RANKS)
   ======================================================== */
.ranks-hierarchy-block {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.95), rgba(4, 10, 24, 0.98)) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.08) !important;
}

.ranks-hierarchy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ranks-hierarchy-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ranks-hierarchy-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.ranks-hierarchy-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.ranks-hierarchy-title p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 4px 0 0 0;
}

.ranks-count-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--pro-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.chain-tier-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chain-tier-btn {
  background: #0d1527;
  color: #94a3b8;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  padding: 7px 15px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chain-tier-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.chain-tier-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.ranks-hierarchy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.rank-hierarchy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-hierarchy-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}

.rh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rh-level {
  font-family: 'Outfit', monospace;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--pro-primary);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.rh-tier {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.rh-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rh-badge {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.rh-info .rank-name-bilingual {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rh-info .rank-en {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.rh-info .rank-ar {
  font-size: 0.82rem;
  color: var(--pro-primary);
}

/* ========================================================
   GOLD SUPREME LEADERSHIP CARDS (Request 3 / Image 3)
   High Commander [19] & Commander [18]
   ======================================================== */
.rank-hierarchy-card.card-gold-command,
.rank-hierarchy-card[data-level="19"],
.rank-hierarchy-card[data-level="18"] {
  background: linear-gradient(135deg, rgba(45, 30, 8, 0.95) 0%, rgba(26, 17, 3, 0.98) 100%) !important;
  border: 1.5px solid #fbbf24 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(254, 240, 138, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
}

.rank-hierarchy-card.card-gold-command::before,
.rank-hierarchy-card[data-level="19"]::before,
.rank-hierarchy-card[data-level="18"]::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #fef08a, #f59e0b, #d97706);
}

.rank-hierarchy-card.card-gold-command:hover,
.rank-hierarchy-card[data-level="19"]:hover,
.rank-hierarchy-card[data-level="18"]:hover {
  transform: translateY(-4px) scale(1.015) !important;
  border-color: #fef08a !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.55), inset 0 0 20px rgba(245, 158, 11, 0.25) !important;
}

.rank-hierarchy-card.card-gold-command .rh-level,
.rank-hierarchy-card[data-level="19"] .rh-level,
.rank-hierarchy-card[data-level="18"] .rh-level {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  color: #040814 !important;
  font-weight: 900 !important;
  border: 1px solid #fef08a !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5) !important;
}

.rank-hierarchy-card.card-gold-command .rh-tier,
.rank-hierarchy-card[data-level="19"] .rh-tier,
.rank-hierarchy-card[data-level="18"] .rh-tier {
  color: #fde047 !important;
  font-weight: 700 !important;
}

.rank-hierarchy-card.card-gold-command .rh-info .rank-en,
.rank-hierarchy-card[data-level="19"] .rh-info .rank-en,
.rank-hierarchy-card[data-level="18"] .rh-info .rank-en {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.5) !important;
}

.rank-hierarchy-card.card-gold-command .rh-info .rank-ar,
.rank-hierarchy-card[data-level="19"] .rh-info .rank-ar,
.rank-hierarchy-card[data-level="18"] .rh-info .rank-ar {
  color: #fbbf24 !important;
  font-weight: 800 !important;
}

.rank-hierarchy-card.card-gold-command .rh-badge,
.rank-hierarchy-card[data-level="19"] .rh-badge,
.rank-hierarchy-card[data-level="18"] .rh-badge {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.9)) !important;
}

/* Highlight Command Staff and General */
.rank-hierarchy-card[data-level="17"],
.rank-hierarchy-card[data-level="16"] {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.02));
}

.rank-hierarchy-card[data-level="17"] .rh-level,
.rank-hierarchy-card[data-level="16"] .rh-level {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}

/* ========================================================
   7. LSPD RULES & REGULATIONS SECTION
   ======================================================== */
.lspd-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.lspd-rule-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.lspd-rule-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pro-primary), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.lspd-rule-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--pro-primary-rgb), 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px var(--pro-glow);
}

.lspd-rule-card:hover::before {
  opacity: 1;
}

.lspd-rule-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lspd-rule-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--pro-primary-rgb), 0.14);
  border: 1px solid rgba(var(--pro-primary-rgb), 0.3);
  color: var(--pro-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(var(--pro-primary-rgb), 0.2);
}

.lspd-rule-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.lspd-rule-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.lspd-motto-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.95), rgba(12, 24, 52, 0.98));
  border: 1px solid var(--pro-primary);
  border-radius: 18px;
  padding: 24px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 35px var(--pro-glow);
  position: relative;
  overflow: hidden;
}

.lspd-motto-banner strong {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 20px var(--pro-primary);
  font-family: 'Outfit', 'Cairo', sans-serif;
}

.lspd-motto-star {
  color: var(--pro-primary);
  font-size: 1.35rem;
  filter: drop-shadow(0 0 8px var(--pro-primary));
}

/* ========================================================
   8. ENHANCED FLOATING SIDEBAR (QUICK RAIL)
   ======================================================== */
.quick-rail {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.quick-rail a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  color: #94a3b8 !important;
  border-radius: 14px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.rail-svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.85;
  transition: transform 0.22s, stroke 0.22s, filter 0.22s;
  pointer-events: none;
}

.quick-rail a:hover {
  background: rgba(var(--pro-primary-rgb), 0.16) !important;
  border-color: rgba(var(--pro-primary-rgb), 0.45) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

.quick-rail a:hover .rail-svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px var(--pro-primary));
}

.quick-rail a.active {
  background: linear-gradient(135deg, rgba(var(--pro-primary-rgb), 0.28), rgba(var(--pro-primary-rgb), 0.12)) !important;
  border-color: var(--pro-primary) !important;
  color: var(--pro-primary) !important;
  box-shadow: 0 0 20px var(--pro-glow), inset 0 0 10px rgba(var(--pro-primary-rgb), 0.18) !important;
}

.quick-rail a.active::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 22px;
  border-radius: 4px;
  background: var(--pro-primary);
  box-shadow: 0 0 14px var(--pro-primary);
}

.quick-rail a.active .rail-svg {
  filter: drop-shadow(0 0 8px var(--pro-primary));
}

.quick-rail .rail-label {
  position: absolute !important;
  left: calc(100% + 14px) !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(-6px) !important;
  padding: 7px 16px !important;
  background: #090f24 !important;
  border: 1px solid var(--pro-primary) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px var(--pro-glow) !important;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s !important;
  z-index: 10000 !important;
}

.quick-rail .rail-label::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #090f24;
}

.quick-rail a:hover .rail-label,
.quick-rail a:focus-visible .rail-label {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%) translateX(0) !important;
}

/* Mobile dock SVGs */
.dock-svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
  margin-bottom: 2px;
}

/* Toast alert notification */
.toast {
  background: rgba(9, 15, 36, 0.94) !important;
  border: 1px solid var(--pro-primary) !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--pro-glow) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  backdrop-filter: blur(16px) !important;
}

/* ========================================================
   8. TACTICAL TELEMETRY & TOPBAR HUD
   ======================================================== */
.tactical-telemetry {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  margin-left: 20px;
}

.telemetry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.telemetry-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: beaconPulse 1.8s infinite ease-in-out;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.telemetry-label {
  font-family: 'Outfit', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a7f3d0;
}

.telemetry-time {
  font-family: 'Outfit', monospace;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--pro-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.telemetry-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--pro-primary);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Outfit', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-sound-toggle:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--pro-primary);
  box-shadow: 0 0 15px var(--pro-glow);
  transform: translateY(-1px);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.sound-bars i {
  display: block;
  width: 2.5px;
  background: var(--pro-primary);
  border-radius: 1px;
  animation: soundWave 1.2s infinite ease-in-out alternate;
}

.sound-bars i:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-bars i:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.sound-bars i:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.sound-bars i:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes soundWave {
  0% { height: 25%; }
  100% { height: 100%; }
}

.telemetry-sound-toggle.is-muted {
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.telemetry-sound-toggle.is-muted .sound-bars i {
  background: #f43f5e;
  animation: none;
  height: 25% !important;
}

@media (max-width: 820px) {
  .tactical-telemetry {
    display: none !important;
  }
}

/* ========================================================
   9. HERO ADVANCED GRAPHICS & HOLOGRAPHIC CHROME
   ======================================================== */
.hero h1 em {
  background: linear-gradient(90deg, #ffffff 0%, var(--pro-primary) 30%, #93c5fd 50%, var(--pro-primary) 70%, #ffffff 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: chromeShine 6s linear infinite !important;
}

@keyframes chromeShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Single hero crest glow - no duplicate rotating elements */
.hero-art::after {
  content: none !important;
  display: none !important;
}

.hero-halo-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border: 1px dotted rgba(56, 189, 248, 0.35);
  border-radius: 50%;
  animation: radarSpin 10s linear infinite;
  pointer-events: none;
}

/* Button laser sweep shimmer */
.button-primary {
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(30deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.button-primary:hover::after {
  left: 130%;
}

/* ========================================================
   10. VIOLATION CARDS — COLOR-CODED GRAPHIC IDENTITIES
   ======================================================== */
.rule-card {
  position: relative !important;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.14) 0%, transparent 60%),
              linear-gradient(145deg, rgba(10, 18, 38, 0.88), rgba(6, 12, 26, 0.96)) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s !important;
  will-change: transform;
}

/* Grade 1: Sky Cyan */
.rule-card.grade-1 {
  border-color: rgba(56, 189, 248, 0.25) !important;
}
.rule-card.grade-1 .rule-category {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* Grade 2: Sapphire Azure */
.rule-card.grade-2 {
  border-color: rgba(59, 130, 246, 0.25) !important;
}
.rule-card.grade-2 .rule-category {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

/* Grade 3: Emerald Jade */
.rule-card.grade-3 {
  border-color: rgba(16, 185, 129, 0.25) !important;
}
.rule-card.grade-3 .rule-category {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Grade 4: Amber Gold */
.rule-card.grade-4 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}
.rule-card.grade-4 .rule-category {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Grade 5: Sunset Orange */
.rule-card.grade-5 {
  border-color: rgba(249, 115, 22, 0.35) !important;
}
.rule-card.grade-5 .rule-category {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #fb923c !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
}

/* Grade 6: Ruby Alert */
.rule-card.grade-6 {
  border-color: rgba(239, 68, 68, 0.38) !important;
}
.rule-card.grade-6 .rule-category {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* Grade 7: ULTRA HAZARD CRITICAL ALERT */
.rule-card.grade-7,
.rule-card.rule-danger {
  border: 1.5px solid rgba(244, 63, 94, 0.65) !important;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(244, 63, 94, 0.2) 0%, transparent 60%),
              linear-gradient(145deg, rgba(32, 10, 18, 0.92), rgba(16, 4, 10, 0.98)) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(244, 63, 94, 0.25) !important;
}

.rule-card.grade-7::after,
.rule-card.rule-danger::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(45deg, #f43f5e, #f43f5e 10px, #180509 10px, #180509 20px);
}

.rule-card.grade-7 .rule-category,
.rule-card.rule-danger .rule-category {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #ff859d !important;
  border: 1px solid #f43f5e !important;
  font-weight: 900 !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4) !important;
  animation: hazardPulse 2.4s infinite ease-in-out;
}

@keyframes hazardPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Copy button burst */
.rule-code {
  position: relative;
  transition: all 0.2s ease !important;
}

.rule-code:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: var(--pro-primary) !important;
  box-shadow: 0 0 15px var(--pro-glow) !important;
  transform: translateY(-1px);
}

.copy-success-burst {
  animation: copyBurst 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
}

@keyframes copyBurst {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ========================================================
   11. GENERAL RULES & ARMORY BALANCED GRIDS
   ======================================================== */
.lspd-rules-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 20px !important;
  margin-top: 24px !important;
}

.lspd-rules-grid .lspd-rule-card:nth-child(1),
.lspd-rules-grid .lspd-rule-card:nth-child(2),
.lspd-rules-grid .lspd-rule-card:nth-child(3) {
  grid-column: span 2 !important;
}

.lspd-rules-grid .lspd-rule-card:nth-child(4),
.lspd-rules-grid .lspd-rule-card:nth-child(5) {
  grid-column: span 3 !important;
}

.lspd-card-tag {
  display: inline-block;
  font-family: 'Outfit', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--pro-primary);
  margin-bottom: 4px;
}

.lspd-card-commander {
  border-color: rgba(56, 189, 248, 0.45) !important;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 70%),
              linear-gradient(145deg, rgba(12, 22, 48, 0.92), rgba(6, 12, 28, 0.98)) !important;
}

.lspd-card-commander .lspd-rule-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.1)) !important;
  border-color: var(--pro-primary) !important;
  box-shadow: 0 0 20px var(--pro-glow) !important;
}

/* Armory 4-column balanced grid */
.lspd-armory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.armory-card {
  border-color: rgba(245, 158, 11, 0.28) !important;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 70%),
              linear-gradient(145deg, rgba(18, 16, 28, 0.9), rgba(8, 8, 18, 0.96)) !important;
}

.armory-card:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.25) !important;
}

.armory-icon {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
}

.armory-tag {
  color: #fbbf24 !important;
}

@media (max-width: 1024px) {
  .lspd-armory-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 860px) {
  .lspd-rules-grid {
    grid-template-columns: 1fr !important;
  }
  .lspd-rules-grid .lspd-rule-card {
    grid-column: span 1 !important;
  }
  .lspd-armory-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================
   12. MOTTO BANNER WITH POLICE BEACON LIGHTS
   ======================================================== */
.lspd-motto-banner {
  position: relative !important;
  overflow: hidden !important;
  padding: 30px 40px !important;
  border: 1.5px solid var(--pro-primary) !important;
  background: linear-gradient(135deg, rgba(8, 16, 38, 0.96) 0%, rgba(14, 26, 60, 0.98) 100%) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.25) !important;
}

.motto-beacon {
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  pointer-events: none;
}

.motto-beacon-left {
  left: 0;
  background: radial-gradient(circle at left, rgba(56, 189, 248, 0.5) 0%, transparent 70%);
  animation: beaconPoliceBlue 1.3s infinite alternate ease-in-out;
}

.motto-beacon-right {
  right: 0;
  background: radial-gradient(circle at right, rgba(244, 63, 94, 0.5) 0%, transparent 70%);
  animation: beaconPoliceRed 1.3s infinite alternate-reverse ease-in-out;
}

@keyframes beaconPoliceBlue {
  0% { opacity: 0.15; filter: blur(4px); }
  100% { opacity: 0.95; filter: blur(10px); }
}

@keyframes beaconPoliceRed {
  0% { opacity: 0.15; filter: blur(4px); }
  100% { opacity: 0.95; filter: blur(10px); }
}

.motto-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.motto-sub {
  font-family: 'Outfit', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--pro-primary);
  opacity: 0.85;
}

.motto-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 2.1rem !important;
  font-weight: 900 !important;
  letter-spacing: 4px !important;
  color: #ffffff !important;
  text-shadow: 0 0 30px var(--pro-glow-strong), 0 5px 20px rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
  .motto-title {
    font-size: 1.4rem !important;
    letter-spacing: 2px !important;
  }
}

/* ========================================================
   13. SILKY SMOOTH SCROLL REVEAL ANIMATIONS
   ======================================================== */
html {
  scroll-behavior: smooth !important;
}

.tactical-reveal-target {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-delay: var(--reveal-delay, 0ms) !important;
  will-change: opacity, transform;
}

.tactical-reveal-target.tactical-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}



/* ========================================================
   BASIC MILITARY DARK BACKGROUND (REPLACING HOLOGRAPHIC)
   ======================================================== */
body {
  background-color: #080c14 !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #090d16 0%, #06090f 100%) !important;
  background-size: 100% 100% !important;
  background-attachment: fixed !important;
  color: var(--pro-text) !important;
  overflow-x: hidden !important;
}

.ambient, .ambient-one, .ambient-two,
.hero-reticle, .hero-stars, .hero-pointer-glow, .hero-sparks,
.hero-halo, .hero-halo-outer, #cyberTacticalCanvas {
  display: none !important;
}

/* ========================================================
   HEADER BRAND LOGO & HERO PNG FIX (IMAGE 4)
   ======================================================== */
.brand-image {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: #0d1527 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  animation: none !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.brand-image img, .brand-static-logo {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  animation: none !important;
  transform: none !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) !important;
}

.brand:hover .brand-image {
  transform: translateY(-1px) !important;
  border-color: var(--pro-primary) !important;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25) !important;
}

.hero-art {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  pointer-events: none !important;
}

.hero-art img.hero-static-crest {
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8)) !important;
  animation: none !important;
}

.closing-icon img, .footer-brand img {
  object-fit: contain !important;
  animation: none !important;
}

/* ========================================================
   REMOVE TELEMETRY & AUDIO TOGGLE (IMAGE 2)
   ======================================================== */
.tactical-telemetry, #tacticalTelemetry {
  display: none !important;
}

/* ========================================================
   ENHANCED PENALTIES TABLE (IMAGE 1 REFINEMENT)
   ======================================================== */
.tactical-penalties-wrapper {
  background: #090e1a !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
  overflow-x: auto !important;
}

.refined-military-table {
  width: 100% !important;
  min-width: 1100px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  text-align: center !important;
}

.refined-military-table thead th {
  background: #0d162a !important;
  color: #7dd3fc !important;
  padding: 18px 12px !important;
  font-weight: 800 !important;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
  vertical-align: middle !important;
}

.refined-military-table thead th.th-rank-head {
  text-align: right !important;
  padding-right: 20px !important;
  width: 220px !important;
  min-width: 220px !important;
  background: #0f1a33 !important;
  position: sticky !important;
  right: 0 !important;
  z-index: 5 !important;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5) !important;
}

.th-main-text {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.th-sub-code {
  display: block;
  font-family: 'Outfit', monospace;
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.refined-military-table tbody tr {
  background: #0a0f1d;
  transition: background 0.18s ease;
}

.refined-military-table tbody tr:nth-child(even) {
  background: #0d1426;
}

.refined-military-table tbody tr:hover {
  background: rgba(30, 58, 138, 0.3) !important;
}

.refined-military-table tbody tr:hover th.rank-row-th {
  background: #15223f !important;
}

.refined-military-table th.rank-row-th {
  position: sticky !important;
  right: 0 !important;
  z-index: 4 !important;
  background: #0d1528 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12) !important;
  border-left: 1px solid rgba(56, 189, 248, 0.18) !important;
  padding: 16px 18px !important;
  text-align: right !important;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5) !important;
}

.refined-military-table td.penalty-td {
  padding: 14px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
  vertical-align: middle !important;
}

.rank-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: 'Outfit', monospace;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.rank-title {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.rank-title .rank-en {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.rank-title .rank-ar {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

/* Tactical Sanction Badges / Pills */
.sanction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sanction-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 1. Dismissal / Termination (فصل) */
.pill-danger {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
.pill-danger .pill-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* 2. Demotion (كسر رتبة / تنزيل رتبة) */
.pill-demote {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #fdba74 !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
}
.pill-demote .pill-dot {
  background: #f97316;
}

/* 3. Rehab & Points Deduction (إعادة تأهيل + خصم) */
.pill-warning {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fcd34d !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
.pill-warning .pill-dot {
  background: #f59e0b;
}

/* 4. Exemption (إعفاء) */
.pill-alert {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #fda4af !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
}
.pill-alert .pill-dot {
  background: #f43f5e;
}

/* 5. Warnings */
.pill-warn-high {
  background: rgba(251, 146, 60, 0.16) !important;
  color: #fed7aa !important;
  border-color: rgba(251, 146, 60, 0.4) !important;
}
.pill-warn-high .pill-dot {
  background: #fb923c;
}

.pill-warn-mid {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #bae6fd !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}
.pill-warn-mid .pill-dot {
  background: #38bdf8;
}

.pill-warn-low {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #e0f2fe !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}
.pill-warn-low .pill-dot {
  background: #0ea5e9;
}

/* 6. Verbal Warning (تنبيه شفهي) */
.pill-verbal {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}
.pill-verbal .pill-dot {
  background: #94a3b8;
}

/* 7. Discretion Severe (تقديرية وتصل إلى الفصل) */
.pill-discretion-high {
  background: rgba(168, 85, 247, 0.16) !important;
  color: #e9d5ff !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}
.pill-discretion-high .pill-dot {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
}

/* 8. Command Directive (تقديرية وترفع لرئاسة الشؤون والاقسام) */
.pill-command {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.22)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  padding: 10px 24px !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.25) !important;
}
.pill-command .pill-dot {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.penalty-cell-command {
  background: #0e172e !important;
  padding: 18px 20px !important;
}

/* Table Legend Bar */
.penalties-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 12px 20px;
  margin-top: -2px;
}

.legend-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 700;
}

.legend-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Outfit', monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

.legend-dismissal i { background: #ef4444; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-demote i { background: #f97316; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-rehab i { background: #f59e0b; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-warning i { background: #38bdf8; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-verbal i { background: #94a3b8; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-command i { background: #a855f7; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ========================================================
   RADIO CODES & DISPATCH SYSTEM STYLES (IMAGE 5)
   ======================================================== */
.radio-section {
  position: relative;
}

.btn-hero-radio {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.btn-hero-radio:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: var(--pro-primary) !important;
}

.stat-card-radio .stat-icon {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

.radio-finder {
  background: #0b1122;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.radio-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-search-wrap {
  flex: 1;
  min-width: 280px;
}

.radio-view-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #070d1a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 4px;
}

.radio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-toggle-btn.active {
  background: #172749;
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.radio-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.radio-filter-btn {
  background: #0d1527;
  color: #94a3b8;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 8px;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-filter-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.radio-filter-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
}

.radio-filter-danger.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

/* Radio Favorites Filter Button */
.radio-fav-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.radio-fav-filter:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #f59e0b;
  color: #ffffff;
}

.radio-fav-filter.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.radio-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radio-star-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #64748b;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.radio-star-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
  transform: scale(1.1);
}

.radio-star-btn.is-starred {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.table-code-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-star-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.table-star-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
  transform: scale(1.1);
}

.table-star-btn.is-starred {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.radio-results-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Radio Cards Grid */
.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.radio-code-card {
  background: #0b1122;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.radio-code-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.15);
}

.radio-code-card.priority-critical {
  border-color: rgba(239, 68, 68, 0.35);
}
.radio-code-card.priority-critical:hover {
  border-color: #ef4444;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.25);
}

.radio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101c36;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 5px 14px;
  font-family: 'Outfit', monospace;
  font-weight: 900;
  font-size: 1.15rem;
  color: #38bdf8;
  letter-spacing: 1px;
}

.priority-critical .radio-badge {
  background: #2b1218;
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.radio-priority-tag {
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 9px;
  text-transform: uppercase;
}

.priority-tag-critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.priority-tag-danger { background: rgba(249, 115, 22, 0.18); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.4); }
.priority-tag-warning { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.priority-tag-success { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.priority-tag-info { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.priority-tag-status { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

.radio-pronounce-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #080d19;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px dashed rgba(56, 189, 248, 0.2);
}

.radio-mic-icon {
  font-size: 1rem;
}

.radio-pronounce-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.radio-pronounce-text strong {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 800;
  margin-right: 4px;
}

.radio-meaning-box {
  background: rgba(14, 22, 40, 0.6);
  border-radius: 8px;
  padding: 10px 12px;
}

.radio-meaning-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.radio-meaning-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
}

.radio-example-box {
  background: #080c18;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
}

.radio-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
}

.radio-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.radio-copy-btn:hover {
  background: #38bdf8;
  color: #060a14;
}

.radio-example-code {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f87171;
  background: transparent;
  padding: 0;
  line-height: 1.5;
  font-family: inherit;
}

.example-empty {
  padding: 8px 12px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
}

.example-empty-text {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

/* Radio Military Spreadsheet Table (Image 5 representation) */
.radio-sheet-block {
  background: #0b1122;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.radio-sheet-title {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0e172e;
  padding: 14px 20px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
}

.sheet-title-highlight {
  background: #141f3b;
  border-bottom-color: rgba(239, 68, 68, 0.35);
}

.sheet-title-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'Outfit', monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.radio-sheet-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.radio-military-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.radio-military-table thead th {
  background: #0d1529;
  color: #7dd3fc;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.radio-military-table tbody tr {
  background: #090e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.radio-military-table tbody tr:nth-child(even) {
  background: #0c1222;
}

.radio-military-table tbody tr:hover {
  background: rgba(30, 58, 138, 0.25);
}

.code-col-th {
  padding: 12px 16px;
  width: 140px;
}

.table-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101c36;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: 'Outfit', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: #38bdf8;
}

.imp-badge {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  background: #241117;
}

.pronounce-td {
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #e2e8f0;
}

.meaning-td {
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.example-td {
  padding: 12px 16px;
}

.table-example-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 10px;
}

.table-example-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f87171; /* Highlighted in red like Image 5 */
}

.table-copy-icon {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.table-copy-icon:hover {
  background: #38bdf8;
  color: #060a14;
}

.table-empty-dash {
  color: #64748b;
  font-weight: 700;
  padding-right: 12px;
}

@media (max-width: 768px) {
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }
  .radio-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========================================================
   POLICE SQUADS SECTION (فرق الشرطة الميدانية الأربعة)
   ======================================================== */
.squads-section {
  padding-top: 80px;
}

.squads-container-block {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.squads-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.squads-head-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.squads-head-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.squads-head-title h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.squads-head-title p {
  color: #94a3b8;
  font-size: 0.92rem;
  margin: 0;
}

.squads-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.88rem;
}

.squad-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.squad-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.squad-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.squad-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.squad-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.squad-roster-toggle {
  margin-right: auto;
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.35);
  color: #c084fc;
}

.squad-roster-toggle:hover {
  background: rgba(147, 51, 234, 0.22);
  border-color: #a855f7;
  color: #e9d5ff;
}

.squad-roster-toggle.active {
  background: rgba(147, 51, 234, 0.3);
  border-color: #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

/* Clickable Overview Stat Cards - 5 Columns Balanced */
.overview {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 24px !important;
}

@media (max-width: 1200px) {
  .overview {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 500px) {
  .overview {
    grid-template-columns: 1fr !important;
  }
}

a.stat-card.stat-link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  display: flex;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

a.stat-card.stat-link:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--pro-primary-rgb), 0.65) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(var(--pro-primary-rgb), 0.25) !important;
}

.squads-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.squad-excel-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(147, 51, 234, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}

.squad-excel-toggle-btn:hover,
.squad-excel-toggle-btn.active {
  background: rgba(147, 51, 234, 0.3);
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  color: #ffffff;
}

.squads-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
}

/* Squad Sector & GTA Map Distribution Styles */
.squad-sector-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--squad-border, rgba(56, 189, 248, 0.3));
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.squad-sector-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.squad-sector-pin {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}

.squad-sector-title {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
}

.squad-sector-sub {
  color: var(--squad-color, #38bdf8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.squad-map-areas {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.squad-map-areas li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.5;
}

.area-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--squad-color, #38bdf8);
  box-shadow: 0 0 6px var(--squad-color, #38bdf8);
  flex-shrink: 0;
}

.squad-hq-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.squad-hq-label {
  color: #94a3b8;
  font-weight: 700;
}

.squad-hq-val {
  color: #f1f5f9;
  font-weight: 800;
}

.squad-card {
  background: linear-gradient(135deg, rgba(13, 23, 48, 0.85) 0%, rgba(8, 14, 30, 0.95) 100%);
  border: 1px solid var(--squad-border, rgba(56, 189, 248, 0.25));
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.squad-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--squad-color, #38bdf8);
  box-shadow: 0 0 12px var(--squad-color, #38bdf8);
}

.squad-card:hover {
  transform: translateY(-5px);
  border-color: var(--squad-color, #38bdf8);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--squad-glow, rgba(56, 189, 248, 0.25));
}

/* Squad Themes */
.squad-card.squad-bravo {
  --squad-color: #38bdf8;
  --squad-bg: rgba(56, 189, 248, 0.12);
  --squad-border: rgba(56, 189, 248, 0.35);
  --squad-glow: rgba(56, 189, 248, 0.3);
}

.squad-card.squad-charlie {
  --squad-color: #f59e0b;
  --squad-bg: rgba(245, 158, 11, 0.12);
  --squad-border: rgba(245, 158, 11, 0.35);
  --squad-glow: rgba(245, 158, 11, 0.3);
}

.squad-card.squad-delta {
  --squad-color: #ef4444;
  --squad-bg: rgba(239, 68, 68, 0.12);
  --squad-border: rgba(239, 68, 68, 0.35);
  --squad-glow: rgba(239, 68, 68, 0.3);
}

.squad-card.squad-echo {
  --squad-color: #10b981;
  --squad-bg: rgba(16, 185, 129, 0.12);
  --squad-border: rgba(16, 185, 129, 0.35);
  --squad-glow: rgba(16, 185, 129, 0.3);
}

.squad-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.squad-callsign-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--squad-bg, rgba(56, 189, 248, 0.15));
  border: 1px solid var(--squad-border, rgba(56, 189, 248, 0.4));
  color: var(--squad-color, #38bdf8);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.squad-status-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.squad-total-badge {
  display: none !important;
}

.squad-card h4 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
}

.squad-role-tag {
  display: inline-block;
  color: var(--squad-color, #38bdf8);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.squad-summary {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.squad-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin: 14px 0 8px;
  letter-spacing: 0.5px;
}

.squad-tasks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.squad-tasks-list li {
  position: relative;
  padding-right: 18px;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.squad-tasks-list li::before {
  content: '▪';
  position: absolute;
  right: 0;
  color: var(--squad-color, #38bdf8);
  font-size: 1.1rem;
}

.squad-radio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.squad-code-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.squad-leadership-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.squad-leader-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.squad-leader-label {
  color: #94a3b8;
  font-weight: 700;
}

.squad-leader-val {
  color: #ffffff;
  font-weight: 800;
}

.squad-color-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 14px;
  font-size: 0.82rem;
}

.squad-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--squad-color, #38bdf8);
}

.squad-color-chip .squad-color-dot {
  background: var(--squad-color, #38bdf8);
  box-shadow: 0 0 8px var(--squad-color, #38bdf8);
}

/* Squads Roster Table (Excel style from Image 2) */
.squads-roster-wrap {
  margin-top: 24px;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.squads-roster-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.squads-roster-header h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
}

.squads-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: right;
  min-width: 1000px;
}

.squads-roster-table th {
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.squads-roster-table th.th-squad-bravo {
  background: #0c2340 !important;
  color: #38bdf8 !important;
  border-bottom: 2px solid #38bdf8 !important;
  font-size: 1rem;
}

.squads-roster-table th.th-squad-charlie {
  background: #2e1d08 !important;
  color: #fbbf24 !important;
  border-bottom: 2px solid #f59e0b !important;
  font-size: 1rem;
}

.squads-roster-table th.th-squad-delta {
  background: #2f0d14 !important;
  color: #f87171 !important;
  border-bottom: 2px solid #ef4444 !important;
  font-size: 1rem;
}

.squads-roster-table th.th-squad-echo {
  background: #062b1b !important;
  color: #34d399 !important;
  border-bottom: 2px solid #10b981 !important;
  font-size: 1rem;
}

.roster-subhead-row th {
  background: #090f1f !important;
  color: #94a3b8 !important;
  font-weight: 700;
}

.squads-roster-table td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.squads-roster-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.roster-role-leader {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-weight: 800;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}

.roster-role-member {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .squads-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================================
   LSPD OPERATIONAL CODEX & REGULATIONS (لوائح فرق الشرطة)
   ======================================================== */

.regulations-section {
  position: relative;
  margin-top: 40px;
}

/* Official Rights Banner */
.lspd-codex-rights-banner {
  background: linear-gradient(135deg, rgba(8, 22, 55, 0.92) 0%, rgba(6, 14, 32, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.lspd-codex-rights-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8, #3b82f6);
}

.rights-icon-badge {
  font-size: 2.8rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rights-content {
  flex: 1;
}

.rights-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rights-pill-live {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.rights-pill-org {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.rights-pill-squads {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.rights-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.rights-content p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.rights-badge-seal {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(3, 7, 18, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rights-badge-seal span {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 800;
}

.rights-badge-seal strong {
  font-size: 1.4rem;
  color: #38bdf8;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
}

.rights-badge-seal small {
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Tabs Bar */
.codex-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(7, 14, 30, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 24px;
}

.codex-tab-btn {
  flex: 1;
  min-width: 170px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.codex-tab-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.2);
}

.codex-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(30, 58, 138, 0.4) 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.codex-tab-btn .tab-emoji {
  font-size: 1.15rem;
}

/* Panels */
.codex-panels-container {
  min-height: 400px;
}

.codex-tab-panel {
  display: block;
}

.codex-tab-panel[hidden] {
  display: none !important;
}

/* Panel Header Toolbar */
.panel-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-header-search {
  flex: 1;
  min-width: 280px;
}

.panel-header-search .search-wrap {
  display: flex;
  align-items: center;
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9px;
  padding: 4px 14px;
}

.panel-header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 8px 10px;
  width: 100%;
}

.articles-cat-filters, .fines-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.art-cat-btn, .fine-cat-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.art-cat-btn:hover, .fine-cat-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
}

.art-cat-btn.active, .fine-cat-btn.active {
  background: #38bdf8;
  color: #040814;
  border-color: #38bdf8;
  font-weight: 800;
}

.articles-count-pill, .fines-count-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-inline-start: auto;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.article-card {
  background: linear-gradient(180deg, rgba(11, 20, 42, 0.82) 0%, rgba(7, 14, 30, 0.88) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}

.article-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.art-num-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.art-cat-tag {
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.article-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.article-card-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0 0 16px 0;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
  margin-top: auto;
}

.art-copy-btn {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.art-copy-btn:hover {
  background: #38bdf8;
  color: #040814;
}

.art-org-tag {
  font-size: 0.68rem;
  color: #64748b;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Category Accent Borders */
.article-card.cat-citizens { border-right: 3px solid #38bdf8; }
.article-card.cat-firearms { border-right: 3px solid #ef4444; }
.article-card.cat-rp { border-right: 3px solid #f59e0b; }
.article-card.cat-tactical { border-right: 3px solid #10b981; }
.article-card.cat-discipline { border-right: 3px solid #a855f7; }

/* Station Rules Grid */
.station-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.station-rule-card {
  background: linear-gradient(135deg, rgba(12, 22, 45, 0.85) 0%, rgba(8, 14, 30, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.station-rule-card.card-parking { border-top: 3px solid #38bdf8; }
.station-rule-card.card-shooting { border-top: 3px solid #ef4444; }
.station-rule-card.card-arrest { border-top: 3px solid #f59e0b; }
.station-rule-card.card-citizen { border-top: 3px solid #10b981; }

.station-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.station-card-icon {
  font-size: 1.8rem;
}

.station-card-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.station-card-badge.badge-danger { color: #f87171; background: rgba(239, 68, 68, 0.15); }
.station-card-badge.badge-warning { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }
.station-card-badge.badge-success { color: #34d399; background: rgba(16, 185, 129, 0.15); }

.station-card-head h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.station-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.station-rules-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.station-rules-list li strong {
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

/* Radio Protocols Section */
.radio-protocol-intro {
  background: linear-gradient(135deg, rgba(8, 26, 60, 0.75) 0%, rgba(4, 12, 28, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.protocol-intro-content h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.protocol-intro-content p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.protocol-dispatch-tester {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
}

.dispatch-test-label {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 2px;
}

.protocol-dispatch-tester code {
  color: #38bdf8;
  font-family: 'Outfit', monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.protocol-category-block {
  margin-bottom: 28px;
}

.protocol-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.protocol-cat-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.protocol-cat-badge.badge-warning { color: #fbbf24; background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }
.protocol-cat-badge.badge-cyan { color: #34d399; background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }

.protocol-cat-title h5 {
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
}

.protocol-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.protocol-item-card {
  background: rgba(11, 20, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.protocol-item-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 26, 54, 0.85);
  transform: translateY(-2px);
}

.protocol-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.protocol-code-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.protocol-name {
  font-size: 0.95rem;
  color: #ffffff;
}

.protocol-dispatch-phrase {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.phrase-label {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
}

.phrase-text {
  color: #f8fafc;
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
}

.protocol-note {
  font-size: 0.78rem;
  color: #f59e0b;
  margin-bottom: 8px;
}

.protocol-desc-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.protocol-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.protocol-copy-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.protocol-copy-btn:hover {
  background: #38bdf8;
  color: #040814;
}

.protocol-scope-tag {
  font-size: 0.65rem;
  color: #64748b;
  font-family: 'Outfit', sans-serif;
}

/* Leave & Resignation Section */
.leave-regulations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.leave-card {
  background: linear-gradient(135deg, rgba(12, 22, 45, 0.85) 0%, rgba(8, 14, 30, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.leave-card-ban { border-top: 3px solid #ef4444; }
.leave-card-max { border-top: 3px solid #f59e0b; }
.leave-card-conditions { border-top: 3px solid #38bdf8; }
.leave-card-retract { border-top: 3px solid #a855f7; }

.leave-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.leave-icon {
  font-size: 1.8rem;
}

.leave-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.leave-badge.badge-danger { color: #f87171; background: rgba(239, 68, 68, 0.15); }
.leave-badge.badge-warning { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }
.leave-badge.badge-primary { color: #38bdf8; background: rgba(56, 189, 248, 0.15); }
.leave-badge.badge-secondary { color: #c084fc; background: rgba(168, 85, 247, 0.15); }

.leave-card-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.leave-card-body p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.leave-penalty-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 12px;
}

.penalty-box-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f87171;
  display: block;
  margin-bottom: 8px;
}

.penalty-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.penalty-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.pill-money { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.pill-jail { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.pill-dismissal { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.leave-notice-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.leave-notice-box p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.leave-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leave-req-list li {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
}

.req-number {
  background: #38bdf8;
  color: #040814;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leave-req-list strong {
  font-size: 0.88rem;
  color: #ffffff;
  display: block;
}

.leave-req-list p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.retract-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.retract-step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.retract-step-badge.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.retract-step strong {
  color: #ffffff;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 2px;
}

.retract-step p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

/* Major Felonies Grid */
.major-felonies-block {
  margin-bottom: 30px;
}

.felonies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 14px 20px;
}

.felonies-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.felonies-icon {
  font-size: 1.6rem;
}

.felonies-title h4 {
  font-size: 1.15rem;
  color: #f87171;
  margin: 0 0 2px 0;
}

.felonies-title p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
}

.felonies-pill {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.felonies-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.major-felony-card {
  background: linear-gradient(180deg, rgba(30, 15, 25, 0.85) 0%, rgba(18, 8, 14, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.major-felony-card:hover {
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.felony-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.felony-icon {
  font-size: 1.4rem;
}

.felony-seq {
  font-family: 'Outfit', sans-serif;
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 800;
}

.major-felony-card h5 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.major-felony-card p {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 10px 0;
  flex: 1;
}

.felony-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
}

/* Fines Registry Table */
.fines-table-block {
  background: rgba(10, 18, 38, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fines-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fines-search-wrap {
  flex: 1;
  min-width: 260px;
}

.fines-search-wrap .search-wrap {
  display: flex;
  align-items: center;
  background: rgba(6, 12, 26, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 4px 12px;
}

.fines-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 10px;
  width: 100%;
}

.fines-registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 750px;
}

.fines-registry-table th {
  background: rgba(8, 20, 48, 0.85);
  color: #38bdf8;
  font-weight: 800;
  padding: 12px 14px;
  text-align: right;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.fines-registry-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.fine-row:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.fine-name-cell strong {
  color: #ffffff;
}

.fine-cat-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.fine-cat-pill.pill-traffic { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.fine-cat-pill.pill-security { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.fine-cat-pill.pill-felony { background: rgba(239, 68, 68, 0.18); color: #f87171; }

.fine-jail-val.zero-jail { color: #64748b; }
.fine-jail-val.has-jail { color: #38bdf8; font-weight: 800; }

.fine-money-val {
  color: #fbbf24;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.fine-extra-action {
  font-size: 0.82rem;
  color: #94a3b8;
}

.fine-copy-row-btn {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.fine-copy-row-btn:hover {
  background: #38bdf8;
  color: #040814;
}

@media (max-width: 900px) {
  .lspd-codex-rights-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .rights-badge-seal {
    width: 100%;
    margin-top: 10px;
  }
  .station-rules-grid, .leave-regulations-grid {
    grid-template-columns: 1fr;
  }
  .codex-tab-btn {
    min-width: 140px;
    font-size: 0.84rem;
  }
}

/* ========================================================
   MOBILE PERFECTION & RESPONSIVE TOUCH ENGINE (<= 780px)
   ======================================================== */
@media (max-width: 780px) {
  html, body {
    overflow-x: hidden !important;
  }

  body {
    padding-bottom: 78px !important;
  }

  .container {
    width: calc(100% - 24px) !important;
    margin-inline: auto !important;
  }

  /* Topbar Mobile Touch Optimization */
  .topbar {
    min-height: 64px !important;
    height: auto !important;
  }

  .nav-inner {
    height: 64px !important;
  }

  .mobile-nav:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(6, 12, 28, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
    padding: 12px 18px 18px !important;
    gap: 4px !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
  }

  .mobile-nav a {
    padding: 11px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
  }

  .mobile-nav a:hover,
  .mobile-nav a:active {
    background: rgba(56, 189, 248, 0.14) !important;
    color: #38bdf8 !important;
    padding-right: 18px !important;
  }

  .brand-image {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  .brand-image img {
    width: 38px !important;
    height: 38px !important;
  }

  .brand-label b {
    font-size: 18px !important;
  }

  .brand-label small {
    font-size: 8px !important;
  }

  .mobile-menu-button {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(14, 26, 54, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
  }

  /* Hero Mobile Layout - Sleek, Compact, Centered */
  .hero {
    min-height: auto !important;
    margin-top: 14px !important;
    border-radius: 18px !important;
    padding: 24px 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.15) !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 3 !important;
  }

  .hero .eyebrow {
    font-size: 0.76rem !important;
    padding: 5px 12px !important;
    margin: 0 auto 10px !important;
    display: inline-flex !important;
    line-height: 1.3 !important;
  }

  .hero-br {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(22px, 6.6vw, 30px) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.5px !important;
    margin: 6px 0 10px !important;
    text-align: center !important;
  }

  .hero p {
    font-size: 0.86rem !important;
    line-height: 1.7 !important;
    margin: 0 auto 10px !important;
    max-width: 95% !important;
    color: #cbd5e1 !important;
    text-align: center !important;
  }

  .hero-police-badge-card,
  .hero-footer,
  .hero-detail,
  .hero-overline {
    display: none !important;
  }

  .hero-reticle {
    inset: 8px !important;
  }

  .hero-reticle span {
    width: 14px !important;
    height: 14px !important;
  }

  /* Overview Stats Cards - Sleek 2-column Grid */
  .overview {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .stat-card {
    padding: 12px 14px !important;
    min-height: 76px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  .stat-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }

  .stat-card strong {
    font-size: 1.45rem !important;
  }

  .stat-card div span {
    font-size: 9.5px !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
  }

  /* Section Headings on Mobile */
  .section {
    padding-top: 48px !important;
  }

  .section-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  .section-heading h2 {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .section-heading p {
    font-size: 11px !important;
    line-height: 1.65 !important;
  }

  .section-identity {
    display: none !important;
  }

  .section-kicker {
    font-size: 9.5px !important;
    margin-bottom: 4px !important;
  }

  /* Squads Grid & Cards on Mobile */
  .squads-grid {
    gap: 16px !important;
  }

  .squad-card {
    padding: 16px !important;
  }

  /* Ranks Hierarchy Grid on Mobile */
  .ranks-tier-group {
    padding: 14px !important;
    margin-bottom: 14px !important;
  }

  .ranks-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .rank-item-card {
    padding: 12px 14px !important;
  }

  /* Violations & Finder Search on Mobile */
  .finder {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .finder-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .search-wrap {
    min-height: 48px !important;
    padding: 0 12px !important;
  }

  .search-wrap input,
  .fines-search-wrap input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }

  .search-wrap kbd {
    display: none !important;
  }

  .filters {
    gap: 6px !important;
    margin-top: 10px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .filter {
    padding: 6px 12px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .rules-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .rule-card {
    padding: 14px 16px !important;
    min-height: auto !important;
  }

  /* Radio Codes Grid on Mobile */
  .radio-codes-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Tables Overflow on Mobile */
  .table-overflow {
    border-radius: 10px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Notes & Closing Panel on Mobile */
  .notes-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .closing-panel {
    flex-direction: column !important;
    text-align: center !important;
    padding: 18px 14px !important;
    gap: 12px !important;
  }

  .closing-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .closing-panel a {
    align-self: center !important;
  }

  /* Footer on Mobile */
  .footer-inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 10px !important;
    gap: 12px !important;
  }

  .footer-brand {
    justify-content: center !important;
  }

  /* CRITICAL: MOBILE BOTTOM DOCK 6-COLUMN FIX */
  .mobile-dock {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 2px !important;
    align-items: center !important;
    padding: 5px 3px calc(5px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 54px !important;
    height: auto !important;
    background: rgba(5, 11, 24, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85) !important;
  }

  .mobile-dock a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 4px 1px !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    min-height: 44px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
  }

  .mobile-dock a .dock-svg {
    width: 17px !important;
    height: 17px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    margin: 0 !important;
  }

  .mobile-dock a small {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .mobile-dock a.active,
  .mobile-dock a:active {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
  }
}
/* ========================================================
   DYNAMIC RAID SQUADS & UNIFIED TACTICAL DOCTRINE
   ======================================================== */
.squads-container-block {
  background: rgba(8, 14, 30, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 22px !important;
  padding: 22px !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* 1. Dynamic Controls & Filter Tabs */
.squads-dynamic-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.squads-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.squad-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 24, 48, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.squad-tab-btn:hover {
  background: rgba(22, 38, 74, 0.85);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.squad-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 28, 64, 0.8) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.squads-quick-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.radar-live-blip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.4s infinite ease-in-out;
}

/* 2. Compact Raid Squads Deck */
.raid-squads-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.raid-card {
  background: linear-gradient(145deg, rgba(14, 24, 50, 0.85) 0%, rgba(8, 14, 32, 0.95) 100%);
  border: 1px solid var(--squad-border, rgba(56, 189, 248, 0.25));
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  outline: none;
}

.raid-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--squad-color, #38bdf8);
  box-shadow: 0 0 10px var(--squad-color, #38bdf8);
}

.raid-card:hover,
.raid-card.active-focus {
  transform: translateY(-3px);
  border-color: var(--squad-color, #38bdf8);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 22px var(--squad-glow, rgba(56, 189, 248, 0.3));
}

.raid-card.dimmed {
  opacity: 0.35;
  filter: grayscale(0.6);
  transform: scale(0.98);
}

.raid-card.squad-bravo {
  --squad-color: #38bdf8;
  --squad-border: rgba(56, 189, 248, 0.35);
  --squad-glow: rgba(56, 189, 248, 0.3);
}

.raid-card.squad-charlie {
  --squad-color: #f59e0b;
  --squad-border: rgba(245, 158, 11, 0.35);
  --squad-glow: rgba(245, 158, 11, 0.3);
}

.raid-card.squad-delta {
  --squad-color: #ef4444;
  --squad-border: rgba(239, 68, 68, 0.35);
  --squad-glow: rgba(239, 68, 68, 0.3);
}

.raid-card.squad-echo {
  --squad-color: #10b981;
  --squad-border: rgba(16, 185, 129, 0.35);
  --squad-glow: rgba(16, 185, 129, 0.3);
}

.raid-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.raid-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--squad-color, #38bdf8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--squad-border, rgba(56, 189, 248, 0.25));
  padding: 3px 8px;
  border-radius: 6px;
}

.raid-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 12px;
}

.raid-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
}

.raid-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin: 0 0 12px;
}

.raid-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.raid-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

.raid-tag.radio-tag {
  color: var(--squad-color, #38bdf8);
  border-color: var(--squad-border, rgba(56, 189, 248, 0.25));
  font-family: 'Outfit', monospace;
  font-weight: 800;
}

/* 3. Unified Raid Protocol Box */
.raid-unified-protocol-box {
  background: rgba(6, 12, 28, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 18px 22px;
}

.protocol-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.protocol-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.protocol-shield-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.protocol-title-group h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.protocol-title-group p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.protocol-live-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.protocol-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.protocol-task-item {
  background: rgba(14, 24, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.protocol-task-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.task-step-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.task-item-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.task-item-content p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  font-weight: 500;
}

/* Responsive for Raid Squads */
@media (max-width: 1200px) {
  .raid-squads-deck {
    grid-template-columns: repeat(2, 1fr);
  }
  .protocol-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .squads-container-block {
    padding: 14px !important;
  }
  .squads-dynamic-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .squads-filter-group {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .squads-filter-group::-webkit-scrollbar {
    display: none;
  }
  .squad-tab-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .squads-quick-status-chip {
    font-size: 0.74rem;
    padding: 5px 10px;
  }
  .raid-squads-deck {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .raid-card {
    padding: 14px;
  }
  .protocol-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .raid-unified-protocol-box {
    padding: 14px;
  }
  .protocol-title-group h4 {
    font-size: 0.92rem;
  }
}




/* ========================================================
   MODERN TACTICAL ACCORDION & ROUNDED GLASSMORPHISM UI (V10)
   Designed for Society RP LSPD HQ
   ======================================================== */
.tactical-accordion-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: 20px !important;
}

.tactical-accordion-item {
  background: rgba(10, 18, 38, 0.72) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.tactical-accordion-item:hover {
  background: rgba(14, 25, 52, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-2px) !important;
}

.tactical-accordion-item.is-open {
  background: rgba(15, 27, 58, 0.94) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 30px rgba(56, 189, 248, 0.25) !important;
  border-radius: 24px !important;
}

.tactical-accordion-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 24px !important;
  cursor: pointer !important;
  user-select: none !important;
  background: transparent !important;
  width: 100% !important;
  border: none !important;
  color: inherit !important;
  text-align: right !important;
  transition: background 0.2s ease !important;
}

.tactical-accordion-header:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: -2px !important;
}

.accordion-title-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 !important;
}

.accordion-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
  font-family: 'Outfit', 'Cairo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.accordion-badge.badge-danger {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
  color: #f43f5e !important;
}

.accordion-badge.badge-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.accordion-title-text {
  font-family: 'Cairo', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.accordion-meta-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.accordion-cat-pill {
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
}

.accordion-chevron-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #38bdf8 !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
}

.tactical-accordion-item.is-open .accordion-chevron-icon {
  transform: rotate(180deg) !important;
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.tactical-accordion-body {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, opacity 0.3s ease !important;
  opacity: 0 !important;
  padding: 0 24px !important;
}

.tactical-accordion-item.is-open .tactical-accordion-body {
  max-height: 500px !important;
  opacity: 1 !important;
  padding: 0 24px 22px 24px !important;
}

.accordion-body-content {
  padding-top: 16px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.accordion-desc-text {
  font-size: 0.96rem !important;
  line-height: 1.7 !important;
  color: #e2e8f0 !important;
  margin: 0 !important;
}

.accordion-action-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 6px !important;
}

.accordion-copy-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 12px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.accordion-copy-btn:hover {
  background: #38bdf8 !important;
  color: #030712 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-1px) !important;
}

.accordion-org-tag {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  color: #64748b !important;
  text-transform: uppercase !important;
}

/* Fluid rounded styling across general cards */
.raid-card, .article-card, .rule-card, .dossier-card, .pyr-dossier-card {
  border-radius: 22px !important;
}

