body {
    font-family: sans-serif;
    background-color: #121212;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg stroke='rgba(255,255,255,0.03)' stroke-width='2' stroke-linejoin='round'%3E%3Cpolygon points='0,0 200,0 80,120' fill='rgba(255,255,255,0.02)'/%3E%3Cpolygon points='0,0 80,120 0,200' fill='rgba(0,0,0,0.1)'/%3E%3Cpolygon points='200,0 180,220 80,120' fill='rgba(255,255,255,0.01)'/%3E%3Cpolygon points='0,200 80,120 180,220' fill='rgba(0,0,0,0.2)'/%3E%3Cpolygon points='200,0 400,0 320,80' fill='rgba(255,255,255,0.03)'/%3E%3Cpolygon points='200,0 320,80 180,220' fill='rgba(0,0,0,0.15)'/%3E%3Cpolygon points='400,0 400,200 320,80' fill='rgba(255,255,255,0.005)'/%3E%3Cpolygon points='180,220 320,80 400,200' fill='rgba(0,0,0,0.05)'/%3E%3Cpolygon points='0,200 180,220 120,320' fill='rgba(255,255,255,0.025)'/%3E%3Cpolygon points='0,200 120,320 0,400' fill='rgba(0,0,0,0.1)'/%3E%3Cpolygon points='180,220 200,400 120,320' fill='rgba(255,255,255,0.01)'/%3E%3Cpolygon points='0,400 120,320 200,400' fill='rgba(0,0,0,0.25)'/%3E%3Cpolygon points='180,220 400,200 280,280' fill='rgba(255,255,255,0.015)'/%3E%3Cpolygon points='180,220 280,280 200,400' fill='rgba(0,0,0,0.05)'/%3E%3Cpolygon points='400,200 400,400 280,280' fill='rgba(255,255,255,0.02)'/%3E%3Cpolygon points='200,400 280,280 400,400' fill='rgba(0,0,0,0.15)'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.1)'%3E%3Ccircle cx='80' cy='120' r='2'/%3E%3Ccircle cx='320' cy='80' r='2'/%3E%3Ccircle cx='180' cy='220' r='3'/%3E%3Ccircle cx='120' cy='320' r='2'/%3E%3Ccircle cx='280' cy='280' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    color: #eee;
}

.header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/bg1.png') center/cover no-repeat;
    background-color: #333; /* Fallback if image is missing */
    color: #fff;
    padding: 20px 20px 140px 40px; /* Shift padding up to the edge */
    text-align: left; /* Align closer to the menu */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: bold;
    font-family: monospace;
    text-transform: uppercase;
    color: #00ff66;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.8), 0 0 20px rgba(0, 255, 102, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.9);
    animation: textGlitch 6s infinite;
}

@keyframes textGlitch {
    0%, 96% { text-shadow: 0 0 10px rgba(0, 255, 102, 0.8), 0 0 20px rgba(0, 255, 102, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.9); transform: none; }
    96.5% { text-shadow: 3px 0 rgba(255,0,0,0.8), -3px 0 rgba(0,255,255,0.8); transform: skewX(3deg); }
    97% { text-shadow: -3px 0 rgba(255,0,0,0.8), 3px 0 rgba(0,255,255,0.8); transform: skewX(-3deg); }
    97.5% { text-shadow: 0 0 10px rgba(0, 255, 102, 0.8), 0 0 20px rgba(0, 255, 102, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.9); transform: none; }
    98% { text-shadow: 2px 0 rgba(255,0,0,0.8), -2px 0 rgba(0,255,255,0.8); transform: skewX(1deg); }
    98.5%, 100% { text-shadow: 0 0 10px rgba(0, 255, 102, 0.8), 0 0 20px rgba(0, 255, 102, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.9); transform: none; }
}

.header h1::before {
    content: "> ";
    opacity: 0.5;
}

.header h1::after {
    content: "_";
    animation: blink 1.2s step-end infinite;
}

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

.container {
    max-width: 960px;
    margin: -60px auto 20px; /* Negative top margin pulls cards over the faded header */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: #020604;
    background-image: 
        linear-gradient(rgba(0, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.4) 2px, transparent 2px);
    background-size: 15px 15px, 15px 15px, 100% 4px;
    color: #a9b7c6;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 255, 102, 0.05);
    padding: 20px;
    padding-top: 35px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 102, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(0, 255, 102, 0.15);
}

.card::before, .guide-container::before {
    content: "SYSOP // NODE_ONLINE";
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 255, 102, 0.8);
    color: #020604;
    font-family: monospace;
    font-size: 0.65em;
    padding: 2px 10px;
    font-weight: bold;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 4px;
    letter-spacing: 1px;
}

.card.pending::before, .guide-container.pending::before {
    content: "SYSOP // NODE_PENDING";
    background-color: rgba(255, 140, 0, 0.8);
}

.card.pending {
    border-color: rgba(255, 140, 0, 0.3);
}

.card.pending:hover {
    border-color: rgba(255, 140, 0, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(255, 140, 0, 0.15);
}

.card::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 15px;
    width: 40px;
    height: 3px;
    background-color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.8);
}

.card.pending::after {
    background-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
}

.guide-container::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 15px;
    width: 40px;
    height: 3px;
    background-color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.8);
}

.guide-container.pending::after {
    background-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
}

.guide-container:hover::after {
    background-color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.8);
}

.guide-container.pending:hover::after {
    background-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
}

.guide-container:has(a:hover)::after {
    background-color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.8);
}

.guide-container.pending:has(a:hover)::after {
    background-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
}

.card h2 {
    margin-top: 0;
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
    position: relative;
    padding-bottom: 15px;
}

.card h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: repeating-linear-gradient(-45deg, #143429 0, #00ff66 3px, transparent 3px, transparent 6px);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

.card.pending h2 {
    margin-top: 0;
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.4);
    position: relative;
    padding-bottom: 15px;
}

.card.pending h2::after {
    background: repeating-linear-gradient(-45deg, #ff8c00 0, #ff8c00 3px, transparent 3px, transparent 6px);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

.card > a:first-of-type:hover h2 {
    color: #020604;
    text-shadow: none;
}

.card > a:first-of-type:hover h2::after {
    background: repeating-linear-gradient(-45deg, #020604 0, #020604 3px, transparent 3px, transparent 6px);
    box-shadow: 0 0 8px rgba(2, 6, 4, 0.35);
}

.card a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: rgba(0, 255, 102, 0.1);
    border: 1px solid #00ff66;
    color: #00ff66;
    text-decoration: none;
    border-radius: 3px;
    font-family: monospace;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}

.card a:hover {
    background-color: #00ff66;
    color: #020604;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.6);
}

.card.pending a {
    background-color: rgba(255, 140, 0, 0.1);
    border-color: #ff8c00;
    color: #ff8c00;
}

.card.pending a:hover {
    background-color: #ff8c00;
    color: #020604;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.more-to-come {
    grid-column: 1 / -1; /* Spans the full width of the grid */
    text-align: center;
    padding: 30px;
    margin-top: 10px;
    background-color: rgba(0, 255, 102, 0.02);
    border: 1px dashed rgba(0, 255, 102, 0.3);
    border-radius: 4px;
    color: rgba(0, 255, 102, 0.7);
    font-family: monospace;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.3);
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 255, 102, 0.05);
}

.more-to-come::after {
    content: "_";
    animation: blink 1.2s step-end infinite;
    color: #00ff66;
}

.published-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 255, 102, 0.1);
    border: 1px solid #00ff66;
    color: #00ff66;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.7em;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
}

.guide-container {
    max-width: 800px;
    margin: -60px auto 20px; /* Negative top margin pulls content over the faded header */
    padding: 40px 30px 30px;
    background-color: #020604;
    background-image: 
        linear-gradient(rgba(0, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.4) 2px, transparent 2px);
    background-size: 15px 15px, 15px 15px, 100% 4px;
    color: #a9b7c6;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 255, 102, 0.05);
    position: relative;
}

