/* ============================================================
   CLASSIFIED WIKI — Dark Conspiracy / Fan-Wiki Stylesheet
   "The truth is buried.  This stylesheet digs it up."
   ============================================================ */

/* --- Reset & Custom Properties --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0f;
    --card-bg: #12121a;
    --surface-bg: #161620;
    --accent-gold: #d4a537;
    --accent-green: #3d8b5e;
    --danger: #c0392b;
    --warning-orange: #e67e22;
    --text-color: #c8c8d0;
    --text-bright: #e8e8f0;
    --text-muted: #6a6a7a;
    --border-color: #1f1f2e;
    --border-highlight: #2a2a3a;
    --glow-gold: rgba(212, 165, 55, 0.25);
    --glow-green: rgba(61, 139, 94, 0.2);
    --tier-public: #4a90a4;
    --tier-level1: #d4a537;
    --tier-level2: #e67e22;
    --tier-level3: #c0392b;
    --tier-level4: #8e44ad;
    --font-mono: 'Courier New', 'Courier', monospace;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Scan-line overlay on the whole page --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 165, 55, 0.015) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(61, 139, 94, 0.01) 0%, transparent 50%);
}

::selection {
    background: rgba(212, 165, 55, 0.3);
    color: #fff;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        border-color: rgba(212, 165, 55, 0.4);
        box-shadow: 0 0 8px rgba(212, 165, 55, 0.05);
    }
    50% {
        border-color: rgba(212, 165, 55, 0.8);
        box-shadow: 0 0 18px rgba(212, 165, 55, 0.15);
    }
}

@keyframes terminalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes stampSlam {
    from {
        transform: scale(1.3) rotate(-3deg);
        opacity: 0.5;
    }
    to {
        transform: scale(1) rotate(-2deg);
        opacity: 1;
    }
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.navbar {
    background-color: var(--card-bg);
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 30%,
        var(--accent-gold) 70%,
        transparent 100%
    );
    opacity: 0.3;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 6px rgba(212, 165, 55, 0.4));
}

.navbar .logo-text {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(212, 165, 55, 0.3);
}

.navbar .logo-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar .last-updated {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Login Status --- */
.login-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.login-status .status-text {
    font-size: 12px;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    transition: all 0.3s ease;
}

.status-indicator.logged-in {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(61, 139, 94, 0.6);
    animation: terminalBlink 2s ease-in-out infinite;
}

.last-updated {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Nav Buttons --- */
.btn-login {
    font-family: var(--font-mono);
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 8px 18px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-login:hover {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    box-shadow: 0 0 15px rgba(212, 165, 55, 0.3);
}

.btn-logout {
    font-family: var(--font-mono);
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-highlight);
    padding: 8px 18px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.15);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 60px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-highlight) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: 2px;
}

.sidebar-section {
    margin-bottom: 28px;
    padding-left: 0;
}

.sidebar-title {
    padding: 0 20px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    position: relative;
}

