/* CyberShield Enterprise - Dark Blue Glass Theme (original dark mode) */

/* CSS Variables - Dark theme */
:root {
  --primary-blue: #0a1628;
  --secondary-blue: #1e3a8a;
  --accent-blue: #3b82f6;
  --glass-blue: rgba(59, 130, 246, 0.1);
  --glass-border: rgba(59, 130, 246, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-accent: #60a5fa;
  --success-green: #10b981;
  --warning-yellow: #f59e0b;
  --danger-red: #ef4444;
  --critical-red: #dc2626;
  --color-bg: #0c1222;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --dark-blue: #3b82f6;
  
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border-color: rgba(148, 163, 184, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-backdrop: blur(16px);
  
  --table-glass-bg: rgba(15, 23, 42, 0.9);
  --table-glass-border: rgba(148, 163, 184, 0.2);
  --table-text-primary: #f1f5f9;
  --table-text-secondary: #94a3b8;
  
  --particle-speed: 20s;
  --glow-pulse: 2s;
  --hover-transition: 0.3s;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0f172a 50%, var(--secondary-blue) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: 100px;
  transition: background 0.3s ease, color 0.2s ease;
}

/* Light theme (User Settings) */
body.theme-light {
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #cbd5e1 100%);
  color: #1e293b;
}

body.theme-light .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(30, 41, 59, 0.15);
}

body.theme-light .text-primary,
body.theme-light .card-title,
body.theme-light .stat-value,
body.theme-light h1, body.theme-light h2, body.theme-light h3 {
  color: #1e293b;
}

body.theme-light .text-secondary,
body.theme-light .stat-label,
body.theme-light .metric-label {
  color: #475569;
}

body.theme-light .glass-container,
body.theme-light .dashboard-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 41, 59, 0.12);
}

body.theme-light .metric-value {
  color: var(--accent-blue);
}

/* Animated Particle Background */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  animation: float var(--particle-speed) infinite linear;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: -4s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: -6s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: -10s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: -12s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: -14s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: -16s; }
.particle:nth-child(10) { width: 6px; height: 6px; left: 95%; animation-delay: -18s; }

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Glass Morphism Components */
.glass-container {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-backdrop);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border-color);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  opacity: 0.5;
}

/* Header Styles - Enhanced with Glassmorphism */
.header {
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.header:hover {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(59, 130, 246, 0.4);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
}

.nav-item a:hover {
  color: var(--dark-blue);
  background: var(--glass-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 28, 45, 0.08);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--dark-blue);
  transition: width 0.3s ease;
}

.nav-item a:hover::after {
  width: 80%;
}

.status-indicators {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.status-indicator,
.system-online-status,
.last-updated-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  min-height: 40px;
  height: 40px;
  white-space: nowrap;
  line-height: 1.2;
}

.status-indicator span,
.system-online-status span,
.last-updated-status span {
  font-size: 0.875rem;
  line-height: 1.2;
}

.status-indicator:hover,
.system-online-status:hover,
.last-updated-status:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.system-online-status {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 600;
}

.system-online-status:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.last-updated-status {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.last-updated-status:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.status-indicator {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.status-indicator:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse var(--glow-pulse) infinite;
  flex-shrink: 0;
}

.status-dot.online { background: var(--dark-blue); }
.status-dot.warning { background: var(--color-text-muted); }
.status-dot.critical { background: var(--dark-blue); }

#active-threats {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: calc(100vh - 100px);
  
}

/* Dashboard Cards */
.dashboard-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition);
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue));
  opacity: 0.8;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--hover-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--glass-blue);
  color: var(--text-accent);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-red), var(--critical-red));
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--hover-transition), box-shadow var(--hover-transition),
    border-color var(--hover-transition);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue), var(--secondary-blue));
  opacity: 0.6;
  border-radius: 3px 0 0 3px;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stat-change.positive { color: var(--dark-blue); }
.stat-change.negative { color: var(--color-text-muted); }

