@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────
   VulnRadar MPA — style.css
   Shared across all pages
───────────────────────────────────────── */

:root {
  --bg: #000000;
  --surface: #050505;
  --card: rgba(255, 255, 255, 0.05);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.12);

  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.05);
  --cyan-glow: rgba(56, 189, 248, 0.08);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.05);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.05);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.05);
  --purple: #818cf8;
  --purple-dim: rgba(129, 140, 248, 0.05);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.05);

  --text: #f8fafc;
  --text-muted: #64748b;
  --text-dim: #cbd5e1;

  --sidebar-w: 240px;
  --topbar-h: 60px;
  --radius: 6px;
  --radius-lg: 10px;

  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 13.5px;
}

body {
  font-family: 'Inter', var(--font-body);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
}

ul {
  list-style: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: dashboard-grid-move 28s linear infinite;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(0, 0, 0, 0.72) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.sidebar-logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* ── VulnRadar Radar Logo (Sidebar Spec) ── */
.logo-box {
  background: radial-gradient(circle at center, #0a1820 0%, #02060a 70%, #000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.15),
    0 0 24px rgba(34, 211, 238, 0.18),
    inset 0 0 30px rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
}

.logo-box svg {
  display: block;
  shape-rendering: geometricPrecision;
  width: 78px;
  height: 78px;
  transform: scale(0.41);
  transform-origin: center;
  overflow: visible;
}

.ring-core {
  stroke: #67e8f9;
  fill: none;
}

.ring-halo {
  stroke: #22d3ee;
  fill: none;
  opacity: 0.55;
  filter: blur(1.6px);
}

.ring-core-m {
  stroke: #bae6fd;
  fill: none;
}

.ring-halo-m {
  stroke: #7dd3fc;
  fill: none;
  opacity: 0.55;
  filter: blur(1.6px);
}

.hub {
  fill: #a5f3fc;
}

.tick {
  stroke: #22d3ee;
  stroke-linecap: round;
  opacity: 0.55;
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sweep-rot {
  transform-origin: 100px 100px;
  animation: sweep 4s linear infinite;
}

.sweep-arm {
  stroke: #a5f3fc;
  stroke-width: 1.4;
  fill: none;
}

@keyframes blip {
  0% {
    opacity: 1;
    filter: brightness(2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
  }

  18% {
    opacity: 0.95;
    filter: brightness(2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
  }

  45% {
    opacity: 0.85;
    filter: brightness(1.6) drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
  }

  75% {
    opacity: 0.5;
    filter: brightness(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  }

  100% {
    opacity: 0;
    filter: none;
  }
}

.blip {
  opacity: 0;
  animation: blip 4s linear infinite;
}

.d1 {
  animation-delay: -0.33s;
}

.d2 {
  animation-delay: -0.83s;
}

.d3 {
  animation-delay: -1.56s;
}

.d4 {
  animation-delay: -2.22s;
}

.d5 {
  animation-delay: -2.89s;
}

.d6 {
  animation-delay: -3.56s;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px 8px;
  margin-top: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.035) !important;
  color: #00C2FF !important;
  border-color: rgba(0, 194, 255, 0.15) !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 194, 255, 0.05) !important;
}

.nav-item:hover svg {
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(0, 194, 255, 0.06) !important;
  border-color: rgba(0, 194, 255, 0.25) !important;
  color: #00C2FF !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 194, 255, 0.08) !important;
}

.nav-badge {
  margin-left: auto;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 24px;
  text-align: center;
}

.nav-badge.danger {
  background: var(--red-dim);
  border-color: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.nav-badge.cyan {
  background: var(--cyan-dim);
  border-color: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.85;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

/* ── MAIN ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background-color: #000000 !important;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(0, 0, 0, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 50;
  gap: 0;
}

/* ── Left: hamburger + page title ── */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 20px;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--card);
  color: var(--text);
}

.page-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-title-block .page-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ── Right: search + divider + actions ── */
.topbar-right {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0;
  min-width: 0;
  justify-content: flex-end;
}

/* Search bar fills available space on the left of the right group */
.topbar-right .search-wrap {
  flex: none;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}

/* Thin vertical divider between search and action pills */
.topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border2);
  flex-shrink: 0;
  margin: 0 16px;
}

/* Action group: time → bell → profile */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Search ── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border2);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  height: 32px;
  padding: 0 12px 0 32px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

/* Page content search bar specific overrides */
.page-content .search-wrap {
  max-width: 600px;
}

.page-content .search-input {
  height: 40px;
  font-size: 14px;
  padding-left: 36px;
  background: rgba(255, 255, 255, 0.03);
}

.page-content .search-icon {
  width: 18px;
  height: 18px;
  left: 12px;
}

/* ── Time/date pill ── */
.topbar-time {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  color: var(--text-dim) !important;
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  height: 32px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: #050505 !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 0;
}

.dashboard-search-popup.hidden {
  display: none;
}

.dashboard-search-item {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.dashboard-search-item:hover {
  background: rgba(14, 165, 233, 0.08);
}

.dashboard-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.dashboard-search-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-search-no-results,
.dashboard-search-loading {
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── PAGE CONTENT ── */
.page-content {
  padding: 24px;
  flex: 1;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media(max-width:1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
  display: none;
}

.stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card.accent-cyan .stat-value {
  color: var(--cyan);
}

.stat-card.accent-green .stat-value {
  color: var(--green);
}

.stat-card.accent-amber .stat-value {
  color: var(--amber);
}

.stat-card.accent-red .stat-value {
  color: var(--red);
}

.stat-card.accent-purple .stat-value {
  color: var(--purple);
}

.stat-card.accent-blue .stat-value {
  color: var(--blue);
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.stat-value.animated {
  animation: countUp .4s ease forwards
}

/* ── CHARTS GRID ── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.charts-grid.four-col {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media(max-width:1200px) {
  .charts-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:768px) {
  .charts-grid {
    grid-template-columns: 1fr
  }
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chart-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chart-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 11px;
  background: var(--border2);
  border-radius: 99px;
  box-shadow: none;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

.chart-wrap.tall {
  height: 280px;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ftab {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.ftab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ftab.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 700 !important;
}

.ftab-text {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  user-select: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}


.filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sel {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
}

.sel option {
  background: #050b0f !important;
  color: #f8fafc !important;
  font-variant-numeric: tabular-nums;
}

.sel:focus {
  border-color: rgba(0, 212, 255, 0.4);
}

#year-filter {
  width: 110px !important;
  font-variant-numeric: tabular-nums;
}

/* ── SEARCHABLE DROPDOWN COMPONENT ── */
.vr-dropdown {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  min-width: 120px;
}

.vr-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
  min-height: 32px;
}

.vr-dropdown-trigger:hover {
  border-color: var(--border2);
  background: var(--card2);
}

.vr-dropdown-trigger.open {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.vr-dropdown-trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-dropdown-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.vr-dropdown-trigger.open .vr-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.vr-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 280px;
  background: #050b0f !important;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 212, 255, 0.15);
  z-index: 9999;
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: vr-dd-open 0.15s ease;
}

@keyframes vr-dd-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vr-dropdown-panel.open {
  display: block;
}

.vr-dropdown-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.vr-dropdown-search svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.vr-dropdown-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  caret-color: var(--cyan);
}

.vr-dropdown-search-input::placeholder {
  color: var(--text-muted);
}

.vr-dropdown-list {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

.vr-dropdown-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-dim);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.vr-dropdown-option:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text);
}

.vr-dropdown-option.selected {
  background: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 500;
}

.vr-dropdown-option.hidden {
  display: none;
}

.vr-dropdown-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.vr-dropdown-empty.hidden {
  display: none;
}

.result-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── TABLE ── */
.table-wrap {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.01);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.data-table th:hover {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.02);
}