.sidebar-title::before {
    content: "//";
    color: var(--accent-green);
    margin-right: 6px;
    opacity: 0.6;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav li a:hover {
    background-color: rgba(212, 165, 55, 0.05);
    border-left-color: var(--accent-gold);
    color: var(--text-bright);
    text-shadow: 0 0 8px rgba(212, 165, 55, 0.15);
}

.sidebar-nav li a.active {
    background-color: rgba(212, 165, 55, 0.08);
    border-left-color: var(--accent-gold);
    color: var(--accent-gold);
}

.sidebar-nav li a .icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* --- Sidebar tier-based border colors --- */
/* PUBLIC tier */
.sidebar-section:nth-child(1) .sidebar-nav li a:hover,
.sidebar-section:nth-child(1) .sidebar-nav li a.active {
    border-left-color: var(--tier-public);
}
.sidebar-section:nth-child(1) .sidebar-nav li a.active {
    color: var(--tier-public);
    background-color: rgba(74, 144, 164, 0.08);
}

/* LEVEL 1 tier */
.sidebar-section:nth-child(2) .sidebar-nav li a:hover,
.sidebar-section:nth-child(2) .sidebar-nav li a.active {
    border-left-color: var(--tier-level1);
}
.sidebar-section:nth-child(2) .sidebar-nav li a.active {
    color: var(--tier-level1);
    background-color: rgba(212, 165, 55, 0.08);
}

/* LEVEL 2 tier */
.sidebar-section:nth-child(3) .sidebar-nav li a:hover,
.sidebar-section:nth-child(3) .sidebar-nav li a.active {
    border-left-color: var(--tier-level2);
}
.sidebar-section:nth-child(3) .sidebar-nav li a.active {
    color: var(--tier-level2);
    background-color: rgba(230, 126, 34, 0.08);
}

/* LEVEL 3 tier */
.sidebar-section:nth-child(4) .sidebar-nav li a:hover,
.sidebar-section:nth-child(4) .sidebar-nav li a.active {
    border-left-color: var(--tier-level3);
}
.sidebar-section:nth-child(4) .sidebar-nav li a.active {
    color: var(--tier-level3);
    background-color: rgba(192, 57, 43, 0.08);
}

/* LEVEL 4 / BLACK ARCHIVE tier */
.sidebar-section:nth-child(5) .sidebar-nav li a:hover,
.sidebar-section:nth-child(5) .sidebar-nav li a.active {
    border-left-color: var(--tier-level4);
}
.sidebar-section:nth-child(5) .sidebar-nav li a.active {
    color: var(--tier-level4);
    background-color: rgba(142, 68, 173, 0.08);
}

/* --- Sidebar badges --- */
.sidebar-nav li a .badge,
.sidebar-nav .badge {
    margin-left: auto;
    font-family: var(--font-mono);
    background-color: var(--danger);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 1px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.badge {
    font-family: var(--font-mono);
    background-color: var(--danger);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 1px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Locked items --- */
.sidebar-nav li a.locked {
    color: var(--text-muted);
    opacity: 0.5;
    cursor: pointer;
}

.sidebar-nav li a.locked:hover {
    opacity: 0.7;
    background-color: rgba(192, 57, 43, 0.03);
}

.sidebar-nav li a.locked .lock-icon,
.sidebar-nav .lock-icon,
.lock-icon {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.5;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
    padding: 35px 45px;
    max-width: 920px;
    animation: fadeIn 0.35s ease;
}

/* --- Content Header --- */
.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.content-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.5;
}

.content-header .breadcrumb {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.content-header .breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.content-header .breadcrumb a:hover {
    color: var(--text-bright);
    text-decoration: underline;
}

.content-header h1 {
    font-family: var(--font-mono);
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-bright);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.content-header .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.content-header .category-tag {
    background-color: rgba(212, 165, 55, 0.1);
    border: 1px solid rgba(212, 165, 55, 0.2);
    color: var(--accent-gold);
    padding: 3px 10px;
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
.article-content {
    font-size: 15px;
    line-height: 1.85;
    animation: fadeIn 0.4s ease;
}

.article-content h2 {
    font-family: var(--font-mono);
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--accent-gold);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-content h3 {
    font-family: var(--font-mono);
    font-size: 17px;
    margin: 28px 0 14px;
    color: var(--accent-gold);
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    letter-spacing: 0.5px;
}

.article-content h4 {
    font-family: var(--font-mono);
    font-size: 15px;
    margin: 22px 0 10px;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-color);
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text-bright);
    font-weight: 600;
}

.article-content em {
    color: var(--text-muted);
    font-style: italic;
}

.article-content a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px dotted rgba(212, 165, 55, 0.4);
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--text-bright);
    border-bottom-color: var(--text-bright);
    text-shadow: 0 0 8px rgba(212, 165, 55, 0.2);
}

.article-content code {
    font-family: var(--font-mono);
    background: rgba(61, 139, 94, 0.1);
    border: 1px solid rgba(61, 139, 94, 0.15);
    color: var(--accent-green);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.9em;
}

.article-content pre {
    background: #0d0d14;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-green);
    padding: 18px 22px;
    border-radius: 2px;
    overflow-x: auto;
    margin: 18px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--accent-green);
}

