/* ==========================================================================
   AK STUDIOS - OFFICIAL FIVEM MARKETPLACE & CREATOR DESIGN SYSTEM
   Exact 1:1 Implementation of Reference Design Specification
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Core Theme Colors */
  --bg-primary: #040711;
  --bg-secondary: #080f1e;
  --bg-tertiary: #0e1628;
  --bg-card: rgba(8, 16, 32, 0.72);
  --bg-card-hover: rgba(12, 24, 48, 0.85);
  --bg-glass: rgba(6, 12, 26, 0.65);
  
  /* Electric Cyber Neon Colors (Reference Exact) */
  --cyan-primary: #00d4ff;
  --cyan-bright: #00f0ff;
  --cyan-glow: rgba(0, 212, 255, 0.5);
  --blue-electric: #0088ff;
  --blue-glow: rgba(0, 136, 255, 0.45);
  
  /* Vibrant Gold / Yellow Accents (Reference Exact) */
  --gold-primary: #ffb800;
  --gold-bright: #ffd700;
  --gold-glow: rgba(255, 184, 0, 0.5);
  --amber-primary: #f59e0b;
  
  /* Secondary System Colors */
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --crimson-primary: #f43f5e;
  --crimson-glow: rgba(244, 63, 94, 0.4);
  --purple-primary: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);

  /* Typography & Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --text-highlight: #ffffff;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 212, 255, 0.35);
  --border-gold: rgba(255, 184, 0, 0.4);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 25px rgba(0, 212, 255, 0.35);
  --shadow-glow-gold: 0 0 25px rgba(255, 184, 0, 0.35);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  /* Layout & Fonts (Dynamic Fluid Scaling) */
  --container-max: min(96vw, 1780px);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLING
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.45) rgba(4, 9, 22, 0.9);
}

/* Universal Cyberpunk Scrollbar Architecture — Zero Generic Browser Whitebars/Sliders */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: rgba(4, 9, 22, 0.95);
}

::-webkit-scrollbar-track {
  background: rgba(4, 9, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.5) 0%, rgba(0, 136, 255, 0.65) 100%);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: rgba(4, 9, 22, 0.95);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Cyber Subtle Dot Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Neon Glow Blobs */
.ambient-glow-1 {
  position: fixed;
  width: 700px;
  height: 700px;
  top: -150px;
  left: 15%;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  width: 600px;
  height: 600px;
  top: 10%;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-gold {
  position: fixed;
  width: 500px;
  height: 500px;
  bottom: 0px;
  left: 5%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Container (Dynamic Fluid Scaling Across Devices) */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(14px, 1.8vw, 32px);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-highlight);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Gradient & Glow Helpers */
.text-glow-cyan {
  color: var(--cyan-bright);
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.65);
}

.text-glow-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 184, 0, 0.5));
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, var(--purple-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-crimson {
  background: linear-gradient(135deg, #ffffff 0%, var(--crimson-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   TOP NAVIGATION BAR (1:1 with Reference)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-glow-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-duck-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-ak {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-studios {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.badge-marketplace-pill {
  background: var(--gold-primary);
  color: #040711;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  margin-left: 4px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  background: transparent;
}

.nav-link-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Active Storefront Tab (Dual Glowing Underline Pill) */
.nav-link-btn.active {
  color: #ffffff;
  background: rgba(12, 22, 42, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.25);
}

.nav-link-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 15%;
  width: 70%;
  height: 2.5px;
  background: linear-gradient(90deg, #00d4ff 0%, #ffb800 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px #ffb800;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

/* Dropdown Menu */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: rgba(8, 16, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 110;
}

.nav-dropdown-menu.open {
  display: flex;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.12);
}

.nav-dropdown-menu a i {
  width: 15px;
  height: 15px;
  color: var(--cyan-primary);
}

/* Staff Nav Pill */
.admin-nav-pill {
  border: 1px dashed rgba(244, 63, 94, 0.4) !important;
  background: rgba(244, 63, 94, 0.08) !important;
  color: #fff !important;
}

.admin-badge {
  background: var(--crimson-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* User Profile Pill */
/* User Profile Pill (Master Reference 1:1) */
.user-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 12, 28, 0.92);
  border: 1.5px solid #0088ff;
  border-radius: 9999px;
  padding: 5px 16px 5px 6px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.35), inset 0 0 12px rgba(0, 136, 255, 0.08);
}

.user-profile-pill:hover {
  border-color: #00d4ff;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.6), inset 0 0 15px rgba(0, 212, 255, 0.15);
  transform: translateY(-1px);
}

.user-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
  display: block;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  text-align: left;
}

.user-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.user-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-status-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.user-status-dot-indicator.green {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.user-status-dot-indicator.red {
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

.user-status-text {
  color: #00e676;
  font-size: 0.72rem;
  font-weight: 600;
}

.user-role-gold {
  color: #ffb800;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.user-pill-chevron {
  width: 13px;
  height: 13px;
  color: #7f9bbd;
  margin-left: 2px;
  transition: transform 0.2s;
}

.user-profile-pill:hover .user-pill-chevron {
  color: #ffffff;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.user-status {
  font-size: 0.72rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.green {
  background-color: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

.pulse-dot.red {
  background-color: var(--crimson-primary);
  box-shadow: 0 0 8px var(--crimson-primary);
}

/* ==========================================================================
   VIEW SWITCHER / MULTI-PAGE SYSTEM (PAGE-BY-PAGE ISOLATION)
   ========================================================================== */
.view-section {
  display: none !important;
}

.view-section.active-view {
  display: block !important;
  animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   HERO SHOWCASE CARD (1:1 with Reference)
   ========================================================================== */
.hero-showcase-card {
  position: relative;
  background: rgba(6, 12, 26, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  overflow: hidden;
  margin: 24px 0 32px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 136, 255, 0.15);
  border: 1.5px solid rgba(0, 212, 255, 0.3);
}

/* Asymmetric Glowing Border (Gold Top-Left, Blue Right/Bottom) */
.hero-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, #ffb800 0%, #ffd700 80%, transparent 100%);
  box-shadow: 0 0 16px #ffb800;
  z-index: 5;
}

.hero-showcase-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 40%;
  background: linear-gradient(180deg, #ffb800 0%, #ffd700 80%, transparent 100%);
  box-shadow: 0 0 16px #ffb800;
  z-index: 5;
}

/* Background Layer */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.32;
  filter: contrast(1.1) brightness(0.9);
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(4, 7, 17, 0.95) 0%, rgba(4, 7, 17, 0.75) 50%, rgba(4, 7, 17, 0.4) 100%);
}

/* Hero Inner Grid */
.hero-inner-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 44px 44px 36px 44px;
  align-items: center;
}

/* Left Hero Column */
.hero-left-column {
  display: flex;
  flex-direction: column;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 9, 22, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.hero-star-icon {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

.hero-main-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.14;
  color: #ffffff;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 530px;
  margin-bottom: 28px;
}

/* CTA Buttons */
.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0077ff 0%, #00d4ff 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.5);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.7);
  background: linear-gradient(135deg, #0088ff 0%, #00f0ff 100%);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 16, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(14, 24, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Stats Glass Bar (1:1 with Reference) */
.hero-stats-glass-bar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(4, 9, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 24px;
  margin-top: 36px;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-glass-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap.blue {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.stat-icon-wrap.gold {
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.stat-info-text {
  display: flex;
  flex-direction: column;
}

.stat-val-bold {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-lbl-cyan {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan-primary);
  letter-spacing: 0.05em;
}

.stat-lbl-gold {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.stat-glass-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   RIGHT HERO 3D HOLOGRAM STAGE & FLOATING CUBES
   ========================================================================== */
.hero-right-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-stage-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbiting Rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring-1 {
  width: 320px;
  height: 320px;
  border: 1.5px dashed rgba(0, 212, 255, 0.35);
  animation: rotateRing 25s linear infinite;
}

.orbit-ring-2 {
  width: 280px;
  height: 280px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transform: rotateX(65deg);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.orbit-ring-3 {
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(255, 184, 0, 0.2);
  transform: rotateY(70deg);
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Central Levitating & Dancing Duck Hologram */
.hologram-duck-center {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

/* Dancing Duck Circular Wrapper (Zero Square Box / Pure Glowing Hologram) */
.dancing-duck-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 212, 255, 0.85);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.9), inset 0 0 25px rgba(0, 212, 255, 0.6);
  background: #040814;
  overflow: hidden;
  animation: dancingDuckGroove 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  cursor: pointer;
  transition: transform 0.3s;
}

.dancing-duck-wrapper:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 0 50px rgba(0, 240, 255, 1), inset 0 0 30px rgba(0, 240, 255, 0.8);
}

.hologram-duck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.95)) drop-shadow(0 0 40px #00f0ff);
  animation: duckBodyTilt 1.2s ease-in-out infinite alternate;
}

.hologram-duck-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.45) 0%, rgba(0, 0, 0, 0) 75%);
  filter: blur(28px);
  z-index: -1;
  animation: pulseGlow 2.4s ease-in-out infinite;
}

/* Audio Beat Ripple Waves */
.hologram-beat-wave {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.6);
  pointer-events: none;
  animation: beatRipple 2.4s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 0.8s; border-color: rgba(255, 184, 0, 0.5); }
.wave-3 { animation-delay: 1.6s; border-color: rgba(0, 240, 255, 0.4); }

@keyframes beatRipple {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Holographic Floating Sparkles */
.holo-sparkle {
  position: absolute;
  color: #00f0ff;
  font-size: 15px;
  pointer-events: none;
  text-shadow: 0 0 10px #00f0ff;
  z-index: 5;
  animation: sparkleFloat 2.5s ease-in-out infinite;
}

.sparkle-1 { top: 12px; right: 24px; animation-delay: 0.2s; color: #ffd700; text-shadow: 0 0 12px #ffd700; }
.sparkle-2 { bottom: 20px; left: 20px; animation-delay: 0.9s; }
.sparkle-3 { top: 30px; left: 22px; font-size: 12px; animation-delay: 1.6s; color: #00d4ff; }

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0px) scale(0.8); opacity: 0.4; }
  50% { transform: translateY(-10px) scale(1.3); opacity: 1; }
}

/* Rhythmic Duck Dancing Animation */
@keyframes dancingDuckGroove {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1, 1);
  }
  20% {
    transform: translateY(-14px) rotate(-4.5deg) scale(0.96, 1.05);
  }
  40% {
    transform: translateY(2px) rotate(-1deg) scale(1.05, 0.95);
  }
  60% {
    transform: translateY(-14px) rotate(4.5deg) scale(0.96, 1.05);
  }
  80% {
    transform: translateY(2px) rotate(1deg) scale(1.05, 0.95);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1, 1);
  }
}

@keyframes duckBodyTilt {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.03) rotate(-2deg); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.95; }
}

/* Floating 3D Category Glass Cubes */
.floating-cube {
  position: absolute;
  width: 54px;
  height: 54px;
  background: rgba(8, 16, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.2);
  cursor: pointer;
  z-index: 6;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cube:hover {
  transform: scale(1.15) !important;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.6);
}

.cube-inner i {
  width: 24px;
  height: 24px;
}

/* Cube Positioning & Floating Animations */
.cube-top {
  top: 25px;
  left: 48%;
  transform: translateX(-50%);
  animation: floatCubeTop 5s ease-in-out infinite;
}

.cube-left {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  animation: floatCubeLeft 5.5s ease-in-out infinite 0.6s;
}

.cube-right {
  right: 25px;
  top: 36%;
  animation: floatCubeRight 4.8s ease-in-out infinite 1.2s;
}

.cube-bottom {
  right: 50px;
  bottom: 50px;
  animation: floatCubeBottom 5.2s ease-in-out infinite 1.8s;
}

@keyframes floatCubeTop {
  0%, 100% { transform: translate(-50%, 0px); }
  50% { transform: translate(-50%, -10px); }
}

@keyframes floatCubeLeft {
  0%, 100% { transform: translate(0px, -50%); }
  50% { transform: translate(-8px, -50%); }
}

@keyframes floatCubeRight {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatCubeBottom {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* 3D Pedestal Stage Base */
.pedestal-stage-base {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.pedestal-top-disc {
  width: 220px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.4) 0%, rgba(8, 16, 32, 0.9) 70%);
  border: 1.5px solid rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.pedestal-cylinder {
  width: 200px;
  height: 38px;
  background: linear-gradient(180deg, #0e1a34 0%, #050a14 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-top: none;
  border-radius: 0 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.pedestal-brand-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}

.pedestal-reflection {
  width: 180px;
  height: 15px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  filter: blur(8px);
  margin-top: 4px;
}

/* ==========================================================================
   CATEGORY FILTER & CONTROLS BAR (1:1 with Reference)
   ========================================================================== */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 16, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
}

.category-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(12, 22, 44, 0.85);
}

/* Active Category Pill (Gold Glowing Outline - Reference Exact) */
.category-pill.active {
  background: rgba(12, 20, 40, 0.95);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.45);
}

/* Right Controls (Search & Dropdowns) */
.search-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-pill-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 16, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  transition: var(--transition);
}

.search-pill-box:focus-within {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

.search-icon {
  color: var(--text-sub);
}

.search-pill-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  width: 140px;
  transition: width 0.2s;
}

.search-pill-input:focus {
  width: 180px;
}

.search-pill-input::placeholder {
  color: var(--text-sub);
}

.select-pill-wrap {
  position: relative;
  background: rgba(8, 16, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.select-pill-wrap:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.select-pill-dropdown {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px 8px 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.select-pill-dropdown option {
  background: #080f1e;
  color: #ffffff;
}

.dropdown-chevron {
  position: absolute;
  right: 12px;
  color: var(--text-sub);
  pointer-events: none;
}

/* ==========================================================================
   ASSETS GRID & PRODUCT CARDS
   ========================================================================== */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.asset-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}

.asset-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 212, 255, 0.2);
}

.asset-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #020408;
}

.asset-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.asset-card:hover .asset-card-img {
  transform: scale(1.05);
}

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 6px;
}

.badge-framework {
  background: rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.asset-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.asset-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.asset-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.asset-author-name {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 500;
}

.asset-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.asset-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
}

.asset-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.asset-price-box {
  display: flex;
  flex-direction: column;
}

.asset-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.asset-rating-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* Buttons */
button {
  font-family: inherit;
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0088ff 0%, #00d4ff 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.14) 0%, rgba(245, 158, 11, 0.22) 100%);
  color: #ffd700 !important;
  border: 1.5px solid rgba(255, 184, 0, 0.6);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.35);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gold i,
.btn-gold svg,
.btn-gold span {
  color: #ffd700 !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.28) 0%, rgba(245, 158, 11, 0.42) 100%);
  border-color: #ffd700;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.65);
  transform: translateY(-1px);
}

.btn-gold:hover i,
.btn-gold:hover svg,
.btn-gold:hover span {
  color: #ffffff !important;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.98rem;
  border-radius: 14px;
}

.btn-purple {
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-crimson {
  background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   PUBLIC ASSET UPLOADER & CREATOR STUDIO (1:1 with Reference Specification)
   ========================================================================== */
.uploader-container-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  margin: 24px 0 60px 0;
  align-items: start;
}

/* Left Main Upload Form Card (Asymmetric Glowing Border) */
.upload-main-card {
  position: relative;
  background: rgba(6, 12, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 32px 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 136, 255, 0.15);
  overflow: hidden;
}

.upload-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 4px;
  background: linear-gradient(90deg, #ffb800 0%, #ffd700 80%, transparent 100%);
  box-shadow: 0 0 16px #ffb800;
  border-radius: 28px 0 0 0;
  z-index: 2;
}

.upload-main-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 45%;
  background: linear-gradient(180deg, #ffb800 0%, #ffd700 80%, transparent 100%);
  box-shadow: 0 0 16px #ffb800;
  border-radius: 28px 0 0 0;
  z-index: 2;
}

.upload-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.upload-plus-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.12);
  flex-shrink: 0;
}