/* Threat Map - Overwhelming center radar UI */
.threat-map-container {
  height: 460px;
  min-height: 380px;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(15, 23, 42, 0.98) 0%, rgba(6, 10, 18, 0.99) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 120px rgba(59, 130, 246, 0.04),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.threat-map-container:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: inset 0 0 120px rgba(59, 130, 246, 0.06),
    0 0 0 1px rgba(59, 130, 246, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.threat-map {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-canvas.radar-canvas-center {
  display: block;
}

.threat-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-secondary);
  font-size: 0.95rem;
  gap: 0.5rem;
  padding: 2rem;
}

.threat-map-empty i {
  font-size: 3rem;
  opacity: 0.4;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.threat-map-empty span:first-of-type {
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.9;
}

.threat-map-empty-hint {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Small high-end animated circular radar (empty state) */
.threat-map-empty-radar {
  position: relative;
  width: 110px;
  height: 110px;
  margin-top: 1.25rem;
  flex-shrink: 0;
}

.mini-radar-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-radar-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: miniRadarRingPulse 3s ease-in-out infinite;
}

.mini-radar-rings .ring.r1 { width: 40px;  height: 40px;  animation-delay: 0s;   }
.mini-radar-rings .ring.r2 { width: 60px;  height: 60px;  animation-delay: 0.2s; }
.mini-radar-rings .ring.r3 { width: 80px;  height: 80px;  animation-delay: 0.4s; }
.mini-radar-rings .ring.r4 { width: 100px; height: 100px; animation-delay: 0.6s; }

@keyframes miniRadarRingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); border-color: rgba(16, 185, 129, 0.35); }
  50%      { opacity: 1;   transform: scale(1.02); border-color: rgba(16, 185, 129, 0.6); }
}

.mini-radar-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 50px;
  margin-left: -1px;
  margin-top: -50px;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.9));
  border-radius: 2px;
  transform-origin: 50% 100%;
  animation: miniRadarSweep 4s linear infinite;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

@keyframes miniRadarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.mini-radar-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.9), rgba(6, 182, 212, 0.6));
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.15);
  animation: miniRadarHubGlow 2.5s ease-in-out infinite;
}

@keyframes miniRadarHubGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.15); opacity: 1; }
  50%      { box-shadow: 0 0 28px rgba(16, 185, 129, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.2); opacity: 0.95; }
}

.threat-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: threatPulse 2s infinite;
  cursor: pointer;
}

.threat-point.critical {
  background: var(--critical-red);
  box-shadow: 0 0 16px var(--critical-red);
}

.threat-point.high {
  background: var(--danger-red);
  box-shadow: 0 0 12px var(--danger-red);
}

.threat-point.medium {
  background: var(--warning-yellow);
  box-shadow: 0 0 10px var(--warning-yellow);
}

.threat-point.low {
  background: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
}

@keyframes threatPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}

.threat-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.legend-dot.critical {
  background: var(--critical-red);
  box-shadow: 0 0 8px var(--critical-red);
}

.legend-dot.high {
  background: var(--danger-red);
  box-shadow: 0 0 8px var(--danger-red);
}

.legend-dot.medium {
  background: var(--warning-yellow);
  box-shadow: 0 0 8px var(--warning-yellow);
}

.legend-dot.low {
  background: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
}

.legend-item span {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Charts and Graphs */
.chart-container {
  height: 300px;
  margin: 1rem 0;
  position: relative;
}

.chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Performance Metrics - Specific */
.performance-metrics-card .card-header {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.performance-status-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.performance-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.performance-status-badge.healthy {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.performance-status-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-yellow);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.performance-status-badge.critical {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.performance-last-updated {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.metrics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border-color);
  border-radius: 8px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.metric-item:hover {
  background: rgba(59, 130, 246, 0.08);
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-label i {
  font-size: 0.7rem;
  opacity: 0.8;
}

.metric-value {
  color: var(--accent-blue);
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-value.metric-value-cpu.warning,
.metric-value.metric-value-memory.warning {
  color: var(--warning-yellow);
}

.metric-value.metric-value-cpu.critical,
.metric-value.metric-value-memory.critical {
  color: var(--danger-red);
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.9;
}

/* System Information & Optimization */
.system-optimizer-card {
  margin-bottom: 1.5rem;
}

.system-info-details {
  margin-bottom: 1rem;
}

.system-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .system-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }
}

.sys-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid var(--glass-border-color);
  border-radius: 8px;
}

.sys-info-item .sys-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sys-info-item .sys-label i {
  opacity: 0.8;
}

.sys-info-item .sys-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sys-info-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.system-optimizer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.system-optimizer-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.system-optimizer-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.system-optimizer-message.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-green);
}

