:root {
  --bg-main: #050505;
  --bg-card: #0a0a0c;
  --accent: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.4);
  --border: #1e1e24;
  --text-main: #e2e8f0;
  --text-muted: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1e1e24;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2d2d35;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Sidebar Navigation */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

/* Metric Cards */
.metric-card {
  background: linear-gradient(
    145deg,
    rgba(15, 15, 20, 0.8) 0%,
    rgba(10, 10, 12, 0.5) 100%
  );
  backdrop-filter: blur(10px);
}

/* Radar Animation */
.radar-grid {
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 30px 30px;
}

.radar-ping {
  width: 60px;
  height: 60px;
  background: rgba(244, 63, 94, 0.2);
  border-radius: 50%;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Phone Layout */
.phone-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  animation: fade-up 0.3s ease-out;
}

.phone-msg.scammer {
  background: #1e1e24;
  color: #f1f5f9;
  border-bottom-left-radius: 0.25rem;
}

.phone-msg.agent {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Persona Cards */
.persona-card {
  cursor: pointer;
}

.persona-card.active {
  border-color: var(--accent) !important;
  background: rgba(79, 70, 229, 0.05) !important;
}

/* LEAI Board */
#fir-report {
  white-space: pre-wrap;
  word-break: break-all;
  scrollbar-width: thin;
}

/* Tab Transitions */
.tab-content {
  animation: tab-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Version 12.0 "Universal Sentinel" Visual Engine --- */

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn.active {
  background: linear-gradient(
    90deg,
    rgba(79, 70, 229, 0.15) 0%,
    transparent 100%
  );
  border-left: 3px solid #4f46e5;
  color: #fff;
  box-shadow: inset 10px 0 20px -10px rgba(79, 70, 229, 0.2);
}

.metric-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.6) !important;
}

@keyframes scan-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.glow-active {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Enhancing Sidebars with Glassmorphism */
aside {
  background: rgba(5, 5, 5, 0.8) !important;
  backdrop-filter: blur(20px);
}
/* --- Version 11.0 "Quantum Sentinel" Styles --- */

:root {
  --quantum-gold: #f59e0b;
  --quantum-glow: rgba(245, 158, 11, 0.2);
}

#auth-overlay {
  backdrop-filter: blur(20px);
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

.metric-card:hover {
  border-color: var(--quantum-gold) !important;
  box-shadow: 0 0 20px var(--quantum-glow);
}

@keyframes scan-line {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

#auth-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--quantum-glow), transparent);
  background-size: 100% 10px;
  height: 100%;
  width: 100%;
  pointer-events: none;
  animation: scan-line 4s linear infinite;
  opacity: 0.1;
}

.hex-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='35' viewBox='0 0 40 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 10v15l-20 10L0 25V10z' fill='none' stroke='%23f59e0b' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 40px 35px;
}

/* Custom scrollbar for Quantum Data */
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.4);
}

/* High-impact text */
.text-quantum {
  color: var(--quantum-gold);
  text-shadow: 0 0 10px var(--quantum-glow);
}