.sort-icon {
  opacity: 0.4;
  margin-left: 4px;
  font-size: 11px;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  vertical-align: middle;
  transition: color 0.15s;
}

.data-table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015) !important;
}

.data-table tbody tr:hover td {
  color: var(--text);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.cve-id-cell {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cyan);
  white-space: nowrap;
}

.vendor-cell {
  font-weight: 500;
  color: var(--text);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
}

.loading-row {
  text-align: center;
  padding: 48px !important;
  color: var(--text-muted);
  vertical-align: middle;
}

.loading-row .spinner {
  vertical-align: middle;
  margin-right: 8px;
}

/* ── SPINNER ── */
.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-yes {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.badge-no {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.badge-edb {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.badge-msf {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(129, 140, 248, 0.12);
}

.badge-poc {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.badge-lab {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.badge-epss {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.badge-critical {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.badge-high {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.badge-medium {
  background: rgba(249, 115, 22, 0.05);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.badge-low {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.intel-icons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.intel-dot {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.intel-dot.edb {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.intel-dot.msf {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.intel-dot.poc {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.intel-dot.lab {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cvss-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.cvss-critical {
  color: var(--red);
}

.cvss-high {
  color: var(--amber);
}

.cvss-medium {
  color: #F97316;
}

.cvss-low {
  color: var(--green);
}

.cvss-na {
  color: var(--text-muted);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid var(--border2);
  border-radius: 10px;
  width: max-content;
  margin: 32px auto 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}

.pagination:empty {
  display: none !important;
}

.page-btn {
  min-width: 32px;
  width: auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.page-btn:hover:not(:disabled) {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.page-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── LABS GRID ── */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.lab-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.lab-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.lab-card-cve {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 4px;
}

.lab-card-vendor {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.lab-card-source {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lab-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}

.lab-card-link:hover {
  text-decoration: underline;
}

/* ── EPSS BAR ── */
.epss-bar-wrap {
  width: 80px;
  background: var(--border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.epss-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--cyan);
  transition: width 0.3s;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-cve-id {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 4px;
}

.modal-product {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
  background: var(--red-dim);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--red);
  transform: rotate(90deg);
}

.modal-body {
  padding: 22px 24px;
}

.modal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-val {
  font-size: 13px;
  color: var(--text);
}

.cvss-badge {
  font-family: var(--font-mono);
  font-size: 16px !important;
  font-weight: 700 !important;
}

.modal-desc-block {
  margin-bottom: 20px;
}

.modal-desc-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 8px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.modal-intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media(max-width:600px) {
  .modal-intel-grid {
    grid-template-columns: 1fr
  }
}

.intel-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.intel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intel-list li {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.intel-list li a {
  font-size: 12px;
  word-break: break-all;
}

.no-data {
  color: var(--text-muted) !important;
  font-style: italic;
  font-size: 12px !important;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 12px;
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0, 0, 0, .5);
  }

  .main {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar-right .search-wrap {
    max-width: 160px;
  }

  .topbar-time {
    display: none;
  }

  .topbar-divider {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-content {
    padding: 16px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* ── EXPLOIT RATE WARNING BANNER ── */
.exploit-rate-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.02);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 20px;
  position: relative;
}

.exploit-rate-banner svg {
  color: var(--red);
  opacity: 0.8;
  flex-shrink: 0;
}

.banner-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.banner-rate {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--red);
}

.banner-text {
  font-size: 12.5px;
  color: var(--text-muted);
}


/* ─────────────────────────────────────────
   VulnRadar — Notification Bell System
   Append to Style.css
───────────────────────────────────────── */

/* ── NOTIFICATION BELL ── */
.notif-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.notif-bell-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  flex-shrink: 0;
}

.notif-bell-btn:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.notif-bell-btn.has-unread {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--red);
  background: var(--red-dim);
  animation: bell-shake 3s ease infinite;
}

@keyframes bell-shake {

  0%,
  90%,
  100% {
    transform: rotate(0deg);
  }

  92% {
    transform: rotate(-8deg);
  }

  96% {
    transform: rotate(8deg);
  }
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  pointer-events: none;
}

/* ── NOTIFICATION DROPDOWN ── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: #050505 !important;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 300;
  overflow: hidden;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.notif-dropdown.hidden {
  display: none;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card2);
}

.notif-dropdown-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.notif-mark-all-btn {
  font-size: 11px;
  color: var(--cyan);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.notif-mark-all-btn:hover {
  background: var(--cyan-dim);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: rgba(0, 212, 255, 0.03);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
}

.notif-item-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.notif-item-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-msg {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-item-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notif-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

.notif-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.notif-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--card2);
  text-align: center;
}

.notif-footer-link {
  font-size: 12px;
  color: var(--cyan);
  cursor: pointer;
}

.notif-footer-link:hover {
  text-decoration: underline;
}

/* Type colors */
.notif-type-kev {
  color: var(--red);
}

.notif-type-exploit {
  color: var(--amber);
}

.notif-type-github_pocs {
  color: var(--cyan);
}

.notif-type-labs {
  color: var(--green);
}

.notif-type-test {
  color: var(--purple);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PREMIUM CYBERSECURITY SOC DASHBOARD STYLING
   Scoped specifically to body[data-page="dashboard"] to protect other pages
───────────────────────────────────────────────────────────────────────────── */

body[data-page="dashboard"] {
  background-color: #000000 !important;
  color: #E6EDF7 !important;
  font-family: 'Inter', sans-serif !important;
}

body[data-page="dashboard"] .main {
  background-color: #000000 !important;
}

/* Moving Cyber Grid Background Effect */
body[data-page="dashboard"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: dashboard-grid-move 28s linear infinite;
}

@keyframes dashboard-grid-move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

/* Smooth Topbar in Dashboard */
body[data-page="dashboard"] .topbar {
  background: rgba(0, 0, 0, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Premium Dashboard Header Container */
.dashboard-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 0;
  gap: 16px;
  animation: dhFadeInDown 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dhFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dh-title {
  font-family: 'Oxanium', 'Inter', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  background: linear-gradient(135deg, #00C2FF 0%, #00E676 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(0, 194, 255, 0.15);
}

.dh-subtitle {
  color: #94A3B8 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
}

/* Live Threat Intel Indicator with Pulse Ring */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.28);
  padding: 6px 16px 6px 32px;
  /* Space for absolute positioning of dot/ring */
  border-radius: 99px;
  color: #FF4D6D;
  font-family: 'Oxanium', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.02);
  user-select: none;
}

.live-pulse-badge .pulse-dot {
  position: absolute;
  left: 16px;
  /* Centered within the 32px left padding area */
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #FF4D6D;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #FF4D6D, 0 0 20px rgba(255, 77, 109, 0.6);
}

.live-pulse-badge .pulse-ring {
  position: absolute;
  left: 16px;
  /* Exactly coaxial with pulse-dot */
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border: 1.5px solid #FF4D6D;
  border-radius: 50%;
  animation: pulse-ring-anim 2s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring-anim {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(3.6);
    opacity: 0;
  }
}

/* Glassmorphism SOC Cards Styling */
body[data-page="dashboard"] .stat-card,
body[data-page="dashboard"] .chart-card {
  background: rgba(5, 5, 5, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.03) !important;
  overflow: hidden;
  animation: cardScaleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardScaleFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered load delays for cards */
body[data-page="dashboard"] .stats-grid .stat-card:nth-child(1) {
  animation-delay: 0.05s;
}

body[data-page="dashboard"] .stats-grid .stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

body[data-page="dashboard"] .stats-grid .stat-card:nth-child(3) {
  animation-delay: 0.15s;
}

body[data-page="dashboard"] .stats-grid .stat-card:nth-child(4) {
  animation-delay: 0.2s;
}

body[data-page="dashboard"] .stats-grid .stat-card:nth-child(5) {
  animation-delay: 0.25s;
}

body[data-page="dashboard"] .stats-grid .stat-card:nth-child(6) {
  animation-delay: 0.3s;
}

/* Elegant hover movements and glowing outlines */
body[data-page="dashboard"] .stat-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 194, 255, 0.25) !important;
  box-shadow: 0 12px 28px rgba(0, 194, 255, 0.1), 0 0 1px rgba(0, 194, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

body[data-page="dashboard"] .chart-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 194, 255, 0.2) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 15px rgba(0, 194, 255, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

/* Individual accent specific card outlines on hover */
body[data-page="dashboard"] .stat-card.accent-red:hover {
  border-color: rgba(255, 77, 109, 0.25) !important;
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

body[data-page="dashboard"] .stat-card.accent-cyan:hover {
  border-color: rgba(0, 194, 255, 0.25) !important;
  box-shadow: 0 12px 28px rgba(0, 194, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

body[data-page="dashboard"] .stat-card.accent-amber:hover {
  border-color: rgba(255, 183, 3, 0.25) !important;
  box-shadow: 0 12px 28px rgba(255, 183, 3, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

body[data-page="dashboard"] .stat-card.accent-purple:hover {
  border-color: rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 12px 28px rgba(167, 139, 250, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
}

/* Stat card content upgrades */
body[data-page="dashboard"] .stat-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: #94A3B8 !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}

body[data-page="dashboard"] .stat-value {
  font-family: 'Oxanium', sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #E6EDF7 !important;
  line-height: 1.2 !important;
  text-shadow: 0 0 15px rgba(230, 237, 247, 0.08) !important;
}

body[data-page="dashboard"] .stat-card.accent-red .stat-value {
  color: #FF4D6D !important;
  text-shadow: 0 0 12px rgba(255, 77, 109, 0.15) !important;
}

body[data-page="dashboard"] .stat-card.accent-cyan .stat-value {
  color: #00C2FF !important;
  text-shadow: 0 0 12px rgba(0, 194, 255, 0.15) !important;
}

body[data-page="dashboard"] .stat-card.accent-amber .stat-value {
  color: #FFB703 !important;
  text-shadow: 0 0 12px rgba(255, 183, 3, 0.15) !important;
}

body[data-page="dashboard"] .stat-card.accent-purple .stat-value {
  color: #A78BFA !important;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.15) !important;
}

body[data-page="dashboard"] .stat-sub {
  font-size: 11.5px !important;
  color: #64748B !important;
  margin-top: 4px !important;
}

/* Premium Exploit Rate Banner */
body[data-page="dashboard"] .exploit-rate-banner {
  background: rgba(255, 77, 109, 0.05) !important;
  border: 1px solid rgba(255, 77, 109, 0.15) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #E6EDF7 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body[data-page="dashboard"] .banner-label {
  color: #94A3B8 !important;
}

body[data-page="dashboard"] .banner-rate {
  font-family: 'Oxanium', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #FF4D6D !important;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.25) !important;
}

body[data-page="dashboard"] .banner-text {
  color: #94A3B8 !important;
}

/* Chart titles */
body[data-page="dashboard"] .chart-title {
  font-family: 'Oxanium', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: #E6EDF7 !important;
  margin-bottom: 16px !important;
  text-transform: uppercase !important;
}

body[data-page="dashboard"] .chart-title::before {
  background: #00C2FF !important;
  width: 4px !important;
  height: 12px !important;
  box-shadow: 0 0 8px #00C2FF !important;
}

/* Premium table styling for dashboard */
body[data-page="dashboard"] .table-wrap {
  background: rgba(5, 5, 5, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

body[data-page="dashboard"] .data-table th {
  background: rgba(5, 5, 5, 0.9) !important;
  color: #94A3B8 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body[data-page="dashboard"] .data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  color: #E6EDF7 !important;
  font-size: 12.5px !important;
}

body[data-page="dashboard"] .data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015) !important;
}

svg[width="0"][height="0"][style*="display:none"],
svg[width="0"][height="0"][style*="display: none"],
svg#radar-defs[style*="display:none"],
svg#radar-defs[style*="display: none"] {
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* ── Settings page ── */
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

@media(max-width:768px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

.settings-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.settings-nav-item:hover {
  background: var(--card2);
  color: var(--text);
}

.settings-nav-item.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.2);
}

.settings-nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.settings-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.settings-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Profile Hero ── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-avatar-xl {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  border: 2px solid currentColor;
  flex-shrink: 0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.profile-avatar-xl::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.12;
}

.profile-hero-details {
  flex: 1;
  min-width: 0;
}

.profile-hero-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text-muted);
}

.profile-hero-badge svg {
  width: 11px;
  height: 11px;
}

/* ── Color picker ── */
.avatar-color-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.active {
  border-color: var(--text) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.color-swatch .check-mark {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.15s;
  stroke: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.color-swatch.active .check-mark {
  opacity: 1;
}

/* ── Form controls ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

@media(max-width:640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Toggle ── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-wrap {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border2);
  border-radius: 99px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-wrap input:checked+.toggle-slider {
  background: rgba(0, 212, 255, 0.3);
}

.toggle-wrap input:checked+.toggle-slider::before {
  transform: translateX(20px);
  background: var(--cyan);
}

/* ── Alert type cards ── */
.alert-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media(max-width:640px) {
  .alert-types-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.alert-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.alert-type-card:hover {
  border-color: var(--border2);
}

.alert-type-card.selected {
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--cyan-dim);
}

.alert-type-card.always-on {
  border-color: rgba(239, 68, 68, 0.4);
  background: var(--red-dim);
  cursor: default;
}

.alert-type-card input {
  display: none;
}

.alert-type-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.alert-type-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.alert-type-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.alert-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Version tabs ── */
.version-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.version-tab {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.version-tab:hover {
  color: var(--text);
}

.version-tab.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.35);
}

.version-panel {
  display: none;
}

.version-panel.visible {
  display: block;
}

/* ── Notification method ── */
.notif-method-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 212, 255, 0.02) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.notif-method-icon-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.notif-method-body {
  flex: 1;
  min-width: 0;
}

.notif-method-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.notif-method-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.notif-method-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notif-method-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.method-card:hover {
  border-color: var(--border2);
}

.method-card.selected {
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--cyan-dim);
}

.method-card input {
  display: none;
}

.method-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.method-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.method-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Action buttons ── */
.actions-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-primary {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: rgba(0, 212, 255, 0.25);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Password strength (security section) ── */
.strength-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.scheck {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--border);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.scheck.pass {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
}

.strength-label {
  font-size: 11px;
  font-weight: 600;
  min-height: 14px;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.2s ease;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--cyan);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ── Placeholder ── */
.placeholder-section {
  background: var(--surface);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.placeholder-section svg {
  width: 32px;
  height: 32px;
  opacity: 0.3;
  margin-bottom: 10px;
}

/* ── Profile loading skeleton ── */
@keyframes shimmer {
  0% {
    background-position: -400px 0
  }

  100% {
    background-position: 400px 0
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--border2) 50%, var(--border) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}

/* ── Profile Picture Upload ── */
.pic-upload-area {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pic-preview-ring {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 3px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08), 0 0 20px rgba(0, 212, 255, 0.12);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: rgba(0, 212, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pic-preview-ring:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 0 24px rgba(0, 212, 255, 0.2);
}

.pic-preview-avatar {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
  pointer-events: none;
  user-select: none;
}

.pic-dropzone {
  flex: 1;
  min-width: 240px;
  border: 2px dashed var(--border2);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  background: var(--surface);
}

.pic-dropzone:hover,
.pic-dropzone.drag-over {
  border-color: rgba(0, 212, 255, 0.5);
  background: var(--cyan-dim);
}

.pic-dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.pic-dropzone:hover .pic-dropzone-icon,
.pic-dropzone.drag-over .pic-dropzone-icon {
  color: var(--cyan);
}

.pic-dropzone-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.pic-dropzone-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── Topbar User Menu Styles (CSP Compliant) ── */
.user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card, #111827);
  border: 1px solid var(--border2, #243044);
  border-radius: 6px;
  height: 32px;
  padding: 0 8px 0 4px;
  cursor: pointer;
  color: var(--text-dim, #94A3B8);
  transition: all 0.15s;
}

.user-menu-btn:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--cyan, #00D4FF);
}

.user-avatar {
  width: 24px;
  height: 24px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oxanium', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #00D4FF;
  overflow: hidden;
}

.user-chevron {
  stroke: currentColor;
  transition: transform 0.2s;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #050505 !important;
  border: 1px solid var(--border2, #243044);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 400;
  overflow: hidden;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.user-dropdown.hidden {
  display: none;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: var(--card2, #16202E);
}

.user-dropdown-avatar {
  width: 36px;
  height: 36px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oxanium', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #00D4FF;
  overflow: hidden;
}

.user-dropdown-email {
  font-size: 11px;
  color: var(--text-muted, #64748B);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  margin-top: 1px;
}

.user-dropdown-name {
  font-size: 12px;
  color: var(--text, #E2E8F0);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border, #1A2638);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim, #94A3B8);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  font-family: 'DM Sans', sans-serif;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #E2E8F0);
}

.user-dropdown-item svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.user-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
}

/* ── Dynamic Preferences / Styles (CSP Compliant Static Declarations) ── */
body.compact-mode table tbody tr td {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

body.compact-mode .lab-card {
  padding: 12px !important;
}

body.highlight-exploits tr[data-has-exploit="true"] {
  background: rgba(0, 194, 255, 0.04) !important;
}

tr[data-cvss-above-threshold="true"] {
  background: rgba(239, 68, 68, 0.06) !important;
}

.topbar-right .search-wrap {
  flex: none !important;
  width: 100% !important;
  margin-right: auto !important;
}

/* ── Blogs & Cybersecurity News Timeline (WatchStack.io Style) ── */
.timeline-container {
  position: relative;
  padding-left: 40px;
  margin-top: 24px;
}
.timeline-line {
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(56, 189, 248, 0.12);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-node {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  z-index: 2;
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-node {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
  display: inline-block;
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.timeline-card:hover {
  background: var(--card2);
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.timeline-card-content {
  flex: 1;
  min-width: 0;
}
.timeline-source-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.035);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.timeline-card:hover .timeline-title {
  color: var(--cyan);
}
.timeline-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 16px;
  max-height: 4.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: max-height 0.3s ease;
}
.timeline-desc.expanded {
  max-height: none;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.timeline-desc-toggle {
  font-size: 12px;
  color: var(--cyan);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 500;
}
.timeline-desc-toggle:hover {
  text-decoration: underline;
}
.timeline-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.timeline-score-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-cve-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
  cursor: pointer;
}
.timeline-cve-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan);
}
.timeline-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  opacity: 0.7;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.timeline-link-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}


.ftab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}
.ftab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.ftab:hover:not(.active) {
  color: var(--text);
}

.no-data-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Notification History Items ── */
.notif-history-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}
.notif-history-item.notif-item-read {
  opacity: 0.6;
}
.notif-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.notif-history-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.notif-history-date {
  font-size: 11px;
  color: var(--text-muted);
}
.notif-history-msg {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}
.notif-history-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.notif-unread-badge {
  font-size: 10px;
  background: var(--cyan-dim, rgba(0,212,255,0.1));
  color: var(--cyan, #00d4ff);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
}
.notif-view-news-btn {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.notif-view-news-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
}

/* ── News Detail Popup ── */
.news-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.news-popup-overlay.visible {
  opacity: 1;
}
.news-popup-box {
  background: #050a14;
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 0 50px rgba(0, 194, 255, 0.1), inset 0 0 20px rgba(0, 194, 255, 0.03);
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.news-popup-overlay.visible .news-popup-box {
  transform: scale(1);
}
.news-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.news-popup-icon {
  font-size: 22px;
  line-height: 1;
}
.news-popup-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  flex: 1;
  letter-spacing: -0.02em;
}
.news-popup-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}
.news-popup-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}
.news-popup-date {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
}
.news-popup-title {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.news-popup-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px 0;
}
.news-popup-cves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.news-popup-cve-tag {
  background: rgba(0, 194, 255, 0.1);
  color: #00C2FF;
  border: 1px solid rgba(0, 194, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}
.news-popup-cve-more {
  font-size: 11px;
  color: #64748b;
  align-self: center;
}
.news-popup-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-popup-link-btn {
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.15), rgba(0, 194, 255, 0.05));
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  color: #00C2FF;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.news-popup-link-btn:hover {
  background: rgba(0, 194, 255, 0.2);
  border-color: rgba(0, 194, 255, 0.6);
}
.news-popup-dismiss-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 16px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.news-popup-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.news-popup-no-link {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* ─── SKELETON PULSE LOADER SYSTEM ─── */
@keyframes skeleton-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.02) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.5s infinite linear;
  display: block;
}
.skeleton-line.lg  { height: 18px; border-radius: 5px; }
.skeleton-line.xl  { height: 32px; border-radius: 6px; }
.skeleton-line.xxl { height: 48px; border-radius: 8px; }
.skeleton-line.w-80  { width: 80%; }
.skeleton-line.w-60  { width: 60%; }
.skeleton-line.w-50  { width: 50%; }
.skeleton-line.w-40  { width: 40%; }
.skeleton-line.w-30  { width: 30%; }
.skeleton-line.w-20  { width: 20%; }

.skeleton-block {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.02) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.5s infinite linear;
  border-radius: 8px;
  display: inline-block;
}

/* Staggered delays for a premium organic sweeping wave effect */
.skeleton-item:nth-child(1) .skeleton-line,
.skeleton-item:nth-child(1) .skeleton-block { animation-delay: 0s;   }
.skeleton-item:nth-child(2) .skeleton-line,
.skeleton-item:nth-child(2) .skeleton-block { animation-delay: 0.1s; }
.skeleton-item:nth-child(3) .skeleton-line,
.skeleton-item:nth-child(3) .skeleton-block { animation-delay: 0.2s; }
.skeleton-item:nth-child(4) .skeleton-line,
.skeleton-item:nth-child(4) .skeleton-block { animation-delay: 0.3s; }
.skeleton-item:nth-child(5) .skeleton-line,
.skeleton-item:nth-child(5) .skeleton-block { animation-delay: 0.4s; }
.skeleton-item:nth-child(6) .skeleton-line,
.skeleton-item:nth-child(6) .skeleton-block { animation-delay: 0.5s; }
.skeleton-item:nth-child(7) .skeleton-line,
.skeleton-item:nth-child(7) .skeleton-block { animation-delay: 0.6s; }
.skeleton-item:nth-child(8) .skeleton-line,
.skeleton-item:nth-child(8) .skeleton-block { animation-delay: 0.7s; }
.skeleton-item:nth-child(9) .skeleton-line,
.skeleton-item:nth-child(9) .skeleton-block { animation-delay: 0.8s; }
.skeleton-item:nth-child(10) .skeleton-line,
.skeleton-item:nth-child(10) .skeleton-block { animation-delay: 0.9s; }

/* ── SEE MORE LABS BUTTON ── */
.see-more-labs-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin-top: 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.see-more-labs-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

/* ── LABS SIDE-BY-SIDE SECOND MODAL PANEL ── */
.labs-modal-panel {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 210;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.labs-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.labs-panel-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.labs-panel-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.labs-panel-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

.labs-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.labs-panel-close:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
  transform: rotate(90deg);
}

/* Tab Headers */
.labs-panel-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 8, 16, 0.3);
  overflow-x: auto;
  white-space: nowrap;
}

.labs-panel-tabs::-webkit-scrollbar {
  height: 3px;
}

.labs-panel-tab {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.labs-panel-tab:hover {
  color: var(--green);
  background: rgba(16, 185, 129, 0.04);
}

.labs-panel-tab.active {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* Scrollable Content */
.labs-panel-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.labs-panel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.labs-panel-list-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.labs-panel-list-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.labs-panel-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.labs-panel-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.labs-panel-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}

.labs-panel-verified-dot {
  width: 6px;
  height: 6px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.labs-panel-item-url {
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.4;
  margin-top: 2px;
}

.labs-panel-item-url:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* Responsive adjustment for dual-modal overlay */
@media (min-width: 1025px) {
  .modal-overlay.open {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .modal-overlay {
    flex-direction: column;
    overflow-y: auto;
    justify-content: flex-start;
  }
  .modal-box {
    margin-bottom: 20px;
  }
  .labs-modal-panel {
    max-width: 780px;
    height: 60vh;
    margin-bottom: 20px;
  }
}