/* ============================================================
   VULNAUDIT - Pentesting Web Application
   Professional Light Theme CSS
   ============================================================ */

/* ----------------------------------------
   1. CSS Custom Properties / Variables
   ---------------------------------------- */
:root {
  /* Background colors — warm light, not white */
  --bg-primary: #EFF1F5;
  --bg-secondary: #E7E9EE;
  --bg-card: #FBFBFC;
  --bg-tertiary: #E1E4EA;
  --bg-input: #FBFBFC;
  --bg-hover: #DCDFE6;
  --bg-overlay: rgba(15, 23, 42, 0.4);

  /* Border colors */
  --border: #D5D9E2;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-focus: #3B82F6;

  /* Text colors */
  --text-primary: #1A1D26;
  --text-secondary: #525866;
  --text-muted: #8B919E;
  --text-inverse: #FBFBFC;

  /* Accent / brand */
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.18);
  --accent-subtle: rgba(59, 130, 246, 0.08);

  /* Semantic colors */
  --success: #16A34A;
  --success-bg: rgba(22, 163, 74, 0.1);
  --warning: #D97706;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --danger: #DC2626;
  --danger-bg: rgba(220, 38, 38, 0.08);

  /* Severity palette */
  --critical: #DC2626;
  --critical-bg: rgba(220, 38, 38, 0.08);
  --high: #EA580C;
  --high-bg: rgba(234, 88, 12, 0.08);
  --medium: #D97706;
  --medium-bg: rgba(217, 119, 6, 0.08);
  --low: #2563EB;
  --low-bg: rgba(37, 99, 235, 0.08);
  --info: #6B7280;
  --info-bg: rgba(107, 114, 128, 0.07);

  /* Shadows — soft for light theme */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 16px rgba(59, 130, 246, 0.1);

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 60px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono',
    Consolas, 'Liberation Mono', Menlo, monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-index layers */
  --z-sidebar: 100;
  --z-header: 200;
  --z-modal-overlay: 500;
  --z-modal: 510;
  --z-toast: 600;
  --z-tooltip: 700;
}


/* ----------------------------------------
   2. Reset & Base Styles
   ---------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #C1C5CE;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* ----------------------------------------
   3. Screen Toggle System
   ---------------------------------------- */
.screen {
  display: none;
}

.screen.active {
  display: flex;
}


/* ----------------------------------------
   4. Authentication Screen
   ---------------------------------------- */
#auth-screen {
  width: 100vw;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow background */
#auth-screen::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px 40px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.auth-brand {
  text-align: center;
  margin-bottom: 36px;
}

.auth-brand h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.auth-brand p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Brand icon */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  font-size: 1.7rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.brand-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: #fff;
}

/* Auth tabs (Login / Register toggle) */
.auth-tabs {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 32px;
  border: 1px solid var(--border-light);
}

.auth-tab {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 6px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

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

.auth-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Auth form */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

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

.turnstile-wrapper {
  width: 100%;
  margin-bottom: 22px;
}

.turnstile-wrapper .cf-turnstile {
  width: 100% !important;
}

.turnstile-wrapper .cf-turnstile iframe {
  width: 100% !important;
}

.auth-card .btn {
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}


/* ----------------------------------------
   5. Form Elements
   ---------------------------------------- */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.select-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  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' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ----------------------------------------
   6. Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #1D4ED8);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

.btn-accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.3);
}

.btn-accent:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--success);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-group {
  display: flex;
  gap: 8px;
}


/* ----------------------------------------
   7. Main Layout (Sidebar + Content)
   ---------------------------------------- */
#main-screen {
  width: 100vw;
  min-height: 100vh;
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sidebar);
  transition: transform var(--transition-base);
}

/* Sidebar brand logo + name */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 24px 16px 20px;
}