.upload-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.upload-main-subtext {
  font-size: 0.84rem;
  color: #8ea8c7;
  line-height: 1.4;
}

/* Form Layout & Field Controls */
.upload-form {
  display: flex;
  flex-direction: column;
}

.form-grid-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.title-version-row .form-group-flex-3 {
  flex: 3;
  min-width: 0;
}

.title-version-row .form-group-flex-1 {
  flex: 1;
  min-width: 0;
}

.form-group-half {
  flex: 1;
  min-width: 0;
}

.form-group-mb {
  margin-bottom: 16px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.field-label.mb-0 {
  margin-bottom: 0;
}

.label-icon-cyan {
  color: var(--cyan-primary);
  width: 15px;
  height: 15px;
}

.label-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.optional-pill-tag {
  font-size: 0.72rem;
  color: #728ca6;
  font-weight: 500;
}

.field-helper-text {
  font-size: 0.74rem;
  color: #627b97;
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

.cyber-input {
  width: 100%;
  background: rgba(3, 8, 20, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 11px 14px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

.cyber-input:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
  background: rgba(5, 12, 30, 0.95);
}

.cyber-input::placeholder {
  color: #4b627d;
}

/* Custom Cyber Select */
.cyber-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-leading-icon {
  position: absolute;
  left: 14px;
  color: var(--cyan-primary);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}

.cyber-select {
  width: 100%;
  background: rgba(3, 8, 20, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 11px 36px 11px 40px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.cyber-select:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
}

.cyber-select option {
  background: #060e20;
  color: #ffffff;
}

.select-trailing-chevron {
  position: absolute;
  right: 14px;
  color: #64748b;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* Pricing Glass Box (1:1 with Reference) */
.pricing-glass-box {
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.pricing-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-coin-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.3);
}

.pricing-box-heading {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}

.pricing-box-subheading {
  font-size: 0.75rem;
  color: #7f93ac;
}

/* Golden Toggle Switch */
.gold-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid var(--gold-primary);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  transition: var(--transition);
}

.gold-switch-wrap:hover {
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.35);
}

.gold-switch-checkbox {
  display: none;
}

.gold-switch-slider {
  width: 28px;
  height: 16px;
  background: rgba(255, 184, 0, 0.3);
  border-radius: 10px;
  position: relative;
  transition: 0.25s;
}

.gold-switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffb800;
  transition: 0.25s;
  box-shadow: 0 0 6px #ffb800;
}

.gold-switch-checkbox:checked + .gold-switch-slider {
  background: #ffb800;
}

.gold-switch-checkbox:checked + .gold-switch-slider::before {
  transform: translateX(12px);
  background: #ffffff;
}

.pricing-input-row {
  margin-top: 6px;
}

.price-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.price-currency-symbol {
  position: absolute;
  left: 16px;
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.price-input-field {
  width: 100%;
  background: rgba(2, 5, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px 10px 34px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  outline: none;
  font-family: var(--font-heading);
  transition: var(--transition);
}

.price-input-field:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.35);
}

/* Media & Live Preview Row */
.media-preview-container-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.media-inputs-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumb-input-btn-group {
  display: flex;
  gap: 10px;
}

.btn-thumb-upload-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.15);
  border: 1.5px solid var(--cyan-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn-thumb-upload-blue:hover {
  background: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
}

.thumb-preview-box-wrap {
  width: 140px;
  min-height: 140px;
  background: rgba(2, 5, 14, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.thumb-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-sub);
  text-align: center;
  padding: 10px;
}

.thumb-placeholder-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan-primary);
  opacity: 0.8;
  stroke-width: 1.5;
}

.thumb-placeholder-main {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8ea8c7;
}

.thumb-placeholder-dim {
  font-size: 0.68rem;
  color: #536982;
  font-family: var(--font-mono);
}

.live-thumbnail-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cyber Textarea */
.cyber-textarea {
  width: 100%;
  background: rgba(3, 8, 20, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.cyber-textarea:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
  background: rgba(5, 12, 30, 0.95);
}

.cyber-textarea.mono-box {
  font-family: var(--font-mono);
  height: 78px;
  font-size: 0.8rem;
  color: var(--cyan-bright);
}

.cyber-textarea.desc-box {
  height: 72px;
}

/* FiveM Resource Package ZIP Dropzone */
.zip-upload-dropzone {
  background: rgba(3, 8, 20, 0.8);
  border: 1.5px dashed rgba(0, 212, 255, 0.45);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.1);
}

.zip-upload-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.zip-file-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-choose-file-pill {
  display: inline-flex;
  cursor: pointer;
}

.choose-file-btn-text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.choose-file-btn-text:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.zip-file-status-text {
  font-size: 0.82rem;
  color: #7f93ac;
}

/* Publish Glow Button */
.btn-publish-glow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #0077ff 0%, #00d4ff 40%, #ffb800 80%, #ffd700 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 25px rgba(255, 184, 0, 0.4);
  transition: var(--transition);
  margin-top: 10px;
}

.btn-publish-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.85), 0 0 35px rgba(255, 184, 0, 0.65);
  filter: brightness(1.08);
}

/* ==========================================================================
   RIGHT COLUMN: 3 CYBER GUIDE CARDS (1:1 with Reference Specification)
   ========================================================================== */
.upload-guide-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-card {
  background: rgba(6, 12, 26, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-3px);
}

/* Card 1: Blue Neon */
.guide-card-blue {
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 212, 255, 0.2);
}

/* Card 2: Teal/Green Neon */
.guide-card-teal {
  border: 1.5px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.2);
}

/* Card 3: Purple Neon */
.guide-card-purple {
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2);
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-badge-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-badge-box.blue {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.guide-badge-box.teal {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.guide-badge-box.gold {
  background: rgba(255, 184, 0, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.guide-card-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
}

.text-glow-gold-inline {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow-cyan-inline {
  color: var(--cyan-bright);
  font-weight: 700;
}

.guide-corner-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.guide-corner-icon.blue { color: var(--cyan-primary); }
.guide-corner-icon.teal { color: #10b981; }
.guide-corner-icon.purple { color: #c084fc; }

.guide-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 16px;
}

.guide-card-desc code {
  color: var(--cyan-primary);
  background: rgba(0, 212, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.guide-card-body-split {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 14px;
  align-items: center;
}

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-checklist-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.check-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
}

.check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.check-item-row.cyan .check-icon { color: var(--cyan-primary); }
.check-item-row.green .check-icon { color: #10b981; }
.check-item-row.purple .check-icon { color: #c084fc; }

.guide-artwork-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Artwork 1: 3D Holographic Blue Folder */
.holo-folder-wrap {
  position: relative;
  width: 72px;
  height: 56px;
  perspective: 400px;
}

.holo-folder-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0055ff 0%, #00d4ff 100%);
  border-radius: 8px 8px 6px 6px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.holo-folder-front {
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 80px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.9) 0%, rgba(0, 90, 255, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.8);
  border-radius: 6px;
  transform: rotateX(-15deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.holo-folder-code {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #ffffff;
  font-size: 1.1rem;
  text-shadow: 0 0 10px #00f0ff;
}

/* Artwork 2: Framework Badges Cluster */
.framework-pills-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fw-pill-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.fw-pill-badge.qb {
  background: #0077ff;
  color: #fff;
  border: 1.5px solid #00d4ff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.fw-pill-badge.esx {
  background: #ffb800;
  color: #000;
  border: 1.5px solid #ffd700;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.6);
  font-size: 0.68rem;
}

.fw-pill-badge.folder {
  background: rgba(0, 240, 255, 0.2);
  color: var(--cyan-bright);
  border: 1.5px solid var(--cyan-bright);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Artwork 3: Holographic Laptop with Download Cloud */
.holo-laptop-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.laptop-screen {
  width: 68px;
  height: 44px;
  background: linear-gradient(135deg, #1e0b36 0%, #0c0418 100%);
  border: 1.5px solid #a855f7;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  position: relative;
}

.laptop-cloud-badge {
  color: #e879f9;
  filter: drop-shadow(0 0 8px #c084fc);
}

.laptop-base {
  width: 82px;
  height: 6px;
  background: linear-gradient(180deg, #6b21a8 0%, #3b0764 100%);
  border: 1px solid #c084fc;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.select-dropdown {
  background: #080f1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.lua-paste-box {
  width: 100%;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  color: #00d4ff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
}

.lua-paste-box:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

/* ==========================================================================
   ADMIN PORTAL (STAFF ONLY)
   ========================================================================== */
.admin-header-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(8, 16, 32, 0.95) 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 28px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ==========================================================================
   AK STUDIOS ADMIN CONTROL CENTER — MASTER DESIGN SYSTEM (1:1 REFERENCE)
   ========================================================================== */
.admin-control-center-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR: MASTER NAVIGATION & SYSTEM STATUS
   -------------------------------------------------------------------------- */
.admin-sidebar {
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 22px 18px;
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 212, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
  z-index: 10;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-badge-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.15);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.35);
  flex-shrink: 0;
}

.sidebar-header-icon {
  width: 20px;
  height: 20px;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-subtitle {
  font-size: 0.72rem;
  color: #7f9bbd;
  margin-top: 2px;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sidebar-nav .admin-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  background: transparent;
  border: 1.5px solid transparent;
  color: #8ea8c7;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
  white-space: nowrap;
}

.admin-sidebar-nav .admin-tab-btn i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.admin-sidebar-nav .admin-tab-btn:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateX(3px);
}

.admin-sidebar-nav .admin-tab-btn.active {
  background: linear-gradient(90deg, rgba(0, 136, 255, 0.22) 0%, rgba(0, 212, 255, 0.12) 100%);
  border: 1.5px solid #00d4ff;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35), inset 0 0 12px rgba(0, 212, 255, 0.1);
}

.admin-sidebar-status-card {
  background: rgba(5, 10, 24, 0.8);
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
}

.status-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.status-card-icon {
  color: var(--cyan-primary);
  width: 15px;
  height: 15px;
}

.status-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
}

.status-check-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-duck-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.sidebar-brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.sidebar-version-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
}

/* --------------------------------------------------------------------------
   RIGHT WORKSPACE & TABS
   -------------------------------------------------------------------------- */
.admin-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  min-width: 0;
}

.admin-tab-content {
  display: none;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-content.active-tab {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   OVERVIEW DASHBOARD: HERO BANNER (1:1 MASTER REFERENCE)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   OVERVIEW DASHBOARD: HERO BANNER (EXACT 1:1 MASTER REFERENCE)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   OVERVIEW DASHBOARD: HERO BANNER (1:1 MASTER REFERENCE, RAZOR-SHARP VECTOR)
   -------------------------------------------------------------------------- */
.admin-overview-hero-clean {
  position: relative;
  width: 100%;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 110, 255, 0.12) 0%, rgba(4, 9, 22, 0.98) 85%);
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.22), 0 0 25px rgba(255, 184, 0, 0.12);
  padding: 24px 30px;
  overflow: hidden;
  box-sizing: border-box;
}

.admin-overview-hero-clean::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff 0%, #0088ff 100%);
  box-shadow: 0 0 16px #00d4ff;
  border-radius: 20px 0 0 0;
  z-index: 2;
  pointer-events: none;
}

.admin-overview-hero-clean::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 3px;
  background: linear-gradient(270deg, #ffb800 0%, #ffd700 100%);
  box-shadow: 0 0 16px #ffb800;
  border-radius: 0 0 20px 0;
  z-index: 2;
  pointer-events: none;
}

.overview-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 220px;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Left Content */
.overview-hero-text {
  display: flex;
  flex-direction: column;
}

.overview-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(0, 212, 255, 0.12);
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  font-size: 0.70rem;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  width: fit-content;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}

.overview-hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.text-cyan-neon {
  color: #00f0ff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.text-gold-neon {
  color: #ffb800;
  text-shadow: 0 0 16px rgba(255, 184, 0, 0.7);
}

.overview-hero-desc {
  font-size: 0.85rem;
  color: #8ea8c7;
  line-height: 1.5;
  max-width: 380px;
}

/* Center 3D Shield Artwork */
.overview-hero-shield-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d-shield-feathered {
  width: 260px;
  height: auto;
  max-height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.55)) drop-shadow(0 0 20px rgba(255, 184, 0, 0.4));
  animation: heroShieldFloat 5s ease-in-out infinite;
  display: block;
}

@keyframes heroShieldFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
}

/* Right Server Widget & Quick Actions */
.overview-server-widget {
  background: rgba(6, 12, 26, 0.92);
  border: 1.5px solid rgba(0, 140, 255, 0.35);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 14px rgba(0, 140, 255, 0.08);
}

.server-time-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-clock-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #181914;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.clock-icon-inner-gold {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffb800;
  color: #121210;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.7);
}

.server-clock-icon {
  width: 14px;
  height: 14px;
  color: #121210;
  stroke-width: 2.5;
}

.server-time-details {
  display: flex;
  flex-direction: column;
}

.server-time-label {
  font-size: 0.68rem;
  color: #7f9bbd;
  font-weight: 600;
  line-height: 1.2;
}

.server-time-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.server-time-time {
  font-size: 0.80rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  font-family: var(--font-mono);
}

.overview-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-actions-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2px;
}

.btn-quick-scan-blue {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #0099ff 0%, #0077ee 100%);
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 150, 255, 0.55);
  transition: all 0.2s ease;
}

.btn-quick-scan-blue:hover {
  background: linear-gradient(180deg, #1ab0ff 0%, #0088ff 100%);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.85);
  transform: translateY(-1px);
}

.btn-quick-logs-gold {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 16, 12, 0.9);
  color: #ffffff;
  border: 1.5px solid #ffb800;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-quick-logs-gold i {
  color: #ffb800;
}

.btn-quick-logs-gold:hover {
  background: rgba(255, 184, 0, 0.15);
  border-color: #ffd700;
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.65);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   ROW 2: 5 KPI METRICS CARDS
   -------------------------------------------------------------------------- */
.admin-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.25fr;
  gap: 16px;
}

.admin-kpi-card-v2 {
  background: rgba(6, 12, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.admin-kpi-card-v2:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.25);
}

.kpi-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

.kpi-icon-blue {
  background: rgba(0, 136, 255, 0.12);
  border: 1.5px solid rgba(0, 136, 255, 0.35);
  color: #38bdf8;
}

.kpi-icon-crimson {
  background: rgba(244, 63, 94, 0.12);
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.kpi-icon-gold {
  background: rgba(255, 184, 0, 0.12);
  border: 1.5px solid rgba(255, 184, 0, 0.35);
  color: #ffb800;
}

.kpi-trend-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.kpi-trend-pill.trend-up {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.kpi-trend-pill.trend-down {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.kpi-content-wrap {
  display: flex;
  flex-direction: column;
}

.kpi-title-label {
  font-size: 0.78rem;
  color: #7f9bbd;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 4px 0 2px 0;
}

.kpi-sub-label {
  font-size: 0.75rem;
  color: #64748b;
}

/* System Health KPI Card */
.kpi-system-health-card {
  border-color: rgba(0, 212, 255, 0.3);
  padding: 14px 16px;
}

.health-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.health-title-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.health-icon-svg {
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.5));
}

.health-title-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-transform: none;
}

