@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #020c02;
    --primary-color-light: #071407;
    --secondary-color: #00ff41;
    --secondary-color-light: rgb(100, 255, 140);
    --secondary-dim: rgba(0, 255, 65, 0.15);
    --secondary-glow: rgba(0, 255, 65, 0.4);
    --accent-cyan: #00e5ff;
    --accent-red: #ff003c;
    --accent-yellow: #ffe600;
    --text-muted: #4a7a4a;
    --grid-color: rgba(0, 255, 65, 0.04);
    --scan-color: rgba(0, 255, 65, 0.03);
}

/* ============================================================
   GLOBAL BODY & BACKGROUND
============================================================ */
body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--primary-color);
    min-height: 100vh;
    color: var(--secondary-color-light);
    position: relative;
    overflow-x: hidden;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--scan-color) 2px,
        var(--scan-color) 4px
    );
    pointer-events: none;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================================
   HEADER
============================================================ */
header {
    background: rgba(2, 12, 2, 0.95);
    padding: 16px 24px;
    border-bottom: 1px solid var(--secondary-color);
    box-shadow: 0 0 30px var(--secondary-glow), 0 2px 0 var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(8px);
}

header::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), var(--accent-cyan), var(--secondary-color), transparent);
    animation: headerScan 3s linear infinite;
}

@keyframes headerScan {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: 300ms;
    filter: drop-shadow(0 0 6px var(--secondary-color));
}

.logo:hover {
    scale: 1.08;
    box-shadow: 0 0 24px var(--secondary-color), inset 0 0 12px rgba(0,255,65,0.2);
}

.site-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-glow);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Corner decoration */
.header-corner {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.status-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============================================================
   NAV
============================================================ */
nav {
    background: rgba(2, 12, 2, 0.98);
    padding: 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(12px);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-button {
    padding: 14px 28px;
    background: none;
    border: none;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-button:hover::before { width: 80%; }

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: none;
}

.nav-button:hover {
    background: rgba(0, 255, 65, 0.05) !important;
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(2, 12, 2, 0.98);
    min-width: 200px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 8px 32px var(--secondary-glow), inset 0 0 20px rgba(0,255,65,0.02);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 11px 20px;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.dropdown-item:hover {
    background: rgba(0, 255, 65, 0.08);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
    padding-left: 26px;
    text-shadow: 0 0 6px var(--secondary-color);
}

/* ============================================================
   LAYOUT
============================================================ */
.content-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 28px auto;
    gap: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
    width: 220px;
    background: rgba(7, 20, 7, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-radius: 4px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 65px;
    box-shadow: 0 0 20px rgba(0,255,65,0.08), inset 0 0 20px rgba(0,255,65,0.02);
    backdrop-filter: blur(8px);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.sidebar h3 {
    font-family: 'Orbitron', monospace;
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,255,65,0.2);
}

.sidebar-button {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-muted);
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.25s;
    text-align: left;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.sidebar-button::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-button:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    text-shadow: 0 0 6px var(--secondary-color);
}

.sidebar-button:hover::before { opacity: 1; }

.sidebar-button.active {
    background: rgba(0, 255, 65, 0.12);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0,255,65,0.15), inset 0 0 8px rgba(0,255,65,0.05);
    text-shadow: 0 0 8px var(--secondary-color);
}

.sidebar-button.active::before { opacity: 1; }

/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content {
    flex: 1;
    background: rgba(7, 20, 7, 0.85);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    padding: 40px;
    min-height: 500px;
    box-shadow: 0 0 30px rgba(0,255,65,0.06), inset 0 0 40px rgba(0,255,65,0.01);
    backdrop-filter: blur(8px);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    position: relative;
}

/* ============================================================
   SECTION TRANSITIONS
============================================================ */
.rules-section,
.documentation-section {
    display: none;
}

.rules-section.active,
.documentation-section.active {
    display: block;
    animation: cyberFadeIn 0.4s ease-out;
}

@keyframes cyberFadeIn {
    from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.rules-section h1,
.documentation-section h1 {
    font-family: 'Orbitron', monospace;
    color: var(--secondary-color);
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 12px var(--secondary-color), 0 0 24px var(--secondary-glow);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,255,65,0.2);
    position: relative;
}

.rules-section h1::after,
.documentation-section h1::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
}

