/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.6);
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-green: #0aff0a;
    --neon-red: #ff2a2a;
    --neon-gold: #ffd700;
    --text-main: #e0e0e0;
    --text-dim: #8892b0;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

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

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* =========================================
   2. BACKGROUND FX & ANIMATIONS
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
}

.ambient-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.2;
    animation: floatOrb 10s infinite alternate;
}
.orb-1 { top: -100px; left: -100px; background: var(--neon-purple); }
.orb-2 { bottom: -100px; right: -100px; background: var(--neon-cyan); animation-delay: -5s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes pulse-width {
    0%, 100% { width: 45%; opacity: 1; }
    50% { width: 60%; opacity: 0.7; }
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.cyber-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    position: relative;
}

.nav-links { display: flex; gap: 30px; }
.nav-links li a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    position: relative;
}
.nav-links li a:hover, .nav-links li a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================
   4. TYPOGRAPHY & UTILITIES
   ========================================= */
.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch-effect:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--neon-red);
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* =========================================
   5. COMMON COMPONENTS (Cards & Decor)
   ========================================= */
.tech-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.tech-decor {
    position: absolute;
    width: 100px;
    height: 100px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    pointer-events: none;
}
.top-right { top: 0; right: 0; border-bottom-left-radius: 100%; }

/* =========================================
   6. GUIDE / ARTICLE LAYOUT
   ========================================= */
.guide-container {
    max-width: 1200px;
    margin: 120px auto 50px;
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar + Content */
    gap: 40px;
    padding: 0 20px;
    position: relative;
}

/* Sticky Sidebar (Table of Contents) */
.guide-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 4px;
}

