:root {
    /* Awesome black theme */
    --bg-main: #09090b;
    --bg-panel: #18181b;
    --border: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;

    /* Cyan palette */
    --accent: #06b6d4;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --accent-purple: #a855f7;
    --accent-green: #10b981;

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.red { color: var(--accent-red) !important; }
.orange { color: var(--accent-orange) !important; }
.cyan { color: var(--accent) !important; }

/* Subtle dotted tech background */
.noise-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}

/* =========================================
   NAVBAR (Desktop first)
   ========================================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-nav { display: flex; align-items: center; gap: 30px; }

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0;
}
.brand .icon { color: var(--accent); margin-right: 8px; }
.brand .tld { color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; gap: 12px; }

.nav-link {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.nav-link:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent); border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.1); }

.system-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}
.pulse-dot.red { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }
.pulse-dot.purple { background: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }

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

.nav-toggle,
.nav-overlay { display: none; }

/* =========================================
   Layouts
   ========================================= */
.dashboard {
    display: grid;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}
.dashboard-news { grid-template-columns: 280px 1fr 320px; }
.dashboard-cve { grid-template-columns: 300px 1fr; }
.dashboard-app { grid-template-columns: 320px 1fr; }

/* Sidebars & Controls */
.sidebar {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.flex-between { display: flex; justify-content: space-between; align-items: center; }

.control-group { margin-bottom: 24px; }
.control-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.search-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    transition: 0.2s;
}
.search-wrap:focus-within { border-color: var(--accent); }

.prompt {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 5px;
}