.health-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 9999px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.32);
  font-size: 0.72rem;
  color: #00e676;
  font-weight: 700;
  line-height: 1;
}

.health-live-tag .pulse-dot.green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
  display: inline-block;
}

.health-body-split {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.health-circle-gauge {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.health-circular-chart {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  background: transparent !important;
}

.health-circular-chart .circle-bg {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.08);
}

.health-circular-chart .circle-bar {
  fill: none !important;
  filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.45));
}

.health-percentage-svg {
  fill: #ffffff;
  font-family: var(--font-heading, "Inter", sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.health-legend-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.health-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.health-legend-item .legend-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676, inset 0 0 2px #ffffff;
  flex-shrink: 0;
}

.health-legend-item .legend-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   ROW 3: MIDDLE FEEDS GRID (RECENT DETECTIONS & LIVE WEBHOOK)
   -------------------------------------------------------------------------- */
.admin-feeds-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.admin-feed-card {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.detections-feed-card {
  border: 1.5px solid rgba(255, 184, 0, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 184, 0, 0.03);
}

.webhook-feed-card {
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 212, 255, 0.03);
}

.feed-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-icon-box.crimson {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.feed-icon-box.teal {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.feed-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.feed-subtitle {
  font-size: 0.76rem;
  color: #7f9bbd;
}

.btn-feed-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-feed-action:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan-primary);
  transform: translateX(2px);
}

.feed-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.feed-status-pill.green {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
}

/* Detections List Items */
.detections-table-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detection-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.detection-row-item:hover {
  background: rgba(8, 16, 36, 0.85);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(2px);
}

.detection-thumb {
  width: 44px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detection-info-col {
  flex: 1;
  min-width: 0;
}

.detection-asset-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detection-source-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #8ea8c7;
  margin-top: 2px;
}

.detection-timestamp {
  font-size: 0.75rem;
  color: #64748b;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.detection-tag-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tag-reupload {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.tag-public {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.tag-possible {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.45);
  color: #ffb800;
}

/* Webhook Events Feed */
.webhook-events-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.webhook-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.webhook-event-row:hover {
  background: rgba(8, 16, 36, 0.85);
  border-color: rgba(0, 212, 255, 0.3);
}

.event-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-icon-circle.red {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.event-icon-circle.crimson {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fb7185;
}

.event-icon-circle.blue {
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 136, 255, 0.4);
  color: #38bdf8;
}

.event-icon-circle.gold {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: #ffb800;
}

.event-icon-circle.purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.event-text-col {
  flex: 1;
  min-width: 0;
}

.event-primary-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

.event-secondary-sub {
  font-size: 0.74rem;
  color: #7f9bbd;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-timestamp {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ROW 4: 4 BOTTOM ACTION CARDS (1:1 MASTER REFERENCE)
   -------------------------------------------------------------------------- */
.admin-bottom-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-feature-card {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.admin-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 212, 255, 0.3);
}

.feature-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-badge-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-badge-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.feature-badge-box.crimson {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.feature-badge-box.blue {
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 136, 255, 0.4);
  color: #38bdf8;
}

.feature-badge-box.purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.feature-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.feature-card-desc {
  font-size: 0.75rem;
  color: #7f9bbd;
  line-height: 1.4;
}

.feature-card-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-stat-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-highlight-cyan {
  color: #00f0ff;
  font-family: var(--font-heading);
}

.stat-highlight-crimson {
  color: #f43f5e;
  font-family: var(--font-heading);
}

.stat-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.stat-status-dot.green {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.feature-artwork-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-cylinder-mini {
  width: 26px;
  height: 30px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.6) 0%, rgba(0, 136, 255, 0.2) 100%);
  border: 1.5px solid #00d4ff;
  border-radius: 50% / 10px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  position: relative;
}

.radar-mini-scope {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  background: radial-gradient(circle, #081a38 0%, #020610 100%);
  overflow: hidden;
}

.radar-mini-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform-origin: top left;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.7) 0%, transparent 70%);
  animation: radarSweep 3s linear infinite;
  border-radius: 100% 0 0 0;
}

.feature-holo-icon.cyan {
  width: 24px;
  height: 24px;
  color: var(--cyan-primary);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.feature-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.admin-feature-card:hover .feature-card-btn {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.35);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   REUSABLE ADMIN PANEL CARDS & TABLES (SUBTABS DESIGN SYSTEM)
   -------------------------------------------------------------------------- */
.admin-panel-card {
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-badge-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-badge-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.panel-badge-box.crimson {
  background: rgba(244, 63, 94, 0.15);
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  color: #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.25);
}

.panel-badge-box.blue {
  background: rgba(0, 136, 255, 0.15);
  border: 1.5px solid rgba(0, 136, 255, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.25);
}

.panel-badge-box.teal {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.panel-badge-box.gold {
  background: rgba(255, 184, 0, 0.15);
  border: 1.5px solid rgba(255, 184, 0, 0.45);
  color: #ffb800;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.25);
}

.panel-badge-box.purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
}

.panel-subtitle {
  font-size: 0.82rem;
  color: #8ea8c7;
  margin-top: 2px;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-data-table th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f9bbd;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #e2e8f0;
}

.admin-data-table tr:hover td {
  background: rgba(0, 212, 255, 0.04);
}

/* --------------------------------------------------------------------------
   NAVBAR: ADMIN PORTAL PILL & USER STATUS (MASTER REFERENCE)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   NAVBAR: ADMIN PORTAL PILL (1:1 MASTER REFERENCE)
   -------------------------------------------------------------------------- */
.admin-portal-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 14, 28, 0.95);
  border: 1.5px solid #ffb800;
  border-radius: 9999px;
  padding: 6px 16px 6px 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.35), inset 0 0 10px rgba(255, 184, 0, 0.1);
}

.admin-portal-nav-pill:hover,
.admin-portal-nav-pill.active {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.6), inset 0 0 14px rgba(255, 184, 0, 0.2);
  transform: translateY(-1px);
}

.admin-crown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
}

.admin-crown-icon {
  width: 22px;
  height: 22px;
  color: #ffd700;
  fill: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.8));
}

.admin-portal-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.admin-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-sub-row {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-badge-gold {
  background: #ffb800;
  color: #000000;
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-block;
}

/* Radar Scope Container Animation */
.radar-scope-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, #08162e 0%, #02050e 100%);
  border: 2px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25), inset 0 0 40px rgba(0, 212, 255, 0.2);
  overflow: hidden;
  margin: 10px 0;
}

.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.radar-circle-1 { width: 33%; height: 33%; }
.radar-circle-2 { width: 66%; height: 66%; }
.radar-circle-3 { width: 95%; height: 95%; }

.radar-crosshair-x {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 212, 255, 0.25);
}

.radar-crosshair-y {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 212, 255, 0.25);
}

.radar-sweep-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform-origin: top left;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.5) 0%, transparent 75%);
  animation: radarSweep 4s linear infinite;
  border-radius: 100% 0 0 0;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson-primary);
  box-shadow: 0 0 12px var(--crimson-primary);
  animation: pulseBlip 2s infinite;
}

@keyframes pulseBlip {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.4; }
}

/* Responsive Overrides (Smooth Dynamic Reflow for Laptops & Desktops) */
@media (max-width: 1200px) and (min-width: 960px) {
  .overview-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .overview-hero-shield-art {
    max-width: 180px;
  }
  .admin-metrics-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-bottom-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-feeds-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .admin-control-center-layout {
    grid-template-columns: clamp(190px, 16vw, 230px) minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .overview-hero-inner {
    grid-template-columns: 1fr;
  }
  .admin-metrics-row {
    grid-template-columns: 1fr;
  }
  .admin-bottom-cards-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes pulseBlip {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.4; }
}

/* ==========================================================================
   MODALS & OVERLAYS (1:1 with Reference Specifications)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

/* AK Studios Support Desk Modal Card (1:1 with Reference Specification) */
.support-modal-card {
  position: relative;
  width: 100%;
  max-width: 630px;
  background: rgba(6, 12, 28, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 28px;
  padding: 36px 36px 30px 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 212, 255, 0.25), 0 0 35px rgba(255, 184, 0, 0.2);
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Asymmetric Glowing Border: Cyan top/left, Gold bottom/right */
.support-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff 0%, #0088ff 100%);
  box-shadow: 0 0 16px #00d4ff;
  border-radius: 28px 0 0 0;
  z-index: 2;
}

.support-modal-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 4px;
  background: linear-gradient(270deg, #ffb800 0%, #ffd700 100%);
  box-shadow: 0 0 16px #ffb800;
  border-radius: 0 0 28px 0;
  z-index: 2;
}

.support-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 16, 36, 0.85);
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
  z-index: 10;
}

.support-close-btn:hover {
  background: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.7);
  transform: rotate(90deg) scale(1.08);
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.support-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.support-badge-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 184, 0, 0.12);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.5), inset 0 0 10px rgba(255, 184, 0, 0.25);
  flex-shrink: 0;
}

.support-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.support-title-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 184, 0, 0.45));
}

.support-subtitle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #8ea8c7;
  margin-top: 4px;
}

.support-clock-icon {
  color: var(--cyan-primary);
  width: 14px;
  height: 14px;
}

/* 3D Holographic Speech Bubble Artwork */
.support-header-artwork {
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-bubble-wrap {
  position: relative;
  width: 76px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-bubble-glow-ring {
  position: absolute;
  width: 72px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 184, 0, 0.65);
  transform: rotate(-18deg);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.6);
  pointer-events: none;
}

.holo-bubble-body {
  width: 52px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.88) 0%, rgba(0, 212, 255, 0.95) 100%);
  border: 1.5px solid #00f0ff;
  border-radius: 12px 12px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.85);
  position: relative;
  z-index: 2;
}

.holo-bubble-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

.holo-bubble-sub {
  position: absolute;
  top: 4px;
  right: -6px;
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  z-index: 3;
}

.support-sparkle {
  position: absolute;
  font-size: 12px;
  pointer-events: none;
  animation: sparkleFloat 2.5s infinite ease-in-out;
}

.support-sparkle.sparkle-1 { top: -2px; left: 10px; color: #00f0ff; text-shadow: 0 0 10px #00f0ff; }
.support-sparkle.sparkle-2 { bottom: -2px; right: 6px; color: #ffd700; text-shadow: 0 0 10px #ffd700; animation-delay: 0.8s; }
.support-sparkle.sparkle-3 { top: 14px; left: -10px; color: #00d4ff; font-size: 10px; animation-delay: 1.5s; }

.support-modal-description {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 16px 0 22px 0;
}

.support-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.support-action-card {
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.support-card-discord {
  background: rgba(4, 9, 24, 0.8);
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.support-card-discord:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}

.support-card-faq {
  background: rgba(4, 9, 24, 0.8);
  border: 1.5px solid rgba(255, 184, 0, 0.45);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.15);
}

.support-card-faq:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.35);
  transform: translateY(-2px);
}

.support-card-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-badge-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-badge-box.discord-blue {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.3) 0%, rgba(0, 212, 255, 0.25) 100%);
  border: 1.5px solid var(--cyan-primary);
  color: #00d4ff;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.action-badge-box.faq-gold {
  background: rgba(255, 184, 0, 0.15);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.4);
}

.support-action-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.support-action-sub {
  font-size: 0.78rem;
  color: #7f9bbd;
}

.btn-support-gradient-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #0088ff 0%, #00d4ff 45%, #ffb800 85%, #ffd700 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 15px rgba(255, 184, 0, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-support-gradient-pill:hover {
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.8), 0 0 22px rgba(255, 184, 0, 0.6);
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-support-gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 16, 32, 0.9);
  border: 1.5px solid var(--gold-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.25);
  transition: var(--transition);
}

.btn-support-gold-pill:hover {
  background: rgba(255, 184, 0, 0.15);
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.5);
  transform: translateY(-1px);
}

.btn-close-window-pill {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: rgba(12, 22, 42, 0.85);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.btn-close-window-pill:hover {
  background: rgba(18, 32, 60, 0.95);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   AK STUDIOS ACCOUNT CENTER MODAL (STRICT 1:1 REFERENCE)
   ========================================================================== */
.account-modal-card {
  position: relative;
  width: 100%;
  max-width: 610px;
  background: rgba(5, 10, 24, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 26px;
  padding: 28px 30px 24px 30px;
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 212, 255, 0.25), 0 0 40px rgba(255, 184, 0, 0.2);
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Asymmetric Glowing Border: Cyan top/left, Gold bottom/right */
.account-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 3.5px;
  background: linear-gradient(90deg, #00d4ff 0%, #0088ff 100%);
  box-shadow: 0 0 16px #00d4ff;
  border-radius: 26px 0 0 0;
  z-index: 2;
}

.account-modal-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 3.5px;
  background: linear-gradient(270deg, #ffb800 0%, #ffd700 100%);
  box-shadow: 0 0 16px #ffb800;
  border-radius: 0 0 26px 0;
  z-index: 2;
}

.account-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 16, 36, 0.85);
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
  z-index: 10;
}

.account-close-btn:hover {
  background: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.7);
  transform: rotate(90deg) scale(1.08);
}

.account-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.account-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.account-badge-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 102, 255, 0.15);
  border: 1.5px solid #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.2);
  flex-shrink: 0;
}

.account-header-icon {
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 8px #00d4ff);
}

.account-header-text {
  flex: 1;
}

.account-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.text-cyan-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
  font-weight: 800;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.4));
  font-weight: 800;
}

.account-modal-subtitle {
  font-size: 0.83rem;
  color: #8ea8c7;
  line-height: 1.45;
}

/* Upper Glass Box (Account Profile Card) */
.account-profile-box {
  background: rgba(5, 12, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.04);
}

.account-profile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.account-avatar-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  position: relative;
  background: linear-gradient(135deg, #00d4ff 0%, #0088ff 50%, #ffb800 100%);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.5), 0 0 14px rgba(255, 184, 0, 0.35);
}

.account-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #080f1e;
}

.account-status-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid #050c1c;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  transition: all 0.25s ease;
}

.account-status-indicator.red {
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
}

.account-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 150px;
}

.account-name-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.account-display-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.account-discriminator {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.account-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-id-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #7dd3fc;
}

.account-copy-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.account-copy-icon-btn:hover {
  color: var(--cyan-bright);
  transform: scale(1.15);
}

.account-role-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cyan-bright);
  width: fit-content;
  margin-top: 2px;
}

.account-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  color: #00e676;
}

.account-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.account-view-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(6, 14, 32, 0.85);
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.account-view-discord-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.account-inner-divider {
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 14px 0;
}

.account-membership-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.membership-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.membership-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.membership-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.membership-subtitle {
  font-size: 0.76rem;
  color: #7f9bbd;
}

.membership-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.membership-status-pill.not-in-server {
  background: rgba(244, 63, 94, 0.12);
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.membership-status-pill.in-server {
  background: rgba(0, 230, 118, 0.12);
  border: 1.5px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
}

/* Lower Glass Box (Roles & Simulation) */
.account-roles-box {
  background: rgba(5, 12, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 184, 0, 0.3);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 184, 0, 0.04);
}

.roles-section-header {
  margin-bottom: 10px;
}

.roles-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.roles-crown-icon {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.5));
}