.sidebar-brand .brand-icon-sm {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border-radius: 10px;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sidebar-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Sidebar divider */
.sidebar-brand + .nav-menu {
  border-top: 1px solid var(--border-light);
}

/* Navigation menu */
.nav-menu {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.855rem;
  font-weight: 480;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 3px;
}

.nav-item:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.nav-item.active::before {
  display: none;
}

.nav-item.active .nav-icon {
  filter: brightness(10);
}

.nav-item .nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* My Plan panel */
.my-plan-panel {
  padding: 14px 16px;
  margin: 0 12px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
  border-radius: 10px;
  margin-bottom: 8px;
}

.my-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.my-plan-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.my-plan-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.my-plan-bars { display: flex; flex-direction: column; gap: 8px; }

.plan-bar-group { display: flex; flex-direction: column; gap: 3px; }

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

.plan-bar-label span:last-child { font-weight: 600; color: var(--text-primary); }

.plan-bar-track {
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
}

.plan-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.plan-bar-extras {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.plan-feature-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

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

.sidebar-footer .btn-ghost {
  width: 100%;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-color: var(--border);
  justify-content: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-primary);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.user-info:hover {
  background: var(--bg-hover);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

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

.user-info .user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info .user-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-badge.admin {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.role-badge.pentester {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-badge.viewer {
  background: rgba(107, 114, 128, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(107, 114, 128, 0.3);
}


/* ----------------------------------------
   8. Content Area
   ---------------------------------------- */
#content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-primary);
  flex: 1;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: calc(var(--z-sidebar) - 1);
  backdrop-filter: blur(8px);
}

.content-header h1 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-header p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.content-body {
  padding: 28px 32px;
}


/* ----------------------------------------
   9. View Toggle System
   ---------------------------------------- */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewFadeIn 0.25s ease;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.view-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Monitoring header — centered aligned with footer */
.view-header.monitoring-header {
  position: relative;
}

.monitoring-title {
  position: absolute;
  left: calc(50% - var(--sidebar-width) / 2);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.monitor-live-clock {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.monitoring-title .monitor-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981, #059669);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.monitoring-title .monitor-logo svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-header.monitoring-header .header-actions {
  margin-left: auto;
}

.brand-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}

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


/* ----------------------------------------
   10. Dashboard - Stats Grid
   ---------------------------------------- */
.dashboard-fullscreen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  padding: 24px 32px;
}

.dashboard-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.dashboard-panels-grid .panel {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.dashboard-panels-grid .panel .panel-body,
.dashboard-panels-grid .panel .chart-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dashboard-panels-grid .panel .scan-list {
  padding: 12px 16px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 450;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card .stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0.3;
}

/* Severity-colored stat cards */
.stat-critical::before { background: var(--critical); }
.stat-critical .stat-value { color: var(--critical); }

.stat-high::before { background: var(--high); }
.stat-high .stat-value { color: var(--high); }

.stat-medium::before { background: var(--medium); }
.stat-medium .stat-value { color: var(--medium); }

.stat-low::before { background: var(--low); }
.stat-low .stat-value { color: var(--low); }

.stat-info::before { background: var(--info); }
.stat-info .stat-value { color: var(--info); }

.stat-total::before { background: var(--accent); }
.stat-total .stat-value { color: var(--accent); }

.stat-success::before { background: var(--success); }
.stat-success .stat-value { color: var(--success); }


/* ----------------------------------------
   11. Panels / Cards
   ---------------------------------------- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.panel-body {
  padding: 24px;
}

.panel-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}


/* ----------------------------------------
   12. Chart Containers
   ---------------------------------------- */
.chart-container {
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-container canvas {
  max-width: 100%;
}

/* Simple bar chart (CSS-only fallback) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 0 8px;
  width: 100%;
}

.bar-segment {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-width: 24px;
  position: relative;
  transition: all var(--transition-base);
  cursor: pointer;
}

.bar-segment:hover {
  opacity: 0.85;
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.bar-segment.critical { background: linear-gradient(to top, var(--critical), #F87171); }
.bar-segment.high     { background: linear-gradient(to top, var(--high), #FB923C); }
.bar-segment.medium   { background: linear-gradient(to top, var(--medium), #FACC15); }
.bar-segment.low      { background: linear-gradient(to top, var(--low), #60A5FA); }
.bar-segment.info     { background: linear-gradient(to top, var(--info), #9CA3AF); }

.bar-segment .bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-segment .bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
}

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

.chart-legend-item .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}


/* ----------------------------------------
   13. Scanner Section
   ---------------------------------------- */
.scanner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
}

.scan-form-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.scan-form-card .form-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scan-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.scan-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

/* Scan progress */
.scan-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  margin-bottom: 24px;
  display: none;
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.scan-progress-card.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

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

.progress-header .progress-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.progress-header .progress-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}

.progress-bar-container {
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    var(--accent),
    #8B5CF6,
    var(--accent)
  );
  background-size: 200% 100%;
  animation: progressGradient 2s linear infinite;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: progressShimmer 1.5s ease-in-out infinite;
}

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

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

.progress-status {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.progress-status .status-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-status .elapsed-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Scan results */
.scan-results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
  width: 100%;
  max-width: 800px;
  text-align: left;
}

.scan-results-card.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.results-header h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Results tabs (Vulnerabilities / Ports / Info) */
.results-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background: var(--bg-tertiary);
}

.results-tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

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

.results-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.results-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  background: var(--bg-hover);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.results-panel {
  display: none;
  padding: 20px 24px;
}

.results-panel.active {
  display: block;
}


/* ----------------------------------------
   14. Scan List (History / Recent)
   ---------------------------------------- */
.scan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scan-list-item:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.scan-list-item .scan-target {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-list-item .scan-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.scan-list-item .scan-vulns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.scan-list-item .vuln-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}


/* ----------------------------------------
   15. Tables
   ---------------------------------------- */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background: var(--bg-tertiary);
}

.data-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

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

.data-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.data-table tbody td {
  padding: 14px 18px;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table .cell-mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.data-table .cell-actions {
  display: flex;
  gap: 6px;
}

.data-table .empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

/* Checkbox column */
.th-check,
.td-check {
  width: 40px;
  text-align: center !important;
  padding-left: 12px !important;
  padding-right: 4px !important;
}

.th-check input[type="checkbox"],
.td-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  vertical-align: middle;
}

/* Sortable columns */
.th-sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.th-sortable:hover {
  color: var(--text-primary);
}

.th-sortable .sort-icon {
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.th-sortable.sort-active .sort-icon {
  opacity: 1;
  color: var(--accent);
}

/* Selected row */
.data-table tbody tr.row-selected {
  background: rgba(59, 130, 246, 0.06);
}

.data-table tbody tr.row-selected:hover {
  background: rgba(59, 130, 246, 0.1);
}

/* Bulk action bar */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 0 0 -1px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  animation: fadeSlideIn 0.2s ease;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination .page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination .page-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.pagination .page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ----------------------------------------
   16. Badges
   ---------------------------------------- */

/* Severity badges */
.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.severity-badge.critical {
  background: var(--critical-bg);
  color: var(--critical);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.severity-badge.high {
  background: var(--high-bg);
  color: var(--high);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.severity-badge.medium {
  background: var(--medium-bg);
  color: var(--medium);
  border: 1px solid rgba(202, 138, 4, 0.3);
}

.severity-badge.low {
  background: var(--low-bg);
  color: var(--low);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.severity-badge.info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* CDN / Origin badges */
.cdn-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(251, 146, 60, 0.15);
  color: #FB923C;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status-badge.pending {
  background: rgba(107, 114, 128, 0.12);
  color: #9CA3AF;
}
.status-badge.pending::before {
  background: #9CA3AF;
}

.status-badge.running {
  background: var(--accent-subtle);
  color: var(--accent);
}
.status-badge.running::before {
  background: var(--accent);
  animation: statusPulse 1.5s ease-in-out infinite;
}

.status-badge.completed {
  background: var(--success-bg);
  color: var(--success);
}
.status-badge.completed::before {
  background: var(--success);
}

.status-badge.failed {
  background: var(--danger-bg);
  color: var(--danger);
}
.status-badge.failed::before {
  background: var(--danger);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


/* ----------------------------------------
   17. Modal
   ---------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-modal-overlay);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: var(--z-modal);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-content.modal-lg {
  max-width: 860px;
}

.modal-content.modal-sm {
  max-width: 420px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

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

.modal.active .modal-content {
  animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal detail sections (for scan details) */
.detail-section {
  margin-bottom: 24px;
}

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

.detail-section h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

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

.detail-item .detail-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 450;
}


/* ----------------------------------------
   18. Toast / Notifications
   ---------------------------------------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  max-width: 440px;
  pointer-events: all;
  animation: toastSlideIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.toast-success::before { background: var(--success); }
.toast.toast-error::before   { background: var(--danger); }
.toast.toast-warning::before { background: var(--warning); }
.toast.toast-info::before    { background: var(--accent); }

.toast-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast.toast-success .toast-icon { color: var(--success); }
.toast.toast-error .toast-icon   { color: var(--danger); }
.toast.toast-warning .toast-icon { color: var(--warning); }
.toast.toast-info .toast-icon    { color: var(--accent); }

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  font-size: 0.875rem;
}

.toast-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.toast.toast-exit {
  animation: toastSlideOut 0.25s ease forwards;
}

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

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

/* Toast progress bar (auto-dismiss timer) */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: toastTimer linear forwards;
}


/* ----------------------------------------
   19. Messages (inline)
   ---------------------------------------- */
.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  animation: fadeSlideIn 0.25s ease;
}

.success-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--success-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  animation: fadeSlideIn 0.25s ease;
}

.warning-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--warning-bg);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  color: var(--warning);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  animation: fadeSlideIn 0.25s ease;
}