.toc-title {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    margin-bottom: 15px;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.toc-list { padding: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
    color: var(--text-dim);
    font-size: 0.9rem;
    display: block;
    padding-left: 10px;
    border-left: 2px solid transparent;
}
.toc-list a:hover, .toc-list a.active {
    color: #fff;
    border-left-color: var(--neon-purple);
    padding-left: 15px;
}

/* Article Content Styling */
.guide-content {
    padding: 40px;
}

.article-header { margin-bottom: 40px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.article-section { margin-bottom: 60px; }

.article-h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.article-h3 {
    font-size: 1.4rem;
    color: var(--neon-purple);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.highlight-text { color: #fff; font-weight: 600; }

/* Code/Command Blocks */
.cmd-block {
    background: #000;
    border: 1px solid var(--neon-green);
    padding: 15px;
    font-family: var(--font-mono);
    color: var(--neon-green);
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Warning Boxes */
.warning-box {
    background: rgba(255, 50, 50, 0.1);
    border-left: 4px solid var(--neon-red);
    padding: 20px;
    margin: 25px 0;
}
.warning-title { color: var(--neon-red); font-weight: bold; display: block; margin-bottom: 10px; }

/* =========================================
   7. MIRRORS / LINKS PAGE STYLES
   ========================================= */
.mirror-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.mirror-card {
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 6px;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.mirror-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px currentColor;
}
.status-online { background-color: var(--neon-green); color: var(--neon-green); }
.status-slow { background-color: var(--neon-gold); color: var(--neon-gold); }
.status-offline { background-color: var(--neon-red); color: var(--neon-red); }

.mirror-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.mirror-name {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}
.ping-time { font-size: 0.8rem; color: var(--text-dim); }

.onion-address {
    font-family: var(--font-mono);
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 4px;
    color: var(--neon-purple);
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.btn-copy {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.btn-copy:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.rack-lines {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 60%;
    display: flex; flex-direction: column; gap: 4px;
}
.rack-line { width: 100%; height: 2px; background: rgba(255,255,255,0.1); }

/* =========================================
   8. STATUS PAGE STYLES
   ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.status-widget {
    background: rgba(10, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-title { font-size: 0.9rem; color: var(--text-dim); text-transform: uppercase; }
.widget-value { font-size: 1.5rem; font-weight: 700; color: #fff; font-family: var(--font-mono); }
.widget-icon { font-size: 1.5rem; opacity: 0.5; }

.console-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
}
.console-window::before {
    content: "/// SYSTEM_LOGS_V.3.4";
    position: absolute;
    top: 5px; right: 10px;
    color: #333; font-size: 0.7rem;
}
.log-entry {
    margin-bottom: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}
.log-time { color: var(--neon-purple); margin-right: 10px; }
.log-msg { color: var(--text-dim); }
.log-success { color: var(--neon-green); }
.log-error { color: var(--neon-red); }
.log-warn { color: var(--neon-gold); }

.uptime-history {
    display: flex;
    gap: 4px;
    height: 40px;
    margin: 20px 0;
    align-items: flex-end;
}
.uptime-bar {
    flex: 1;
    background: var(--neon-green);
    opacity: 0.5;
    transition: 0.2s;
    border-radius: 2px;
}
.uptime-bar:hover { opacity: 1; transform: scaleY(1.2); box-shadow: 0 0 10px var(--neon-green); }
.uptime-bar.down { background: var(--neon-red); height: 100% !important; }
.uptime-bar.maint { background: var(--neon-gold); height: 60% !important; }

.status-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.label-ok { background: rgba(10, 255, 10, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); }
.label-err { background: rgba(255, 42, 42, 0.1); color: var(--neon-red); border: 1px solid var(--neon-red); }

/* =========================================
   9. FAQ / KNOWLEDGE BASE STYLES
   ========================================= */
.faq-search-box {
    position: relative;
    margin-bottom: 40px;
}
.faq-search-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-cyan);
    padding: 15px 20px;
    font-family: 'Space Mono', monospace;
    color: #fff;
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
}
.faq-search-input:focus {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.faq-category { margin-bottom: 50px; }
.faq-cat-title {
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 2px solid var(--neon-purple);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.faq-item {
    background: rgba(20, 25, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.2); }

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #e0e0e0;
    transition: 0.3s;
}
.faq-question:hover { color: var(--neon-cyan); }
.faq-question i { transition: 0.3s transform; }

.faq-item.active .faq-question {
    background: rgba(0, 243, 255, 0.05);
    color: var(--neon-cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.faq-item.active .faq-answer { padding: 20px; }

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.glossary-item {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
}
.glossary-term { color: var(--neon-green); font-family: 'Space Mono', monospace; font-weight: bold; display: block; margin-bottom: 5px; }
.glossary-def { font-size: 0.8rem; color: #888; }

/* =========================================
   10. SECURITY PAGE STYLES
   ========================================= */
.pgp-block {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    background: #111;
    color: var(--text-dim);
    border: 1px dashed var(--neon-purple);
    padding: 20px;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 20px 0;
    position: relative;
}
.pgp-block::before {
    content: "BEGIN PGP PUBLIC KEY BLOCK";
    position: absolute;
    top: -10px; left: 20px;
    background: #000;
    padding: 0 10px;
    color: var(--neon-purple);
    font-weight: bold;
}

.canary-box {
    border: 1px solid var(--neon-gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}
.canary-date {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-gold);
    display: block;
    margin: 10px 0;
}

/* =========================================
   11. VENDORS PAGE STYLES (ADDED)
   ========================================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.filter-btn {
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    color: var(--text-dim);
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.vendor-card {
    background: #0b0f15;
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: 0.3s transform, 0.3s box-shadow;
}
.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-color: var(--neon-purple);
}

.vendor-header {
    background: linear-gradient(45deg, #1a1a2e, #0f0f18);
    padding: 15px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vendor-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}
.vendor-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    text-transform: uppercase;
}
.vendor-badge.premium {
    background: rgba(255, 215, 0, 0.1);
    color: var(--neon-gold);
    border-color: var(--neon-gold);
}

.vendor-body { padding: 20px; }
.vendor-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    font-family: 'Space Mono', monospace;
}
.stat-item i { margin-right: 5px; }

.vendor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}
.v-tag {
    background: #111;
    color: #888;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 2px;
}

.btn-visit {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 10px;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.btn-visit:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-purple);
}

/* =========================================
   12. RESPONSIVE (Global)
   ========================================= */
@media (max-width: 900px) {
    .guide-container { grid-template-columns: 1fr; }
    .guide-sidebar { display: none; }
    .nav-links { display: none; }
    
    .tech-card, .vendor-card, .mirror-card { margin-bottom: 20px; }
    .orb-1, .orb-2 { opacity: 0.1; }
}
