/* ============================================
   SpamJammer Dashboard — Full-Screen Video Style
   ============================================ */

:root {
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --gold-light: #FBBF24;
  --bg-dark: #000000;
  --surface: rgba(0, 0, 0, 0.55);
  --surface-hover: rgba(0, 0, 0, 0.65);
  --surface-border: rgba(245, 158, 11, 0.12);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-width: 240px;
  --topnav-height: 64px;
}

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ============================================
   ANIMATED BACKGROUND — THE STAR
   ============================================ */

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Moving gradient layers */
.gradient-layer {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: gradientDrift 20s ease-in-out infinite;
}

.gradient-layer.layer-2 {
  background: radial-gradient(ellipse at 70% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              radial-gradient(ellipse at 30% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
  animation: gradientDrift2 25s ease-in-out infinite;
  opacity: 0.8;
}

.gradient-layer.layer-3 {
  background: radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 10% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  animation: gradientDrift3 30s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes gradientDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5%, -3%) rotate(2deg); }
  50% { transform: translate(-3%, 5%) rotate(-1deg); }
  75% { transform: translate(3%, 2%) rotate(1deg); }
}

@keyframes gradientDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-4%, 3%) rotate(-2deg); }
  66% { transform: translate(4%, -2%) rotate(1.5deg); }
}

@keyframes gradientDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3%, -4%); }
}

/* Particle canvas */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Data stream lines */
.data-streams {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.stream {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.3), transparent);
  animation: streamFall linear infinite;
  opacity: 0;
}

.stream-1 { left: 8%; height: 120px; animation-duration: 4s; animation-delay: 0s; }
.stream-2 { left: 22%; height: 80px; animation-duration: 3.5s; animation-delay: 1.2s; }
.stream-3 { left: 35%; height: 150px; animation-duration: 5s; animation-delay: 0.5s; }
.stream-4 { left: 48%; height: 100px; animation-duration: 4.2s; animation-delay: 2s; }
.stream-5 { left: 62%; height: 90px; animation-duration: 3.8s; animation-delay: 0.8s; }
.stream-6 { left: 75%; height: 130px; animation-duration: 4.5s; animation-delay: 1.5s; }
.stream-7 { left: 88%; height: 70px; animation-duration: 3.2s; animation-delay: 2.5s; }
.stream-8 { left: 95%; height: 110px; animation-duration: 4.8s; animation-delay: 0.3s; }

@keyframes streamFall {
  0% { top: -15%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 105%; opacity: 0; }
}

/* Scan line effect */
.scan-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.scan-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.08), transparent);
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Cinematic vignette */
.vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Dark overlay (60% black) */
.dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.60);
  pointer-events: none;
}

/* ============================================
   LAYOUT
   ============================================ */

.topnav,
.layout,
.sidebar,
.main-content {
  position: relative;
  z-index: 10;
}

/* Top Navigation — transparent over animated bg */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topnav-height);
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.topnav-links {
  display: flex;
  gap: 4px;
}

.topnav-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.topnav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.topnav-link.active { color: var(--gold); background: rgba(245, 158, 11, 0.1); }

.topnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); border-color: var(--surface-border); }

.notification-btn { position: relative; }
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 4px;
}

.user-profile:hover { background: rgba(255, 255, 255, 0.06); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Layout */
.layout {
  display: flex;
  min-height: calc(100vh - var(--topnav-height));
}

/* Sidebar — semi-transparent dark */
.sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--topnav-height));
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.sidebar-link.active { color: var(--gold); background: rgba(245, 158, 11, 0.1); }
.sidebar-link.active svg { stroke: var(--gold); }

.badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.badge.warn {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--surface-border);
}

.plan-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.plan-badge svg { stroke: var(--gold); }

.usage-info { display: flex; flex-direction: column; gap: 6px; }

.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.usage-count { color: var(--text-muted); }

.usage-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 1s ease;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cinema-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.cinema-select option { background: #111; }

.btn-gold {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-gold:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.25));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* ============================================
   CINEMA PANEL — semi-transparent floating widgets
   ============================================ */

.cinema-panel {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.cinema-panel:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 30px rgba(245, 158, 11, 0.05);
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08);
}

.stat-card:hover::before { opacity: 1; }

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.icon-blue { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.stat-icon.icon-red { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.stat-icon.icon-amber { background: rgba(245, 158, 11, 0.12); color: var(--gold); }
.stat-icon.icon-green { background: rgba(74, 222, 128, 0.12); color: #4ade80; }

.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.stat-trend.up { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.stat-trend.down { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.stat-trend-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.stat-sparkline {
  margin-top: 12px;
  height: 30px;
}

.stat-sparkline svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   TWO-COL LAYOUT
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

/* Panel header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s;
}

.panel-link:hover { color: var(--gold-light); }

/* Chart */
.chart-container { position: relative; }

.activity-chart {
  width: 100%;
  height: 220px;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Categories */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item { display: flex; flex-direction: column; gap: 6px; }

.category-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.category-name { color: var(--text-primary); flex: 1; }
.category-pct { color: var(--text-secondary); font-weight: 600; font-size: 0.8rem; }

.category-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

/* Donut */
.donut-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.donut-chart { width: 120px; height: 120px; }

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-total {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.donut-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   THREATS TABLE — dark glass
   ============================================ */

.threats-panel { overflow: hidden; }

.table-wrapper { overflow-x: auto; }

.threats-table {
  width: 100%;
  border-collapse: collapse;
}

.threats-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--surface-border);
}

.threats-table td {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.threats-table tbody tr {
  transition: background 0.2s;
}

.threats-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.04);
}

.sender-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sender-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.time-cell { white-space: nowrap; color: var(--text-muted); }

/* Tags */
.tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-phishing { background: rgba(245, 158, 11, 0.12); color: var(--gold); }
.tag-scam { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.tag-promo { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.tag-malware { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }

/* Risk */
.risk {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.risk-critical { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.risk-high { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.risk-medium { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.risk-low { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

/* Status */
.status {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-blocked { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.status-quarantine { background: rgba(245, 158, 11, 0.12); color: var(--gold); }

/* ============================================
   BOTTOM GRID
   ============================================ */

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

/* Blocked domains */
.blocked-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blocked-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blocked-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.blocked-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.blocked-domain {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocked-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.blocked-bar-mini {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.blocked-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
}

/* Quick Actions */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.action-card:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
  transform: translateY(-2px);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon.icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
}

.action-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.action-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.35s; }
.fade-in:nth-child(4) { animation-delay: 0.5s; }
.fade-in:nth-child(5) { animation-delay: 0.65s; }

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topnav-links { display: none; }
  .user-name { display: none; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
  .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .actions-grid { grid-template-columns: 1fr; }
  .threats-table th:nth-child(2),
  .threats-table td:nth-child(2) { display: none; }
}
