/* --- 1. SYSTEM INITIALIZATION & ANIMATION --- */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
    background-color: #1a1a1d; /* Deep Void Black */
    color: #e0e0e0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Stops horizontal jitter during slide-in */
    min-height: 100vh;
}

/* STAGE 1: MAIN BODY SLIDES FROM LEFT */
main.container {
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(10px);
    transition: 
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
        opacity 0.6s ease-out, 
        filter 0.8s ease-out;
}

.run-anim main.container {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* STAGE 2: HEADER BOUNCES & SETTLES (DELAYED 0.8s) */
header {
    width: 100%;
    padding: 60px 20px;
    background-color: #2b2d30;
    border-bottom: 2px solid #0056b3;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-80px) scale(1.05);
    filter: blur(15px);
    transition: 
        transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.8s, 
        opacity 0.5s ease-out 0.8s, 
        filter 1s ease-out 0.9s;
}

.run-anim header {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* SYSTEM TITLE & SPRAY TRAIL */
.system-title {
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #0056b3 0%, #00bfff 80%, rgba(0, 191, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 0px rgba(0, 191, 255, 0);
    transition: text-shadow 1.5s ease-in-out 1.8s;
}

.run-anim .system-title {
    text-shadow: 0 0 12px rgba(0, 191, 255, 0.5);
}

/* --- 2. LAYOUT CONTAINERS --- */
.container, 
.gateway-chassis, 
.metrics-chassis {
    width: 100%;
    max-width: 800px; 
    margin: 20px auto;
    text-align: center; 
    box-sizing: border-box;
    padding: 20px;
}

/* SERVICE GRID */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background-color: #4a4e52;
    padding: 20px;
    border-radius: 4px;
    border-top: 4px solid #00BFFF; /* Electric Blue Pinstripe */
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: #55595e;
}

.tag {
    font-size: 0.8rem;
    color: #00bfff;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- 3. GATEWAY & AUTH MODULES --- */
.gateway-label {
    color: #00bfff;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.gateway-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gate-btn {
    flex: 1;
    max-width: 200px;
    background-color: transparent;
    color: #00bfff;
    border: 2px solid #0056b3; 
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.gate-btn:hover {
    background-color: #00bfff; 
    color: #2b2d30; 
}

.btn-solid {
    background: linear-gradient(135deg, #0056b3 0%, #00BFFF 100%);
    color: #ffffff;
    border: 1px solid #FFFFFF;
}

/* --- 4. SYSTEM METRICS & ODOMETER --- */
.metrics-chassis {
    background-color: #2b2d30;
    border: 1px solid #0056b3; 
    border-top: 4px solid #00BFFF; 
}
.odometer-chassis {
    display: block;          /* 1. Kills the "Inline" behavior entirely */
    width: fit-content;      /* 2. Keeps the black box tight */
    margin: 20px auto;       /* 3. Forces it down 20px and centers it */
    
    background: #000; 
    padding: 15px;           /* A little extra "gasket" room */
    border: 3px solid #0056b3;
    border-top: 3px solid #00BFFF;
    border-radius: 4px;
    clear: both;             /* 4. The "Safety Switch": ensures nothing stays beside it */



   
    /* ... keep your background, padding, and borders the same ... */

    align-items: center;
    background: #000; 
    padding: 10px;
    border: 3px solid #0056b3;
    border-top: 3px solid #00BFFF;
    border-radius: 4px;
    margin-top: 15px;
}

.digit-wheel {
    display: inline-block;
    width: 30px;
    height: 44px;
    line-height: 44px;
    background: linear-gradient(180deg, #ccc 0%, #fff 45%, #eee 50%, #fff 55%, #ccc 100%);
    color: #111;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 1.8rem;
}

.digit-wheel.tenth-wheel {
    background: linear-gradient(180deg, #444 0%, #1a1a1a 45%, #000 50%, #1a1a1a 55%, #444 100%);
    color: #fff;
}

.digit-separator {
    width: 4px;
    height: 44px;
    background: linear-gradient(90deg, #333 0%, #eee 50%, #333 100%);
}

.stats-grid {
    display: none; /* Controlled by JS */
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
}

.stat-item {
    color: #00ff00; /* Terminal Green */
    font-family: monospace;
    text-align: left;
    border-bottom: 1px solid #333;
}

.stat-item span {
    float: right;
    color: #fff;
}
/* --- REGISTRATION PAGE: STATIC PROFESSIONAL LAYOUT --- */

/* The Main Card - Centered on screen, header centered, but inputs left-aligned */
.auth-card {
    background-color: #4a4e52;
    border-top: 4px solid #00BFFF; /* Electric Blue Accent */
    padding: 40px;
    width: 90%;
    max-width: 450px;
    margin: 80px auto; /* Centers the card and drops it from the top */
    border-radius: 4px;
    text-align: center; /* This keeps the h2 "Create new account" in the middle */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Force Inputs to be Left-Aligned for Professionalism */
.auth-input {
    display: block;
    width: 100%;
    background-color: #2b2d30;
    border: 1px solid #0056b3;
    color: #e0e0e0;
    padding: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border-radius: 2px;
    text-align: left !important; /* Forces the text/placeholders to the left */
    font-family: Arial, sans-serif;
}

/* Ensure the Add-on Module stays left-aligned for checkboxes */
#addon-module {
    text-align: left;
    border: 1px dashed #0056b3;
    background-color: #35383d;
    padding: 15px;
    margin-bottom: 20px;
}