.rules-section p,
.rules-section li,
.rules-section ol,
.rules-section ul {
    line-height: 1.6;
    color: var(--secondary-color-light);
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 400;
}

.rules-section li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.rules-section ol {
    counter-reset: cyber-counter;
    list-style: none;
    padding-left: 0;
}

.rules-section ol li {
    counter-increment: cyber-counter;
    padding: 10px 14px 10px 48px;
    position: relative;
    border-left: 1px solid rgba(0,255,65,0.15);
    margin-bottom: 8px;
    background: rgba(0,255,65,0.02);
    transition: background 0.2s;
}

.rules-section ol li:hover {
    background: rgba(0,255,65,0.04);
    border-left-color: var(--secondary-color);
}

.rules-section ol li::before {
    content: counter(cyber-counter, decimal-leading-zero);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--secondary-color);
    text-shadow: 0 0 6px var(--secondary-color);
    opacity: 0.7;
}

.rules-section ol li:hover::before {
    opacity: 1;
    color: var(--secondary-color-light);
    text-shadow: 0 0 8px var(--secondary-color);
}

.rules-section strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ============================================================
   HOME SECTION
============================================================ */
.home-section {
    padding: 20px 0;
}

.home-section.active {
    display: block;
    animation: cyberFadeIn 0.5s ease-out;
}

/* Hero */
.cyber-hero {
    text-align: center;
    padding: 40px 20px 50px;
    position: relative;
}

.cyber-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    box-shadow: 0 0 10px var(--secondary-color);
}

.cyber-hero-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: cyberFadeIn 0.6s ease-out;
}

.cyber-hero h1 {
    font-family: 'Orbitron', monospace;
    color: var(--secondary-color);
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--secondary-color), 0 0 40px var(--secondary-glow), 0 0 60px rgba(0,255,65,0.1);
    margin-bottom: 18px;
    line-height: 1.2;
}

.cyber-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats bar */
.cyber-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0 40px;
    border-top: 1px solid rgba(0,255,65,0.1);
    border-bottom: 1px solid rgba(0,255,65,0.1);
    margin: 30px 0;
}

.cyber-stat {
    text-align: center;
}

.cyber-stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 12px var(--secondary-color);
    display: block;
}

.cyber-stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Content grid */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.home-card {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 2px;
    padding: 20px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: all 0.3s;
}

.home-card:hover {
    border-color: rgba(0,255,65,0.4);
    background: rgba(0, 255, 65, 0.06);
    box-shadow: 0 0 16px rgba(0,255,65,0.1);
}

.home-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.home-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 0 6px var(--secondary-color);
}

.home-card p, .home-card li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.home-card ul {
    list-style: none;
    padding: 0;
}

.home-card li {
    padding: 3px 0 3px 14px;
    position: relative;
    margin-bottom: 2px;
}

.home-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 10px;
    opacity: 0.7;
}

/* ============================================================
   SICUREZZA SECTION
============================================================ */
.security-section {
    margin: 32px 0 0;
}

.security-section-title {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 0 8px var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-section-title::before {
    content: '';
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: var(--secondary-color);
    box-shadow: 0 0 6px var(--secondary-color);
}

.security-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    box-shadow: 0 0 6px rgba(0,255,65,0.3);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sec-card {
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 2px;
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.sec-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.04), transparent);
    transition: left 0.5s ease;
}

.sec-card:hover::before { left: 100%; }

.sec-card:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 20px rgba(0,255,65,0.12), inset 0 0 12px rgba(0,255,65,0.03);
    transform: translateY(-2px);
}

/* Corner accent */
.sec-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 14px; height: 14px;
    border-top: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.sec-card:hover::after { opacity: 1; }

.sec-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 4px var(--secondary-color));
    transition: filter 0.3s;
}

.sec-card:hover .sec-icon {
    filter: drop-shadow(0 0 8px var(--secondary-color)) drop-shadow(0 0 16px var(--secondary-glow));
}

.sec-status {
    position: absolute;
    top: 14px; right: 14px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
}

