:root {
    --brand-main: #0f172a;
    --brand-header: #020617;
    --brand-card: #1e293b;
    --brand-card-hover: #24334a;
    --brand-input: #334155;
    --brand-border: #334155;
    --brand-accent: #3b82f6;
    --brand-accent-hover: #2563eb;
    --brand-purple: #8b5cf6;
    --brand-green: #10b981;
    --brand-green-dark: #059669;
    --brand-critical: #450a0a;
    --brand-high: #dc2626;
    --brand-medium: #f97316;
    --brand-low: #eab308;
    --brand-none: #38bdf8;
    
    --accent: var(--brand-accent);
    --text-muted: #94a3b8;
}

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

body {
    background-color: var(--brand-main);
    color: #f1f5f9;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--brand-main);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--brand-border);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glow effects */
.glow-accent {
    box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.25);
}
.glow-critical {
    box-shadow: 0 0 25px -5px rgba(220, 38, 38, 0.35);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(12px);
}
.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 640px) {
    .header-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .header-inner { padding: 0 2rem; }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    outline: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.brand-logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}
.brand-logo img {
    height: 60px;
    width: auto;
}
.brand-title-group {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.025em;
    color: #ffffff;
    transition: color 0.2s;
}
@media (min-width: 640px) {
    .brand-title { font-size: 1.25rem; }
}
.brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--brand-accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: -0.25rem;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-link {
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-link:hover {
    color: #ffffff;
    background-color: rgba(51, 65, 85, 0.6);
}
.nav-link.active-nav {
    background-color: var(--brand-accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tag-new {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 10px;
    font-weight: 700;
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-left: 0.375rem;
}

/* Main Sections */
main { flex-grow: 1; }

.hero-section {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 80rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .hero-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .hero-section { padding-left: 2rem; padding-right: 2rem; }
}

.hero-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24rem;
    height: 24rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    filter: blur(48px);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}
.hero-content > * + * {
    margin-top: 1.5rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.25;
}
@media (min-width: 640px) {
    h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
    h1 { font-size: 3.75rem; }
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.625;
    max-width: 48rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .hero-subtitle { font-size: 1.125rem; }
}

/* Home Search Box Styles */
.search-section-wrap {
    padding-top: 1rem;
    max-width: 48rem;
    margin: 0 auto;
    text-align: left;
}
.search-card {
    background-color: var(--brand-card);
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 640px) {
    .search-card { padding: 1rem; }
}
.search-card > * + * {
    margin-top: 0.75rem;
}

.search-label {
    display: block;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0 0.25rem;
}

.search-flex {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}
@media (min-width: 640px) {
    .search-flex { 
        flex-direction: row; 
        align-items: center; 
    }
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}
.cve-input {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 0.75rem;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    font-size: 0.875rem;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: all 0.2s;
}
.cve-input::placeholder {
    color: #64748b;
}
.cve-input:focus {
    box-shadow: 0 0 0 2px var(--brand-accent);
    border-color: transparent;
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem;
    z-index: 10;
}
.clear-btn:hover {
    color: #cbd5e1;
}

.run-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--brand-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.run-btn:hover {
    background-color: var(--brand-accent-hover);
}
.run-btn:active {
    transform: scale(0.95);
}
.run-btn svg {
    width: 1rem;
    height: 1rem;
}

.container { 
    max-width: 1000px; 
    margin: 2rem auto; 
    background: var(--brand-card); 
    padding: 2.5rem; 
    border-radius: 12px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    margin-bottom: 3rem;
    border: 1px solid var(--brand-border);
}

.search-container { 
    max-width: 98%; 
    margin: 2rem auto; 
    background: var(--brand-card); 
    padding: 1.5rem; 
    border-radius: 1rem; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    border: 1px solid var(--brand-border);
    overflow-x: hidden; 
}

.container textarea { 
    width: 100%; 
    height: 90px; 
    padding: 1rem; 
    background: var(--brand-input);
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem; 
    font-family: 'JetBrains Mono', monospace; 
    color: #ffffff;
    box-sizing: border-box; 
    margin-bottom: 1.5rem; 
    transition: border-color 0.2s; 
    font-size: 0.875rem; 
}
.container textarea:focus { outline: none; border-color: var(--brand-accent); }

.toolbar { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 1.5rem; 
    align-items: center; 
    flex-wrap: wrap; 
    background: var(--brand-main); 
    padding: 1rem; 
    border-radius: 0.75rem; 
    border: 1px solid var(--brand-border);
}

.filter-box { 
    padding: 0.6rem 1rem; 
    background: var(--brand-input);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem; 
    flex-grow: 1; 
    font-size: 0.875rem; 
    color: white;
}
.filter-box:focus { outline: none; border-color: var(--brand-accent); }

.toolbar button { 
    padding: 0.7rem 1.4rem; 
    border-radius: 0.5rem; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.025em; 
    font-family: 'Space Grotesk', system-ui, sans-serif;
}
.btn-primary { background: var(--brand-accent); color: white; }
.btn-export { background: var(--brand-green-dark); color: white; }
.btn-link { background: var(--brand-purple); color: white; }
.toolbar button:hover { filter: brightness(1.2); transform: translateY(-1px); }

.btn-action { 
    font-size: 10px; 
    padding: 5px 8px; 
    text-decoration: none; 
    display: inline-block; 
    border-radius: 4px; 
    font-weight: 700; 
    margin-right: 4px; 
    margin-bottom: 4px; 
    transition: all 0.2s; 
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap; 
    color: white;
}
.btn-nvd { background: #475569; color: white; }
.btn-cve { background: #312e81; color: #c7d2fe; }
.btn-kev-link { background: #7f1d1d; color: #fecaca; }
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.3); }

.no-break { word-break: normal; overflow-wrap: normal; hyphens: none; }

table { 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: fixed; 
}
th { 
    background: var(--brand-main); 
    text-align: left; 
    padding: 12px 10px; 
    font-size: 0.7rem; 
    cursor: pointer; 
    border-bottom: 2px solid var(--brand-border); 
    user-select: none; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}
th:hover { color: var(--brand-accent); }
td { 
    padding: 12px 10px; 
    font-size: 0.8rem; 
    border-bottom: 1px solid var(--brand-border); 
    vertical-align: top; 
    color: #f1f5f9;
    word-break: break-all;
    white-space: normal;
    overflow-wrap: break-word;
}
tr:hover { background-color: var(--brand-card); }

.badge { padding: 4px 8px; border-radius: 4px; font-weight: 800; font-size: 0.65rem; color: #fff; text-transform: uppercase; display: inline-block; white-space: nowrap; }
.sev-CRITICAL { background: var(--brand-critical); color: #FFF; }
.sev-HIGH { background: var(--brand-high); color: #FFF; }
.sev-MEDIUM { background: var(--brand-medium); color: #FFF; }
.sev-LOW { background: var(--brand-low); }
.sev-N\/A, .sev-UNKNOWN, .sev-UNDEFINED { background: var(--brand-none); }

.ssvc-T { background: var(--brand-low);}
.ssvc-R { background: var(--brand-medium); }
.ssvc-A { background: var(--brand-high); }
.ssvc-C { background: var(--brand-critical); }

.kev-warning { color: #fecaca; font-weight: 800; background: #7f1d1d; padding: 2px 6px; border-radius: 4px; border: 1px solid #991b1b; font-size: 10px; white-space: nowrap; display: block; margin-bottom: 4px; width: fit-content; }
.ransom-badge { color: #fff; font-weight: 800; background: #450a0a; padding: 2px 6px; border-radius: 4px; border: 1px solid #7f1d1d; font-size: 9px; white-space: nowrap; display: block; width: fit-content; letter-spacing: 0.05em; }

.poc-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: #4c0519; 
    color: #fda4af; 
    border: 1px solid #881337; 
    padding: 3px 6px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 10px; 
    font-weight: 700; 
    margin: 0 2px 2px 0; 
    white-space: nowrap;
}
.poc-btn:hover { background: #881337; color: white; }

.vector-cell { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #94a3b8; line-height: 1.3; }

.cwe-link, .capec-link { 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 0.75rem; 
    color: #a5b4fc; 
    text-decoration: none; 
    font-weight: 600;
}
.cwe-link:hover, .capec-link:hover { text-decoration: underline; color: var(--brand-accent); }

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: var(--brand-card);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--brand-border);
    width: 50%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--brand-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.modal-header h2 { margin: 0; font-size: 1.2rem; color: var(--brand-accent); }
.close-modal { color: #94a3b8; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: white; }
.modal-body { display: flex; flex-wrap: wrap; gap: 8px; max-height: 60vh; overflow-y: auto; }

.products-cell { position: relative; }
.products-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.toggle-products {
    color: var(--brand-accent);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}
.toggle-products:hover { text-decoration: underline; }

/* Sections & Grids */
.features-section {
    padding: 4rem 0;
    background-color: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}
.section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .section-container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .section-container { padding: 0 2rem; }
}
.section-container > * + * {
    margin-top: 3rem;
}

.section-header-center {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}
.section-header-center > * + * {
    margin-top: 0.75rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    margin: 0 auto;
}
.pill-blue {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.pill-red {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.pill-emerald {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

h2.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.025em;
}
@media (min-width: 640px) {
    h2.section-title { font-size: 2.25rem; }
}

.section-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.625;
}
@media (min-width: 640px) {
    .section-desc { font-size: 1rem; }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background-color: var(--brand-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--brand-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s;
}
.card:hover {
    border-color: #475569;
}
.card > * + * {
    margin-top: 0.75rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.icon-purple { background-color: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); color: #a78bfa; }
.icon-red { background-color: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.icon-emerald { background-color: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.icon-cyan { background-color: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); color: #22d3ee; }
.icon-orange { background-color: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3); color: #fb923c; }

.card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}
.card p {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.625;
}
@media (min-width: 640px) {
    .card p { font-size: 0.875rem; }
}

/* Red Team Section */
.exploits-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}
.red-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32rem;
    height: 32rem;
    background-color: rgba(220, 38, 38, 0.1);
    border-radius: 9999px;
    filter: blur(48px);
    pointer-events: none;
}

/* API Section */
.api-section {
    padding: 4rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .api-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .api-section { padding-left: 2rem; padding-right: 2rem; }
}
.api-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .api-flex {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.api-left {
    flex: 1;
}
.api-left > * + * {
    margin-top: 1.25rem;
}
.api-left ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}
.api-left li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.check-circle {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.api-right {
    flex: 1;
    width: 100%;
    background-color: var(--brand-card);
    border-radius: 1rem;
    border: 1px solid var(--brand-border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
    background-color: #0f172a;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.code-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}
.tab-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.tab-btn:hover {
    color: #ffffff;
}
.tab-btn.active {
    border-bottom: 2px solid var(--brand-accent);
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.1);
}

.faq-ul {
    color: var(--text-muted);
    margin-left: 25px;
    margin-top: 10px;
}

.faq-li {
    margin-bottom: 5px;
}

.copy-btn {
    font-size: 0.75rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.2s;
}
.copy-btn:hover {
    color: #ffffff;
}
.copy-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.code-body {
    padding: 1rem;
    background-color: #020617;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    overflow-x: auto;
    color: #e2e8f0;
}
.code-body pre {
    white-space: pre;
}
.code-body pre > * + * {
    margin-top: 0.25rem;
}

.json-sample {
    border-top: 1px solid #1e293b;
    background-color: rgba(15, 23, 42, 0.9);
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}
.json-sample-title {
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.json-sample-content {
    color: #cbd5e1;
    max-height: 8rem;
    overflow-y: auto;
    white-space: pre;
}

/* Snippet syntax colors */
.c-purple { color: #c084fc; }
.c-emerald { color: #34d399; }
.c-amber { color: #fde047; }
.c-blue { color: #60a5fa; }

/* Toast Component */
.toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    background-color: #1e293b;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    transform: translateY(0.5rem);
    opacity: 1;
}

/* Footer */
footer {
    background-color: #020617;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    padding: 1.5rem 0;
    color: #64748b;
    font-size: 0.75rem;
}
.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        padding: 0 1.5rem;
    }
}
@media (min-width: 1024px) {
    .footer-inner { padding: 0 2rem; }
}
.footer-brand {
    font-weight: 600;
    color: #94a3b8;
}
.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
}
.footer-nav a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #ffffff;
}

.hidden { display: none !important; }

.dashboard { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; display: none; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.span-05 { grid-column: span 1; }
.span-1 { grid-column: span 2; }
.span-15 { grid-column: span 3; }
.span-2 { grid-column: span 4; }
.span-25 { grid-column: span 5; }
.span-3 { grid-column: span 6; }

.label { color: #94a3b8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; display: block; font-weight: 700; }
.value { font-size: 1.1rem; font-weight: 600; }
.hero-id { font-size: 2.5rem; font-weight: 800; color: var(--brand-accent); margin: 0; }
.badge-large { padding: 8px 16px; border-radius: 6px; font-weight: 800; font-size: 1rem; display: inline-block; margin-top: 10px; text-transform: uppercase; }

.vector-box { background: #0f172a; padding: 12px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #94a3b8; border: 1px solid var(--brand-border); word-break: break-all; margin-top: 10px; }

.metrics-grid-cvss { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 15px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 15px; }
.metric-item { background: rgba(0,0,0,0.2); padding: 8px; border-radius: 4px; border-left: 3px solid var(--brand-accent); }
.metric-label { font-size: 10px; color: #94a3b8; text-transform: uppercase; }
.metric-val { font-size: 12px; font-weight: bold; }

.ref-list { list-style: none; padding: 0; margin: 10px 0; max-height: 200px; overflow-y: auto; }
.ref-list li { margin-bottom: 6px; font-size: 0.85rem; border-bottom: 1px solid var(--brand-border); padding-bottom: 4px; }
.ref-list a { color: var(--brand-accent); text-decoration: none; word-break: break-all; }

.poc-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.poc-link { background: #4c0519; color: #fda4af; border: 1px solid #881337; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.8rem; }

/* KEV Alert Section */
.kev-alert { background: #450a0a; border: 2px solid #991b1b; color: white; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; display: none; align-items: center; justify-content: space-between; }

#kevRansomware { 
    display: none; 
    align-items: center; 
    gap: 10px; 
    background: #a12e2e; 
    color: white; 
    padding: 8px 12px; 
    border-radius: 4px; 
    font-weight: 900; 
    font-size: 1rem; 
    border: 1px solid #000;
}

#loading { text-align: center; padding: 5rem; color: #94a3b8; }

.weakness-item { margin-bottom: 12px; }
.weakness-desc { font-size: 0.9rem; color: #cbd5e1; margin-top: 2px; line-height: 1.4; font-weight: 500; }

.articles-section { background: rgba(0,0,0,0.15); padding: 1rem; border-radius: 8px; border-left: 3px solid var(--brand-accent); }
.articles-label { font-size: 0.8rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin-bottom: 0.75rem; }
.article-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.article-list li { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.95rem; line-height: 1.4; }
.article-date { color: #94a3b8; font-size: 0.8rem; white-space: nowrap; font-family: monospace; }
.article-list a { color: #e2e8f0; text-decoration: none; font-weight: 500; }
.article-list a:hover { color: var(--brand-accent); text-decoration: underline; }

.json-key { color: #93c5fd; }
.json-string { color: #a7f3d0; }
.json-number { color: #fde047; }
.json-boolean { color: #f9a8d4; }
.json-null { color: #fca5a5; }

/* Custom Dropdown & Input Styling */
#vcProduct {
    width: 100%;
    padding: 8px 12px;
    background: var(--brand-input);
    color: #f1f5f9;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Space Grotesk', system-ui, sans-serif;
}
#vcProduct option {
    background-color: var(--brand-card);
    color: #f1f5f9;
}
#vcVersion {
    width: 93%;
    padding: 8px 12px;
    background: var(--brand-input);
    color: #f1f5f9;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Space Grotesk', system-ui, sans-serif;
}
#vcVersion::placeholder {
    color: #94a3b8;
}

/* Rendering for BOD 26-04 table */
.card table, .card tr, .card th, .card td {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.card tr:hover {
    background-color: transparent !important;
}
.card td {
    padding: 2px 4px !important;
}

/* About Page & FAQ Specific Styles */
.subtitle {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.faq-question {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.logic-box {
    background: #0f172a;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin: 1rem 0;
}

.logic-title {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- News Page Styles --- */
.news-card { 
    background: var(--brand-card); 
    border: 1px solid var(--brand-border); 
    border-radius: 12px; 
    padding: 1.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* --- Restore News Page Specific Link & Vector Consistency --- */
.news-card a {
    text-decoration: none;
}

.news-card .vector-box {
    background: #0f172a;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
}

.news-card .article-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.news-card .article-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.news-card .poc-link {
    background: #4c0519;
    color: #fda4af;
    border: 1px solid #881337;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
}

.news-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.score-display { font-size: 1.5rem; font-weight: 900; }

.actions-group { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.kev-badge { background: #7f1d1d; border: 1px solid #ef4444; color: white; }
.ransomware-badge { background: #450a0a; border: 1px solid #b91c1c; color: #fecaca; }

#status-text { display: block; margin-top: 10px; font-size: 0.9rem; font-family: monospace; }

.load-more-container { text-align: center; padding: 2rem; display: none; }
.btn-load-more { font-family: inherit; background: #1e293b; color: #f8fafc; border: 1px solid #475569; padding: 12px 24px; font-size: 1rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.btn-load-more:hover:not(:disabled) { background: #334155; border-color: #94a3b8; }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.metric-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    overflow: hidden;
}
.metric-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.metric-TOTAL::before { background: #f8fafc; }
.metric-CRITICAL::before { background: var(--brand-critical); }
.metric-HIGH::before { background: var(--brand-high); }
.metric-MEDIUM::before { background: var(--brand-medium); }
.metric-LOW::before { background: var(--brand-low); }
.metric-INFO::before { background: var(--brand-accent); }
.metric-UNKNOWN::before { background: var(--brand-input); }

.metric-num { font-size: 2rem; font-weight: 900; color: #f1f5f9; line-height: 1; margin-bottom: 4px; }
.metric-label { font-size: 0.75rem; text-transform: uppercase; }
.metric-extras { font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }

.news-dashboard {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}