.guide-container.video-guide {
    /* Retaining only the top-down neon energy glow */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 30px 40px -20px rgba(0, 255, 102, 0.15);
}

/* --- PENDING / DRAFT GUIDES --- */
.guide-container.pending {
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 30px 40px -20px rgba(255, 140, 0, 0.15);
}

.guide-container.pending h1::before {
    background: repeating-linear-gradient(-45deg, #ff8c00 0, #ff8c00 4px, transparent 4px, transparent 8px);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.guide-container.pending h1, .guide-container.pending h2 {
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.4);
}

.guide-container.pending a {
    color: #ff8c00;
}

.guide-container.pending code {
    background-color: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
}

.guide-container.pending pre {
    border-color: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.guide-container.pending pre:hover {
    border-color: rgba(255, 140, 0, 0.8);
    background-color: #120b05; /* Subtle dark orange terminal tint */
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2), inset 0 0 15px rgba(255, 140, 0, 0.1);
}

.guide-container.pending ul li::before,
.guide-container.pending ol li::before {
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.4);
}

.guide-container h1, .guide-container h2 {
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

.guide-container h1 {
    position: relative;
    margin-top: 40px; /* Creates dedicated space for the barcode above the H1 */
}

.guide-container h1::before {
    content: "";
    position: absolute;
    top: -25px; /* Positions the barcode within the margin space */
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 6px;
    background: repeating-linear-gradient(-45deg, #00ff66 0, #00ff66 4px, transparent 4px, transparent 8px);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.guide-container a {
    color: #00ff66;
}

.guide-container code {
    background-color: rgba(0, 255, 102, 0.1);
    color: #00ff66;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.guide-container pre {
    background-color: #050a07;
    border: 1px solid rgba(0, 255, 102, 0.2);
    color: #00ff66;
    padding: 10px;
    border-radius: 3px;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.guide-container pre:hover {
    border-color: rgba(0, 255, 102, 0.8);
    background-color: #08120b; /* Slightly elevated terminal black */
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2), inset 0 0 15px rgba(0, 255, 102, 0.1);
}

/* --- CUSTOM TERMINAL LISTS --- */
.guide-container ul {
    list-style: none;
    padding-left: 20px;
}

.guide-container ol {
    list-style: none;
    padding-left: 35px;
    counter-reset: terminal-ol;
}

.guide-container ul li, .guide-container ol li {
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-container ul li::before {
    content: ">";
    position: absolute;
    left: -20px;
    color: #00ff66;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

.guide-container ol li {
    counter-increment: terminal-ol;
}

.guide-container ol li::before {
    content: "[" counter(terminal-ol) "]";
    position: absolute;
    left: -35px;
    color: #00ff66;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

/* Nested Lists Spacing */
.guide-container ul ul, .guide-container ol ul, 
.guide-container ul ol, .guide-container ol ol {
    margin-top: 8px;
}

/* --- RESPONSIVE VIDEO --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-top: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    border-color: rgba(0, 255, 102, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.4);
}

/* Hardware Barcode Data-port */
.video-container::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 6px;
    background: repeating-linear-gradient(-45deg, #00ff66 0, #00ff66 4px, transparent 4px, transparent 8px);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

/* --- PURE CSS SIDEBAR NAVIGATION --- */
/* 1. Hide the actual checkbox */
.sidebar-toggle {
    display: none;
}

/* 2. Style the hamburger menu label (Mobile) */
.sidebar-toggle-label {
    display: block;
    padding: 15px;
    background: #0a0a0a;
    color: #00ff66;
    border-bottom: 1px solid rgba(0, 255, 102, 0.3);
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    font-family: monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
    box-sizing: border-box;
}

/* 3. Sidebar container */
.sidebar {
    position: fixed;
    left: -200px; /* Hidden off-screen on mobile by default */
    top: 50px; /* Sits right below the mobile menu bar */
    width: 200px;
    height: 100%;
    background-color: #020604;
    background-image: 
        linear-gradient(rgba(0, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.4) 2px, transparent 2px);
    background-size: 15px 15px, 15px 15px, 100% 4px;
    color: white;
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 20px;
    border-right: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: inset -5px 0 20px rgba(0, 255, 102, 0.05), 5px 0 15px rgba(0,0,0,0.8);
}

.sidebar-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: block;
    border: 2px solid rgba(0, 255, 102, 0.9);
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.55), 0 0 28px rgba(0, 255, 102, 0.25), inset 0 0 8px rgba(0, 255, 102, 0.3);
    object-fit: cover;
}

.sidebar nav h2 {
    margin-top: 0;
    text-align: center;
    color: #00ff66;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
    position: relative;
    padding-bottom: 15px;
}

.sidebar nav h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: repeating-linear-gradient(-45deg, #00ff66 0, #00ff66 3px, transparent 3px, transparent 6px);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

/* Menu Categories */
.sidebar nav .menu-category {
    font-family: monospace;
    font-size: 0.8em;
    color: rgba(0, 255, 102, 0.4);
    padding: 5px 20px;
    margin: 15px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
    text-align: right;
}

.sidebar nav .menu-category.pending-category {
    color: rgba(255, 140, 0, 0.5);
    border-bottom-color: rgba(255, 140, 0, 0.2);
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Pending List Items */
.sidebar nav ul.pending-list li a {
    color: rgba(255, 140, 0, 0.6);
    border-bottom-color: rgba(255, 140, 0, 0.15);
}

.sidebar nav ul.pending-list li a:hover {
    background: #ff8c00;
    color: #020604;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
    text-shadow: none;
}

.sidebar nav ul li a {
    display: block;
    padding: 15px 20px;
    color: rgba(0, 255, 102, 0.6);
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 255, 102, 0.15);
    transition: all 0.2s ease-in-out;
}

.sidebar nav ul li a:hover {
    background: #00ff66;
    color: #020604;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
    text-shadow: none;
}

/* 4. The Checkbox Hack: when checked, slide sidebar in */
.sidebar-toggle:checked ~ .sidebar {
    left: 0;
}

/* 5. Main content wrapper */
.main-content {
    margin-top: 50px; /* Creates space so the fixed mobile menu bar doesn't overlap the header */
    transition: margin-left 0.3s ease;
}

/* 6. Desktop layout */
@media (min-width: 768px) {
    .sidebar-toggle-label {
        display: none; /* Hide mobile menu button */
    }
    
    .sidebar {
        left: 0; /* Always show sidebar on larger screens */
        top: 0; /* Make it full height */
    }

    .main-content {
        margin-top: 0; /* Remove mobile menu space */
        margin-left: 200px; /* Push content to the right so it doesn't overlap the pinned sidebar */
    }
}

/* --- CYBERDECK SCROLLBAR --- */
::-webkit-scrollbar {
    width: 12px;
    background: #020604;
    border-left: 1px solid rgba(0, 255, 102, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.3);
    border: 1px solid #00ff66;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 102, 0.6);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}
::-webkit-scrollbar-corner {
    background: #020604;
}

/* --- CRT FLICKER & SCANLINE OVERLAY --- */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0% { opacity: 0.12; }
    50% { opacity: 0.15; }
    100% { opacity: 0.13; }
}

/* --- PURE CSS MODAL (:target hack) --- */
.modal-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-window:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-window:target .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    z-index: 10;
}

/* --- PURE CSS TOOLTIPS --- */
[data-tooltip] {
    position: relative;
    cursor: crosshair;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #020604;
    color: #00ff66;
    padding: 6px 12px;
    font-family: monospace;
    font-size: 0.85em;
    white-space: nowrap;
    border: 1px solid rgba(0, 255, 102, 0.8);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 255, 102, 0.4), inset 0 0 5px rgba(0, 255, 102, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