.info-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  animation: fadeSlideIn 0.25s ease;
}


/* ----------------------------------------
   20. Vulnerability List Items
   ---------------------------------------- */
.vuln-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vuln-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.vuln-item:hover {
  border-color: var(--border);
  background: var(--bg-hover);
}

.vuln-item .vuln-severity-indicator {
  width: 4px;
  min-height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  align-self: stretch;
}

.vuln-item .vuln-severity-indicator.critical { background: var(--critical); }
.vuln-item .vuln-severity-indicator.high     { background: var(--high); }
.vuln-item .vuln-severity-indicator.medium   { background: var(--medium); }
.vuln-item .vuln-severity-indicator.low      { background: var(--low); }
.vuln-item .vuln-severity-indicator.info     { background: var(--info); }

.vuln-item .vuln-content {
  flex: 1;
  min-width: 0;
}

.vuln-item .vuln-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.vuln-item .vuln-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vuln-item .vuln-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ----------------------------------------
   21. Admin Section
   ---------------------------------------- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-stats {
  display: flex;
  gap: 24px;
}

.admin-stats .admin-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.admin-stats .admin-stat strong {
  color: var(--text-primary);
  font-weight: 600;
}


/* ----------------------------------------
   22. Tags & Chips
   ---------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* ----------------------------------------
   23. Empty States & Loaders
   ---------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.5;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

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

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-hover) 25%,
    var(--border) 50%,
    var(--bg-hover) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-title {
  height: 20px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}


/* ----------------------------------------
   24. Utility Classes
   ---------------------------------------- */
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary   { color: var(--text-primary); }
.text-accent    { color: var(--accent); }
.text-danger    { color: var(--danger); }
.text-success   { color: var(--success); }
.text-warning   { color: var(--warning); }
.text-sm        { font-size: 0.8125rem; }
.text-xs        { font-size: 0.75rem; }
.text-lg        { font-size: 1.125rem; }
.text-mono      { font-family: var(--font-mono); }
.font-bold      { font-weight: 700; }
.font-medium    { font-weight: 500; }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm         { gap: 8px; }
.gap-md         { gap: 16px; }
.gap-lg         { gap: 24px; }
.flex-1         { flex: 1; }
.flex-wrap      { flex-wrap: wrap; }