.sim-grid-icon {
  color: var(--cyan-primary);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.roles-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.roles-subheading {
  font-size: 0.77rem;
  color: #7f9bbd;
}

.roles-badges-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.role-badge-pill.role-customer {
  background: rgba(0, 136, 255, 0.15);
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.role-badge-pill.role-locked {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(100, 116, 139, 0.3);
  color: #64748b;
}

.role-badge-pill.role-admin {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(255, 184, 0, 0.2) 100%);
  border: 1.5px solid var(--gold-primary);
  color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.35);
  font-weight: 700;
}

.role-badge-pill.role-staff {
  background: rgba(255, 184, 0, 0.15);
  border: 1.5px solid rgba(255, 184, 0, 0.45);
  color: #ffb800;
  font-weight: 700;
}

.role-badge-pill.role-creator {
  background: rgba(0, 212, 255, 0.15);
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  color: #00f0ff;
}

.role-badge-pill.role-dev {
  background: rgba(59, 130, 246, 0.15);
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

/* Simulation Profile Stack */
.account-sim-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.sim-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(5, 11, 26, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.sim-profile-card:hover {
  background: rgba(9, 18, 42, 0.9);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.sim-profile-card.active {
  background: rgba(0, 102, 255, 0.12);
  border: 1.5px solid #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35), inset 0 0 15px rgba(0, 212, 255, 0.1);
}

.sim-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-icon-admin {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan-bright);
}

.sim-icon-guest {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.sim-profile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.sim-profile-desc {
  font-size: 0.77rem;
  color: #7dd3fc;
  margin-top: 1px;
}

.sim-profile-card:not(.active) .sim-profile-desc {
  color: #64748b;
}

.sim-chevron-icon {
  color: var(--cyan-bright);
  transition: transform 0.2s ease;
}

.sim-profile-card:hover .sim-chevron-icon {
  transform: translateX(3px);
}

.modal-card {
  background: #080f1e;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.2);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  color: var(--crimson-primary);
}

.modal-header-banner {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, #080f1e 100%);
}

.modal-body {
  padding: 24px;
}

/* Video Showcase Box */
.video-showcase-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.video-showcase-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Code Terminal */
.code-terminal {
  background: #020408;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #00d4ff;
  overflow-x: auto;
}

/* Discord Rich Embed Simulator Card */
.discord-embed-card {
  background: #2b2d31;
  border-radius: 8px;
  border-left: 4px solid var(--crimson-primary);
  padding: 16px;
  font-family: 'Inter', sans-serif;
  color: #dbdee1;
  margin-top: 16px;
}

.discord-embed-header {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.discord-embed-field {
  margin-top: 10px;
}

.discord-field-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
}

.discord-field-value {
  font-size: 0.85rem;
  color: #dbdee1;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: rgba(8, 16, 32, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.success {
  border-color: var(--emerald-primary);
}

.toast-item.warn {
  border-color: var(--gold-primary);
}

.toast-item.error {
  border-color: var(--crimson-primary);
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 18, 0.95);
  padding: 32px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-sub);
}

/* ==========================================================================
   RESPONSIVE DESIGN (1440px, 1280px, 1024px, 768px, Mobile)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 28px;
  }
  
  .uploader-container-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-main-title {
    font-size: 2.5rem;
  }

  .hero-stats-glass-bar {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* ==========================================================================
   AK STUDIOS ADMIN: PROTECTED ASSETS MASTER PAGE STYLES (1:1 REFERENCE)
   ========================================================================== */

/* Top Row: Hero Banner & Registry Overview */
.pa-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  margin-bottom: clamp(12px, 1.3vw, 20px);
  width: 100%;
}

.pa-hero-card {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 20px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 212, 255, 0.05);
}

.pa-hero-content {
  flex: 1;
  z-index: 2;
  max-width: 480px;
}

.pa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.32);
  color: #00e676;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.pa-badge-icon {
  width: 13px;
  height: 13px;
}

.pa-hero-heading {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.pa-hero-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

.pa-hero-visual-wrap {
  flex-shrink: 0;
  width: 240px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.pa-hero-shield-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.35));
}

/* Registry Overview Card */
.pa-overview-card {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pa-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pa-overview-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.pa-overview-icon {
  width: 17px;
  height: 17px;
  color: #00f0ff;
}

.pa-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pa-metric-card {
  background: rgba(10, 18, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.pa-metric-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(12, 22, 46, 0.8);
}

.pa-metric-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa-metric-icon-box svg {
  width: 18px;
  height: 18px;
}

.pa-metric-icon-box.cyan {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.pa-metric-icon-box.blue {
  background: rgba(0, 136, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.pa-metric-icon-box.crimson {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.pa-metric-icon-box.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.pa-metric-body {
  display: flex;
  flex-direction: column;
}

.pa-metric-val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pa-metric-number {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.pa-trend-tag {
  font-size: 0.68rem;
  font-weight: 700;
}

.pa-trend-tag.up {
  color: #00e676;
}

.pa-trend-tag.down {
  color: #f43f5e;
}

.pa-metric-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

/* Row 2: Search + Filter Toolbar */
.pa-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pa-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.pa-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.pa-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #64748b;
  pointer-events: none;
}

.pa-search-input {
  width: 100%;
  height: 38px;
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 10px;
  padding: 0 12px 0 36px;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.pa-search-input:focus {
  border-color: #0088ff;
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.3);
}

.pa-select-wrapper {
  position: relative;
  display: inline-block;
}

.pa-filter-select {
  height: 38px;
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 30px 0 12px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pa-filter-select:hover, .pa-filter-select:focus {
  border-color: rgba(0, 212, 255, 0.35);
  color: #ffffff;
}

.pa-select-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

.pa-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pa-btn-refresh {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(10, 20, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pa-btn-refresh:hover {
  background: rgba(18, 32, 64, 0.95);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.3);
}

.pa-btn-refresh svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.pa-btn-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

.pa-btn-add-asset {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0088ff, #00d2ff);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 136, 255, 0.4);
  transition: all 0.2s ease;
}

.pa-btn-add-asset:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

.pa-btn-add-asset svg {
  width: 15px;
  height: 15px;
}

/* Row 3: Main Workspace Split (Table 66% + Inspector 34%) */
.pa-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: start;
  width: 100%;
}

.pa-registry-panel {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 0;
  overflow-x: auto;
}

.pa-table-header-row {
  display: grid;
  grid-template-columns: 32px 1.8fr 1fr 0.8fr 0.8fr 1fr 0.6fr 40px;
  align-items: center;
  padding: 8px 12px 10px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  min-width: 580px;
}

.pa-th {
  display: flex;
  align-items: center;
}

.pa-th-select, .pa-th-actions, .pa-th-leaks {
  justify-content: center;
}

/* Custom Checkbox */
.pa-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.pa-checkbox-wrap input {
  display: none;
}

.pa-checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(10, 20, 40, 0.8);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  display: inline-block;
  position: relative;
  transition: all 0.15s ease;
}

.pa-checkbox-wrap input:checked + .pa-checkbox-custom {
  background: #0088ff;
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.pa-checkbox-wrap input:checked + .pa-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Asset Rows */
.pa-asset-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 580px;
}

.pa-asset-row {
  display: grid;
  grid-template-columns: 32px 1.8fr 1fr 0.8fr 0.8fr 1fr 0.6fr 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 16, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.18s ease;
  cursor: pointer;
}

.pa-asset-row:hover {
  background: rgba(12, 24, 52, 0.75);
  border-color: rgba(0, 212, 255, 0.3);
}

.pa-asset-row.is-selected {
  background: rgba(10, 26, 60, 0.88);
  border-color: #0088ff;
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.25), inset 0 0 15px rgba(0, 136, 255, 0.08);
}

.pa-col-select, .pa-col-actions, .pa-col-leaks {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-col-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pa-row-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pa-row-name-wrap {
  display: flex;
  flex-direction: column;
}

.pa-row-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.25;
}

.pa-row-sub {
  font-size: 0.72rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Framework Badges */
.pa-badge-framework {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  width: fit-content;
}

.pa-badge-framework svg {
  width: 12px;
  height: 12px;
}

.pa-badge-framework.qbcore {
  background: rgba(0, 212, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.pa-badge-framework.standalone {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.pa-badge-framework.esx {
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.pa-row-version {
  color: #94a3b8;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pa-row-price {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.85rem;
}

/* Status Badges */
.pa-status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  width: fit-content;
}

.pa-status-capsule svg {
  width: 12px;
  height: 12px;
}

.pa-status-capsule.protected {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.32);
}

.pa-status-capsule.review {
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.32);
}

.pa-status-capsule.threat {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.32);
}

/* Leaks column */
.pa-leaks-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.pa-leaks-val.clean {
  color: #00e676;
}

.pa-leaks-val.danger {
  color: #f43f5e;
}

/* Row Action Button */
.pa-row-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pa-row-action-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.4);
}

.pa-row-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Selected Asset Inspector Panel */
.pa-inspector-panel {
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pa-insp-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pa-insp-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pa-insp-hero-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pa-insp-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.pa-insp-badge-row {
  margin: 2px 0;
}

.pa-insp-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pa-insp-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.pa-insp-btn-edit:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.4);
}

.pa-insp-btn-edit svg {
  width: 13px;
  height: 13px;
}

/* Inspector Tabs */
.pa-insp-nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.pa-insp-nav-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.pa-insp-nav-btn:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
}

.pa-insp-nav-btn.active {
  background: rgba(0, 136, 255, 0.2);
  border-color: rgba(0, 136, 255, 0.4);
  color: #ffffff;
  font-weight: 700;
}

/* Inspector Body */
.pa-insp-body {
  min-height: 240px;
}

.pa-insp-tab-content {
  display: none;
}

.pa-insp-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.pa-insp-sec-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.pa-insp-sec-heading svg {
  width: 15px;
  height: 15px;
}

.pa-insp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pa-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
}

.pa-meta-key {
  color: #64748b;
  font-weight: 500;
}

.pa-meta-val {
  font-weight: 600;
  text-align: right;
}

.pa-meta-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Timeline Feed in Activity tab */
.pa-timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa-timeline-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(10, 20, 40, 0.6);
  border-left: 2.5px solid #00f0ff;
  font-size: 0.74rem;
}

.pa-timeline-item.danger {
  border-left-color: #f43f5e;
}

.pa-timeline-time {
  color: #64748b;
  font-size: 0.68rem;
  margin-bottom: 2px;
}

.pa-timeline-text {
  color: #cbd5e1;
}

/* Actions Tab Tiles */
.pa-actions-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa-action-tile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  width: 100%;
}

.pa-action-tile-btn:hover {
  background: rgba(14, 28, 56, 0.9);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}

.pa-action-tile-btn.danger:hover {
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(30, 10, 20, 0.8);
}

.pa-tile-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa-tile-icon-box svg {
  width: 15px;
  height: 15px;
}

.pa-tile-icon-box.cyan {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
}

.pa-tile-icon-box.gold {
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
}

.pa-tile-icon-box.crimson {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

.pa-tile-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
}

.pa-tile-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.3;
}

.pa-sub-action-row {
  margin-top: 12px;
}

.pa-btn-sub-action {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pa-btn-sub-action:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.3);
}

/* Inspector Bottom Action Footer */
.pa-insp-footer-bar {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pa-btn-footer-viewlogs {
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pa-btn-footer-viewlogs:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.35);
}

.pa-btn-footer-viewlogs svg {
  width: 14px;
  height: 14px;
}

.pa-btn-footer-runscan {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0088ff, #00d2ff);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.45);
  transition: all 0.18s ease;
}

.pa-btn-footer-runscan:hover {
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.65);
  transform: translateY(-1px);
}

.pa-btn-footer-runscan svg {
  width: 14px;
  height: 14px;
}

/* Manage Dropdown */
.pa-manage-dropdown-wrap {
  position: relative;
}

.pa-btn-footer-manage {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pa-btn-footer-manage:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.35);
}

.pa-btn-footer-manage svg {
  width: 13px;
  height: 13px;
}

.pa-manage-menu {
  position: absolute;
  bottom: 44px;
  right: 0;
  width: 190px;
  background: rgba(8, 16, 36, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.pa-manage-menu.show {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.pa-manage-item {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.pa-manage-item:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #ffffff;
}

.pa-manage-item.danger {
  color: #f43f5e;
}

.pa-manage-item.danger:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #ff4d6d;
}

.pa-manage-item svg {
  width: 14px;
  height: 14px;
}

/* Modal Window */
.pa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.pa-modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.pa-modal-window {
  width: 100%;
  max-width: 580px;
  background: rgba(8, 16, 36, 0.95);
  backdrop-filter: blur(24px);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 212, 255, 0.15);
  overflow: hidden;
}

.pa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pa-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pa-modal-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.pa-modal-desc {
  font-size: 0.74rem;
  color: #64748b;
}

.pa-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.pa-modal-close-btn:hover {
  color: #ffffff;
}

.pa-modal-form {
  padding: 20px 24px;
}

.pa-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pa-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pa-form-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
}

.pa-form-input, .pa-form-select {
  height: 38px;
  background: rgba(10, 20, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.pa-form-input:focus, .pa-form-select:focus {
  border-color: #0088ff;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.25);
}

.pa-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pa-btn-modal-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pa-btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pa-btn-modal-submit {
  padding: 8px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0088ff, #00d2ff);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.4);
  transition: all 0.15s ease;
}

.pa-btn-modal-submit:hover {
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.6);
}

/* ==========================================================================
   LEAK SCANNER & FORENSICS DESIGN SYSTEM (1:1 MASTER REFERENCE)
   ========================================================================== */

/* Top Row: Hero Banner + Scanner Overview Grid */
.ls-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  margin-bottom: clamp(12px, 1.3vw, 20px);
  width: 100%;
}

/* Left Hero Card */
.ls-hero-card {
  position: relative;
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 212, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  min-height: 180px;
}

.ls-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
}

.ls-hero-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.ls-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00f0ff;
  margin-bottom: 10px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.ls-badge-icon {
  width: 13px;
  height: 13px;
}

.ls-hero-heading {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.ls-hero-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 400px;
}

.ls-hero-visual-wrap {
  position: relative;
  width: 250px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.35));
}

/* Right Overview Card */
.ls-overview-card {
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 212, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ls-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ls-overview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.ls-overview-icon {
  width: 16px;
  height: 16px;
  color: #00d2ff;
}

.ls-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ls-metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.ls-metric-card:hover {
  background: rgba(14, 28, 56, 0.85);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.ls-metric-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-metric-icon-box svg {
  width: 18px;
  height: 18px;
}

.ls-metric-icon-box.blue {
  background: rgba(0, 136, 255, 0.15);
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.ls-metric-icon-box.crimson {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.ls-metric-icon-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.ls-metric-icon-box.teal {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.ls-metric-icon-box.gold {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.ls-metric-body {
  display: flex;
  flex-direction: column;
}

.ls-metric-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.ls-metric-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

/* Row 2: Secondary Workspace Navigation Tabs & Action Controls */
.ls-nav-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ls-workspace-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ls-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ls-tab-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.ls-tab-btn:hover {
  background: rgba(14, 28, 56, 0.9);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.3);
}

.ls-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.85), rgba(0, 212, 255, 0.9));
  color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.4);
}

.ls-tab-btn.active svg {
  opacity: 1;
  color: #ffffff;
}

.ls-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-start-scan-dropdown-wrap {
  position: relative;
}

.ls-btn-start-scan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0088ff, #00d2ff);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.4);
  transition: all 0.18s ease;
}

.ls-btn-start-scan:hover {
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
}

.ls-btn-start-scan svg {
  width: 15px;
  height: 15px;
}

.ls-chevron-sm {
  width: 13px !important;
  height: 13px !important;
  margin-left: 2px;
}