.system-optimizer-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger-red);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

/* Real-time Logs */
.log-container {
  height: 300px;
  overflow-y: auto;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border-color);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.log-entry {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.log-timestamp {
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 120px;
}

.log-level {
  min-width: 60px;
  font-weight: 600;
  text-transform: uppercase;
}

.log-level.info { color: var(--dark-blue); }
.log-level.warn { color: var(--color-text-muted); }
.log-level.error { color: var(--color-text-muted); }
.log-level.critical { color: var(--dark-blue); }

.log-message {
  flex: 1;
  color: var(--color-text);
}

/* Threat Results */
.threat-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border-color);
}

.result-status {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-status.allow {
  color: var(--color-text);
}

.result-status.block {
  color: var(--dark-blue);
}

.result-status.monitor {
  color: var(--color-text-muted);
}

.result-score {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.result-score.low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-green);
}

.result-score.medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-yellow);
}

.result-score.high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-red);
}

.result-score.critical {
  background: rgba(220, 38, 38, 0.2);
  color: var(--critical-red);
}

.result-details {
  display: grid;
  gap: 0.75rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-primary);
}

.result-item strong {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Scan Progress */
.scan-progress {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ═══ Table Design (Glassmorphism) - Scan/Results tables only ═══ */
.table-glass,
.scan-results-table,
.results-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: var(--table-glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--table-glass-border);
  box-shadow: 0 8px 32px rgba(11, 28, 45, 0.2);
  animation: tableFadeIn 0.4s ease-out;
}

@keyframes tableFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-glass th,
.table-glass td,
.scan-results-table th,
.scan-results-table td,
.results-table th,
.results-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--table-glass-border);
}

