/* ===== CVE Global — Dark Theme ===== */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #1f2b42;
    --border: #2a3550;
    --border-accent: #3b82f6;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --purple: #a855f7;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.5rem;
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.icon {
    display: inline-flex;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header h3 .icon {
    color: var(--accent);
}

.btn-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.logo-text { color: var(--text-primary); }
.accent { color: var(--accent); }

.nav { display: flex; gap: 1.5rem; }

.nav-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 0;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--accent);
}

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

.scan-btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.scan-btn:hover {
    background: #2563eb;
    box-shadow: 0 0 20px var(--accent-glow);
}

.scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon { font-size: 0.8rem; }

.quick-targets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.quick-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== SCANNING OVERLAY ===== */
.scanning-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(8px);
}

.scan-animation {
    text-align: center;
}

.radar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto 2rem;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
}

.r1 { inset: 0; }
.r2 { inset: 25px; }
.r3 { inset: 50px; }

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent) 10%, transparent 20%);
    animation: sweep 2s linear infinite;
}

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

.scan-status p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.scan-progress {
    width: 300px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.scan-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== RESULTS ===== */
.results {
    padding: 72px 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.full-width {
    grid-column: 1 / -1;
}

/* Security Score Banner */
.sec-score-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
}

.sec-grade {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.sec-grade.grade-aplus { color: var(--green); text-shadow: 0 0 20px rgba(34,197,94,0.4); }
.sec-grade.grade-a { color: var(--green); }
.sec-grade.grade-b { color: #84cc16; }
.sec-grade.grade-c { color: var(--orange); }
.sec-grade.grade-d { color: #f97316; }
.sec-grade.grade-f { color: var(--red); text-shadow: 0 0 20px rgba(239,68,68,0.4); }

.sec-score-bar {
    flex: 1;
}

.sec-score-num {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.3rem;
}

.sec-score-track {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.sec-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.sec-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
    font-size: 0.85rem;
}

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

.sec-status-icon { font-size: 0.9rem; width: 20px; text-align: center; }
.sec-hdr-name { font-family: var(--font-mono); color: var(--text-primary); min-width: 200px; }
.sec-hdr-val { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-hdr-desc { color: var(--text-muted); font-size: 0.78rem; min-width: 180px; text-align: right; }

/* WAF */
.waf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.waf-badge.none {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.waf-name { font-weight: 600; color: var(--green); }
.waf-badge.none .waf-name { color: var(--orange); }
.waf-confidence { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.waf-evidence { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }

/* CVE */
.cve-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
}

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

.cve-id {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.cve-id:hover { text-decoration: underline; }

.cve-cvss {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-left: 0.5rem;
}

.cve-cvss.critical { background: rgba(239,68,68,0.2); color: var(--red); }
.cve-cvss.high { background: rgba(249,115,22,0.2); color: #f97316; }
.cve-cvss.medium { background: rgba(245,158,11,0.2); color: var(--orange); }
.cve-cvss.low { background: rgba(34,197,94,0.2); color: var(--green); }

.cve-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* JS Analysis */
.js-risk {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.js-risk.risk-critical { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.js-risk.risk-high { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.js-risk.risk-medium { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.js-risk.risk-low { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }

.secret-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.secret-severity {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
    min-width: 55px;
    text-align: center;
}

.secret-severity.critical { background: rgba(239,68,68,0.2); color: var(--red); }
.secret-severity.high { background: rgba(249,115,22,0.2); color: #f97316; }
.secret-severity.medium { background: rgba(245,158,11,0.2); color: var(--orange); }

/* Screenshot */
.screenshot-container {
    text-align: center;
}

.screenshot-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ===== NODE DETAIL PANEL ===== */
.node-detail-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 500;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.4);
}

.node-detail-panel.open {
    right: 0;
}

.ndp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.ndp-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.ndp-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: color 0.2s;
}

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

.ndp-body {
    padding: 0.5rem 1.2rem 2rem;
}

.ndp-section {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
}

.ndp-section:last-child { border-bottom: none; }

.ndp-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.ndp-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0;
    gap: 0.5rem;
}

.ndp-key {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.ndp-val {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    text-align: right;
    word-break: break-all;
}

.ndp-highlight { color: var(--accent); font-weight: 600; }
.ndp-grade { font-size: 1.5rem; font-weight: 900; }
.ndp-url { font-size: 0.75rem; color: var(--text-muted); }
.ndp-warn { background: rgba(245,158,11,0.08); border-radius: var(--radius); padding: 0.5rem 0.8rem; margin: 0.3rem 0; }
.ndp-warn p { color: var(--orange); font-size: 0.85rem; }
.ndp-link { display: block; color: var(--accent); font-size: 0.82rem; margin-top: 0.3rem; text-decoration: none; }
.ndp-link:hover { text-decoration: underline; }
.ndp-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }

@media (max-width: 768px) {
    .node-detail-panel { width: 100%; right: -100%; }
}

/* ===== GRAPH ===== */
.graph-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.graph-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.graph-controls {
    display: flex;
    gap: 0.5rem;
}

.ctrl-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.ctrl-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

#graphSvg {
    width: 100%;
    height: 500px;
    display: block;
}

.graph-legend {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.domain { background: var(--accent); }
.dot.ip { background: var(--green); }
.dot.port { background: var(--orange); }
.dot.technology { background: var(--purple); }
.dot.tls { background: var(--cyan); }
.dot.subdomain { background: var(--text-muted); }
.dot.redirect { background: var(--pink); }

/* ===== PANELS ===== */
.panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.panel:hover {
    border-color: var(--bg-card-hover);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.panel-header:hover {
    background: var(--bg-card-hover);
}

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

.toggle-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.panel.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.panel-body {
    padding: 0 1.2rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    line-height: 1.7;
    overflow-x: auto;
}

.panel.collapsed .panel-body {
    display: none;
}

/* Data tables */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
}

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

.data-key {
    color: var(--text-muted);
    min-width: 120px;
}

.data-val {
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

.data-val.highlight { color: var(--green); }
.data-val.warn { color: var(--orange); }
.data-val.danger { color: var(--red); }

.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin: 0.15rem;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: var(--accent);
}

.tag.green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.tag.orange {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--orange);
}

.tag.red {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.sub-list {
    max-height: 300px;
    overflow-y: auto;
}

.sub-list::-webkit-scrollbar {
    width: 6px;
}

.sub-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sub-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ===== NEW SCAN BUTTON ===== */
.new-scan {
    text-align: center;
    margin: 2rem 0;
}

.btn-secondary {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-sep {
    margin: 0 0.5rem;
    opacity: 0.3;
}

/* ===== THEME TOGGLE ===== */
.theme-btn:hover {
    border-color: var(--accent);
}

/* ===== LIGHT THEME ===== */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    --border: #cbd5e1;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

.light-theme .header {
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: #e2e8f0;
}

.light-theme .node-detail-panel {
    background: #ffffff;
    border-left-color: #e2e8f0;
}

.light-theme .ndp-header {
    background: #ffffff;
}

/* ===== HISTORY ===== */
.history-section {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.history-section h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#historyContainer {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.history-host {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== AI REPORT ===== */
.ai-report-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.ai-report-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.ai-report-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
}

.ai-report-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    color: var(--text-primary);
}

.ai-report-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.8rem 0 0.3rem;
    color: var(--text-primary);
}

.ai-report-content ul {
    margin: 0.3rem 0;
    padding-left: 1.5rem;
}

.ai-report-content li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.ai-report-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ai-report-content code {
    background: var(--bg-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.ai-report-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.ai-report-content p {
    margin: 0.3rem 0;
    color: var(--text-secondary);
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .panels { grid-template-columns: 1fr; }
    #graphSvg { height: 350px; }
    .search-bar { flex-direction: column; }
    .search-bar input { border-right: 1px solid var(--border); border-radius: var(--radius); }
    .scan-btn { border-radius: var(--radius); justify-content: center; }
    .graph-legend { gap: 0.5rem; }
}

/* ===== GRAPH NODE STYLES (SVG) ===== */
.node-circle {
    cursor: pointer;
    transition: r 0.2s;
}

.node-circle:hover {
    filter: brightness(1.3);
}

.node-label {
    font-family: var(--font-sans);
    font-size: 11px;
    fill: var(--text-secondary);
    pointer-events: none;
    text-anchor: middle;
}

.link-line {
    stroke: rgba(59, 130, 246, 0.2);
    stroke-width: 1.5;
}

.link-line:hover {
    stroke: rgba(59, 130, 246, 0.5);
}

/* Tooltip */
.graph-tooltip {
    position: absolute;
    padding: 0.6rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    pointer-events: none;
    z-index: 500;
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: none;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 1rem;
    margin: 0.3rem 0;
}

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