.ls-scan-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: rgba(8, 16, 36, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.ls-scan-menu.show {
  display: flex;
}

.ls-scan-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.ls-scan-menu-item:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #ffffff;
}

.ls-scan-menu-item svg {
  width: 16px;
  height: 16px;
  color: #00d2ff;
  margin-top: 2px;
  flex-shrink: 0;
}

.ls-scan-menu-item strong {
  display: block;
  font-size: 0.78rem;
  color: #ffffff;
}

.ls-scan-menu-item span {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 1px;
}

.ls-btn-settings {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(10, 20, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ls-btn-settings:hover {
  background: rgba(14, 28, 56, 0.9);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.35);
}

.ls-btn-settings svg {
  width: 15px;
  height: 15px;
  color: #94a3b8;
}

/* Row 3: Live Scanner KPIs (4 glass cards) */
.ls-live-kpis-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.ls-live-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.ls-live-kpi-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}

.ls-kpi-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-kpi-icon-box svg {
  width: 20px;
  height: 20px;
}

.ls-kpi-icon-box.blue {
  background: rgba(0, 136, 255, 0.12);
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.25);
}

.ls-kpi-icon-box.crimson {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.ls-kpi-icon-box.gold {
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.ls-kpi-icon-box.cyan {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.ls-kpi-content {
  display: flex;
  flex-direction: column;
}

.ls-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ls-kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-family: var(--font-heading);
}

.ls-kpi-trend {
  font-size: 0.68rem;
  font-weight: 700;
}

.ls-kpi-trend.crimson {
  color: #f43f5e;
}

.ls-kpi-trend.gold {
  color: #ffb800;
}

.ls-kpi-trend.green {
  color: #00e676;
}

.ls-kpi-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 3px;
}

/* Row 4: Main Workspace Split (Table 66% + Inspector 34%) */
.ls-workspace-split {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.05fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: start;
  width: 100%;
}

/* Left: Detections Panel */
.ls-detections-panel {
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: clamp(12px, 1.4vw, 20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
}

.ls-det-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ls-det-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-det-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-det-icon-box.crimson {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.ls-det-icon-box svg {
  width: 18px;
  height: 18px;
}

.ls-det-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.ls-det-subtitle {
  font-size: 0.72rem;
  color: #64748b;
}

.ls-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ls-btn-view-all:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #00f0ff;
  border-color: rgba(0, 212, 255, 0.3);
}

.ls-btn-view-all svg {
  width: 13px;
  height: 13px;
}

/* Filter Toolbar */
.ls-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ls-search-wrap {
  position: relative;
  flex: 1.5;
  min-width: 160px;
}

.ls-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

.ls-search-input {
  width: 100%;
  height: 36px;
  background: rgba(10, 20, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 0 12px 0 34px;
  color: #ffffff;
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.ls-search-input:focus {
  border-color: #0088ff;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.25);
}

.ls-select-wrap {
  position: relative;
  flex: 1;
  min-width: 110px;
}

.ls-filter-select {
  width: 100%;
  height: 36px;
  background: rgba(10, 20, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 0 28px 0 12px;
  color: #ffffff;
  font-size: 0.75rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ls-filter-select:focus {
  border-color: #0088ff;
}

.ls-select-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: #64748b;
  pointer-events: none;
}

/* Detection Table */
.ls-table-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.9fr 0.9fr 0.8fr 1fr 0.5fr;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 20, 42, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-width: 560px;
}

.ls-th {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
}

.ls-table-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 560px;
}

.ls-detection-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.9fr 0.9fr 0.8fr 1fr 0.5fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 20, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.ls-detection-row:hover {
  background: rgba(14, 28, 56, 0.85);
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}

.ls-detection-row.is-selected {
  background: rgba(12, 26, 56, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.ls-detection-row.is-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
}

/* Row Columns */
.ls-col-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ls-row-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ls-row-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ls-row-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-row-sub {
  font-size: 0.68rem;
  color: #64748b;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-col-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #cbd5e1;
  min-width: 0;
}

.ls-col-source svg {
  width: 13px;
  height: 13px;
  color: #00d2ff;
  flex-shrink: 0;
}

.ls-col-detected {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Detection Type Badge */
.ls-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  width: fit-content;
}

.ls-type-pill.full-files {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.ls-type-pill.decrypted {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.ls-type-pill.partial {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.35);
}

.ls-type-pill.config {
  background: rgba(0, 136, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 136, 255, 0.35);
}

.ls-type-pill.reupload {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.ls-col-confidence {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

/* Status Pill */
.ls-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  width: fit-content;
}

.ls-status-pill.confirmed {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.ls-status-pill.review {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.ls-status-pill.new {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.ls-col-actions {
  display: flex;
  justify-content: flex-end;
}

.ls-row-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ls-row-action-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.4);
}

.ls-row-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Pagination Row */
.ls-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ls-pagination-info {
  font-size: 0.72rem;
  color: #64748b;
}

.ls-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ls-page-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ls-page-btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.15);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.35);
}

.ls-page-btn.active {
  background: #0088ff;
  border-color: #00d2ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
}

.ls-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ls-page-dots {
  color: #64748b;
  padding: 0 4px;
  font-size: 0.72rem;
}

/* Right: Detection Details Inspector Panel */
.ls-inspector-panel {
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ls-insp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ls-insp-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.ls-insp-icon {
  width: 16px;
  height: 16px;
  color: #00d2ff;
}

.ls-insp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.ls-insp-status-badge.confirmed {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.ls-insp-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ls-insp-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ls-insp-hero-meta {
  display: flex;
  flex-direction: column;
}

.ls-insp-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.ls-insp-sub {
  font-size: 0.7rem;
  color: #64748b;
  font-family: monospace;
}

/* Inspector Key-Value Metadata */
.ls-insp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
}

.ls-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
}

.ls-meta-key {
  color: #94a3b8;
  font-weight: 500;
}

.ls-meta-val {
  color: #cbd5e1;
  text-align: right;
}

.ls-meta-source-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ls-source-icon {
  width: 14px;
  height: 14px;
}

.ls-btn-view-src {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 136, 255, 0.18);
  border: 1px solid rgba(0, 136, 255, 0.35);
  color: #38bdf8;
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ls-btn-view-src:hover {
  background: rgba(0, 136, 255, 0.3);
  color: #ffffff;
}

.ls-code-token {
  font-family: monospace;
  font-size: 0.68rem;
  color: #38bdf8;
  background: rgba(0, 136, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 136, 255, 0.2);
}

/* Inspector Subtabs Navigation */
.ls-insp-tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
  margin-top: 4px;
}

.ls-insp-nav-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ls-insp-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.ls-insp-nav-btn.active {
  color: #00d2ff;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: inset 0 -2px 0 #00d2ff;
}

/* Inspector Content Area */
.ls-insp-content-area {
  min-height: 100px;
}

.ls-insp-subtab-pane {
  display: none;
}

.ls-insp-subtab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.ls-insp-sec-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ls-insp-summary-text {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #94a3b8;
  background: rgba(10, 20, 42, 0.5);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Discovered Files List */
.ls-files-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.ls-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
}

.ls-file-name {
  color: #cbd5e1;
  font-family: monospace;
}

.ls-file-badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.ls-file-badge.matched {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.ls-file-badge.clean {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}

/* Forensic Signals List */
.ls-signals-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ls-signal-card {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ls-signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.ls-signal-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.ls-signal-match {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f43f5e;
}

.ls-signal-desc {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.3;
}

/* Enforcement Buttons */
.ls-enforce-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ls-enforce-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.ls-enforce-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ls-enforce-btn strong {
  display: block;
  font-size: 0.74rem;
  color: #ffffff;
}

.ls-enforce-btn span {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
}

.ls-enforce-btn.crimson {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}

.ls-enforce-btn.crimson:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.45);
}

.ls-enforce-btn.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.ls-enforce-btn.purple:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
}

.ls-enforce-btn.blue {
  background: rgba(0, 136, 255, 0.1);
  border-color: rgba(0, 136, 255, 0.25);
  color: #38bdf8;
}

.ls-enforce-btn.blue:hover {
  background: rgba(0, 136, 255, 0.2);
  border-color: rgba(0, 136, 255, 0.45);
}

/* Inspector Bottom Footer Bar */
.ls-insp-footer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ls-btn-footer-blacklist {
  flex: 1.2;
  height: 36px;
  border-radius: 9px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ls-btn-footer-blacklist:hover {
  background: rgba(244, 63, 94, 0.25);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.ls-btn-footer-blacklist svg {
  width: 14px;
  height: 14px;
}

.ls-btn-footer-files {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0088ff, #00d2ff);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 136, 255, 0.4);
  transition: all 0.15s ease;
}

.ls-btn-footer-files:hover {
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
}

.ls-btn-footer-files svg {
  width: 14px;
  height: 14px;
}

.ls-btn-footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(10, 20, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ls-btn-footer-icon:hover {
  background: rgba(14, 28, 56, 0.9);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.35);
}

.ls-btn-footer-icon svg {
  width: 15px;
  height: 15px;
}

.ls-footer-dropdown-wrap {
  position: relative;
}

.ls-footer-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  width: 200px;
  background: rgba(8, 16, 36, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
}

.ls-footer-menu.show {
  display: flex;
}

.ls-footer-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.ls-footer-menu-item:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #ffffff;
}

.ls-footer-menu-item.danger {
  color: #f43f5e;
}

.ls-footer-menu-item.danger:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #ff4d6d;
}

.ls-footer-menu-item svg {
  width: 14px;
  height: 14px;
}

/* Other Workspace Views */
.ls-view-section {
  display: none;
}

.ls-view-section.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Scan Type Toggle Button */
.ls-scan-type-toggle {
  display: flex;
  gap: 8px;
  background: rgba(10, 20, 42, 0.7);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ls-type-toggle-btn {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ls-type-toggle-btn.active {
  background: rgba(0, 136, 255, 0.25);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

/* Monitored Sources Grid */
.ls-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ls-source-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.ls-source-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.ls-source-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ls-source-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.ls-source-card-title svg {
  width: 16px;
  height: 16px;
  color: #00d2ff;
}

.ls-source-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Forensics Split */
.ls-forensics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   DYNAMIC FLUID SCALING & ASPECT RATIO ARCHITECTURE (ALL RESOLUTIONS & DEVICES)
   ========================================================================== */

/* Expand main & navbar containers dynamically for Admin Control Center */
body.admin-mode .container,
body.admin-mode .navbar .container,
body.admin-mode main.container,
main.container:has(#view-admin.active-view),
#view-admin.active-view {
  max-width: min(97vw, 1840px);
  width: 100%;
  padding-left: clamp(12px, 1.8vw, 32px);
  padding-right: clamp(12px, 1.8vw, 32px);
  box-sizing: border-box;
}

/* Fluid Admin Control Center Layout Grid */
.admin-control-center-layout {
  display: grid;
  grid-template-columns: clamp(200px, 15vw, 260px) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  align-items: start;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.admin-sidebar {
  padding: clamp(14px, 1.3vw, 22px) clamp(12px, 1.1vw, 18px);
  border-radius: clamp(16px, 1.4vw, 24px);
  box-sizing: border-box;
  min-width: 0;
}

.admin-sidebar-nav .admin-tab-btn {
  padding: clamp(8px, 0.9vw, 11px) clamp(10px, 1.1vw, 16px);
  font-size: clamp(0.76rem, 0.8vw, 0.85rem);
}

.admin-workspace {
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   WEBHOOKS & ALERTS: 1:1 MASTER DESIGN SYSTEM DYNAMIC SCALING
   ========================================================================== */
.wh-page-container {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

/* Top Row: Hero (~64.5%) + Notification Overview (~35.5%) Side-by-Side */
.wh-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: stretch;
  width: 100%;
}

/* Hero Card (Dynamically Scaling Content & Graphic) */
.wh-hero-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.95) 0%, rgba(6, 12, 28, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05);
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(16px, 1.8vw, 26px) clamp(18px, 2vw, 30px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 24px);
  min-height: clamp(160px, 15vw, 205px);
  box-sizing: border-box;
}

.wh-hero-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.wh-hero-content {
  flex: 1 1 0%;
  min-width: 0;
  z-index: 2;
}

.wh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px clamp(8px, 0.9vw, 12px);
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-size: clamp(0.65rem, 0.72vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 0.8vw, 12px);
}

.wh-hero-badge svg {
  width: clamp(11px, 1vw, 13px);
  height: clamp(11px, 1vw, 13px);
}

.wh-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.95vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(6px, 0.8vw, 10px) 0;
}

.wh-glow-gradient {
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.4));
}

.wh-hero-desc {
  font-size: clamp(0.74rem, 0.82vw, 0.84rem);
  line-height: 1.52;
  color: #94a3b8;
  margin: 0;
}

.wh-hero-graphic-wrap {
  position: relative;
  flex: 0 0 clamp(130px, 17vw, 270px);
  height: auto;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.wh-hero-graphic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.35));
}

/* Notification Overview Card (Right Side of Top Row) */
.wh-overview-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.9) 0%, rgba(6, 12, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(14px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  min-width: 0;
}

.wh-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.wh-overview-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: clamp(0.85rem, 0.95vw, 0.96rem);
  color: #ffffff;
}

.wh-cyan-icon {
  color: #00f0ff;
  width: clamp(15px, 1.2vw, 17px);
  height: clamp(15px, 1.2vw, 17px);
}

.wh-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px clamp(7px, 0.8vw, 10px);
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  font-weight: 700;
}

.wh-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 1.5s infinite;
}

.wh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 12px);
}

.wh-kpi-card {
  background: rgba(12, 22, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(8px, 1vw, 14px) clamp(10px, 1.1vw, 16px);
  transition: all 0.2s ease;
  min-width: 0;
}

.wh-kpi-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(16, 28, 56, 0.75);
}

.wh-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(6px, 0.8vw, 10px);
}

.wh-kpi-icon-box {
  width: clamp(28px, 2.3vw, 34px);
  height: clamp(28px, 2.3vw, 34px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-kpi-icon-box.blue {
  background: rgba(0, 136, 255, 0.15);
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.wh-kpi-icon-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.wh-kpi-icon-box.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.wh-kpi-icon-box.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wh-kpi-icon-box svg {
  width: clamp(14px, 1.2vw, 17px);
  height: clamp(14px, 1.2vw, 17px);
}

.wh-kpi-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: clamp(0.64rem, 0.7vw, 0.7rem);
  font-weight: 700;
  padding: 2px clamp(5px, 0.6vw, 7px);
  border-radius: 12px;
}

.wh-kpi-trend-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wh-kpi-val {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 3px;
}

.wh-kpi-label {
  font-size: clamp(0.66rem, 0.74vw, 0.75rem);
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary Navigation Tabs */
.wh-subtabs-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.wh-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: clamp(6px, 0.65vw, 8px) clamp(12px, 1.2vw, 18px);
  border-radius: 24px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: clamp(0.74rem, 0.8vw, 0.82rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wh-subtab-btn:hover {
  background: rgba(16, 28, 56, 0.85);
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.25);
}

.wh-subtab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  font-weight: 700;
}

.wh-subtab-btn svg {
  width: clamp(13px, 1.1vw, 15px);
  height: clamp(13px, 1.1vw, 15px);
}

/* Main Split Workspace (~64.5% Left / ~35.5% Right) */
.wh-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: start;
  width: 100%;
}

.wh-col-left {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  min-width: 0;
}

.wh-col-right {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  min-width: 0;
}

/* Panel Card */
.wh-panel-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.9) 0%, rgba(6, 12, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(14px, 1.6vw, 22px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  min-width: 0;
}

.wh-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1.2vw, 16px);
  gap: 10px;
}

