/* ============================================================
   CVE.ID — Dark Cyber + ExploitDB Fusion Stylesheet
   ============================================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #05070a;
    --bg-secondary: #0a0e16;
    --bg-card: rgba(12, 17, 28, 0.85);
    --bg-glass: rgba(15, 20, 30, 0.7);
    --bg-hover: rgba(255, 62, 62, 0.05);
    
    --accent-red: #ff3e3e;
    --accent-red-glow: rgba(255, 62, 62, 0.4);
    --accent-cyan: #00f2ff;
    --accent-cyan-glow: rgba(0, 242, 255, 0.3);
    --accent-orange: #ff8c00;
    --accent-yellow: #ffd600;
    --accent-green: #00e676;
    --accent-purple: #b388ff;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --text-dark: #1e293b;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 62, 62, 0.3);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow-red: 0 0 20px rgba(255, 62, 62, 0.15);
    --shadow-glow-cyan: 0 0 20px rgba(0, 242, 255, 0.15);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 10% 0%, rgba(255, 62, 62, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(0, 242, 255, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: #ff6b6b;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* === Glass Effect === */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

/* === Layout === */
.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* === Header / Navbar === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 10, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
}

.navbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-red), #cc0000);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-glow-red);
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
    line-height: 1.2;
}

.brand-text h1 .live-badge {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--accent-red);
    animation: pulse 2s infinite;
    margin-left: 6px;
    vertical-align: middle;
}

.brand-text .brand-sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Navbar links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-nav a:hover,
.navbar-nav a.active {
    background: rgba(255, 62, 62, 0.1);
    color: var(--accent-red);
}
.navbar-nav a i {
    font-size: 12px;
}

/* Search bar */
.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 420px;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 10px 16px 10px 40px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}
.search-input::placeholder {
    color: var(--text-muted);
}
.search-input:focus {
    border-color: rgba(255, 62, 62, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.08);
}

/* Navbar right section */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* === Stats Bar === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.2;
}

.stat-value.critical { color: #ff4444; }
.stat-value.high { color: var(--accent-orange); }
.stat-value.medium { color: var(--accent-yellow); }
.stat-value.low { color: var(--accent-green); }
.stat-value.total { color: var(--text-primary); }

/* === Severity Filter Tabs === */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.filter-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 12px rgba(255, 62, 62, 0.3);
}
.filter-btn .count {
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.7;
}

/* === Year Filter === */
.year-btn {
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}
.year-btn:hover {
    border-color: rgba(0, 242, 255, 0.3);
    color: var(--text-secondary);
}
.year-btn.active {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.3);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

/* === CVE Table (ExploitDB Style) === */
.cve-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cve-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.cve-table-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cve-table-title i {
    color: var(--accent-red);
}

.sync-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}
.sync-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.cve-table {
    width: 100%;
    border-collapse: collapse;
}

.cve-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.cve-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.cve-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    vertical-align: middle;
}

.cve-table tbody tr {
    transition: var(--transition-smooth);
    cursor: pointer;
}
.cve-table tbody tr:hover {
    background: var(--bg-hover);
}
.cve-table tbody tr:last-child td {
    border-bottom: none;
}

/* CVE ID styling */
.cve-id-link {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-red);
    transition: var(--transition-smooth);
}
.cve-id-link:hover {
    text-shadow: 0 0 8px var(--accent-red-glow);
}

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

.severity-badge.critical {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}
.severity-badge.high {
    background: rgba(255, 140, 0, 0.15);
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.3);
}
.severity-badge.medium {
    background: rgba(255, 214, 0, 0.15);
    color: #ffd600;
    border: 1px solid rgba(255, 214, 0, 0.3);
}
.severity-badge.low {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}
.severity-badge.unknown {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.score-pill {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
}

.cve-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cve-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.page-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 62, 62, 0.05);
}
.page-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 12px rgba(255, 62, 62, 0.3);
}
.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
    font-family: var(--font-mono);
}

.pagination-info {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-left: 12px;
}

/* === Sidebar === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i {
    color: var(--accent-red);
    font-size: 11px;
}

/* Ad slot placeholder */
.ad-slot {
    background: linear-gradient(135deg, rgba(255,62,62,0.03), rgba(0,242,255,0.03));
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.ad-slot-horizontal {
    margin: 20px 0;
    padding: 20px;
}

/* === Language Picker === */
.language-picker {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 12px;
}
.lang-btn:hover {
    border-color: var(--border-hover);
}
.lang-btn i.globe {
    color: var(--accent-red);
    font-size: 14px;
}
.lang-btn .lang-code {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    background: rgba(10, 14, 22, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-bounce);
    overflow: hidden;
}
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-item:hover {
    background: rgba(255, 62, 62, 0.08);
    color: var(--text-primary);
}
.lang-item i {
    font-size: 8px;
    opacity: 0;
    color: var(--accent-red);
}
.lang-item.active i {
    opacity: 1;
}

/* === Detail Page === */
.detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
}

.detail-cve-id {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--accent-red-glow);
}

.detail-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
}
.detail-meta-item i {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.detail-section-title i {
    color: var(--accent-red);
}

.detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.ref-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
    word-break: break-all;
    font-family: var(--font-mono);
}
.ref-link:hover {
    background: rgba(0, 242, 255, 0.05);
}
.ref-link i {
    flex-shrink: 0;
    font-size: 10px;
}

.weakness-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(179, 136, 255, 0.1);
    border: 1px solid rgba(179, 136, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--accent-purple);
    margin-right: 6px;
    margin-bottom: 6px;
}

/* === Admin Page === */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: rgba(8, 12, 20, 0.95);
    border-right: 1px solid var(--border-subtle);
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.admin-sidebar-brand .icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-cyan), #0088cc);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}
.admin-sidebar-brand h2 {
    font-size: 16px;
    font-weight: 800;
    text-shadow: var(--shadow-glow-cyan);
}
.admin-sidebar-brand .sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.admin-nav a.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 255, 0.15);
}
.admin-nav a i {
    width: 18px;
    text-align: center;
    font-size: 13px;
}

.admin-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

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

.admin-title {
    font-size: 24px;
    font-weight: 800;
}
.admin-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

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

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.chart-container canvas {
    max-height: 300px;
}

.live-badge-admin {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.visitor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}
.visitor-item:hover {
    border-color: rgba(0, 242, 255, 0.2);
}

.sync-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-red), #cc0000);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 62, 62, 0.3);
}
.sync-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 24px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}
.back-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* === Loading States === */
.shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.loading-row {
    height: 52px;
    margin-bottom: 2px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 12px;
}
.footer a {
    color: var(--accent-red);
}

/* === Animations === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* === Toast Notification === */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(10, 14, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-primary);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-cyan); }

/* === Responsive === */
@media (max-width: 768px) {
    .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }
    .navbar-nav {
        display: none;
    }
    .search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-value {
        font-size: 22px;
    }
    .cve-table td.desc-col {
        display: none;
    }
    .main-grid {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .detail-header {
        padding: 20px;
    }
    .detail-cve-id {
        font-size: 20px;
    }
}

/* === Google Translate Overrides === */
#google_translate_element {
    position: fixed;
    bottom: 0;
    right: 0;
    opacity: 0.01;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }
