    /* ===== CSS VARIABLES ===== */
    :root {
      --bg-primary: #0a0f1e;
      --bg-secondary: #0f1629;
      --bg-card: #141c35;
      --bg-card-hover: #1a2340;
      --bg-input: #0d1327;
      --border: #1e2d4a;
      --border-active: #3b5bdb;
      --text-primary: #e8eaf6;
      --text-secondary: #8892b0;
      --text-muted: #546181;
      --accent: #4c6ef5;
      --accent-glow: rgba(76, 110, 245, 0.25);
      --accent-secondary: #7c3aed;
      --danger: #ef4444;
      --danger-bg: rgba(239, 68, 68, 0.12);
      --warning: #f59e0b;
      --warning-bg: rgba(245, 158, 11, 0.12);
      --success: #10b981;
      --success-bg: rgba(16, 185, 129, 0.12);
      --info: #06b6d4;
      --info-bg: rgba(6, 182, 212, 0.12);
      --critical-color: #ff4757;
      --critical-bg: rgba(255, 71, 87, 0.12);
      --high-color: #ff6b35;
      --high-bg: rgba(255, 107, 53, 0.12);
      --medium-color: #ffa94d;
      --medium-bg: rgba(255, 169, 77, 0.12);
      --low-color: #69db7c;
      --low-bg: rgba(105, 219, 124, 0.12);
      --nav-bg: rgba(10, 15, 30, 0.95);
      --shadow: 0 4px 24px rgba(0,0,0,0.4);
      --radius: 12px;
      --radius-sm: 8px;
      --font-display: 'Outfit', sans-serif;
      --font-body: 'Inter', sans-serif;
      --transition: 0.2s ease;
    }

    [data-theme="light"] {
      --bg-primary: #f0f4ff;
      --bg-secondary: #e8eeff;
      --bg-card: #ffffff;
      --bg-card-hover: #f5f8ff;
      --bg-input: #ffffff;
      --border: #d0d9f0;
      --border-active: #4c6ef5;
      --text-primary: #1a1f36;
      --text-secondary: #4a5568;
      --text-muted: #718096;
      --accent: #4c6ef5;
      --accent-glow: rgba(76, 110, 245, 0.15);
      --bg-primary-rgb: 240, 244, 255;
      --nav-bg: rgba(240, 244, 255, 0.95);
      --shadow: 0 4px 24px rgba(0,0,0,0.1);
      --danger-bg: rgba(239, 68, 68, 0.08);
      --warning-bg: rgba(245, 158, 11, 0.08);
      --success-bg: rgba(16, 185, 129, 0.08);
      --info-bg: rgba(6, 182, 212, 0.08);
    }

    /* ===== RESET & BASE ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }
    body {
      font-family: var(--font-body);
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
      transition: background var(--transition), color var(--transition);
    }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }
    img { max-width: 100%; height: auto; display: block; }
    button { cursor: pointer; font-family: var(--font-body); }

    /* ===== NAVBAR ===== */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--nav-bg);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 1.5rem;
    }
    .nav-inner {
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      gap: 1rem;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-primary);
      white-space: nowrap;
      flex-shrink: 0;
    }
    .nav-brand-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      color: white;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      list-style: none;
      flex: 1;
      justify-content: center;
    }
    .nav-item { position: relative; }
    .nav-link {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.5rem 0.75rem;
      border-radius: 6px;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text-secondary);
      transition: all var(--transition);
      white-space: nowrap;
      background: none;
      border: none;
    }
    .nav-link:hover, .nav-link.active {
      color: var(--text-primary);
      background: var(--bg-card);
      text-decoration: none;
    }
    .nav-dropdown {
      position: absolute;
      top: calc(100% + 2px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem;
      display: none;
      min-width: 720px;
      box-shadow: var(--shadow);
      z-index: 200;
    }
    .nav-item:hover .nav-dropdown { display: block; }
    .dropdown-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.25rem;
    }
    .dropdown-link {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      border-radius: 6px;
      font-size: 0.8125rem;
      color: var(--text-secondary);
      transition: all var(--transition);
    }
    .dropdown-link:hover {
      background: var(--bg-card-hover);
      color: var(--text-primary);
      text-decoration: none;
    }
    .dropdown-link i { width: 14px; color: var(--accent); font-size: 0.75rem; }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .theme-btn {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.45rem 0.65rem;
      color: var(--text-secondary);
      font-size: 0.9rem;
      transition: all var(--transition);
    }
    .theme-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 4px;
      background: none;
      border: none;
      padding: 6px;
      cursor: pointer;
    }
    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-primary);
      border-radius: 2px;
      transition: all var(--transition);
    }
    .mobile-menu {
      display: none;
      background: var(--bg-card);
      border-top: 1px solid var(--border);
      padding: 1rem 1.5rem 1.5rem;
      max-height: 80vh;
      overflow-y: auto;
    }
    .mobile-menu.open { display: block; }
    .mobile-section-title {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin: 1rem 0 0.5rem;
    }
    .mobile-link {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.25rem;
      font-size: 0.875rem;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border);
    }
    .mobile-link:hover { color: var(--accent); text-decoration: none; }
    .mobile-link i { width: 16px; color: var(--accent); }

    /* ===== MAIN CONTAINER ===== */
    .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

    /* ===== BREADCRUMB ===== */
    .breadcrumb {
      padding: 0.75rem 1.5rem;
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
      font-size: 0.8125rem;
      color: var(--text-muted);
    }
    .breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
    .breadcrumb a:hover { color: var(--accent); text-decoration: none; }
    .breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }
    .breadcrumb-current { color: var(--text-secondary); font-weight: 500; }

    /* ===== HERO ===== */
    .hero {
      padding: 4rem 1.5rem 3rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76,110,245,0.18) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--accent-glow);
      border: 1px solid rgba(76,110,245,0.3);
      color: var(--accent);
      padding: 0.35rem 0.85rem;
      border-radius: 100px;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      margin-bottom: 1.25rem;
    }
    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.25rem);
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 1.25rem;
      background: linear-gradient(135deg, var(--text-primary) 0%, #a5b4fc 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero p {
      max-width: 640px;
      margin: 0 auto 2rem;
      font-size: 1.1rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }
    .hero-stats {
      display: flex;
      justify-content: center;
      gap: 2.5rem;
      flex-wrap: wrap;
      margin-top: 1.5rem;
    }
    .hero-stat { text-align: center; }
    .hero-stat-num {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--accent);
    }
    .hero-stat-label {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
    }

    /* ===== SCANNER SECTION ===== */
    .scanner-section {
      padding: 0 1.5rem 4rem;
    }
    .scanner-grid {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 1.5rem;
    }
    .scanner-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .card-header {
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .card-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .card-title i { color: var(--accent); }
    .card-body { padding: 1.5rem; }

    /* ===== SCAN CONTROLS ===== */
    .scan-mode-tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }
    .mode-tab {
      padding: 0.4rem 0.9rem;
      border-radius: 6px;
      font-size: 0.8125rem;
      font-weight: 600;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-muted);
      transition: all var(--transition);
    }
    .mode-tab.active {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }

    .xml-textarea {
      width: 100%;
      min-height: 320px;
      background: var(--bg-input);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-family: 'Courier New', Courier, monospace;
      font-size: 0.825rem;
      line-height: 1.6;
      padding: 1rem;
      resize: vertical;
      transition: border-color var(--transition);
      outline: none;
    }
    .xml-textarea:focus { border-color: var(--border-active); }
    .xml-textarea.error { border-color: var(--danger); }
    .xml-textarea.valid { border-color: var(--success); }

    .upload-zone {
      border: 2px dashed var(--border);
      border-radius: var(--radius-sm);
      padding: 1.5rem;
      text-align: center;
      cursor: pointer;
      transition: all var(--transition);
      margin-bottom: 1rem;
    }
    .upload-zone:hover, .upload-zone.drag-over {
      border-color: var(--accent);
      background: var(--accent-glow);
    }
    .upload-zone i {
      font-size: 1.75rem;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }
    .upload-zone p { font-size: 0.875rem; color: var(--text-muted); }
    .upload-zone strong { color: var(--accent); }

    .btn-row {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
      flex-wrap: wrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.65rem 1.25rem;
      border-radius: 8px;
      font-size: 0.875rem;
      font-weight: 600;
      border: none;
      transition: all var(--transition);
    }
    .btn-primary {
      background: var(--accent);
      color: white;
      flex: 1;
      justify-content: center;
    }
    .btn-primary:hover { background: #3b5bdb; }
    .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
    .btn-outline {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-secondary);
    }
    .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
    .btn-danger {
      background: var(--danger-bg);
      border: 1px solid rgba(239,68,68,0.3);
      color: var(--danger);
    }
    .btn-danger:hover { background: rgba(239,68,68,0.2); }

    .char-counter {
      font-size: 0.75rem;
      color: var(--text-muted);
      text-align: right;
      margin-top: 0.35rem;
    }
    .char-counter.warn { color: var(--warning); }
    .char-counter.limit { color: var(--danger); }

    /* ===== PAYLOAD GENERATOR ===== */
    .payload-section { margin-top: 1.5rem; }
    .payload-label {
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
    }
    .payload-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem;
    }
    .payload-btn {
      padding: 0.5rem 0.65rem;
      border-radius: 6px;
      font-size: 0.775rem;
      font-weight: 600;
      border: 1px solid var(--border);
      background: var(--bg-input);
      color: var(--text-secondary);
      transition: all var(--transition);
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .payload-btn:hover { border-color: var(--accent); color: var(--accent); }
    .payload-btn.crit { border-color: rgba(255,71,87,0.3); color: var(--critical-color); }
    .payload-btn.crit:hover { background: var(--critical-bg); }
    .payload-btn.warn { border-color: rgba(255,169,77,0.3); color: var(--medium-color); }
    .payload-btn.warn:hover { background: var(--medium-bg); }
    .payload-btn.safe { border-color: rgba(16,185,129,0.3); color: var(--success); }
    .payload-btn.safe:hover { background: var(--success-bg); }

    /* ===== SIDEBAR ===== */
    .sidebar { display: flex; flex-direction: column; gap: 1rem; }
    .info-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
    }
    .info-title {
      font-family: var(--font-display);
      font-size: 0.9rem;
      font-weight: 700;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .info-title i { color: var(--accent); }
    .checklist { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
    .checklist li {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      font-size: 0.8125rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }
    .checklist li i { color: var(--accent); margin-top: 0.1rem; flex-shrink: 0; font-size: 0.75rem; }

    .severity-legend { display: flex; flex-direction: column; gap: 0.5rem; }
    .sev-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
    }
    .sev-badge {
      padding: 0.2rem 0.65rem;
      border-radius: 100px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.05em;
    }
    .sev-badge.critical { background: var(--critical-bg); color: var(--critical-color); }
    .sev-badge.high { background: var(--high-bg); color: var(--high-color); }
    .sev-badge.medium { background: var(--medium-bg); color: var(--medium-color); }
    .sev-badge.low { background: var(--low-bg); color: var(--low-color); }
    .sev-badge.none { background: var(--success-bg); color: var(--success); }

    /* ===== RESULTS ===== */
    #resultsSection { display: none; padding: 0 1.5rem 4rem; }
    .results-wrap { max-width: 1280px; margin: 0 auto; }

    .risk-banner {
      border-radius: var(--radius);
      padding: 1.5rem 2rem;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .risk-banner.critical { background: var(--critical-bg); border: 1px solid rgba(255,71,87,0.25); }
    .risk-banner.high { background: var(--high-bg); border: 1px solid rgba(255,107,53,0.25); }
    .risk-banner.medium { background: var(--medium-bg); border: 1px solid rgba(255,169,77,0.25); }
    .risk-banner.low { background: var(--low-bg); border: 1px solid rgba(105,219,124,0.25); }
    .risk-banner.none { background: var(--success-bg); border: 1px solid rgba(16,185,129,0.25); }

    .risk-icon {
      font-size: 2.5rem;
      flex-shrink: 0;
    }
    .risk-banner.critical .risk-icon { color: var(--critical-color); }
    .risk-banner.high .risk-icon { color: var(--high-color); }
    .risk-banner.medium .risk-icon { color: var(--medium-color); }
    .risk-banner.low .risk-icon { color: var(--low-color); }
    .risk-banner.none .risk-icon { color: var(--success); }

    .risk-content { flex: 1; }
    .risk-level-label {
      font-family: var(--font-display);
      font-size: 1.6rem;
      font-weight: 800;
      line-height: 1;
    }
    .risk-banner.critical .risk-level-label { color: var(--critical-color); }
    .risk-banner.high .risk-level-label { color: var(--high-color); }
    .risk-banner.medium .risk-level-label { color: var(--medium-color); }
    .risk-banner.low .risk-level-label { color: var(--low-color); }
    .risk-banner.none .risk-level-label { color: var(--success); }

    .risk-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.25rem; }

    .score-ring-wrap { text-align: center; }
    .score-ring {
      width: 80px;
      height: 80px;
    }
    .score-ring-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    .stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
      text-align: center;
    }
    .stat-num {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 800;
      line-height: 1;
    }
    .stat-num.critical { color: var(--critical-color); }
    .stat-num.high { color: var(--high-color); }
    .stat-num.medium { color: var(--medium-color); }
    .stat-num.low { color: var(--low-color); }
    .stat-num.safe { color: var(--success); }
    .stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

    /* ===== FINDINGS ===== */
    .findings-list { display: flex; flex-direction: column; gap: 1rem; }
    .finding-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .finding-header {
      padding: 1rem 1.25rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      cursor: pointer;
      transition: background var(--transition);
    }
    .finding-header:hover { background: var(--bg-card-hover); }
    .finding-sev {
      padding: 0.25rem 0.75rem;
      border-radius: 100px;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      flex-shrink: 0;
    }
    .finding-sev.CRITICAL { background: var(--critical-bg); color: var(--critical-color); border: 1px solid rgba(255,71,87,0.25); }
    .finding-sev.HIGH { background: var(--high-bg); color: var(--high-color); border: 1px solid rgba(255,107,53,0.25); }
    .finding-sev.MEDIUM { background: var(--medium-bg); color: var(--medium-color); border: 1px solid rgba(255,169,77,0.25); }
    .finding-sev.LOW { background: var(--low-bg); color: var(--low-color); border: 1px solid rgba(105,219,124,0.25); }
    .finding-title {
      font-size: 0.9rem;
      font-weight: 700;
      flex: 1;
    }
    .finding-meta {
      font-size: 0.75rem;
      color: var(--text-muted);
      display: flex;
      gap: 0.75rem;
      flex-shrink: 0;
    }
    .finding-toggle {
      color: var(--text-muted);
      transition: transform var(--transition);
    }
    .finding-header.expanded .finding-toggle { transform: rotate(180deg); }
    .finding-body {
      display: none;
      padding: 1.25rem;
      border-top: 1px solid var(--border);
    }
    .finding-body.open { display: block; }
    .finding-section { margin-bottom: 1rem; }
    .finding-section:last-child { margin-bottom: 0; }
    .finding-section-label {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
    }
    .finding-section p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
    .finding-code {
      background: var(--bg-input);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.65rem 1rem;
      font-family: 'Courier New', monospace;
      font-size: 0.8rem;
      color: var(--warning);
      word-break: break-all;
    }
    .finding-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .finding-tag {
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 700;
      background: var(--bg-input);
      border: 1px solid var(--border);
      color: var(--text-muted);
    }

    /* ===== PARSE ERRORS ===== */
    .parse-error-box {
      background: var(--warning-bg);
      border: 1px solid rgba(245,158,11,0.25);
      border-radius: var(--radius-sm);
      padding: 1rem 1.25rem;
      margin-bottom: 1rem;
    }
    .parse-error-box h4 { font-size: 0.875rem; font-weight: 700; color: var(--warning); margin-bottom: 0.5rem; }
    .parse-error-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
    .parse-error-box li { font-size: 0.8rem; color: var(--text-secondary); }

    .clean-notice {
      background: var(--success-bg);
      border: 1px solid rgba(16,185,129,0.25);
      border-radius: var(--radius);
      padding: 2rem;
      text-align: center;
    }
    .clean-notice i { font-size: 2.5rem; color: var(--success); margin-bottom: 0.75rem; }
    .clean-notice h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--success); margin-bottom: 0.5rem; }
    .clean-notice p { font-size: 0.875rem; color: var(--text-secondary); }

    .results-actions {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    /* ===== PROGRESS ===== */
    .scan-progress {
      display: none;
      text-align: center;
      padding: 2rem;
    }
    .scan-progress.active { display: block; }
    .progress-bar-wrap {
      background: var(--bg-input);
      border-radius: 100px;
      height: 6px;
      overflow: hidden;
      margin: 1rem auto;
      max-width: 300px;
    }
    .progress-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
      border-radius: 100px;
      animation: progressAnim 1.8s ease-in-out infinite;
    }
    @keyframes progressAnim {
      0% { width: 0%; margin-left: 0; }
      50% { width: 70%; margin-left: 15%; }
      100% { width: 0%; margin-left: 100%; }
    }
    .progress-text { font-size: 0.875rem; color: var(--text-muted); }

    /* ===== VALIDATION ===== */
    .field-error {
      font-size: 0.775rem;
      color: var(--danger);
      margin-top: 0.35rem;
      display: none;
    }
    .field-error.visible { display: block; }

    /* ===== TOAST ===== */
    .toast-container {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .toast {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.75rem 1.25rem;
      font-size: 0.875rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      box-shadow: var(--shadow);
      animation: slideIn 0.3s ease;
      max-width: 320px;
    }
    .toast.success { border-color: rgba(16,185,129,0.4); }
    .toast.success i { color: var(--success); }
    .toast.error { border-color: rgba(239,68,68,0.4); }
    .toast.error i { color: var(--danger); }
    .toast.info i { color: var(--accent); }
    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    /* ===== FEATURES ===== */
    .section { padding: 5rem 1.5rem; }
    .section-header { text-align: center; margin-bottom: 3rem; }
    .section-eyebrow {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: clamp(1.6rem, 3vw, 2.25rem);
      font-weight: 800;
      margin-bottom: 0.75rem;
    }
    .section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

    .features-grid {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
    }
    .feature-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.75rem;
      transition: all var(--transition);
    }
    .feature-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(76,110,245,0.12);
    }
    .feature-icon {
      width: 44px;
      height: 44px;
      background: linear-gradient(135deg, var(--accent-glow), rgba(124,58,237,0.15));
      border: 1px solid rgba(76,110,245,0.2);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: var(--accent);
      margin-bottom: 1rem;
    }
    .feature-card h3 {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    .feature-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

    /* ===== HOW IT WORKS ===== */
    .how-bg { background: var(--bg-secondary); }
    .steps-grid {
      max-width: 900px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      text-align: center;
    }
    .step { position: relative; }
    .step-num {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 800;
      color: white;
      margin: 0 auto 1rem;
    }
    .step h3 {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    .step p { font-size: 0.875rem; color: var(--text-secondary); }

    /* ===== ARTICLE ===== */
    .article-section { padding: 5rem 1.5rem; }
    .article-wrap {
      max-width: 860px;
      margin: 0 auto;
    }
    .article-wrap h2 {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 800;
      margin-bottom: 1rem;
      margin-top: 2rem;
    }
    .article-wrap h2:first-child { margin-top: 0; }
    .article-wrap p {
      font-size: 0.9375rem;
      color: var(--text-secondary);
      line-height: 1.8;
      margin-bottom: 1rem;
    }
    .article-wrap strong { color: var(--text-primary); }

    /* ===== FAQ ===== */
    .faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
    .faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
    }
    .faq-q {
      padding: 1.1rem 1.25rem;
      font-size: 0.9375rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      gap: 1rem;
      transition: background var(--transition);
    }
    .faq-q:hover { background: var(--bg-card-hover); }
    .faq-q i { flex-shrink: 0; color: var(--accent); transition: transform var(--transition); }
    .faq-q.open i { transform: rotate(180deg); }
    .faq-a {
      display: none;
      padding: 0 1.25rem 1.1rem;
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.7;
      border-top: 1px solid var(--border);
      padding-top: 1rem;
    }
    .faq-a.open { display: block; }

    /* ===== CTA ===== */
    .cta-section {
      padding: 5rem 1.5rem;
      text-align: center;
    }
    .cta-wrap {
      max-width: 700px;
      margin: 0 auto;
      background: linear-gradient(135deg, var(--bg-card) 0%, rgba(76,110,245,0.05) 100%);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 3.5rem 2.5rem;
    }
    .cta-wrap h2 {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 800;
      margin-bottom: 1rem;
    }
    .cta-wrap p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }
    .cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
    .btn-cta-primary {
      background: var(--accent);
      color: white;
      padding: 0.8rem 1.75rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.9375rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all var(--transition);
      border: none;
    }
    .btn-cta-primary:hover { background: #3b5bdb; transform: translateY(-1px); text-decoration: none; }
    .btn-cta-outline {
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--text-secondary);
      padding: 0.8rem 1.75rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.9375rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all var(--transition);
    }
    .btn-cta-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

    /* ===== EXPLORE TOOLS ===== */
    .explore-section { padding: 3rem 1.5rem; background: var(--bg-secondary); }
    .explore-title {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 1.25rem;
      text-align: center;
    }
    .explore-grid {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 0.5rem;
    }
    .explore-link {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 0.9rem;
      border-radius: 8px;
      font-size: 0.8125rem;
      color: var(--text-secondary);
      background: var(--bg-card);
      border: 1px solid var(--border);
      transition: all var(--transition);
    }
    .explore-link:hover {
      border-color: var(--accent);
      color: var(--accent);
      text-decoration: none;
    }
    .explore-link i { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }

    /* ===== FOOTER ===== */
    footer {
      background: var(--bg-secondary);
      border-top: 1px solid var(--border);
      padding: 3rem 1.5rem 1.5rem;
    }
    .footer-grid {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr repeat(4, 1fr);
      gap: 2rem;
      margin-bottom: 2.5rem;
    }
    .footer-brand p {
      font-size: 0.8125rem;
      color: var(--text-muted);
      margin-top: 0.75rem;
      line-height: 1.6;
    }
    .footer-col h4 {
      font-family: var(--font-display);
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
    .footer-links a {
      font-size: 0.8125rem;
      color: var(--text-muted);
      transition: color var(--transition);
    }
    .footer-links a:hover { color: var(--accent); text-decoration: none; }
    .footer-bottom {
      max-width: 1280px;
      margin: 0 auto;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .footer-bottom p { font-size: 0.775rem; color: var(--text-muted); }
    .footer-bottom-links { display: flex; gap: 1rem; flex-wrap: wrap; }
    .footer-bottom-links a { font-size: 0.775rem; color: var(--text-muted); }
    .footer-bottom-links a:hover { color: var(--accent); text-decoration: none; }

    /* ===== COOKIE BANNER ===== */
    .cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--bg-card);
      border-top: 1px solid var(--border);
      padding: 1rem 1.5rem;
      z-index: 1500;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      flex-wrap: wrap;
      box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
    }
    .cookie-banner p { font-size: 0.8125rem; color: var(--text-secondary); flex: 1; }
    .cookie-banner p a { color: var(--accent); }
    .cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
    .cookie-accept {
      padding: 0.5rem 1.25rem;
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
    }
    .cookie-dismiss {
      padding: 0.5rem 1.25rem;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-secondary);
      border-radius: 6px;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
    }
    .cookie-dismiss:hover { border-color: var(--accent); color: var(--accent); }

    /* ===== FILTER TABS ===== */
    .filter-bar {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }
    .filter-tab {
      padding: 0.35rem 0.85rem;
      border-radius: 100px;
      font-size: 0.8rem;
      font-weight: 600;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      transition: all var(--transition);
    }
    .filter-tab.active { background: var(--accent); border-color: var(--accent); color: white; }
    .filter-tab[data-filter="CRITICAL"].active { background: var(--critical-color); border-color: var(--critical-color); }
    .filter-tab[data-filter="HIGH"].active { background: var(--high-color); border-color: var(--high-color); }
    .filter-tab[data-filter="MEDIUM"].active { background: var(--medium-color); border-color: var(--medium-color); }
    .filter-tab[data-filter="LOW"].active { background: var(--low-color); border-color: var(--low-color); }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
      .scanner-grid { grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .hero { padding: 2.5rem 1rem 2rem; }
      .scanner-section { padding: 0 1rem 3rem; }
      .sidebar { grid-template-columns: 1fr; }
      .dropdown-grid { grid-template-columns: 1fr; }
      .payload-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      #resultsSection { padding: 0 1rem 3rem; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .hero-stats { gap: 1.5rem; }
      .cta-wrap { padding: 2.5rem 1.5rem; }
      .section { padding: 3.5rem 1rem; }
    }
    @media (max-width: 480px) {
      .nav-inner { height: 56px; }
      .risk-banner { flex-direction: column; text-align: center; }
      .finding-meta { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }