/* ========================================= */
/* 1. CORE RESET & VARIABLES                 */
/* ========================================= */
:root {
    --bg-deep: #050505;
    --bg-card: #0e0e11;
    --primary: #d946ef; /* Magenta Neon */
    --secondary: #8b5cf6; /* Violet */
    --success: #00ff88;
    --warning: #ffcc00;
    --danger: #ff4444;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    
    /* Fonts */
    --font-h1: 'Syncopate', sans-serif; 
    --font-h2: 'Rajdhani', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Courier New', monospace;
}

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

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

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

/* ========================================= */
/* 2. HEADER & NAVIGATION (FIXED)            */
/* ========================================= */
.glass-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}

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

.logo { font-family: var(--font-h1); font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; }
.highlight { color: var(--primary); }

.nav-links { display: flex; align-items: center; }
.nav-links a {
    color: var(--text-gray); margin: 0 12px;
    font-family: var(--font-h2); font-weight: 600; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 10px var(--primary); }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }

.status-pill {
    background: rgba(0, 255, 136, 0.1); color: var(--success);
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex; align-items: center; gap: 8px; font-family: var(--font-h2);
    white-space: nowrap;
}
.pulsing-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }

/* ========================================= */
/* 3. LAYOUT & SIDEBARS                      */
/* ========================================= */
.main-wrapper { max-width: 1100px; margin: 0 auto; padding-top: 120px; padding-bottom: 50px; padding-left: 20px; padding-right: 20px; }

.page-container {
    max-width: 1200px; margin: 100px auto 50px; padding: 0 20px;
    display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
}

.sidebar { position: sticky; top: 90px; }
.sidebar-widget {
    background: #0a0a0a; border: 1px solid #222; padding: 20px; margin-bottom: 20px; border-radius: 4px;
}
.sidebar-widget h3 {
    font-family: var(--font-h2); color: #fff; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px;
}
.toc-list li { margin-bottom: 8px; }
.toc-list a { color: #888; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.toc-list a:hover { color: var(--primary); padding-left: 5px; border-color: var(--primary); }

.stat-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.85rem; color: #aaa; }
.stat-row .highlight { color: var(--success); }
.stat-row .status-restricted { color: var(--warning); }

/* Article Body */
.article-content { background: #0a0a0a; border: 1px solid #222; padding: 40px; border-radius: 6px; min-height: 80vh; }
.article-header h1 { font-family: var(--font-h1); font-size: 2.2rem; line-height: 1.1; margin-bottom: 20px; }
.lead-text { font-size: 1.1rem; color: #ccc; margin-bottom: 20px; line-height: 1.7; }
.divider { height: 1px; background: #222; margin: 40px 0; }

.meta-data { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.meta-data span { background: #111; border: 1px solid #333; padding: 5px 10px; font-family: var(--font-mono); font-size: 0.8rem; color: #888; }

/* ========================================= */
/* 4. TYPOGRAPHY & ELEMENTS                  */
/* ========================================= */
h2 { font-family: var(--font-h2); font-size: 1.8rem; color: #fff; margin: 40px 0 20px; display: flex; align-items: center; gap: 10px; }
h3 { font-family: var(--font-h2); font-size: 1.4rem; color: var(--primary); margin: 30px 0 15px; }
p { margin-bottom: 15px; color: #b0b0b0; }

.cyber-title { font-family: var(--font-h1); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 30px; }
.outline-glow { -webkit-text-stroke: 1px var(--primary); color: transparent; }
.solid-neon { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.hero-section { text-align: center; margin-bottom: 80px; }
.hero-overline { color: var(--secondary); letter-spacing: 4px; font-family: var(--font-h2); margin-bottom: 20px; font-size: 0.9rem; }

.cta-button {
    display: inline-block; background: var(--primary); color: #000;
    padding: 12px 25px; font-weight: bold; font-family: var(--font-h2);
    text-transform: uppercase; margin-top: 20px; border-radius: 4px;
}
.cta-button:hover { box-shadow: 0 0 15px var(--primary); transform: translateY(-2px); }

/* Lists */
.styled-list li { position: relative; padding-left: 20px; margin-bottom: 10px; color: #ccc; }
.styled-list li::before { content: '>'; position: absolute; left: 0; color: var(--primary); font-family: monospace; }

/* Alerts */
.tech-alert, .maintenance-alert, .warning-panel {
    background: rgba(217, 70, 239, 0.05); border-left: 4px solid var(--primary);
    padding: 20px; margin: 25px 0; color: #eee; display: flex; gap: 15px; align-items: flex-start;
}
.maintenance-alert, .warning-panel { border-color: var(--warning); background: rgba(255, 204, 0, 0.05); }
.maintenance-alert i, .warning-panel i { color: var(--warning); margin-top: 4px; }

/* ========================================= */
/* 5. COMPONENTS (Tables, Bento, Code)       */
/* ========================================= */
.manifesto-box { max-width: 800px; margin: 0 auto; background: #0a0a0a; border: 1px solid #222; padding: 30px; }
.premium-text { font-size: 1.2rem; font-weight: 300; color: #e2e8f0; margin-bottom: 30px; }
.link-display { background: #000; border: 1px solid var(--primary); padding: 15px; display: inline-flex; gap: 15px; align-items: center; flex-wrap: wrap; justify-content: center; }
.onion-code { font-family: var(--font-mono); color: var(--success); font-size: 1.1rem; }
.btn-copy { background: var(--primary); border: none; padding: 8px 16px; font-weight: bold; cursor: pointer; }

/* Bento Grid */
.bento-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.bento-item { background: #111; padding: 25px; border: 1px solid #222; border-radius: 6px; transition: 0.3s; }
.bento-item:hover { border-color: var(--primary); }

/* Cyber Table */
.table-container { overflow-x: auto; margin: 20px 0; border: 1px solid #333; }
.cyber-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.9rem; }
.cyber-table th { text-align: left; padding: 15px; background: #151515; color: var(--primary); border-bottom: 2px solid #333; }
.cyber-table td { padding: 15px; border-bottom: 1px solid #222; color: #ccc; }
.status-online { color: var(--success); font-weight: bold; }
.status-offline { color: var(--danger); }
.status-restricted { color: var(--warning); }

/* Steps & FAQ */
.step-guide { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; }
.step-item { background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--secondary); padding: 20px; }
details { background: #0e0e0e; margin-bottom: 10px; border: 1px solid #222; border-radius: 4px; }
summary { padding: 15px; cursor: pointer; font-weight: bold; list-style: none; display: flex; justify-content: space-between; }
summary:after { content: '+'; color: var(--primary); }
details[open] summary:after { content: '-'; }
.faq-answer { padding: 15px; border-top: 1px solid #222; color: #aaa; font-size: 0.95rem; }

/* News & Logs */
.news-card { border: 1px solid #333; margin-bottom: 30px; background: #0e0e0e; }
.news-header { background: #151515; padding: 15px 20px; display: flex; justify-content: space-between; border-bottom: 1px solid #222; }
.news-body { padding: 25px; }
.changelog-item { display: flex; gap: 20px; margin-bottom: 30px; }
.version-badge { background: #222; padding: 5px 10px; font-family: var(--font-mono); height: fit-content; border: 1px solid #444; }

/* Vendors & Legal */
.vendor-profile { display: flex; gap: 20px; background: #111; padding: 20px; border-left: 4px solid var(--secondary); margin-bottom: 20px; }
.vendor-avatar { width: 60px; height: 60px; background: #222; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #555; }
.vendor-header { display: flex; justify-content: space-between; width: 100%; flex-wrap: wrap; }
.trust-badges span { font-size: 0.7rem; padding: 2px 5px; border: 1px solid #444; margin-left: 5px; background: #000; color: #bbb; }
.badge-trusted { color: var(--primary) !important; border-color: var(--primary) !important; }

.legal-block { margin-bottom: 40px; border-bottom: 1px dashed #333; padding-bottom: 30px; }
.clause { border-left: 2px solid #222; padding-left: 20px; margin-bottom: 25px; }
.prohibited-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.ban-item { background: rgba(255, 50, 50, 0.05); border: 1px solid #441111; padding: 15px; }
.ban-item h4 { color: #ff5555; margin: 0 0 5px 0; }

/* Terminal & 3D Elements */
.terminal-ui { background: #000; border: 1px solid #333; border-radius: 6px; overflow: hidden; font-family: var(--font-mono); margin: 40px 0; }
.term-bar { background: #222; padding: 8px; display: flex; gap: 5px; }
.btn-dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.term-content { padding: 20px; color: #ccc; font-size: 0.9rem; }
.prompt { color: var(--primary); }

.cube-spinner { width: 100px; height: 100px; margin: 0 auto; position: relative; transform-style: preserve-3d; animation: rotateCube 8s infinite linear; }
.face { position: absolute; width: 100px; height: 100px; border: 2px solid var(--primary); background: rgba(217, 70, 239, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: bold; }
.f-front { transform: translateZ(50px); } .f-back { transform: rotateY(180deg) translateZ(50px); }
.f-right { transform: rotateY(90deg) translateZ(50px); } .f-left { transform: rotateY(-90deg) translateZ(50px); }
.f-top { transform: rotateX(90deg) translateZ(50px); } .f-bottom { transform: rotateX(-90deg) translateZ(50px); }
@keyframes rotateCube { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }

/* Footer */
.cyber-footer-expanded { background: #020202; border-top: 1px solid #222; padding: 60px 20px; margin-top: 80px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-links a { color: #666; display: block; margin-bottom: 8px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
    .page-container { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-bottom: 40px; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 75%; height: 100vh; background: #000; flex-direction: column; justify-content: center; border-left: 1px solid #333; transition: 0.4s ease; }
    .nav-links.active { right: 0; }
    .nav-links a { margin: 20px 0; font-size: 1.2rem; }
    .verdict-card { flex-direction: column; text-align: center; }
    .vendor-profile { flex-direction: column; }
    .cyber-title { font-size: 2.2rem; }
}