.table-glass th,
.scan-results-table th,
.results-table th {
  background: rgba(0, 0, 0, 0.15);
  color: var(--table-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.table-glass td,
.scan-results-table td,
.results-table td {
  color: var(--table-text-primary);
  font-size: 0.9rem;
}

.table-glass td.secondary,
.scan-results-table td.secondary,
.results-table td.secondary {
  color: var(--table-text-secondary);
}

/* Risk in table: Clean = white, Suspicious = dark blue accent, Critical = bold + underline */
.table-glass .risk-clean,
.scan-results-table .risk-clean { color: var(--table-text-primary); }
.table-glass .risk-suspicious,
.scan-results-table .risk-suspicious { color: #7ba3cc; }
.table-glass .risk-critical,
.scan-results-table .risk-critical {
  font-weight: 700;
  color: var(--table-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.scan-controls {
  display: grid;
  gap: 1rem;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: #1e293b;
  font-size: 1rem;
  transition: border-color var(--hover-transition), box-shadow var(--hover-transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--dark-blue);
  box-shadow: 0 0 0 3px rgba(11, 28, 45, 0.08);
  background: white;
}

.form-input::placeholder {
  color: #64748b;
}

/* Specific styling for select dropdowns */
select.form-input {
  background: white;
  color: #1e293b;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e293b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-input option {
  background: white;
  color: #1e293b;
  padding: 0.5rem;
}

select.form-input:hover {
  border-color: var(--accent-blue);
}

select.form-input:focus {
  background: white;
  color: #1e293b;
}

/* Modals and Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--hover-transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--hover-transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border-color);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-body {
  color: var(--text-primary);
}

.threat-detail {
  padding: 1rem;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.threat-detail h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.threat-detail p {
  margin: 0.5rem 0;
  color: var(--color-text);
  line-height: 1.6;
}

.threat-detail strong {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Notifications */
#notification-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.notification {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--glass-shadow);
  transform: translateX(400px);
  transition: transform var(--hover-transition);
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success-green);
}

.notification.warning {
  border-left: 4px solid var(--warning-yellow);
}

.notification.error {
  border-left: 4px solid var(--danger-red);
}

.notification.info {
  border-left: 4px solid var(--accent-blue);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.notification-content i {
  font-size: 1.25rem;
}

.notification.success .notification-content i {
  color: var(--dark-blue);
}

.notification.warning .notification-content i {
  color: var(--color-text-muted);
}

.notification.error .notification-content i {
  color: var(--dark-blue);
}

.notification.info .notification-content i {
  color: var(--dark-blue);
}

.notification-content span {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--hover-transition);
}

.notification-close:hover {
  color: var(--text-primary);
}

/* Loading States */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border-color);
  border-top: 3px solid var(--dark-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--glass-blue) 25%, rgba(11, 28, 45, 0.12) 50%, var(--glass-blue) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    margin-top: 10px;
  }
  
  .main-container {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .dashboard-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .status-indicators {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .particle {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(0, 0, 0, 0.9);
    --glass-border-color: rgba(255, 255, 255, 0.3);
    --text-secondary: #ffffff;
  }
}

/* Print styles */
@media print {
  .particle-background,
  .header,
  .btn,
  .modal-overlay,
  .notification {
    display: none !important;
  }
  
  .dashboard-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Plans Section Styles */
.plans-section {
  min-height: 100vh;
  padding: 2rem;
  background: var(--color-bg);
  position: relative;
  z-index: 10;
  overflow-y: auto;
}

.plans-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* User Settings Section */
.settings-section {
  min-height: 100vh;
  padding: 2rem;
  background: var(--color-bg);
  position: relative;
  z-index: 10;
  overflow-y: auto;
}

.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.settings-header {
  margin-bottom: 2rem;
}

.settings-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.settings-header h1 i {
  color: var(--accent-blue);
}

.settings-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.settings-card {
  margin-bottom: 0;
}

.settings-card-body {
  padding: 0.5rem 0;
}

.settings-card-body .form-group {
  margin-bottom: 1rem;
}

.settings-card-body .form-group:last-of-type {
  margin-bottom: 1.25rem;
}

.settings-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.settings-card .btn {
  margin-top: 0.5rem;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border-color);
  flex-wrap: wrap;
}

.setting-row:last-of-type {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.setting-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.setting-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.setting-select {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  min-width: 120px;
}

.settings-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.settings-message.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-green);
}

.settings-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger-red);
}

.settings-account-card .setting-row {
  flex-direction: column;
  align-items: flex-start;
}

.hamburger-nav .menu-item.active {
  background: var(--glass-blue);
  color: var(--accent-blue);
  border-left: 3px solid var(--accent-blue);
}

.plans-header {
  text-align: center;
  margin-bottom: 4rem;
}

.plans-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.plans-header p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.billing-option {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--hover-transition) ease;
}

.billing-option.active {
  color: var(--accent-blue);
}

.save-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--success-green), #059669);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-blue);
  border: 2px solid var(--dark-blue);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: var(--dark-blue);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(11, 28, 45, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--dark-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(30px);
  background: white;
}

.annual-savings {
  margin-top: 0.5rem;
}

.savings-text {
  display: inline-block;
  background: linear-gradient(135deg, var(--success-green), #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.plan-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  position: relative;
  transition: all var(--hover-transition) ease;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue));
  opacity: 0;
  transition: opacity var(--hover-transition) ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--dark-blue);
  box-shadow: 0 20px 40px rgba(11, 28, 45, 0.12);
}

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

.plan-card.featured {
  border-color: var(--dark-blue);
  box-shadow: 0 20px 40px rgba(11, 28, 45, 0.1);
  transform: scale(1.05);
}