.article-content blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: 18px 0;
    padding: 12px 20px;
    background: rgba(212, 165, 55, 0.04);
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   CLASSIFIED HEADER & BADGES
   ============================================================ */
.classified-header {
    background-color: rgba(212, 165, 55, 0.05);
    border: 1px solid rgba(212, 165, 55, 0.15);
    padding: 12px 18px;
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    position: relative;
}

.classified-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(212, 165, 55, 0.008) 3px,
        rgba(212, 165, 55, 0.008) 6px
    );
    pointer-events: none;
    border-radius: 2px;
}

.classification-badge {
    font-family: var(--font-mono);
    background: var(--accent-gold);
    color: #0a0a0f;
    padding: 4px 12px;
    border-radius: 1px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 165, 55, 0.6);
    box-shadow: 0 0 8px rgba(212, 165, 55, 0.15);
    transform: rotate(-1deg);
    display: inline-block;
    animation: stampSlam 0.3s ease-out;
}

.classification-badge.warning {
    background: var(--warning-orange);
    color: #0a0a0f;
    border-color: rgba(230, 126, 34, 0.6);
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.2);
}

.classification-badge.danger {
    background: var(--danger);
    color: #fff;
    border-color: rgba(192, 57, 43, 0.8);
    box-shadow: 0 0 12px rgba(192, 57, 43, 0.25);
    transform: rotate(-2deg);
}

/* ============================================================
   INFO CARD  (monospace labels, dossier feel)
   ============================================================ */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 2px 2px 0;
    padding: 18px 22px;
    margin: 20px 0;
    position: relative;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(212, 165, 55, 0.006) 2px,
        rgba(212, 165, 55, 0.006) 4px
    );
    pointer-events: none;
}

.info-card p {
    margin: 6px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ============================================================
   DATA TABLE  (alternating rows, terminal style)
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-family: var(--font-mono);
    background-color: rgba(212, 165, 55, 0.08);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(212, 165, 55, 0.2);
}

.data-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(18, 18, 26, 0.6);
}

.data-table tbody tr:hover {
    background-color: rgba(212, 165, 55, 0.04);
}

.data-table td {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-color);
}

/* ============================================================
   DOCUMENT BOX  (scanned old document feel)
   ============================================================ */
.document-box {
    background-color: #18160e;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(212, 165, 55, 0.04) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(212, 165, 55, 0.02) 28px,
            rgba(212, 165, 55, 0.02) 29px
        );
    border: 1px solid rgba(212, 165, 55, 0.15);
    border-left: 3px solid var(--accent-gold);
    padding: 28px 32px;
    margin: 22px 0;
    border-radius: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 14.5px;
    line-height: 2;
    color: #b8a882;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.document-box::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 10px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(192, 57, 43, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.document-box p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.document-box p:first-child {
    text-indent: 0;
}

.document-box strong {
    color: var(--accent-gold);
}

/* ============================================================
   WARNING BOX  (pulsing border animation)
   ============================================================ */
.warning-box {
    background-color: rgba(212, 165, 55, 0.04);
    border: 1px solid rgba(212, 165, 55, 0.3);
    border-radius: 2px;
    padding: 16px 22px;
    margin: 20px 0;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

.warning-box::before {
    content: "\26A0";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--primary-bg);
    padding: 0 8px;
    font-size: 14px;
    color: var(--accent-gold);
}

.warning-box p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-gold);
    letter-spacing: 0.3px;
}

/* ============================================================
   RESTRICTED NOTICE  (dashed classified border)
   ============================================================ */
.restricted-notice {
    background: rgba(192, 57, 43, 0.04);
    border: 2px dashed rgba(192, 57, 43, 0.35);
    border-radius: 2px;
    padding: 18px 24px;
    margin: 24px 0;
    text-align: center;
    position: relative;
}

.restricted-notice::before {
    content: "[ CLASSIFIED ]";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-bg);
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--danger);
    text-transform: uppercase;
    font-weight: 700;
}

.restricted-notice p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--danger);
    letter-spacing: 0.5px;
}

/* ============================================================
   LOGIN MODAL  (terminal / access panel feel)
   ============================================================ */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.login-overlay.active {
    display: flex;
}