.sec-status.active {
    color: var(--secondary-color);
    border: 1px solid rgba(0,255,65,0.3);
    background: rgba(0,255,65,0.08);
    text-shadow: 0 0 6px var(--secondary-color);
}

.sec-status.online {
    color: var(--accent-cyan);
    border: 1px solid rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.08);
    animation: blinkStatus 2s ease-in-out infinite;
}

.sec-status.armed {
    color: var(--accent-red);
    border: 1px solid rgba(255,0,60,0.3);
    background: rgba(255,0,60,0.08);
    text-shadow: 0 0 6px var(--accent-red);
}

@keyframes blinkStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sec-title {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 6px rgba(0,255,65,0.5);
}

.sec-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.sec-metric {
    margin-top: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: rgba(0,255,65,0.5);
}

.sec-metric span {
    color: var(--secondary-color);
    text-shadow: 0 0 4px var(--secondary-color);
}

/* Progress bar inside cards */
.sec-bar {
    margin-top: 10px;
    height: 3px;
    background: rgba(0,255,65,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sec-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-cyan));
    box-shadow: 0 0 6px var(--secondary-color);
    border-radius: 2px;
    animation: barLoad 2s ease-out forwards;
}

@keyframes barLoad {
    from { width: 0; }
}

.home-section a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,255,65,0.3);
    transition: all 0.2s;
}

.home-section a:hover {
    color: var(--secondary-color-light);
    border-bottom-color: var(--secondary-color);
    text-shadow: 0 0 6px var(--secondary-color);
}

/* ============================================================
   CODE BLOCKS
============================================================ */
code {
    background: rgba(0, 255, 65, 0.04);
    padding: 14px 18px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-left: 3px solid var(--secondary-color);
    border-radius: 2px;
    display: block;
    margin: 16px 0;
    color: var(--secondary-color-light);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

code.inline-code {
    display: inline;
    padding: 2px 8px;
    margin: 0;
    font-size: 0.85em;
    border-left-width: 1px;
}

/* ============================================================
   DOCUMENTATION STYLES
============================================================ */
.doc-intro {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'Share Tech Mono', monospace;
}

.doc-category {
    margin-bottom: 36px;
}

.doc-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,255,65,0.15);
    text-shadow: 0 0 8px rgba(0,255,65,0.4);
}

.doc-cat-icon { font-size: 16px; }

.doc-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 230, 0, 0.2);
    border-radius: 2px;
    color: rgba(255,230,0,0.6);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    background: rgba(255, 230, 0, 0.02);
}

.doc-note-icon { font-size: 14px; }

.doc-link {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,255,65,0.3);
    transition: all 0.2s;
}

.doc-link:hover {
    color: var(--secondary-color-light);
    text-shadow: 0 0 6px var(--secondary-color);
}

/* ============================================================
   CHANNEL CARDS
============================================================ */
.doc-channel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(0,255,65,0.02);
    border: 1px solid rgba(0,255,65,0.1);
    border-left: 2px solid rgba(0,255,65,0.3);
    border-radius: 2px;
    transition: all 0.25s;
}

.doc-channel-card:hover {
    border-left-color: var(--secondary-color);
    background: rgba(0,255,65,0.05);
    box-shadow: 0 0 10px rgba(0,255,65,0.06);
    transform: translateX(4px);
}

.channel-icon {
    font-size: 18px;
    min-width: 28px;
    text-align: center;
}

.channel-info { display: flex; flex-direction: column; gap: 2px; }

.channel-name {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 13px;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 4px rgba(0,255,65,0.3);
}

