        :root {
            --bg-color: #000000;
            --text-color: #33cc33; /* Brighter green for content */
            --header-color: #00FF41; /* Maximum brightness green */
            --border-color: #008800; /* Brighter border */
            --panel-bg: #000000;
            --input-bg: #001100;
            --hover-bg: #002200;
            
            /* Faction Colors */
            --zion-color: #ff3333;
            --machine-color: #3388ff;
            --merov-color: #aa33ff;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: "Courier New", Courier, monospace;
            margin: 0;
            padding: 20px;
            font-size: 14px;
            line-height: 1.5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.2s;
        }

        a:hover {
            color: var(--header-color);
            text-decoration: underline;
            text-shadow: 0 0 5px var(--header-color);
        }

        /* Layout Structure */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            flex: 1;
            width: 100%;
        }

h1 {
    color: var(--header-color);
    margin: 0;
    font-size: 50px;
    
    line-height: 1; 
    
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}
	h2 {
		margin: 0;
	}

        .subtitle {
            margin-top: 5px;
            font-size: 18px;
            opacity: 0.8;
            text-transform: uppercase;
            color: var(--text-color);
        }

.header-nav-wrapper {
    display: flex;
    justify-content: space-between;
    
    align-items: flex-start; /* Changed from center/flex-end to flex-start */
    
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    width: 100%;
}

header {
    text-align: left;
    flex-shrink: 0; /* Prevents header from shrinking if screen is small */
}
nav {
    border: none;
    padding: 0;
    margin-top: 8px;
    margin-bottom: 5px;
}

nav ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-end;
    flex-wrap: wrap; 
}