.login-modal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-highlight);
    border-top: 3px solid var(--accent-gold);
    border-radius: 2px;
    padding: 40px;
    width: 420px;
    max-width: 92vw;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(212, 165, 55, 0.05);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.login-modal::before {
    content: "SECURE ACCESS TERMINAL";
    position: absolute;
    top: -24px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--accent-gold);
    background: var(--card-bg);
    padding: 2px 10px;
    border: 1px solid var(--border-highlight);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
}

.login-modal h2 {
    font-family: var(--font-mono);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-modal .subtitle {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group label::before {
    content: "> ";
    color: var(--accent-green);
    opacity: 0.5;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: #0a0a0f;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(61, 139, 94, 0.15);
    background-color: #0c0c12;
}

.form-group input::placeholder {
    color: #3a3a4a;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.login-error {
    font-family: var(--font-mono);
    color: var(--danger);
    font-size: 12px;
    margin-bottom: 15px;
    display: none;
    padding: 8px 12px;
    background: rgba(192, 57, 43, 0.08);
    border-left: 3px solid var(--danger);
    letter-spacing: 0.5px;
}

.login-error.active {
    display: block;
}

.login-success {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: 12px;
    margin-bottom: 15px;
    display: none;
    padding: 8px 12px;
    background: rgba(61, 139, 94, 0.08);
    border-left: 3px solid var(--accent-green);
    letter-spacing: 0.5px;
}

.login-success.active {
    display: block;
}

.login-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    font-family: var(--font-mono);
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    border: 1px solid var(--accent-gold);
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-submit:hover {
    background-color: #e0b544;
    box-shadow: 0 0 20px rgba(212, 165, 55, 0.25);
}

.btn-cancel {
    padding: 12px 22px;
    font-family: var(--font-mono);
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-highlight);
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-cancel:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* ============================================================
   WELCOME PAGE
   ============================================================ */
.welcome-page {
    text-align: center;
    padding: 80px 40px;
    animation: fadeIn 0.5s ease;
}

.welcome-page .icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(212, 165, 55, 0.3));
}

.welcome-page h2 {
    font-family: var(--font-mono);
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.welcome-page p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 14px;
}

/* ============================================================
   LOCKED CONTENT OVERLAY
   ============================================================ */
.locked-content {
    position: relative;
}

.locked-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 10, 15, 0.5) 40%,
        var(--primary-bg) 100%
    );
    z-index: 1;
}

.locked-content::after {
    content: "\1F512  ACCESS DENIED  \2014  AUTHORIZATION REQUIRED";
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    background-color: var(--card-bg);
    padding: 16px 28px;
    border-radius: 2px;
    border: 1px solid var(--border-highlight);
    border-left: 3px solid var(--danger);
    z-index: 2;
    font-size: 12px;
    color: var(--danger);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   CHINESE BILINGUAL ANNOTATIONS
   ============================================================ */
.cn {
    display: none;
    color: #5a6a7a;
    font-size: 0.85em;
    line-height: 1.6;
    margin-top: -5px;
    margin-bottom: 12px;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    opacity: 0.7;
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
}

body.show-cn .cn {
    display: block;
}

/* ============================================================
   SCROLLBAR STYLING (global)
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================================
   RESPONSIVE  (mobile-first breakpoints)
   ============================================================ */
@media (max-width: 1100px) {
    .content-area {
        padding: 28px 30px;
    }

    .main-container {
        grid-template-columns: 240px 1fr;
    }
}

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

    .sidebar {
        display: none;
    }

    .content-area {
        padding: 20px 18px;
    }

    .content-header h1 {
        font-size: 20px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar .logo-text {
        font-size: 16px;
    }

    .navbar .logo-subtitle {
        display: none;
    }

    .login-modal {
        padding: 28px 24px;
    }

    .document-box {
        padding: 20px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 15px 12px;
    }

    .navbar .nav-actions {
        gap: 10px;
    }

    .last-updated {
        display: none;
    }

    .classified-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .login-modal {
        padding: 24px 18px;
        width: 96vw;
    }

    .content-header .meta {
        flex-direction: column;
        gap: 6px;
    }
}