.channel-desc {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================================
   COMMANDS TABLE
============================================================ */
.doc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: rgba(0,255,65,0.02);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 2px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-desc {
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.badge-user      { background: rgba(0,120,215,0.12); color: #4eb6ff; border: 1px solid rgba(78,182,255,0.3); }
.badge-staff     { background: rgba(255,165,0,0.1);  color: #ffa020; border: 1px solid rgba(200,130,0,0.3); }
.badge-admin-pin { background: rgba(255,100,0,0.1);  color: #ff6020; border: 1px solid rgba(200,80,0,0.3);  }
.badge-emergency { background: rgba(220,50,50,0.15); color: #ff4455; border: 1px solid rgba(200,0,0,0.4);  box-shadow: 0 0 6px rgba(255,0,60,0.2); }

.cmd-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.cmd-row {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,255,65,0.06);
    align-items: center;
    transition: background 0.2s;
}

.cmd-row:last-child { border-bottom: none; }

.cmd-row:hover:not(.cmd-header) {
    background: rgba(0,255,65,0.04);
}

.cmd-header {
    background: rgba(0,255,65,0.05);
    color: var(--text-muted);
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cmd-name {
    color: var(--secondary-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(0,255,65,0.3);
}

.cmd-name em {
    color: var(--text-muted);
    font-style: normal;
}

.cmd-desc {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   MEMBERS
============================================================ */
.member-category { margin-bottom: 36px; }

.category-title {
    font-family: 'Orbitron', monospace;
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,255,65,0.2);
    text-shadow: 0 0 10px var(--secondary-color);
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: rgba(0,255,65,0.03);
    border: 1px solid rgba(0,255,65,0.15);
    border-radius: 2px;
    transition: all 0.3s;
    min-width: 110px;
    max-width: 140px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0,255,65,0.15);
    background: rgba(0,255,65,0.06);
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,65,0.3);
    transition: all 0.3s;
    filter: grayscale(20%);
}

.member-card:hover .member-avatar {
    border-color: var(--secondary-color);
    transform: scale(1.08);
    filter: grayscale(0%) drop-shadow(0 0 6px var(--secondary-color));
}

.member-name {
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    text-align: center;
    word-break: break-word;
    transition: color 0.3s;
}

.member-card:hover .member-name {
    color: var(--secondary-color);
    text-shadow: 0 0 6px var(--secondary-color);
}

/* ============================================================
   HOMEPAGE BTN
============================================================ */
.homepage_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(2, 12, 2, 0.9);
    color: rgba(0, 255, 65, 0.5);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: 2px;
    height: 32px;
    width: 260px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.homepage_btn:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 14px rgba(0,255,65,0.2);
    text-shadow: 0 0 6px var(--secondary-color);
}

.homepage_btn a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1300px) {
    .rules-section h1,
    .documentation-section h1 { font-size: 18px; }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .rules-section h1,
    .documentation-section h1 { font-size: 16px; }
    .home-grid { grid-template-columns: 1fr; }
    .cmd-row { grid-template-columns: 2fr 0.8fr 2.5fr; }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-button {
        padding: 10px 10px;
        font-size: 0;
        flex-direction: column;
        gap: 4px;
        min-width: 50px;
        justify-content: center;
    }

    .nav-icon  { display: block; }
    .nav-label { display: none; }

    .content-wrapper { flex-direction: column; }
    .sidebar { display: none !important; }
    .members-grid { justify-content: center; }
    .member-card  { min-width: 96px; max-width: 124px; }
    .member-avatar { width: 56px; height: 56px; }
    .category-title { font-size: 13px; }
    .cmd-row { grid-template-columns: 1fr; gap: 4px; }
    .cmd-header { display: none; }
    .cmd-name  { font-size: 13px; }
    .cmd-desc  { font-size: 12px; padding-left: 4px; }
    .security-grid { grid-template-columns: 1fr 1fr; }
    .cyber-stats { gap: 20px; }
    .main-content { clip-path: none; padding: 24px; }
}

@media (max-width: 800px) {
    .rules-section h1,
    .documentation-section h1 { font-size: 15px; }
    .home-section { padding: 0; }
    .cyber-hero h1 { font-size: 20px; }
    .main-content { padding: 20px; }
    .security-grid { grid-template-columns: 1fr; }

    .homepage_btn {
        width: 200px;
        font-size: 9px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 500px) {
    .header-corner { display: none; }
    .cyber-hero h1 { font-size: 16px; }
    .cyber-stats { flex-wrap: wrap; gap: 16px; }
    .nav-button { padding: 8px 8px; min-width: 42px; }
    .nav-icon { width: 18px; height: 18px; }
    .homepage_btn { width: 200px; height: 26px; font-size: 8px; }
}