/* Mobile Responsiveness: Stack them again on small screens */
@media (max-width: 768px) {
    .header-nav-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    header {
        text-align: center;
    }

    nav {
	margin-top: 0;
    }
    
    nav ul {
        justify-content: center;
    }
}
        nav li a {
            font-weight: bold;
            text-transform: uppercase;
            font-size: 16px;
            display: inline-block;
            padding: 8px 16px;
            transition: all 0.2s;
            border: 1px solid transparent;
            text-decoration: none;
        }

        nav li a::before { content: "[ "; color: var(--border-color); transition: color 0.2s; }
        nav li a::after { content: " ]"; color: var(--border-color); transition: color 0.2s; }

        /* Nav Hover State */
        nav li a:hover {
            background-color: var(--hover-bg);
            color: var(--header-color);
            box-shadow: 0 0 5px var(--border-color);
            text-decoration: none;
        }
        nav li a:hover::before, 
        nav li a:hover::after { 
            color: var(--header-color); 
        }

        /* Nav Active State */
        nav li a.active {
            background-color: var(--header-color);
            color: #000000;
            box-shadow: 0 0 10px var(--header-color);
            border-color: var(--header-color);
        }
        nav li a.active::before, 
        nav li a.active::after { 
            color: #000000; 
        }

        /* Main Grid */
        .main-content {
            display: flex;
            gap: 20px;
            align-items: stretch; /* Ensure columns are same height */
        }

        .left-block {
            flex: 7;
            display: flex;
            flex-direction: column;
        }

        .right-block {
            flex: 3;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Panels (Windows) */
        .window {
            border: 1px solid var(--border-color);
            margin-bottom: 20px;
            background: var(--panel-bg);
            box-shadow: 0 0 5px rgba(0, 68, 0, 0.3);
            display: flex;
            flex-direction: column;
        }
        
        /* Remove margin from last child to facilitate flex spacing */
/*        .left-block .window:last-child,
        .right-block .window:last-child {
            margin-bottom: 0;
            flex-grow: 1; /* Stretch last window to fill column height */
        }*/

        .window:last-child .window-content {
            flex-grow: 1; /* Stretch content area */
        }

        .window-header {
            background-color: var(--header-color);
            color: #000000;
            border-bottom: 1px solid var(--border-color);
            padding: 5px 10px;
            font-weight: bold;
            font-size: 12pt;
            text-transform: uppercase;
            letter-spacing: 1px;
            flex-shrink: 0;
        }

	.window-header::before {
		content: "// ";
	}

        .window-content {
            padding: 15px;
            display: flex;
            flex-direction: column;
        }

        .window-content a {
		display: inline;
		text-decoration: underline;
        }

	.window-content p {
		margin-top: 0px;
		margin-bottom: 8px;
	}


        /* Feature List (News) */
        .feature-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .feature-list li {
            margin-bottom: 12px;
            padding-left: 15px;
            position: relative;
        }

        .feature-list li::before {
            content: ">";
            position: absolute;
            left: 0;
            color: var(--header-color);
            font-weight: bold;
        }

        .date-stamp {
            color: var(--header-color);
            font-size: 12px;
            margin-right: 10px;
            font-weight: bold;
            opacity: 0.9;
        }

        /* Forms */
        .form-group {
            margin-bottom: 10px;
        }

        label {
            display: block;
            margin-bottom: 4px;
            color: var(--text-color);
            font-weight: bold;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            background-color: var(--input-bg);
            border: 1px solid var(--border-color);
            color: var(--header-color);
            padding: 5px;
            font-family: inherit;
            box-sizing: border-box;
        }

        input:focus {
            outline: none;
            border-color: var(--header-color);
            box-shadow: 0 0 5px var(--border-color);
        }

        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        button {
            flex: 1;
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--header-color);
            padding: 8px;
            cursor: pointer;
            font-family: inherit;
            text-transform: uppercase;
            font-weight: bold;
            transition: all 0.2s;
        }

        button:hover {
            background-color: var(--header-color);
            color: #000000;
            border-color: var(--header-color);
        }

        /* Stats */
        .stat-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            border-bottom: 1px dashed var(--border-color);
            padding-bottom: 4px;
        }
        
        .stat-label { color: var(--text-color); }
        .stat-value { color: var(--header-color); font-weight: bold; }

        .progress-bar-container {
            width: 100%;
            height: 10px;
            border: 1px solid var(--border-color);
            padding: 1px;
            margin-bottom: 5px;
            background: #001100;
        }

        .progress-bar-fill {
            height: 100%;
            background-color: var(--header-color);
        }
        
        .faction-zion .progress-bar-fill { background-color: var(--zion-color); }
        .faction-machine .progress-bar-fill { background-color: var(--machine-color); }
        .faction-merov .progress-bar-fill { background-color: var(--merov-color); }

        .district-label {
            font-size: 12px;
            text-transform: uppercase;
            margin-bottom: 2px;
            display: flex;
            justify-content: space-between;
        }

        .district-header {
            margin-top: 15px;
            margin-bottom: 8px;
            font-weight: bold;
            color: var(--text-color);
        }

        /* Download Section */
        .download-heading {
            font-size: 24px;
            font-weight: bold;
            color: var(--header-color);
            margin-bottom: 15px;
            letter-spacing: 2px;
            text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
            text-align: center;
        }

        .download-inner-container {
            margin: 0 auto 15px auto;
            text-align: center;
            width: 90%;
            box-sizing: border-box;
        }

        .version-text {
            font-weight: bold;
            color: #33cc33;
            letter-spacing: 1px;
            display: block;
            margin-bottom: 15px;
        }

        .download-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            width: 100%;
        }

        .download-btn {
            background-color: #001100;
            border: 1px solid var(--header-color);
            color: var(--header-color);
            padding: 12px 24px;
            font-weight: bold;
            transition: all 0.2s;
            text-transform: uppercase;
            font-size: 13px;
            letter-spacing: 1px;
            display: inline-block;
        }
        
        .download-btn:hover {
            background-color: var(--header-color);
            color: #000;
            box-shadow: 0 0 20px var(--header-color);
            text-shadow: none;
        }

        .instructions {
            line-height: 1.6;
            text-align: left;
            opacity: 0.9;
            padding-left: 25px;
            margin-top: 0;
            list-style-type: square;
        }
        
        .instructions li {
            margin-bottom: 8px;
        }

        .instructions li::marker {
            color: var(--header-color);
        }

        /* Links */
        .link-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .link-list li {
            margin-bottom: 8px;
        }

        .link-list a::before {
            content: "// ";
            color: var(--border-color);
        }
        
        .link-list a:hover::before {
             color: var(--header-color);
        }

.hide {
    display:none !important;
}

/* Error Message Styling */
.error-message {
    color: var(--zion-color); /* Theme red */
    font-size: 11px;
    margin-top: 2px;
    margin-bottom: 5px;
    
    /* Default State: Hidden */
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Add this class to the span to reveal the error */
.error-message.show {
    display: block;
    opacity: 1;
    animation: flicker 0.2s; /* Optional: Matrix-style flicker effect */
}

/* Optional: Slight flicker animation for the error appearance */
@keyframes flicker {
    0% { opacity: 0.1; }
    50% { opacity: 1; }
    70% { opacity: 0.1; }
    100% { opacity: 1; }
}

/* Remember Me Container */
.remember-me-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Custom Checkbox Styling */
.remember-me-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.remember-me-container input[type="checkbox"]:checked {
    background-color: var(--header-color);
    box-shadow: 0 0 5px var(--header-color);
    border-color: var(--header-color);
}

.remember-me-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-container label {
    display: inline;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    color: var(--text-color);
}

.remember-me-container:hover input[type="checkbox"] {
    border-color: var(--header-color);
}
        /* Footer */
        footer {
            text-align: center;
            color: var(--text-color);
            font-size: 12px;
            opacity: 0.8;
            padding-bottom: 20px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            .left-block, .right-block {
                flex: 100%;
            }
            
            nav ul {
                justify-content: center;
            }
            
            h1 { font-size: 28px; }

            .left-block .window:last-child {
                margin-bottom: 20px;
            }
        }