.w-full         { width: 100%; }
.h-full         { height: 100%; }
.min-w-0        { min-width: 0; }

.mt-sm          { margin-top: 8px; }
.mt-md          { margin-top: 16px; }
.mt-lg          { margin-top: 24px; }
.mb-sm          { margin-bottom: 8px; }
.mb-md          { margin-bottom: 16px; }
.mb-lg          { margin-bottom: 24px; }

.p-sm           { padding: 8px; }
.p-md           { padding: 16px; }
.p-lg           { padding: 24px; }

.rounded        { border-radius: var(--radius-md); }
.rounded-lg     { border-radius: var(--radius-lg); }

.hidden         { display: none !important; }
.visible        { display: block; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------
   25. Dividers & Decorators
   ---------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}


/* ----------------------------------------
   26. Code / Technical Display
   ---------------------------------------- */
.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}

.code-inline {
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
}


/* ----------------------------------------
   27. Tooltip
   ---------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}


/* ----------------------------------------
   28. Mobile Sidebar Toggle
   ---------------------------------------- */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: calc(var(--z-sidebar) + 1);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: calc(var(--z-sidebar) - 1);
}


/* ----------------------------------------
   29. Responsive Breakpoints
   ---------------------------------------- */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panels-grid {
    grid-template-columns: 1fr;
  }

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

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

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

/* Mobile: <= 768px */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }

  .sidebar-toggle {
    display: flex;
  }

  #sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  #sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  #content {
    margin-left: 0;
  }

  .content-header {
    padding: 16px 20px;
    padding-left: 60px;
  }

  .content-header h1 {
    font-size: 1.125rem;
  }

  .content-body {
    padding: 20px 16px;
  }

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

  .dashboard-fullscreen {
    padding: 16px;
  }

  .stat-card {
    padding: 16px 18px;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .auth-card {
    padding: 32px 24px 28px;
  }

  .panel-body {
    padding: 16px;
  }

  .scan-form-card {
    padding: 20px;
  }

  .scan-options-grid {
    grid-template-columns: 1fr;
  }

  .scan-form-actions {
    flex-direction: column;
  }

  .scan-form-actions .btn {
    width: 100%;
  }

  /* Table responsive: scroll horizontally */
  .table-container {
    border-radius: var(--radius-md);
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .modal-content {
    max-height: 90vh;
    margin: 12px;
    border-radius: var(--radius-lg);
  }

  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
  }

  .results-tabs {
    padding: 0 12px;
    overflow-x: auto;
  }

  .results-tab {
    padding: 10px 14px;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
}

/* Small mobile: <= 480px */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    padding: 12px;
  }

  .btn-group {
    flex-direction: column;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .scan-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .scan-list-item .scan-meta {
    width: 100%;
    justify-content: space-between;
  }
}


/* ----------------------------------------
   30. Print Styles
   ---------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  #sidebar,
  .sidebar-toggle,
  .toast-container,
  .btn,
  .modal-overlay {
    display: none !important;
  }

  #content {
    margin-left: 0;
  }

  .panel,
  .stat-card,
  .scan-form-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .data-table thead th {
    background: #f0f0f0;
  }

  .data-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
  }
}


/* ----------------------------------------
   31. Additional Component Styles
   ---------------------------------------- */

/* Results summary stats row */
.results-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
}

.results-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.results-ip-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 4px;
}

.ip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ip-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

.ip-item code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    color: var(--text-primary);
}

code.origin-ip-code {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    font-weight: 600;
}

.ip-method {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.ip-item-main code {
    font-size: 1rem;
}

code.ip-small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 1px 5px;
    background: var(--bg-hover);
    border-radius: 3px;
    color: var(--text-muted);
}

.results-ip-warning {
    border-color: rgba(251, 146, 60, 0.4) !important;
    background: rgba(251, 146, 60, 0.05) !important;
}

.ip-warning-msg {
    font-size: 0.8125rem;
    color: #FB923C;
    line-height: 1.5;
    padding: 8px 0 0;
}