.search-wrap input{
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 12px 8px;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

select{
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px;
    outline: none;
    transition: 0.2s;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
select:focus { border-color: var(--accent); }

#sourceFilter{
    padding-right: 44px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}
.tag-btn:hover { border-color: var(--text-muted); }
.tag-btn.active { background: rgba(6, 182, 212, 0.1); border-color: var(--accent); color: var(--accent); }

.action-btn{
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
}
.action-btn:hover { background: #27272a; }
.action-btn.primary { background: rgba(6, 182, 212, 0.1); color: var(--accent); border-color: rgba(6, 182, 212, 0.3); }
.action-btn.primary:hover { background: rgba(6, 182, 212, 0.2); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }

.stats-box {
    background: var(--bg-main);
    border-radius: 8px;
    padding: 16px;
    margin-top: 32px;
    border: 1px solid var(--border);
}
.stat { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; }
.stat:last-child { margin-bottom: 0; }
.stat .highlight { color: var(--accent); font-weight: bold; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.news-grid .news-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.news-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); border-color: #3f3f46; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.card-image { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--border); }
.news-grid .news-card:first-child .card-image { height: 100%; min-height: 320px; border-bottom: none; border-right: 1px solid var(--border); }

.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-grid .news-card:first-child .card-content { padding: 32px; justify-content: center; }

.card-meta { display: flex; justify-content: space-between; margin-bottom: 12px; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.card-source { color: var(--accent); font-weight: 700; }
.card-date { color: var(--text-muted); }

.card-title { color: var(--text-main); font-size: 1.15rem; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.news-grid .news-card:first-child .card-title { font-size: 1.8rem; margin-bottom: 16px; }

.card-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-grid .news-card:first-child .card-summary { -webkit-line-clamp: 6; font-size: 1rem; }

/* Threat Tags */
.category-tag{
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
}
.cat-breach { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); border-color: rgba(239, 68, 68, 0.2); }
.cat-malware { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); border-color: rgba(249, 115, 22, 0.2); }
.cat-vulnerability { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); border-color: rgba(168, 85, 247, 0.2); }
.cat-research { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border-color: rgba(16, 185, 129, 0.2); }
.cat-advisory { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: var(--border); }

/* CVE Sidebar Widget */
.cve-list { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: calc(100vh - 200px); padding-right: 8px; }
.cve-item { background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-decoration: none; transition: 0.2s; display: block; color: var(--text-main); }
.cve-item:hover { border-color: var(--accent-red); transform: translateX(2px); }
.cve-id { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--accent-red); margin-bottom: 8px; display: flex; justify-content: space-between; }
.cve-score { padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; color: #fff; }
.cve-desc { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.view-all-btn{
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    transition: 0.3s;
}
.view-all-btn:hover { background: rgba(6, 182, 212, 0.2); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }

.score-CRITICAL { background: var(--accent-red); }
.score-HIGH { background: var(--accent-orange); }
.score-MEDIUM { background: var(--accent-yellow); color: #000; }
.score-LOW { background: var(--accent); color: #000; }
.score-UNKNOWN { background: var(--border); color: #fff; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; align-items: center; gap: 20px; }
.stat-icon { font-size: 2.5rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 4px; font-family: var(--font-mono); }
.stat-value { color: var(--text-main); font-size: 2rem; font-weight: 700; font-family: var(--font-mono); line-height: 1; }

.cve-results-list { display: flex; flex-direction: column; gap: 16px; }
.cve-block {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: block;
    color: var(--text-main);
    transition: 0.2s;
}
.cve-block:hover { transform: translateX(5px); background: #1f2937; border-color: #3f3f46; }
.cve-block.critical { border-left-color: var(--accent-red); }
.cve-block.high { border-left-color: var(--accent-orange); }
.cve-block.medium { border-left-color: var(--accent-yellow); }
.cve-block.low { border-left-color: var(--accent); }

.cve-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cve-title { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.cve-date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

.cve-description { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.cve-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.sys-tag {
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-main);
    font-weight: bold;
    margin-right: 10px;
}
.sys-tag.score-CRITICAL { background: var(--accent-red); color: #fff; }
.sys-tag.score-HIGH     { background: var(--accent-orange); color: #fff; }
.sys-tag.score-MEDIUM   { background: var(--accent-yellow); color: #000; }
.sys-tag.score-LOW      { background: var(--accent); color: #000; }
.sys-tag.score-UNKNOWN  { background: var(--border); color: #fff; }

.vector-string { color: var(--accent-purple); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.5px; opacity: 0.8; }

.action-links { display: flex; gap: 12px; align-items: center; }
.action-links a{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.2s;
    border: 1px solid transparent;
    font-family: var(--font-mono);
}
.btn-poc { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); border-color: rgba(168, 85, 247, 0.3); }
.btn-poc:hover { background: rgba(168, 85, 247, 0.2); }
.btn-nvd { background: rgba(6, 182, 212, 0.1); color: var(--accent); border-color: rgba(6, 182, 212, 0.3); }
.btn-nvd:hover { background: rgba(6, 182, 212, 0.2); }

.content-block {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: 0.2s;
}
.content-block:hover { border-color: #3f3f46; transform: translateX(5px); }
.block-critical { border-left-color: var(--accent-red); }
.block-high { border-left-color: var(--accent-orange); }
.block-medium { border-left-color: var(--accent-yellow); }
.block-low { border-left-color: var(--accent); }

.recon-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.recon-row:last-child { border-bottom: none; }

.port-tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
}

.cve-pill {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: 0.2s;
}
.cve-pill:hover { background: rgba(239, 68, 68, 0.2); transform: translateY(-2px); }

.subdomain-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
.subdomain-list div {
    background: rgba(255,255,255,0.02);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.loader-box { text-align: center; padding: 60px; color: var(--text-muted); grid-column: 1 / -1; width: 100%; }
.spinner { width: 30px; height: 30px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   Tablet: 1200px
   ========================================= */
@media (max-width: 1200px) {
    .dashboard-news { grid-template-columns: 280px 1fr; }
    .dashboard-cve { grid-template-columns: 280px 1fr; }
    .cve-panel { display: none; }
    .news-grid .news-card:first-child { grid-template-columns: 1fr; }
    .news-grid .news-card:first-child .card-image { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 1100px) {
    .dashboard-exploits { grid-template-columns: 1fr; }
    .dashboard-exploits .sidebar { position: static; }
}

/* =========================================
   Tablet: 768px — news + CVE basics
   ========================================= */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .news-grid .news-card:first-child { display: flex; grid-column: auto; }
    .news-grid .news-card:first-child .card-image { height: 180px; min-height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
    .news-grid .news-card:first-child .card-content { padding: 20px; justify-content: flex-start; }
    .news-grid .news-card:first-child .card-title { font-size: 1.15rem; margin-bottom: 12px; }
    .news-grid .news-card:first-child .card-summary { -webkit-line-clamp: 3; font-size: 0.9rem; }
    .cve-block { padding: 16px; }
    .cve-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .vector-string { font-size: 0.7rem; word-break: break-all; margin-top: 5px; display: block; }
}

/* =========================================
   Exploit layout
   ========================================= */
.dashboard-exploits { grid-template-columns: 320px 1fr; align-items: start; }
.pulse-dot.purple { background: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }
.engine-toggle { display: flex; background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px; overflow: hidden; }
.engine-btn { flex: 1; padding: 12px 10px; background: transparent; color: var(--text-muted); border: none; font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.engine-btn.active { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); font-weight: bold; }
.table-container { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.exploit-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; }
.exploit-table th { padding: 16px 12px; background: rgba(0, 0, 0, 0.2); color: var(--text-muted); font-family: var(--font-mono); border-bottom: 1px solid var(--border); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.exploit-table td { padding: 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); color: var(--text-main); vertical-align: top; }
.exploit-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.exploit-link { color: var(--accent-purple); text-decoration: none; font-weight: bold; font-size: 0.95rem; font-family: var(--font-mono); display: block; }
.exploit-link:hover { text-decoration: underline; }
.badge { padding: 4px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); white-space: nowrap; display: inline-block; }
.cve-badge { color: var(--accent-red); border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); text-decoration: none; transition: 0.2s; }
.cve-badge:hover { background: rgba(239, 68, 68, 0.2); }
.dl-btn { display: inline-block; font-size: 1.2rem; text-decoration: none; transition: transform 0.2s, filter 0.2s; opacity: 0.8; }
.dl-btn:hover { transform: scale(1.2); opacity: 1; }

/* =========================================
   Mobile: 900px — full layout collapse
   ========================================= */
@media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; padding: 16px; }
    .sidebar { position: static; margin-bottom: 24px; }
    .cve-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .action-btn { width: 100%; text-align: center; }
    .action-links { width: 100%; }
    .action-links a { flex: 1; text-align: center; }

    /* Stats row: 2 columns on tablet/mobile — much better than 1 or 3 */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }
    /* Compact the stat cards so they don't feel bloated */
    .stat-card {
        padding: 16px;
        gap: 14px;
        border-radius: 10px;
    }
    .stat-icon { font-size: 1.8rem; flex-shrink: 0; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }

    /* CVE title smaller on mobile */
    .cve-title { font-size: 1rem; }
    .cve-description { font-size: 0.88rem; }

    /* Exploit table → card layout */
    .table-container { overflow-x: visible; }
    .exploit-table, .exploit-table tbody, .exploit-table tr, .exploit-table td { display: block; width: 100%; }
    .exploit-table thead { display: none; }
    .exploit-table tr { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
    .exploit-table td { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .exploit-table td:last-child { border-bottom: none; }
    .exploit-table td::before { content: ""; flex: 0 0 92px; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; padding-top: 2px; }
    .exploit-table td:nth-child(1)::before { content: "Date"; }
    .exploit-table td:nth-child(2)::before { content: "Raw"; }
    .exploit-table td:nth-child(3)::before { content: "Title"; }
    .exploit-table td:nth-child(4)::before { content: "Platform"; }
    .exploit-table td:nth-child(5)::before { content: "Type"; }
    .exploit-table td:nth-child(6)::before { content: "Author"; }
    .exploit-table td > * { min-width: 0; max-width: 100%; }
    .exploit-link { font-size: 0.92rem; line-height: 1.35; word-break: break-word; }
    .badge { white-space: normal; }
    .dl-btn { line-height: 1; }
    .loader-box { padding: 28px 14px; }

    /* Nav mobile */
    .topbar { position: relative; padding: 1rem; z-index: 6000; }
    .brand-nav { display: flex; flex-direction: row; width: 100%; justify-content: space-between; align-items: center; gap: 12px; }
    .system-status { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-main); font-size: 1.25rem; cursor: pointer; z-index: 6200; transition: 0.2s ease; }
    .nav-toggle:active { transform: scale(0.95); background: rgba(255,255,255,0.08); }

    .nav-links {
        position: fixed; top: 0; right: 0; transform: translateX(100%); height: 100vh; width: min(320px, 85vw);
        background: var(--bg-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-left: 1px solid var(--border);
        padding: 80px 20px 20px; display: flex; flex-direction: column; justify-content: flex-start; flex-wrap: nowrap; gap: 12px;
        z-index: 6100; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    }
    .nav-links.open { transform: translateX(0); }

    .nav-link { display: flex; align-items: center; width: 100%; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); background: rgba(255,255,255,0.02); font-size: 1rem; font-weight: 500; transition: 0.2s ease; }
    .nav-link:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }
    .nav-link.active { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.3); color: var(--accent); }

    .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; z-index: 5900; transition: opacity 0.3s ease; }
    .nav-overlay.open { opacity: 1; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
}

/* =========================================
   Mobile: 480px — small phones
   ========================================= */
@media (max-width: 480px) {
    .dashboard { padding: 12px 10px; gap: 16px; }

    /* Stats drop to single column on small phones */
    .stats-row { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 14px 16px; gap: 12px; }
    .stat-icon { font-size: 1.5rem; }
    .stat-value { font-size: 1.3rem; }

    /* CVE blocks tighter */
    .cve-block { padding: 14px 12px; }
    .cve-title { font-size: 0.95rem; }
    .cve-description { font-size: 0.85rem; }
    .vector-string { font-size: 0.65rem; }

    /* Action buttons stack vertically */
    .action-links { flex-direction: column; gap: 8px; }
    .action-links a { flex: unset; width: 100%; padding: 10px; text-align: center; }

    /* Exploit cards tighter */
    .exploit-table td { padding: 8px 12px; gap: 8px; }
    .exploit-table td::before { flex: 0 0 64px; font-size: 0.65rem; }
    .exploit-link { font-size: 0.85rem; }
    .badge { font-size: 0.7rem; padding: 3px 6px; }

    /* Recon */
    .subdomain-list { grid-template-columns: 1fr 1fr; max-height: 220px; }
    .port-tag { font-size: 0.82rem; padding: 4px 8px; }

    /* Sidebar */
    .sidebar { padding: 18px 14px; }
    .panel-title { font-size: 0.7rem; margin-bottom: 16px; }
    .search-wrap input, select { font-size: 0.82rem; padding: 10px 8px; }
    .action-btn { padding: 11px; font-size: 0.82rem; }
    .engine-btn { font-size: 0.75rem; padding: 10px 6px; }
}

/* =========================================
   IFRAME FULL-SCREEN MODAL UI
   ========================================= */
.iframe-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.iframe-modal.open { transform: translateY(0); }

.iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    background: rgba(9, 9, 11, 0.95);
    border-bottom: 1px solid var(--border);
}
.iframe-close {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.iframe-close:hover { color: var(--accent); }

.iframe-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.iframe-external {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: 0.2s;
}
.iframe-external:hover { background: rgba(6, 182, 212, 0.2); box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); }

.article-iframe {
    flex-grow: 1;
    width: 100%;
    border: none;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    position: relative;
}
.article-iframe.loaded { opacity: 1; }

.iframe-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

@media (max-width: 768px) {
    .iframe-header { padding: 12px; }
    .iframe-title { display: none; }
}

/* =========================================
   DNS Architecture records
   Add to bottom of style.css
   ========================================= */

.dns-records {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dns-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.dns-type {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 0 0 36px;       /* fixed width — never squishes or grows */
    text-align: right;
}

.dns-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-main);
    word-break: break-all;  /* the key fix — long TXT records wrap instead of overflow */
    line-height: 1.5;
    min-width: 0;           /* allows flex child to shrink below its content size */
}


/* =========================================
   Subdomain enumeration — numbered list
   Add to bottom of style.css
   ========================================= */

.subdomain-entries {
    display: flex;
    flex-direction: column;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.subdomain-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

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

.subdomain-row:hover {
    background: rgba(168, 85, 247, 0.05);
    border-radius: 4px;
    padding-left: 6px;
    margin-left: -6px;
}

.subdomain-index {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-purple);
    opacity: 0.5;
    flex: 0 0 28px;
    text-align: right;
    letter-spacing: 0.5px;
    user-select: none;
}

.subdomain-value {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    color: var(--text-main);
    word-break: break-all;
    min-width: 0;
    line-height: 1.5;
}


/* =========================================
   ARIN IP Block Lookup — network rows
   Paste at bottom of style.css
   ========================================= */

/* =========================================
   ARIN network detail expand panel
   Paste at bottom of style.css
   ========================================= */

.arin-net-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto 20px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.arin-net-row:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.03);
}

.arin-net-detail {
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
    margin-bottom: 4px;
    animation: slideDown 0.2s ease;
}

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

.arin-net-detail-grid {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arin-detail-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: baseline;
}

.arin-detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    flex: 0 0 110px;
    padding-top: 1px;
}

.arin-detail-value {
    font-size: 0.85rem;
    color: var(--text-main);
    word-break: break-all;
    min-width: 0;
    line-height: 1.5;
}

.arin-detail-value.mono {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.arin-net-cidrs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.arin-cidr {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.arin-net-range {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arin-net-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.arin-net-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arin-net-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-purple);
    opacity: 0.8;
}

.arin-net-ips {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-green);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .arin-net-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .arin-net-cidrs  { grid-column: 1 / -1; }
    .arin-net-meta   { align-items: flex-start; }
    .arin-detail-label { flex: 0 0 90px; }
}   