.plan-card.featured::before {
  opacity: 1;
}

.plan-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--dark-blue);
  color: #FFFFFF;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-right: 0.25rem;
}

.plan-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark-blue);
}

.plan-price .period {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

.plan-description {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.plan-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.feature-item i {
  color: var(--dark-blue);
  margin-right: 1rem;
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.feature-item span {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.plan-button {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--hover-transition) ease;
  position: relative;
  overflow: hidden;
}

.plan-button.btn-primary {
  background: var(--dark-blue);
  color: #FFFFFF;
}

.plan-button.btn-primary:hover {
  background: #0d2842;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 28, 45, 0.2);
}

.plan-button.btn-secondary {
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}

.plan-button.btn-secondary:hover {
  background: rgba(11, 28, 45, 0.06);
  color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(11, 28, 45, 0.1);
}

/* Comparison Table */
.comparison-table-section {
  margin: 4rem 0;
  padding: 2rem;
}

.comparison-table-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.comparison-table-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
}

.comparison-table thead {
  background: rgba(59, 130, 246, 0.1);
}

.comparison-table th {
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--accent-blue);
}

.comparison-table th.feature-column {
  text-align: left;
  width: 30%;
}

.comparison-table th.featured-column {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.comparison-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border-color);
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.comparison-table tbody tr:hover {
  background: var(--glass-blue);
}

.text-success {
  color: var(--dark-blue);
  font-size: 1.2rem;
}

.text-danger {
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
  margin: 4rem 0;
  padding: 2rem;
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  transition: all var(--hover-transition) ease;
}

.faq-item:hover {
  border-color: var(--dark-blue);
  transform: translateY(-2px);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-user-select: none;
  user-select: none;
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.faq-question i {
  color: var(--dark-blue);
  transition: transform var(--hover-transition) ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Trust Section */
.trust-section {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
}

.trust-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  backdrop-filter: var(--glass-backdrop);
  min-width: 150px;
  transition: all var(--hover-transition) ease;
}

.trust-badge:hover {
  border-color: var(--dark-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(11, 28, 45, 0.1);
}

.trust-badge i {
  font-size: 2rem;
  color: var(--dark-blue);
}

.trust-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

/* CTA Section */
.plans-cta {
  text-align: center;
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 20px;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

.plans-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.plans-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--hover-transition) ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons .btn-primary {
  background: var(--dark-blue);
  color: #FFFFFF;
}

.cta-buttons .btn-primary:hover {
  background: #0d2842;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 28, 45, 0.2);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(11, 28, 45, 0.06);
  color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(11, 28, 45, 0.1);
}

.plans-footer {
  margin-top: 4rem;
  text-align: center;
}

.feature-comparison {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

.feature-comparison h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.comparison-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  transition: all var(--hover-transition) ease;
}

.comparison-item:hover {
  background: var(--glass-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
}

.comparison-item i {
  color: var(--dark-blue);
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.comparison-item span {
  color: var(--color-text);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .plans-section {
    padding: 1rem;
  }
  
  .plans-header h1 {
    font-size: 2rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .plan-card {
    padding: 2rem;
  }
  
  .plan-card.featured {
    transform: none;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table-wrapper {
    overflow-x: auto;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    gap: 1rem;
  }
  
  .trust-badge {
    min-width: 120px;
    padding: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Navigation Active States */
.nav-item.active a {
  color: var(--dark-blue) !important;
  background: var(--glass-blue);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.nav-item a {
  transition: all var(--hover-transition) ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-item a:hover {
  background: var(--glass-blue);
  color: var(--dark-blue);
}


/* ============================================
   AI ASSISTANT STYLES
   ============================================ */

.ai-assistant-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
}

.ai-assistant-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-assistant-toggle:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.ai-assistant-toggle.active {
  background: linear-gradient(135deg, var(--success-green), #059669);
}

.ai-assistant-toggle.has-suggestion::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: var(--danger-red);
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.assistant-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.5;
  animation: assistantPulse 2s infinite;
}

@keyframes assistantPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.ai-assistant-panel {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  width: 420px;
  max-width: calc(100vw - 4rem);
  height: 600px;
  max-height: calc(100vh - 150px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border-color);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-assistant-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.assistant-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.assistant-title i {
  color: var(--accent-blue);
  font-size: 1.3rem;
}

.assistant-status {
  font-size: 0.75rem;
  color: var(--success-green);
  font-weight: 500;
}

.assistant-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.assistant-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-red);
}

.assistant-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.assistant-welcome {
  text-align: center;
  padding: 2rem 1rem;
}

.welcome-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.assistant-welcome h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.assistant-welcome p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.assistant-welcome ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.assistant-welcome ul li {
  padding: 0.5rem 0;
  color: var(--text-primary);
}

.welcome-prompt {
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: 1.5rem;
}

.assistant-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: slideIn 0.3s ease;
}

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

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.assistant-message.user .message-avatar {
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
  color: white;
}

.assistant-message.assistant .message-avatar {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-green);
}

.message-content {
  flex: 1;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.assistant-message.user .message-content {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 58, 138, 0.2));
}

.message-content strong {
  color: var(--accent-blue);
  font-weight: 600;
}

.message-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

.assistant-typing {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.typing-dots {
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.4rem;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

.assistant-suggestions {
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border-color);
}

.suggestion-chip {
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-chip:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.assistant-input-container {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--glass-border-color);
}

.assistant-input {
  flex: 1;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.assistant-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.assistant-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assistant-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ============================================
   SMART ENGINE INDICATOR
   ============================================ */

.smart-engine-indicator {
  position: fixed;
  top: 80px;
  right: 2rem;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.engine-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.engine-status i {
  color: var(--accent-blue);
  font-size: 1.1rem;
}

.engine-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  animation: pulse 2s infinite;
}

.incident-indicator {
  animation: slideInRight 0.3s ease;
}

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

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

/* ============================================
   ENCRYPTION MODULE STYLES
   ============================================ */

.encryption-card {
  margin-top: 2rem;
}

.encryption-badge {
  background: linear-gradient(135deg, var(--success-green), #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.encryption-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.tab-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.file-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-area:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.file-upload-area.drag-over {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-placeholder i {
  font-size: 3rem;
  color: var(--accent-blue);
}

.upload-placeholder p {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.upload-placeholder small {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.image-preview {
  position: relative;
  width: 100%;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

.remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger-red);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-image:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.message-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.btn-large {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}

.encryption-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--glass-border-color);
}

.result-section {
  margin-bottom: 1.5rem;
}

.result-section:last-child {
  margin-bottom: 0;
}

.result-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.result-label i {
  color: var(--accent-blue);
}

.critical-badge {
  background: var(--danger-red);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
}

.key-display,
.encrypted-display {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.key-display code,
.encrypted-display code {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--success-green);
  word-break: break-all;
  max-height: 150px;
  overflow-y: auto;
}

.copy-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--glass-blue);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.warning-text {
  display: block;
  color: var(--warning-yellow);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.encryption-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border-color);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-item i {
  color: var(--success-green);
}

.success-section {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.decrypted-display {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  line-height: 1.6;
}

.decrypted-image {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.decrypted-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
}

/* Continue in next message due to length... */


/* ============================================
   USER ANALYTICS STYLES
   ===

/* User Profile Section in Header */
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-left: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
    transform: translateY(-2px);
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.auth-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .user-info {
        display: none;
    }
    
    .user-profile-section {
        padding: 8px;
        gap: 8px;
    }
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(26, 31, 58, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: dropdownSlideIn 0.3s ease;
}

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

.dropdown-header {
    padding: 16px;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

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

.dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-menu {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item i {
    width: 18px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-item:hover i {
    color: #00bfff;
}

.dropdown-item.danger:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.dropdown-item.danger:hover i {
    color: #ff4444;
}

/* Make user profile section relative for dropdown positioning */
.status-indicators {
    position: relative;
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .user-dropdown {
        right: -10px;
        min-width: 260px;
    }
}