.results-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.results-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.results-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-stat-critical .results-stat-value { color: var(--critical, #DC2626); }
.results-stat-high .results-stat-value { color: var(--high, #EA580C); }

/* Vulnerability items used in scanner results */
.vuln-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.vuln-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
}

.vuln-rec {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent, #3B82F6);
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.vuln-rec strong {
    color: var(--text-primary);
}

.vuln-cvss {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: auto;
}

.vuln-cve, .vuln-port {
    display: inline-block;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    color: var(--text-secondary);
    margin-right: 6px;
    margin-top: 6px;
}

.vuln-critical { border-left: 4px solid var(--critical, #DC2626); }
.vuln-high { border-left: 4px solid var(--high, #EA580C); }
.vuln-medium { border-left: 4px solid var(--medium, #CA8A04); }
.vuln-low { border-left: 4px solid var(--low, #2563EB); }
.vuln-info { border-left: 4px solid var(--info, #6B7280); }

/* Progress log */
.progress-log {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.log-entry {
    padding: 3px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.log-entry:last-child { border-bottom: none; }
.log-success { color: var(--success); }
.log-error { color: var(--danger); }

/* Modal sections */
.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

/* Bar chart rows */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 70px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.bar-segment {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.bar-value {
    width: 35px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    flex-shrink: 0;
}

/* Progress message */
.progress-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.progress-target {
    text-align: center;
    color: var(--accent, #3B82F6);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
}

/* Results header with download button */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Text utility */
.text-secondary {
    color: var(--text-secondary);
}

/* Scan list items used in dashboard */
.scan-list-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.scan-list-target {
    font-weight: 600;
    color: var(--text-primary);
}

.scan-list-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    align-items: center;
}

.scan-list-vulns {
    color: var(--warning, #EAB308);
    font-weight: 500;
}

/* Role badge variants */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent, #3B82F6);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-user {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success, #22C55E);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Detail grid in modal */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
}

.detail-item label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

/* ----------------------------------------
   32. Quick Scan View
   ---------------------------------------- */
.quickscan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: calc(100vh - 40px);
    padding: 40px 24px;
    box-sizing: border-box;
}

.quickscan-hero {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.brand-icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    font-size: 2.25rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.quickscan-hero h1,
.quickscan-hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    text-align: center;
}

.quickscan-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.quickscan-searchbar {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.quickscan-searchbar:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-glow);
}

.quickscan-searchbar input[type="text"] {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.0625rem;
    outline: none;
}

.quickscan-searchbar input[type="text"]::placeholder {
    color: var(--text-muted);
}

.quickscan-searchbar button {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.quickscan-searchbar button:hover {
    background: linear-gradient(135deg, var(--accent-hover), #1D4ED8);
}

.quickscan-searchbar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quickscan-hints {
    margin-top: 24px;
    text-align: center;
}

.quickscan-hints p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quickscan-hints code {
    display: inline-block;
    background: var(--bg-hover);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 3px 4px;
    border: 1px solid var(--border-light);
}

/* Admin modal form styles */
.admin-modal .modal-content {
    max-width: 500px;
}

.admin-modal .modal-body .form-group {
    margin-bottom: 16px;
}

.admin-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* Delete modal warning text */
#delete-user-modal .modal-body p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 0;
}

#delete-user-modal .modal-body strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .quickscan-container {
        min-height: calc(100vh - 80px);
        padding: 24px 16px;
    }

    .quickscan-hero h2 {
        font-size: 1.375rem;
    }

    .quickscan-searchbar {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .quickscan-searchbar input[type="text"] {
        padding: 14px 18px;
    }

    .quickscan-searchbar button {
        padding: 14px 24px;
    }

    .brand-icon-lg {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
}


/* ----------------------------------------
   33. Web Findings
   ---------------------------------------- */

/* CDN warning note */
.web-cdn-note {
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-left: 4px solid #FB923C;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.web-cdn-note strong {
    color: #FB923C;
}

/* Web stats summary */
.web-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 0;
}

.web-stat-total {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

/* Category grouping */
.web-category {
    margin-bottom: 20px;
}

.web-category-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.web-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Finding details */
.web-finding-url {
    margin: 6px 0;
}

.web-finding-url code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--accent);
    word-break: break-all;
}

.web-finding-evidence {
    margin: 8px 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.web-finding-evidence code {
    display: block;
    margin-top: 4px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}

.web-finding-evidence strong {
    color: var(--text-primary);
}


/* ----------------------------------------
   35. Subscription / Multi-step Register
   ---------------------------------------- */

/* Step indicators */
.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0 8px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: all var(--transition-base);
}

.step-indicator.active,
.step-indicator.completed {
  opacity: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.step-indicator.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.step-indicator.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 18px;
  max-width: 60px;
}

/* Register step panels */
.reg-step {
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.reg-step.active {
  display: block;
}

.step-title {
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.reg-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.reg-step-actions .btn {
  flex: 1;
}

/* Auth container wide mode (plan selection) */
.auth-container.auth-wide {
  max-width: 780px;
}

/* Plan cards */
.plan-cards-container {
  display: flex;
  gap: 12px;
}

.plan-card {
  flex: 1;
  position: relative;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  min-width: 0;
}

@media (max-width: 600px) {
  .plan-cards-container {
    flex-direction: column;
  }
}

.plan-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.plan-card.selected {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(59, 130, 246, 0.15);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.plan-card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.plan-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  text-align: left;
  padding: 0;
}

.plan-features li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.plan-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Payment summary */
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.payment-summary strong {
  color: var(--accent);
}

/* PayPal button container */
#paypal-button-container {
  min-height: 55px;
  margin-bottom: 12px;
}

.paypal-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 16px 0;
}


/* ----------------------------------------
   37. Reputation View
   ---------------------------------------- */

/* Loading card */
.rep-loading-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 24px;
}

.rep-loading-card p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.rep-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: rep-spin 0.8s linear infinite;
}

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

/* Summary header */
.rep-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.rep-summary-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* Risk badges */
.rep-risk-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rep-risk-clean {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.rep-risk-low {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.rep-risk-medium {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.rep-risk-unknown {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.rep-risk-high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Stats row */
.rep-stats-row {
  display: flex;
  gap: 16px;
  padding: 12px 0 16px;
  flex-wrap: wrap;
}

.rep-stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-tertiary);
  border-radius: 8px;
}

.rep-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rep-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rep-stat-clean .rep-stat-value {
  color: #22c55e;
}

.rep-stat-flagged .rep-stat-value {
  color: #ef4444;
}

/* Providers grid */
.rep-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 8px 0;
}

.rep-provider-card {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--border);
  transition: transform 0.15s ease;
}

.rep-provider-card:hover {
  transform: translateY(-2px);
}

.rep-provider-clean {
  border-left-color: #22c55e;
}

.rep-provider-flagged {
  border-left-color: #ef4444;
}

.rep-provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.rep-provider-header strong {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.rep-provider-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rep-provider-detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Badges */
.rep-badge-clean {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  white-space: nowrap;
}

.rep-badge-flagged {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  white-space: nowrap;
}

/* Tabs (same logic as results-tab but reputation- prefix) */
.reputation-tab {
  padding: 8px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

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

.reputation-panel {
  display: none;
  padding: 8px 0;
}

.reputation-panel.active {
  display: block;
}

/* Subdomains info */
.rep-subdomains-info {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .rep-providers-grid {
    grid-template-columns: 1fr;
  }

  .rep-stats-row {
    gap: 8px;
  }

  .rep-stat {
    min-width: 70px;
    padding: 8px 4px;
  }

  .rep-stat-value {
    font-size: 1.25rem;
  }

  .rep-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ----------------------------------------
   38. WhatsApp Float Button
   ---------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* ----------------------------------------
   39. Footer
   ---------------------------------------- */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  z-index: 100;
}

.app-footer a {
  color: var(--accent);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 52px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}


/* ----------------------------------------
   40. Reduced Motion Preference
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ----------------------------------------
   41. Monitoring Module
   ---------------------------------------- */

/* Stats row */
.monitoring-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.mon-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mon-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mon-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mon-stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mon-stat-card.stat-healthy {
  border-left: 4px solid var(--success);
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(22, 163, 74, 0.06));
}
.mon-stat-card.stat-healthy .stat-value { color: var(--success); }

.mon-stat-card.stat-degraded {
  border-left: 4px solid var(--warning);
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(217, 119, 6, 0.06));
}
.mon-stat-card.stat-degraded .stat-value { color: var(--warning); }

.mon-stat-card.stat-critical {
  border-left: 4px solid var(--danger);
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(220, 38, 38, 0.06));
}
.mon-stat-card.stat-critical .stat-value { color: var(--danger); }

/* Monitors grid */
.monitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Monitor card */
.monitor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.monitor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7C3AED);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.monitor-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.monitor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.monitor-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.monitor-card-title h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.monitor-card-actions {
  display: flex;
  gap: 4px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}
.btn-icon-danger:hover { color: var(--danger); background: var(--danger-bg); }

/* Status badge */
.monitor-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.monitor-status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.monitor-status-badge.status-healthy {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.monitor-status-badge.status-healthy::before {
  background: var(--success);
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

.monitor-status-badge.status-degraded {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.monitor-status-badge.status-degraded::before {
  background: var(--warning);
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.5);
}

.monitor-status-badge.status-critical {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}
.monitor-status-badge.status-critical::before {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
  animation: statusPulse 1s ease-in-out infinite;
}

.monitor-status-badge.status-unknown {
  background: var(--info-bg);
  color: var(--info);
}
.monitor-status-badge.status-unknown::before {
  background: var(--info);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Type badge */
.monitor-type-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(124, 58, 237, 0.08));
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.monitor-card-url {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  word-break: break-all;
  padding: 6px 10px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Mini stats */
.monitor-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.monitor-mini-stat {
  text-align: center;
  padding: 10px 6px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.monitor-mini-stat:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
}

.mini-stat-label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.mini-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
}

.mini-stat-value.alert-count { color: var(--danger); font-weight: 800; }

/* Card footer */
.monitor-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Detail tabs */
.detail-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.detail-tab {
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.detail-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.detail-tab.active {
  color: var(--accent);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.detail-tab-panel { display: none; }
.detail-tab-panel.active { display: block; }

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-item {
  text-align: center;
  padding: 12px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Chart wrapper */
.chart-wrapper {
  height: 260px;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}

/* Alerts list */
.alerts-list { display: flex; flex-direction: column; gap: 10px; }

.alert-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--border);
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast);
}

.alert-item:hover {
  box-shadow: var(--shadow-sm);
}

.alert-item.alert-critical {
  border-left-color: var(--critical);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.04), var(--bg-card) 40%);
}
.alert-item.alert-high {
  border-left-color: var(--high);
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.04), var(--bg-card) 40%);
}
.alert-item.alert-medium {
  border-left-color: var(--medium);
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.04), var(--bg-card) 40%);
}
.alert-item.alert-low { border-left-color: var(--low); }
.alert-item.alert-info { border-left-color: var(--info); }

.alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.alert-time { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.alert-message { font-size: 0.85rem; color: var(--text-secondary); margin: 4px 0 8px; }
.alert-actions-read { display: inline-flex; align-items: center; gap: 8px; }

/* DNS snapshots */
.dns-snapshot {
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition-fast);
}

.dns-snapshot:hover {
  box-shadow: var(--shadow-sm);
}

.dns-snapshot-header {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dns-records div {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.dns-records strong { color: var(--text-primary); }

/* Error cell in checks table */
.error-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Empty state */
/* Plan hint in forms */
.plan-hint {
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--accent);
}

.plan-hint strong { color: var(--text-primary); }

select option:disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.usage-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.usage-item span { color: var(--text-secondary); }
.usage-item strong { color: var(--text-primary); }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state p { margin-bottom: 8px; }

@media (max-width: 768px) {
  .monitors-grid { grid-template-columns: 1fr; }
  .monitor-mini-stats { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Business Interpretation Panels (Contexto de Negocio)
   ============================================================ */

/* --- Panel general de interpretacion --- */
.bi-interpretation-panel {
  margin: 16px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.bi-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bi-status-icon { font-size: 1.3rem; }

.bi-status-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bi-risk-badge {
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bi-risk-bajo { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.bi-risk-medio { background: rgba(234, 179, 8, 0.15); color: #EAB308; }
.bi-risk-alto { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.bi-risk-critico { background: rgba(220, 38, 38, 0.2); color: #DC2626; }

/* --- Indicadores contextuales --- */
.bi-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bi-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.bi-indicator.bi-positive {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.bi-indicator.bi-negative {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.bi-indicator.bi-warning {
  background: rgba(234, 179, 8, 0.1);
  color: #EAB308;
  border: 1px solid rgba(234, 179, 8, 0.2);
}
.bi-indicator.bi-neutral {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.bi-ind-icon { font-size: 1rem; }

/* --- Resumen ejecutivo --- */
.bi-executive-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* --- Impacto en areas de negocio --- */
.bi-impact-section { margin-bottom: 14px; }

.bi-impact-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.bi-impact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.bi-impact-item:last-child { border-bottom: none; }

.bi-impact-area {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 140px;
}

.bi-impact-badge {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  min-width: 50px;
  text-align: center;
}
.bi-impact-bajo { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.bi-impact-medio { background: rgba(234, 179, 8, 0.15); color: #EAB308; }
.bi-impact-alto { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.bi-impact-detail {
  color: var(--text-secondary);
  flex: 1;
}

/* --- Recomendacion de negocio --- */
.bi-recommendation {
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
.bi-recommendation strong {
  color: #22C55E;
}

/* --- Panel de contexto de negocio en vulnerabilidades/web findings --- */
.bi-vuln-context {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.bi-vuln-context-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.bi-vuln-context-header:hover { opacity: 0.85; }

.bi-ctx-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

.bi-ctx-toggle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.bi-ctx-body {
  font-size: 0.85rem;
  display: none;
}
.bi-vuln-context.bi-ctx-open .bi-ctx-body { display: block; }
.bi-vuln-context.bi-ctx-open .bi-ctx-toggle { transform: rotate(180deg); }

.bi-ctx-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}

.bi-ctx-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
  font-size: 0.8rem;
}

.bi-ctx-value {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.83rem;
}

.bi-ctx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bi-ctx-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
}

.bi-ctx-rec {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.12);
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.5;
}
.bi-ctx-rec strong { color: #22C55E; }

/* --- Monitoring business context --- */
.bi-monitor-context {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bi-monitor-context strong { color: var(--text-primary); }

@media (max-width: 768px) {
  .bi-indicators { flex-direction: column; }
  .bi-impact-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bi-ctx-row { flex-direction: column; gap: 2px; }
}


/* ----------------------------------------
   42. WhatsApp Integration
   ---------------------------------------- */
.btn-success {
  background: #25D366;
  color: #fff;
  border: none;
}

.btn-success:hover {
  background: #1DA851;
}

.form-hint {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ----------------------------------------
   RESPONSIVE ENHANCEMENTS
   ---------------------------------------- */

/* Small laptop: <= 1400px (14" laptops 1366x768) */
@media (max-width: 1400px) {
  .auth-container {
    max-width: 460px;
    padding: 16px;
  }

  .auth-card {
    padding: 36px 32px 30px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-brand h1 {
    font-size: 1.65rem;
  }

  .auth-brand p {
    font-size: 0.88rem;
  }

  .brand-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  .auth-tabs {
    margin-bottom: 24px;
  }

  .auth-tab {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .auth-card .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 0.82rem;
    margin-bottom: 5px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="url"],
  .form-group input[type="number"],
  .form-group input[type="tel"],
  .form-group textarea {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .auth-footer {
    margin-top: 18px;
    font-size: 0.82rem;
  }

  .auth-container.auth-wide {
    max-width: 660px;
  }
}

/* Small laptop short screens (height <= 800px) */
@media (max-height: 800px) {
  .auth-container {
    max-width: 440px;
  }

  .auth-card {
    padding: 28px 28px 24px;
  }

  .auth-brand {
    margin-bottom: 20px;
  }

  .auth-brand h1 {
    font-size: 1.5rem;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .auth-tabs {
    margin-bottom: 20px;
  }

  .auth-tab {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    margin-bottom: 4px;
    font-size: 0.8rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="url"],
  .form-group input[type="number"],
  .form-group input[type="tel"],
  .form-group textarea {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .auth-card .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .auth-footer {
    margin-top: 14px;
    font-size: 0.8rem;
  }

  #auth-screen::before {
    width: 600px;
    height: 600px;
  }
}

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .monitoring-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .monitors-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .auth-container.auth-wide {
    max-width: 95%;
  }

  .view-header.monitoring-header .monitoring-title {
    position: static;
    transform: none;
  }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
  /* View headers — stack on mobile */
  .view-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .view-header h2 {
    font-size: 1.1rem;
    width: 100%;
  }

  .view-header .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .view-header .header-actions .search-input {
    width: 100%;
    min-width: 0;
  }

  .view-header.monitoring-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .view-header.monitoring-header .monitoring-title {
    position: static;
    transform: none;
    justify-content: center;
  }

  .view-header.monitoring-header .header-actions {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .view-header.monitoring-header .header-actions .select-input {
    flex: 1;
    min-width: 140px;
  }

  .view-header.monitoring-header .header-actions .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  /* Monitoring stats */
  .monitoring-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mon-stat-card {
    padding: 14px 10px;
  }

  .mon-stat-card .stat-value {
    font-size: 1.5rem;
  }

  /* Monitor cards */
  .monitors-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .monitor-card {
    padding: 16px;
  }

  .monitor-card-url {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  .monitor-mini-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .monitor-mini-stat {
    padding: 8px 4px;
  }

  .mini-stat-value {
    font-size: 0.9rem;
  }

  /* Detail tabs */
  .detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detail-tab {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Bulk bar */
  .bulk-bar {
    flex-wrap: wrap;
    padding: 8px 14px;
    font-size: 0.8rem;
    gap: 8px;
  }

  /* History table — hide less important columns */
  .data-table thead th:nth-child(6),
  .data-table tbody td:nth-child(6) {
    display: none;
  }

  /* Auth / Login */
  #auth-screen::before {
    width: 500px;
    height: 500px;
  }

  .auth-container {
    max-width: 100%;
    padding: 16px;
  }

  .auth-card {
    padding: 32px 24px 28px;
    border-radius: var(--radius-lg);
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-brand h1 {
    font-size: 1.6rem;
  }

  .auth-brand p {
    font-size: 0.88rem;
  }

  .brand-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  .auth-tabs {
    margin-bottom: 24px;
  }

  .auth-tab {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .auth-card .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .auth-footer {
    font-size: 0.8rem;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 0.82rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="url"],
  .form-group input[type="number"],
  .form-group input[type="tel"],
  .form-group textarea {
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  /* Register multi-step */
  .auth-container.auth-wide {
    max-width: 100%;
  }

  .plan-cards-container {
    flex-direction: column;
    gap: 10px;
  }

  .plan-card {
    padding: 16px 14px;
  }

  .register-steps {
    gap: 0;
    margin-bottom: 20px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .step-line {
    max-width: 40px;
    margin: 0 4px;
    margin-bottom: 16px;
  }

  .reg-step-actions {
    flex-direction: column;
    gap: 8px;
  }

  /* Sidebar brand */
  .sidebar-brand {
    padding: 18px 14px 16px;
  }

  /* App footer */
  .app-footer {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
}

/* Small mobile: <= 480px */
@media (max-width: 480px) {
  .monitoring-stats {
    grid-template-columns: 1fr;
  }

  .mon-stat-card .stat-value {
    font-size: 1.3rem;
  }

  .monitor-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .monitor-card-actions {
    align-self: flex-end;
  }

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

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

  .chart-wrapper {
    height: 200px;
    padding: 10px;
  }

  #auth-screen::before {
    width: 350px;
    height: 350px;
  }

  .auth-container {
    padding: 10px;
  }

  .auth-card {
    padding: 24px 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .auth-brand {
    margin-bottom: 22px;
  }

  .auth-brand h1 {
    font-size: 1.35rem;
  }

  .auth-brand p {
    font-size: 0.82rem;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .auth-tabs {
    margin-bottom: 20px;
  }

  .auth-tab {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .auth-card .btn {
    padding: 11px 16px;
    font-size: 0.85rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="url"],
  .form-group input[type="number"],
  .form-group input[type="tel"],
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .step-label {
    font-size: 0.55rem;
    display: none;
  }

  .step-line {
    max-width: 30px;
    margin-bottom: 0;
  }

  .view-header h2 {
    font-size: 1.1rem;
  }

  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .alert-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-time {
    margin-left: 0;
  }
}