.wh-panel-header-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  min-width: 0;
}

.wh-panel-icon-box {
  width: clamp(30px, 2.5vw, 36px);
  height: clamp(30px, 2.5vw, 36px);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-panel-icon-box.teal {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.wh-panel-icon-box svg {
  width: clamp(15px, 1.3vw, 18px);
  height: clamp(15px, 1.3vw, 18px);
}

.wh-panel-title {
  font-size: clamp(0.92rem, 1.05vw, 1.06rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-panel-subtitle {
  font-size: clamp(0.7rem, 0.76vw, 0.78rem);
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Primary Add Webhook Button */
.wh-btn-add-webhook {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(6px, 0.6vw, 8px) clamp(10px, 1vw, 16px);
  border-radius: 8px;
  background: linear-gradient(135deg, #0088ff 0%, #0066cc 100%);
  border: 1px solid rgba(0, 136, 255, 0.6);
  color: #ffffff;
  font-size: clamp(0.74rem, 0.8vw, 0.82rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(0, 136, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.wh-btn-add-webhook:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.55);
}

.wh-btn-add-webhook svg {
  width: clamp(13px, 1vw, 15px);
  height: clamp(13px, 1vw, 15px);
}

/* Controls Bar (Search + Filters) */
.wh-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: clamp(10px, 1.2vw, 16px);
  flex-wrap: wrap;
}

.wh-search-box {
  position: relative;
  flex: 1 1 180px;
  min-width: 140px;
}

.wh-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

.wh-search-input {
  width: 100%;
  padding: clamp(6px, 0.6vw, 8px) 12px clamp(6px, 0.6vw, 8px) 32px;
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: clamp(0.74rem, 0.8vw, 0.82rem);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.wh-search-input:focus {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.wh-filters-group {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  flex-wrap: wrap;
}

.wh-select-wrap {
  position: relative;
}

.wh-filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding: clamp(6px, 0.6vw, 8px) 28px clamp(6px, 0.6vw, 8px) 10px;
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: clamp(0.72rem, 0.78vw, 0.8rem);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.wh-filter-select:focus {
  border-color: rgba(0, 240, 255, 0.4);
}

.wh-select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: #64748b;
  pointer-events: none;
}

/* Webhooks Table */
.wh-table-wrap {
  overflow-x: auto;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  -webkit-overflow-scrolling: touch;
}

.wh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.72rem, 0.78vw, 0.8rem);
  table-layout: fixed;
}

.wh-table th {
  padding: clamp(8px, 0.9vw, 12px) clamp(8px, 1vw, 14px);
  text-align: left;
  font-size: clamp(0.62rem, 0.68vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 12, 28, 0.4);
  white-space: nowrap;
  box-sizing: border-box;
}

.wh-table td {
  padding: clamp(8px, 0.9vw, 12px) clamp(8px, 1vw, 14px);
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.wh-table tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

.wh-name-cell {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  min-width: 0;
}

.wh-row-icon-box {
  width: clamp(26px, 2.2vw, 32px);
  height: clamp(26px, 2.2vw, 32px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-row-icon-box.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wh-row-icon-box.crimson {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wh-row-icon-box.blue {
  background: rgba(0, 136, 255, 0.15);
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.wh-row-icon-box.teal {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.wh-row-icon-box svg {
  width: clamp(13px, 1.1vw, 16px);
  height: clamp(13px, 1.1vw, 16px);
}

.wh-row-title {
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(0.74rem, 0.82vw, 0.84rem);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-row-desc {
  font-size: clamp(0.64rem, 0.7vw, 0.72rem);
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-server-cell {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 8px);
  min-width: 0;
}

.wh-discord-icon-badge {
  width: clamp(20px, 1.8vw, 24px);
  height: clamp(20px, 1.8vw, 24px);
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.2);
  color: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-discord-icon-badge svg {
  width: clamp(12px, 1vw, 14px);
  height: clamp(12px, 1vw, 14px);
}

.wh-server-name {
  font-weight: 600;
  color: #cbd5e1;
  font-size: clamp(0.72rem, 0.78vw, 0.8rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-channel-name {
  font-size: clamp(0.64rem, 0.7vw, 0.72rem);
  color: #64748b;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-event-tags-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.wh-event-tag {
  font-size: clamp(0.6rem, 0.66vw, 0.68rem);
  font-weight: 700;
  padding: 2px clamp(4px, 0.5vw, 7px);
  border-radius: 6px;
  white-space: nowrap;
}

.wh-event-tag.crimson {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wh-event-tag.blue {
  background: rgba(0, 136, 255, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.wh-event-tag.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.wh-event-tag.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wh-event-tag.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.wh-event-tag.count {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wh-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px clamp(6px, 0.7vw, 9px);
  border-radius: 12px;
  font-size: clamp(0.64rem, 0.7vw, 0.72rem);
  font-weight: 700;
  white-space: nowrap;
}

.wh-status-badge.active {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wh-status-badge.disabled {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.wh-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.wh-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.wh-icon-btn {
  width: clamp(24px, 2vw, 28px);
  height: clamp(24px, 2vw, 28px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.wh-icon-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
}

.wh-icon-btn svg {
  width: clamp(12px, 1vw, 14px);
  height: clamp(12px, 1vw, 14px);
}

.wh-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(10px, 1vw, 14px);
  font-size: clamp(0.68rem, 0.74vw, 0.76rem);
  color: #64748b;
}

.wh-pagination-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wh-page-btn {
  width: clamp(22px, 1.8vw, 26px);
  height: clamp(22px, 1.8vw, 26px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: clamp(0.7rem, 0.74vw, 0.75rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wh-page-btn.active {
  background: #0088ff;
  border-color: #0088ff;
  color: #ffffff;
}

.wh-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Alert Event Types (2x3 Grid) */
.wh-event-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 12px);
  width: 100%;
}

.wh-event-card {
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(8px, 0.85vw, 12px) clamp(8px, 0.9vw, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 0.8vw, 10px);
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.wh-event-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(14, 26, 52, 0.75);
}

.wh-event-card-left {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  min-width: 0;
  flex: 1 1 0%;
}

.wh-event-card-icon {
  width: clamp(26px, 2vw, 30px);
  height: clamp(26px, 2vw, 30px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-event-card-icon.crimson {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wh-event-card-icon.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.wh-event-card-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wh-event-card-icon.blue {
  background: rgba(0, 136, 255, 0.15);
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.wh-event-card-icon svg {
  width: clamp(13px, 1vw, 15px);
  height: clamp(13px, 1vw, 15px);
}

.wh-event-card-info {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.wh-event-card-name {
  font-weight: 700;
  font-size: clamp(0.7rem, 0.8vw, 0.82rem);
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-event-card-desc {
  font-size: clamp(0.6rem, 0.68vw, 0.7rem);
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom Toggle Switch */
.wh-switch {
  position: relative;
  display: inline-block;
  width: clamp(28px, 2.2vw, 34px);
  height: clamp(16px, 1.3vw, 19px);
  flex-shrink: 0;
}

.wh-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wh-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: 0.25s ease;
  border-radius: 20px;
}

.wh-slider:before {
  position: absolute;
  content: "";
  height: clamp(11px, 1vw, 13px);
  width: clamp(11px, 1vw, 13px);
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s ease;
  border-radius: 50%;
}

.wh-switch input:checked + .wh-slider {
  background-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.wh-switch input:checked + .wh-slider:before {
  transform: translateX(clamp(11px, 1vw, 15px));
}

/* Recent Webhook Events Feed (Right Column) */
.wh-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1vw, 14px);
  gap: 8px;
}

.wh-feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wh-feed-title {
  font-weight: 700;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  color: #ffffff;
  white-space: nowrap;
}

.wh-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px clamp(7px, 0.8vw, 10px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wh-btn-view-all:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
}

.wh-recent-events-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.7vw, 8px);
}

.wh-recent-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(7px, 0.8vw, 9px) clamp(8px, 0.9vw, 12px);
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: clamp(8px, 0.7vw, 10px);
  transition: all 0.18s ease;
  min-width: 0;
  box-sizing: border-box;
}

.wh-recent-event-item:hover {
  background: rgba(14, 26, 52, 0.75);
  border-color: rgba(0, 240, 255, 0.2);
}

.wh-event-item-left {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  min-width: 0;
  flex: 1 1 0%;
}

.wh-event-item-icon {
  width: clamp(24px, 1.9vw, 28px);
  height: clamp(24px, 1.9vw, 28px);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-event-item-icon.crimson {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wh-event-item-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wh-event-item-icon.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.wh-event-item-icon svg {
  width: clamp(12px, 1vw, 14px);
  height: clamp(12px, 1vw, 14px);
}

.wh-event-item-title {
  font-weight: 700;
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-event-item-sub {
  font-size: clamp(0.63rem, 0.68vw, 0.7rem);
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-event-item-time {
  font-size: clamp(0.64rem, 0.7vw, 0.72rem);
  color: #94a3b8;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Embed Preview Panel (Right Column) */
.wh-btn-send-test {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px clamp(8px, 0.9vw, 11px);
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: clamp(0.68rem, 0.74vw, 0.74rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wh-btn-send-test:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  color: #ffffff;
}

.wh-btn-send-test svg {
  width: clamp(11px, 0.9vw, 12px);
  height: clamp(11px, 0.9vw, 12px);
}

.wh-discord-embed-wrap {
  width: 100%;
}

.wh-discord-embed-box {
  background: #0c1426;
  border-radius: clamp(8px, 0.8vw, 10px);
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.wh-discord-left-bar {
  width: 4px;
  background: #ed4245;
  flex-shrink: 0;
}

.wh-discord-body {
  flex: 1 1 0%;
  padding: clamp(10px, 1.1vw, 14px) clamp(10px, 1.2vw, 16px);
  min-width: 0;
}

.wh-embed-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: clamp(8px, 1vw, 12px);
}

.wh-embed-info-col {
  flex: 1 1 0%;
  min-width: 0;
}

.wh-embed-alert-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.wh-embed-alert-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-embed-alert-heading {
  font-size: clamp(0.76rem, 0.84vw, 0.85rem);
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-embed-resource-title {
  font-size: clamp(0.7rem, 0.76vw, 0.78rem);
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-embed-thumb-wrap {
  width: clamp(42px, 3.8vw, 54px);
  height: clamp(42px, 3.8vw, 54px);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wh-embed-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wh-embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 0.7vw, 10px) clamp(8px, 0.9vw, 14px);
  margin-bottom: clamp(8px, 1vw, 12px);
}

.wh-embed-field-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wh-field-label {
  font-size: clamp(0.6rem, 0.66vw, 0.68rem);
  font-weight: 700;
  color: #64748b;
  text-transform: capitalize;
  margin-bottom: 2px;
  white-space: nowrap;
}

.wh-field-value {
  font-size: clamp(0.68rem, 0.76vw, 0.78rem);
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-red-strike {
  color: #f87171;
  text-decoration: line-through;
}

.text-crimson-bold {
  color: #ef4444;
  font-weight: 700;
}

.text-muted-small {
  color: #94a3b8;
  font-size: clamp(0.62rem, 0.68vw, 0.72rem);
}

.wh-embed-footer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wh-embed-footer-icon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wh-embed-footer-text {
  font-size: clamp(0.6rem, 0.66vw, 0.68rem);
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary Tab Panes & Modals */
.wh-tab-pane {
  animation: fadeIn 0.2s ease;
  width: 100%;
}

.wh-checkbox-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.wh-pill-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.wh-pill-checkbox input {
  display: none;
}

.wh-pill-checkbox span {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.15s ease;
}

.wh-pill-checkbox input:checked + span {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.wh-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wh-setting-card {
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}

.wh-setting-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wh-setting-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.wh-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.wh-slider-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-primary);
  min-width: 45px;
}

.wh-templates-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

/* ==========================================================================
   DYNAMIC RESPONSIVE BREAKPOINTS (PRESERVE 2-COL RATIO ACROSS LAPTOPS & PCS)
   ========================================================================== */

/* Laptops & compact desktop monitors (960px to 1200px):
   Keep the 2-column layout! Reflow inner event cards if needed. */
@media (max-width: 1200px) and (min-width: 960px) {
  .wh-event-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Tablets & Small Screens (< 960px) */
@media (max-width: 959px) {
  .admin-control-center-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
  .admin-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .wh-top-grid {
    grid-template-columns: 1fr;
  }
  .wh-main-split {
    grid-template-columns: 1fr;
  }
  .wh-event-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wh-templates-layout {
    grid-template-columns: 1fr;
  }
  .ls-top-grid {
    grid-template-columns: 1fr;
  }
  .ls-workspace-split {
    grid-template-columns: 1fr;
  }
  .pa-top-grid {
    grid-template-columns: 1fr;
  }
  .pa-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (< 640px) */
@media (max-width: 639px) {
  .wh-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .wh-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .wh-hero-graphic-wrap {
    width: 160px;
    height: 100px;
  }
  .wh-event-cards-grid {
    grid-template-columns: 1fr;
  }
  .wh-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wh-settings-grid {
    grid-template-columns: 1fr;
  }
  .wh-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .wh-filters-group {
    width: 100%;
  }
  .wh-select-wrap {
    flex: 1;
  }
  .wh-filter-select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ls-live-kpis-row {
    grid-template-columns: 1fr;
  }
  .ls-forensics-grid {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-top: 10px;
  }

  .hero-main-title {
    font-size: 2.1rem;
  }

  .hero-stats-glass-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-glass-divider {
    display: none;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .category-chips {
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

/* ==========================================================================
   SECURITY RADAR & REUPLOAD LOG: 1:1 MASTER DESIGN SYSTEM (PAGE-BY-PAGE)
   ========================================================================== */

.radar-page-container {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

/* Top Row: Hero Banner (~64.5%) + Stats Panel (~35.5%) */
.radar-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: stretch;
  width: 100%;
}

/* Left Hero Card */
.radar-hero-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.95) 0%, rgba(6, 12, 28, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05);
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2vw, 28px);
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.6vw, 24px);
  min-height: clamp(160px, 15vw, 210px);
  box-sizing: border-box;
}

.radar-hero-content {
  flex: 1 1 0%;
  min-width: 0;
  z-index: 2;
}

.radar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px clamp(8px, 0.9vw, 12px);
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-size: clamp(0.65rem, 0.72vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 0.8vw, 10px);
}

.radar-hero-badge svg {
  width: clamp(11px, 1vw, 13px);
  height: clamp(11px, 1vw, 13px);
}

.radar-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.95vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(6px, 0.8vw, 10px) 0;
}

.radar-hero-desc {
  font-size: clamp(0.74rem, 0.82vw, 0.84rem);
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* Hero Graphic Container with 3D Globe & 4 Floating Badges */
.radar-hero-graphic-wrap {
  position: relative;
  flex: 0 0 clamp(160px, 18vw, 250px);
  height: clamp(140px, 16vw, 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.radar-hero-globe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.35));
}

/* Floating Orbit Badges */
.radar-orbit-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 4;
  white-space: nowrap;
  animation: floatPill 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.radar-orbit-badge.badge-forums {
  top: -4px;
  left: -20px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
  animation-delay: 0s;
}

.radar-orbit-badge.badge-discord {
  bottom: 8px;
  left: -15px;
  border: 1px solid rgba(0, 136, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.25);
  animation-delay: 1.2s;
}

.radar-orbit-badge.badge-filehosts {
  top: 10px;
  right: -20px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  animation-delay: 0.6s;
}

.radar-orbit-badge.badge-websites {
  bottom: -4px;
  right: -15px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  animation-delay: 1.8s;
}

@keyframes floatPill {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

.orbit-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orbit-badge-icon.purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.orbit-badge-icon.blue { background: rgba(0, 136, 255, 0.18); color: #38bdf8; }
.orbit-badge-icon.green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.orbit-badge-icon.gold { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }

.orbit-badge-icon svg {
  width: 11px;
  height: 11px;
}

.orbit-badge-text {
  display: flex;
  flex-direction: column;
}

.orbit-badge-title {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
  line-height: 1.1;
}

.orbit-badge-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

/* Right Stats Card */
.radar-stats-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.9) 0%, rgba(6, 12, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(14px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  min-width: 0;
}

.radar-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.radar-stats-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: clamp(0.85rem, 0.95vw, 0.96rem);
  color: #ffffff;
}

.radar-cyan-icon {
  color: #00f0ff;
  width: clamp(15px, 1.2vw, 17px);
  height: clamp(15px, 1.2vw, 17px);
}

.radar-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px clamp(7px, 0.8vw, 10px);
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  font-weight: 700;
}

.radar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 1.5s infinite;
}

.radar-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 12px);
}

.radar-kpi-card {
  background: rgba(12, 22, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: clamp(8px, 0.8vw, 12px);
  padding: clamp(8px, 1vw, 14px) clamp(10px, 1.1vw, 16px);
  transition: all 0.2s ease;
  min-width: 0;
}

.radar-kpi-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(16, 28, 56, 0.75);
}

.radar-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(6px, 0.8vw, 10px);
}

.radar-kpi-icon-box {
  width: clamp(28px, 2.3vw, 34px);
  height: clamp(28px, 2.3vw, 34px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-kpi-icon-box.blue {
  background: rgba(0, 136, 255, 0.15);
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.radar-kpi-icon-box.crimson {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.radar-kpi-icon-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.radar-kpi-icon-box.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.radar-kpi-icon-box svg {
  width: clamp(14px, 1.2vw, 17px);
  height: clamp(14px, 1.2vw, 17px);
}

.radar-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: clamp(0.64rem, 0.7vw, 0.7rem);
  font-weight: 700;
  padding: 2px clamp(5px, 0.6vw, 7px);
  border-radius: 12px;
}

.radar-trend-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.radar-trend-pill.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.radar-kpi-val {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 3px;
}

.radar-kpi-label {
  font-size: clamp(0.66rem, 0.74vw, 0.75rem);
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary Navigation Bar (Tabs + Time Range + Refresh) */
.radar-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.radar-subtabs-group {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  flex-wrap: wrap;
}

.radar-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: clamp(6px, 0.65vw, 8px) clamp(12px, 1.2vw, 18px);
  border-radius: 24px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: clamp(0.74rem, 0.8vw, 0.82rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.radar-subtab-btn:hover {
  background: rgba(16, 28, 56, 0.85);
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.25);
}

.radar-subtab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  font-weight: 700;
}

.radar-subtab-btn svg {
  width: clamp(13px, 1.1vw, 15px);
  height: clamp(13px, 1.1vw, 15px);
}

.radar-subnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-time-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.radar-time-cal-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.radar-time-select {
  padding: 6px 28px 6px 30px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s ease;
}

.radar-time-select:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(16, 28, 56, 0.8);
}

.radar-time-chevron {
  position: absolute;
  right: 8px;
  width: 12px;
  height: 12px;
  color: #64748b;
  pointer-events: none;
}

.radar-btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radar-btn-refresh:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(16, 28, 56, 0.8);
}

.radar-btn-refresh svg {
  width: 13px;
  height: 13px;
}

.radar-btn-refresh.spinning svg {
  animation: spinCw 0.8s linear infinite;
}

@keyframes spinCw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Main Split (~64.5% Left / ~35.5% Right) */
.radar-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
  align-items: start;
  width: 100%;
}

.radar-col-left {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  min-width: 0;
}

.radar-col-right {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  min-width: 0;
}

.radar-panel-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.9) 0%, rgba(6, 12, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  min-width: 0;
}

.radar-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1.2vw, 16px);
  gap: 10px;
}

.radar-panel-header-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  min-width: 0;
}

.radar-panel-icon-box {
  width: clamp(28px, 2.3vw, 34px);
  height: clamp(28px, 2.3vw, 34px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-panel-icon-box.cyan {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.radar-panel-icon-box.crimson-circle {
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.radar-panel-icon-box svg {
  width: clamp(15px, 1.2vw, 17px);
  height: clamp(15px, 1.2vw, 17px);
}

.radar-panel-title {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-panel-subtitle {
  font-size: clamp(0.7rem, 0.76vw, 0.78rem);
  color: #64748b;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px clamp(7px, 0.8vw, 10px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.radar-btn-view-all:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
}

.radar-btn-view-all svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   THREAT ACTIVITY MAP STYLING & INTERACTIVE SVG
   ========================================================================== */
.radar-map-card {
  position: relative;
  overflow: hidden;
}

.radar-map-viewport {
  position: relative;
  width: 100%;
  height: clamp(280px, 28vw, 360px);
  border-radius: 12px;
  background: #060d1f;
  border: 1px solid rgba(0, 240, 255, 0.2);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.radar-map-viewport:active,
.radar-map-viewport.is-dragging {
  cursor: grabbing !important;
}

.radar-map-threat-counter {
  position: absolute;
  top: 14px;
  right: 18px;
  text-align: right;
  z-index: 5;
  pointer-events: none;
}

.radar-map-threat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 900;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

.radar-map-threat-sub {
  font-size: clamp(0.62rem, 0.68vw, 0.72rem);
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

.radar-svg-map-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-world-svg {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

/* ==============================================================
   REAL VECTOR WORLD MAP (180 COUNTRIES CARTOGRAPHY)
   ============================================================== */
.radar-continents-group {
  pointer-events: auto;
}

.radar-country {
  fill: #0c1a35;
  stroke: rgba(0, 240, 255, 0.42);
  stroke-width: 0.65;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
  cursor: crosshair;
}

.radar-country:hover {
  fill: #152b57;
  stroke: rgba(0, 240, 255, 0.95);
  stroke-width: 0.95px;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.6));
}

.radar-latlong-lines line {
  vector-effect: non-scaling-stroke;
}

/* Glowing Animated Laser Threat Arcs */
.radar-laser-arc {
  vector-effect: non-scaling-stroke;
  animation: arcDashFlow 2.8s linear infinite;
}

.radar-laser-arc.arc-red {
  animation-duration: 2.2s;
}

.radar-laser-arc.arc-red-gold {
  animation-duration: 2.6s;
}

.radar-laser-arc.arc-gold {
  animation-duration: 3.2s;
}

.radar-laser-arc.arc-multi {
  animation-duration: 3s;
}

.radar-laser-arc.arc-cyan-gold {
  animation-duration: 3.4s;
}

@keyframes arcDashFlow {
  0% { stroke-dashoffset: 40; opacity: 0.5; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.5; }
}

/* ==============================================================
   THREAT NODES - STATIC AMBIENT GLOWS (ZERO HOVER GLITCH)
   ============================================================== */
.radar-svg-node {
  cursor: pointer;
  pointer-events: auto;
}

/* Ensure child SVG elements do not steal pointer events or trigger boundary events */
.radar-svg-node * {
  pointer-events: none;
}

/* Dedicated static invisible hit circle for ultra-smooth rock-solid hover & click */
.radar-svg-node .radar-node-hit {
  pointer-events: all !important;
  cursor: pointer;
}

/* Static ambient threat halo - no moving/scaling animation to prevent glitching */
.radar-node-halo {
  opacity: 0.72;
  transition: opacity 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}

.radar-svg-node:hover .radar-node-halo {
  opacity: 0.95;
  filter: drop-shadow(0 0 6px currentColor);
}

/* Static crisp reticle rings */
.radar-node-ring {
  stroke-width: 1.2;
  opacity: 0.85;
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
  pointer-events: none;
}

.radar-svg-node:hover .radar-node-ring {
  opacity: 1;
  stroke-width: 1.5;
}

/* Static luminous core */
.radar-node-core {
  transition: filter 0.2s ease;
  pointer-events: none;
}

.radar-svg-node:hover .radar-node-core {
  filter: drop-shadow(0 0 10px currentColor);
}

.radar-svg-node.critical { color: #ff3b5c; }
.radar-svg-node.critical .radar-node-ring { stroke: #ff3b5c; }
.radar-svg-node.critical .radar-node-core { fill: #ff3b5c; filter: drop-shadow(0 0 8px #ff3b5c); }

.radar-svg-node.new { color: #ffb800; }
.radar-svg-node.new .radar-node-ring { stroke: #ffb800; }
.radar-svg-node.new .radar-node-core { fill: #ffb800; filter: drop-shadow(0 0 8px #ffb800); }

.radar-svg-node.monitored { color: #00f0ff; }
.radar-svg-node.monitored .radar-node-ring { stroke: #00f0ff; }
.radar-svg-node.monitored .radar-node-core { fill: #00f0ff; filter: drop-shadow(0 0 8px #00f0ff); }

.radar-svg-node.healthy { color: #00e676; }
.radar-svg-node.healthy .radar-node-ring { stroke: #00e676; }
.radar-svg-node.healthy .radar-node-core { fill: #00e676; filter: drop-shadow(0 0 8px #00e676); }

/* Floating Tooltip - Guaranteed 0% Overlap with Cursor */
.radar-map-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: rgba(6, 12, 28, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 240, 255, 0.28);
  backdrop-filter: blur(16px);
  z-index: 25;
  pointer-events: none !important;
  user-select: none;
  min-width: 175px;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.15s ease;
}

.radar-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.radar-tooltip-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.radar-tooltip-badge.critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.radar-tooltip-badge.new { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.radar-tooltip-badge.monitored { background: rgba(0, 240, 255, 0.2); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.4); }
.radar-tooltip-badge.healthy { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }

.radar-tooltip-city {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
}

.radar-tooltip-source {
  font-size: 0.74rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 4px;
}

.radar-tooltip-stats {
  font-size: 0.65rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Map Legend */
.radar-map-legend {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(6, 12, 28, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: #cbd5e1;
  font-weight: 600;
}

.radar-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.radar-legend-dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.radar-legend-dot.yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.radar-legend-dot.cyan { background: #00f0ff; box-shadow: 0 0 6px #00f0ff; }
.radar-legend-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }

/* Map Controls */
.radar-map-controls {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.radar-map-ctrl-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(6, 12, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radar-map-ctrl-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
}

.radar-map-ctrl-btn svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   RECENT REUPLOAD DETECTIONS TABLE
   ========================================================================== */
.radar-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.radar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.radar-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: clamp(0.64rem, 0.7vw, 0.7rem);
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.radar-table td {
  padding: 9px 10px;
  font-size: clamp(0.72rem, 0.78vw, 0.8rem);
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.radar-table tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

.radar-asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.radar-asset-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.radar-asset-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.radar-asset-name {
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(0.75rem, 0.82vw, 0.84rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-asset-id {
  font-size: 0.65rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.radar-source-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.radar-source-icon {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.radar-time-cell {
  color: #94a3b8;
  font-size: 0.72rem;
  white-space: nowrap;
}

.radar-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.radar-type-badge.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.radar-type-badge.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.radar-type-badge.gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.radar-type-badge.blue { background: rgba(0, 136, 255, 0.15); color: #0088ff; border: 1px solid rgba(0, 136, 255, 0.3); }

.radar-loc-link {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.radar-loc-link:hover {
  color: #00f0ff;
  text-decoration: underline;
}

.radar-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.radar-risk-badge.critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.radar-risk-badge.high { background: rgba(244, 63, 94, 0.18); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.35); }
.radar-risk-badge.medium { background: rgba(245, 158, 11, 0.18); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.35); }
.radar-risk-badge.low { background: rgba(16, 185, 129, 0.18); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }

/* ==========================================================================
   TOP THREAT SOURCES (RIGHT COLUMN)
   ========================================================================== */
.radar-threat-sources-list {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.9vw, 12px);
}

.radar-threat-source-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radar-ts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radar-ts-name-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  color: #ffffff;
}

.radar-ts-icon {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}

.radar-ts-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.radar-ts-count {
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
}

.radar-ts-trend {
  font-size: 0.66rem;
  font-weight: 700;
  color: #10b981;
}

.radar-ts-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.radar-ts-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SOURCE MONITORING STATUS (RIGHT COLUMN)
   ========================================================================== */
.radar-btn-manage-sources {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px clamp(7px, 0.8vw, 10px);
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.radar-btn-manage-sources:hover {
  background: rgba(0, 240, 255, 0.2);
  color: #ffffff;
}

.radar-btn-manage-sources svg {
  width: 12px;
  height: 12px;
}

.radar-sources-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.radar-sources-table {
  width: 100%;
  border-collapse: collapse;
}

.radar-sources-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.radar-sources-table td {
  padding: 7px 8px;
  font-size: 0.7rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.radar-sources-table tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

.radar-src-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.radar-src-icon {
  width: 13px;
  height: 13px;
  color: #38bdf8;
  flex-shrink: 0;
}

.radar-status-dot-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 0.66rem;
  font-weight: 700;
}

.radar-status-dot-cell::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.radar-detections-num {
  font-weight: 800;
  color: #ef4444;
  font-family: var(--font-heading);
}

.radar-chevron-arrow {
  color: #64748b;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.radar-sources-table tr:hover .radar-chevron-arrow {
  color: #00f0ff;
  transform: translateX(2px);
}

/* ==========================================================================
   QUICK ACTIONS (RIGHT COLUMN)
   ========================================================================== */
.radar-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.7vw, 10px);
}

.radar-qa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: clamp(6px, 0.65vw, 8px) 8px;
  border-radius: 8px;
  font-size: clamp(0.66rem, 0.72vw, 0.74rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.radar-qa-btn.qa-btn-add {
  background: linear-gradient(135deg, #0088ff 0%, #0066cc 100%);
  border: 1px solid rgba(0, 136, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

.radar-qa-btn.qa-btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.5);
}

.radar-qa-btn.qa-btn-scan {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.radar-qa-btn.qa-btn-scan:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.radar-qa-btn.qa-btn-reports {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.radar-qa-btn.qa-btn-reports:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.radar-qa-btn.qa-btn-export {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.radar-qa-btn.qa-btn-export:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.radar-qa-btn svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   DEDICATED SUBTAB PANES (SOURCES, LOGS, DOMAINS, INTEL)
   ========================================================================== */
.radar-full-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.radar-source-card {
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.radar-source-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(14, 26, 52, 0.75);
}

.radar-source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radar-source-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.radar-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.radar-domain-card {
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.radar-intel-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-intel-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: #ffffff;
}

/* ==========================================================================
   DYNAMIC RESPONSIVE ADJUSTMENTS FOR SECURITY RADAR
   ========================================================================== */
@media (max-width: 959px) {
  .radar-top-grid {
    grid-template-columns: 1fr;
  }
  .radar-main-split {
    grid-template-columns: 1fr;
  }
  .radar-intel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .radar-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .radar-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .radar-hero-graphic-wrap {
    width: 160px;
    height: 140px;
  }
  .radar-orbit-badge {
    padding: 2px 6px;
  }
  .radar-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .radar-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}



/* ==============================================================
   ROLE & PERMISSION SYNCHRONIZATION REDESIGN (MASTER ADMIN SYSTEM)
   ============================================================== */

.roles-workspace-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ==================== ROW 1: TOP SPLIT ==================== */
.roles-top-split {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
  align-items: stretch;
}

/* Left Hero Card */
.role-hero-card {
  background: linear-gradient(135deg, rgba(8, 16, 38, 0.95) 0%, rgba(5, 11, 26, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  padding: clamp(20px, 2.2vw, 28px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.role-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.role-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--cyan-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.badge-lock-icon {
  width: 13px;
  height: 13px;
}

.role-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 10px;
}

.role-hero-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.role-hero-sub {
  font-size: clamp(0.78rem, 0.85vw, 0.88rem);
  color: #94a3b8;
  line-height: 1.5;
  max-width: 470px;
}

/* Right Holographic Mapping Illustration */
.role-hero-illustration {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hero-sync-box {
  width: clamp(110px, 9.8vw, 136px);
  height: clamp(110px, 9.8vw, 136px);
  border-radius: 14px;
  background: rgba(8, 18, 42, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-sync-box:hover {
  transform: translateY(-2px);
}

.hero-sync-box.discord-box {
  border: 1.5px solid rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.4), inset 0 0 16px rgba(99, 102, 241, 0.2);
}

.hero-sync-box.ak-box {
  border: 1.5px solid rgba(255, 184, 0, 0.75);
  box-shadow: 0 0 28px rgba(255, 184, 0, 0.4), inset 0 0 16px rgba(255, 184, 0, 0.2);
}

.sync-box-icon.discord-glow {
  color: #818cf8;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8));
}

.sync-box-icon.gold-glow {
  color: #ffd700;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
}

.hero-crown-icon {
  width: 32px;
  height: 32px;
}

.sync-box-name {
  font-size: clamp(0.68rem, 0.75vw, 0.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-top: 8px;
  line-height: 1.2;
}

.sync-box-tag {
  font-size: clamp(0.58rem, 0.64vw, 0.66rem);
  color: #94a3b8;
  font-weight: 600;
  margin-top: 3px;
}

/* Connector Link */
.hero-sync-connector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
}

.connector-arrow {
  color: #f59e0b;
  font-size: 0.9rem;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  display: flex;
  align-items: center;
}

.connector-arrow svg {
  width: 14px;
  height: 14px;
}

.connector-link-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.connector-link-circle svg {
  width: 15px;
  height: 15px;
}

/* Right Synchronization Status Panel */
.role-sync-status-card {
  background: linear-gradient(135deg, rgba(8, 16, 38, 0.95) 0%, rgba(5, 11, 26, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  padding: clamp(16px, 1.8vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  position: relative;
}

.sync-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sync-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sync-header-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
}

.sync-header-icon-box svg {
  width: 15px;
  height: 15px;
}

.sync-header-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.sync-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.sync-status-pill.online {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-primary);
}

.sync-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 6px var(--emerald-primary);
}

.sync-status-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.sync-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sync-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

.sync-row-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sync-row-icon svg { width: 12px; height: 12px; }
.sync-row-icon.blue { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.sync-row-icon.cyan { color: #00f0ff; background: rgba(0, 240, 255, 0.12); }
.sync-row-icon.red { color: #ef4444; background: rgba(239, 68, 68, 0.12); }

.sync-row-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.sync-action-buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.role-btn-sync {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #0070f3 0%, #00f0ff 100%);
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.role-btn-sync i,
.role-btn-sync svg,
.role-btn-sync span {
  color: #ffffff !important;
}

.role-btn-sync:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.65);
  color: #ffffff !important;
}

.role-btn-sync.is-syncing {
  opacity: 0.8;
  cursor: wait;
}

.role-btn-sync.is-syncing #roleSyncNowIcon {
  animation: spinCw 1s linear infinite;
}

.role-btn-logs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 14px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-btn-logs:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
}

/* ==================== ROW 2: SUMMARY METRICS ==================== */
.roles-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.3vw, 18px);
}

.role-metric-card {
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.92) 0%, rgba(5, 11, 26, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.role-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.35);
}

.metric-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-box svg { width: 16px; height: 16px; }

.metric-icon-box.purple {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.metric-icon-box.gold {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: #ffd700;
}

.metric-icon-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.metric-icon-box.purple-dark {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.metric-trend-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.metric-trend-pill.cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.metric-trend-pill.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-val-num {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.8vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.metric-sub-label {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 4px;
}

.metric-title-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 6px;
}

/* ==================== ROW 3: TWO-COLUMN MAIN SPLIT ==================== */
.roles-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(16px, 1.6vw, 24px);
  align-items: start;
}

.roles-col-left, .roles-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panel Card */
.roles-panel-card {
  background: rgba(8, 16, 36, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 14px;
  padding: clamp(16px, 1.8vw, 22px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  position: relative;
}

.roles-panel-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.roles-panel-header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.roles-panel-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.roles-panel-icon-circle.blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.roles-panel-icon-circle.cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

.roles-panel-icon-circle.gold {
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.35);
  color: #ffd700;
}

.roles-panel-icon-circle svg { width: 16px; height: 16px; }

.roles-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.roles-panel-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.roles-panel-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

/* Subtabs Navigation */
.roles-subtabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.roles-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.roles-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.roles-subtab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Filter Controls Bar */
.roles-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.roles-search-wrap {
  position: relative;
  flex: 1;
}

.roles-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: #64748b;
  pointer-events: none;
}

.roles-search-input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  background: rgba(5, 10, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.74rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roles-search-input:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.roles-select-wrap {
  position: relative;
}

.roles-select-box {
  appearance: none;
  background: rgba(5, 10, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.74rem;
  padding: 7px 28px 7px 10px;
  cursor: pointer;
  font-weight: 600;
}

.roles-select-chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: #64748b;
  pointer-events: none;
}

.btn-refresh-roles {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.btn-manage-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Data Tables */
.roles-table-container,
.matrix-scroll-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.6);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.45) rgba(4, 9, 22, 0.9);
}

.roles-table-container::-webkit-scrollbar,
.matrix-scroll-container::-webkit-scrollbar {
  height: 6px;
  background: rgba(4, 9, 22, 0.95);
}

.roles-table-container::-webkit-scrollbar-track,
.matrix-scroll-container::-webkit-scrollbar-track {
  background: rgba(4, 9, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.roles-table-container::-webkit-scrollbar-thumb,
.matrix-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.5) 0%, rgba(0, 136, 255, 0.65) 100%);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
}

.roles-table-container::-webkit-scrollbar-thumb:hover,
.matrix-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #00f0ff 0%, #0088ff 100%);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

.roles-table-container::-webkit-scrollbar-button,
.matrix-scroll-container::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.roles-custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.roles-custom-table th {
  padding: 8px 10px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(6, 12, 28, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.roles-custom-table td {
  padding: 8px 10px;
  font-size: 0.74rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.roles-custom-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

.role-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
}

.role-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-icon-box svg { width: 12px; height: 12px; }
.role-icon-box.gold { color: #ffd700; background: rgba(255, 215, 0, 0.15); }
.role-icon-box.blue { color: #38bdf8; background: rgba(56, 189, 248, 0.15); }
.role-icon-box.purple { color: #c084fc; background: rgba(192, 132, 252, 0.15); }
.role-icon-box.cyan { color: #00f0ff; background: rgba(0, 240, 255, 0.15); }
.role-icon-box.emerald { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.role-icon-box.crimson { color: #f43f5e; background: rgba(244, 63, 94, 0.15); }
.role-icon-box.amber { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.role-icon-box.slate { color: #94a3b8; background: rgba(148, 163, 184, 0.15); }
.role-icon-box.red { color: #ef4444; background: rgba(239, 68, 68, 0.15); }

.role-id-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
}

.sync-status-badge.synced {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.sync-status-badge.unmapped {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.sync-status-badge.ignored {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.roles-action-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.role-action-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-action-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
}

.role-action-btn svg { width: 13px; height: 13px; }

/* Table Pagination Footer */
.roles-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0 4px;
}

.roles-pagination-info {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.roles-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
}

.pagination-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--cyan-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg { width: 12px; height: 12px; }

/* User Row Styling */
.user-cell-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-cell-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.user-cell-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.76rem;
}

/* User Pill Badges */
.role-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.66rem;
  font-weight: 800;
}

.role-pill-badge.gold {
  background: rgba(255, 184, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.role-pill-badge.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.role-pill-badge.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.role-pill-badge.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.role-pill-badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.role-pill-badge.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

/* Permission Count Badges */
.perm-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
}

.perm-count-badge.cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan-primary);
}

.perm-count-badge.blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.perm-count-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

/* Permissions Matrix Table */
.matrix-scroll-container {
  overflow-x: auto;
}

.roles-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.roles-matrix-table th {
  padding: 9px 10px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(6, 12, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roles-matrix-table th.matrix-th-center {
  text-align: center;
  min-width: 60px;
}

.roles-matrix-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.matrix-perm-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
}

.matrix-perm-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.matrix-perm-icon svg { width: 12px; height: 12px; }

.matrix-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px 0;
  transition: transform 0.15s ease;
}

.matrix-toggle-btn:hover {
  transform: scale(1.15);
}

.matrix-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
}

.matrix-indicator.granted {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #10b981;
}

.matrix-indicator.denied {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

.matrix-indicator.unconfigured {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #64748b;
}

/* Empty view boxes / settings rows */
.roles-empty-view-box {
  padding: 10px 4px;
}

.roles-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(5, 10, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.setting-row-text strong {
  display: block;
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.setting-row-text p {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0;
}

.role-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #cbd5e1;
  font-size: 0.74rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.role-alert-banner svg {
  color: #ef4444;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.role-alert-banner.gold-banner {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.35);
}

.role-alert-banner.gold-banner svg {
  color: #ffd700;
}

/* Modal styling helpers */
.sync-log-item {
  padding: 10px 12px;
  background: rgba(6, 12, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.sync-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sync-log-action {
  font-size: 0.74rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--cyan-primary);
}

.sync-log-time {
  font-size: 0.68rem;
  color: #64748b;
}

.sync-log-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

/* ==============================================================
   ROLE & PERMISSION SYNCHRONIZATION MODALS & CUSTOM FORM SYSTEM
   (Strictly 1:1 Theme Compliant — Zero Generic Browser Whiteboxes)
   ============================================================== */

/* Modal Overlays */
.pa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 18, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pa-modal-overlay.open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.pa-modal-card {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, rgba(8, 16, 36, 0.98) 0%, rgba(4, 9, 22, 0.99) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pa-modal-overlay.open .pa-modal-card {
  transform: translateY(0) scale(1);
}

/* Glowing Top/Bottom Border Accents */
.pa-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff 0%, #0088ff 100%);
  box-shadow: 0 0 14px #00f0ff;
  border-radius: 20px 0 0 0;
  z-index: 2;
}

.pa-modal-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(270deg, #ffb800 0%, #ffd700 100%);
  box-shadow: 0 0 14px #ffb800;
  border-radius: 0 0 20px 0;
  z-index: 2;
}

.pa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.pa-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pa-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.pa-modal-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 3px 0 0 0;
}

.pa-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pa-modal-close:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.pa-modal-body {
  position: relative;
  z-index: 3;
}

.pa-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 3;
}

.pa-form-group {
  margin-bottom: 16px;
}

.pa-form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.pa-form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(4, 9, 22, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pa-form-input:focus {
  border-color: #00f0ff;
  background: rgba(6, 14, 32, 0.95);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

/* Universal Themed Select Boxes — Eliminates Generic Browser White Box on the right */
select,
.pa-form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100%;
  padding: 11px 38px 11px 14px !important;
  background-color: rgba(4, 9, 24, 0.95) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 12px) center !important;
  background-size: 14px 14px !important;
  border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-family: inherit !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

select::-ms-expand,
.pa-form-select::-ms-expand {
  display: none !important;
}

select:hover,
.pa-form-select:hover {
  border-color: rgba(0, 240, 255, 0.65) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

select:focus,
.pa-form-select:focus {
  border-color: #00f0ff !important;
  background-color: rgba(6, 14, 34, 0.98) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45) !important;
}

/* Custom Themed Options Menu */
select option,
.pa-form-select option {
  background-color: #040918 !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  font-size: 0.82rem !important;
}

select option:checked,
.pa-form-select option:checked {
  background: linear-gradient(135deg, #0070f3 0%, #00b4d8 100%) !important;
  background-color: #0070f3 !important;
  color: #ffffff !important;
}

.roles-select-wrap select {
  background-image: none !important;
}

/* ==============================================================
   CUSTOM CYBERPUNK FORM CONTROLS (NO GENERIC WHITEBOXES)
   ============================================================== */

/* Overrides Checkboxes Grid */
.user-overrides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  background: rgba(4, 9, 24, 0.75);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cyber-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(8, 16, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
}

.cyber-checkbox-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.15);
}

.cyber-checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cyber-checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(3, 7, 18, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cyber-checkbox-custom::after {
  content: "";
  display: none;
  width: 5px;
  height: 9px;
  border: solid #040916;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-0.5px, -0.5px);
}

.cyber-checkbox-item input[type="checkbox"]:checked ~ .cyber-checkbox-custom {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.cyber-checkbox-item input[type="checkbox"]:checked ~ .cyber-checkbox-custom::after {
  display: block;
}

.cyber-checkbox-item input[type="checkbox"]:focus-visible ~ .cyber-checkbox-custom {
  outline: 2px solid #00f0ff;
  outline-offset: 2px;
}

.cyber-checkbox-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.cyber-checkbox-item input[type="checkbox"]:checked ~ .cyber-checkbox-text {
  color: #ffffff;
}

/* Custom Cyberpunk Toggle Switch */
.cyber-toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cyber-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cyber-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 18, 38, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cyber-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2.5px;
  bottom: 2.5px;
  background-color: #64748b;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cyber-toggle-switch input:checked + .cyber-toggle-slider {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(2, 132, 199, 0.4) 100%);
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.cyber-toggle-switch input:checked + .cyber-toggle-slider:before {
  transform: translateX(21px);
  background-color: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

/* Universal Cyberpunk Range Slider (Zero Generic Browser Sliders) */
input[type="range"],
input[type="range"].cyber-range,
.cyber-range {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: rgba(8, 16, 36, 0.95) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 6px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

input[type="range"]:hover,
.cyber-range:hover {
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

input[type="range"]::-webkit-slider-thumb,
.cyber-range::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%) !important;
  border: 2px solid #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.85) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

input[type="range"]::-webkit-slider-thumb:hover,
.cyber-range::-webkit-slider-thumb:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 0 20px #00f0ff !important;
}

input[type="range"]::-moz-range-thumb,
.cyber-range::-moz-range-thumb {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%) !important;
  border: 2px solid #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.85) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

input[type="range"]::-moz-range-track,
.cyber-range::-moz-range-track {
  height: 6px !important;
  background: rgba(8, 16, 36, 0.95) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 6px !important;
}

/* ==============================================================
   RESPONSIVE DYNAMIC SCALING SYSTEM
   ============================================================== */
@media (max-width: 1400px) {
  .roles-top-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .roles-main-split {
    grid-template-columns: 1fr;
  }
  .roles-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roles-metrics-grid {
    grid-template-columns: 1fr;
  }
  .role-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .role-hero-illustration {
    width: 100%;
    justify-content: center;
  }
  .roles-subtabs-nav {
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .user-overrides-grid {
    grid-template-columns: 1fr;
  }
}
