/* Industrial Futurism Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@400;700&display=swap');

:root {
    /* Cyberpunk Enterprise Theme */
    --bg-base: #020205;
    --neon-cyan: #00f2ff;
    /* Electric Indigo */
    --neon-accent: #00ff9d;
    /* Emerald Green */
    /* Ironclad Blue */
    --corporate-gray: #121212;
    --text-main: #f0f0f5;

    /* Sovereign Grade Enhancements */
    --sovereign-glow: 0 0 25px rgba(0, 102, 255, 0.8);
    --sovereign-border: 2px solid var(--neon-cyan);
    --integrity-log-bg: rgba(0, 0, 0, 0.8);

    /* Functional Colors */
    --success-color: #00ff00;
    --warning-color: #ff9900;
    --danger-color: #ff0000;

    /* Effects */
    --glass-bg: rgba(10, 10, 15, 0.85);
    --border-glow: rgba(0, 102, 255, 0.3);
    --accent-glow: 0 0 15px rgba(0, 242, 255, 0.5);
    --blue-glow: 0 0 20px rgba(0, 102, 255, 0.6);

    /* Mappings for Legacy Compatibility */
    --primary-color: var(--corporate-gray);
    --secondary-color: #111111;
    --accent-color: var(--neon-cyan);
    --text-color: var(--text-main);
    --bg-color: var(--bg-base);
    --panel-bg: var(--glass-bg);
    --border-color: var(--border-glow);
}

/* Global Aesthetics */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.15;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(var(--border-glow) 1px, transparent 1px), linear-gradient(90deg, var(--border-glow) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(1000px) rotateX(60deg) translateZ(-100px);
    transform-origin: top;
    opacity: 0.2;
    z-index: -1;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    from {
        transform: perspective(1000px) rotateX(60deg) translateZ(-100px) translateY(0);
    }

    to {
        transform: perspective(1000px) rotateX(60deg) translateZ(-100px) translateY(60px);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
}

.btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Sovereign Utilities */
.glow-text {
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.sovereign-card {
    border: 2px solid var(--neon-cyan) !important;
    box-shadow: var(--sovereign-glow) !important;
}

.integrity-log {
    background: var(--integrity-log-bg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 10px;
    border: 1px solid var(--iron-border);
    height: 150px;
    overflow-y: hidden;
    position: relative;
    color: var(--success-color);
}

.integrity-line {
    border-left: 2px solid var(--success-color);
    padding-left: 10px;
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Split Screen (Index) */
.split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
}

.split-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: flex 0.5s ease;
    position: relative;
    overflow: hidden;
}

.split-pane:hover {
    flex: 1.5;
    background: rgba(255, 255, 255, 0.02);
}

.split-pane.agency {
    border-right: 1px solid var(--border-color);
}

.split-pane h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.split-pane p {
    font-size: 1.1rem;
    max-width: 400px;
    text-align: center;
    margin-bottom: 2rem;
    color: #aaa;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Simulation Dashboard */
.mission-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.agent-card {
    background: #0f0f0f;
    border: 1px solid #222;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.agent-card.active {
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.active .status-dot {
    background-color: var(--success-color);
    box-shadow: 0 0 5px var(--success-color);
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
}

.pricing-table th {
    background: #111;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
}

.tier-highlight {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    color: #555;
    font-size: 0.8rem;
}

/* Global Navigation */
.global-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* Global Navigation Logo (Standardized) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 80px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    /* Hardcoded glow fallback */
}

.nav-links a {
    letter-spacing: 1px;
    color: #888;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    h3 {
        font-size: 1.25rem !important;
        line-height: 1.2;
    }

    img,
    video {
        max-width: 100%;
        height: auto;
    }

    header,
    .section {
        padding: 1rem !important;
        margin: 0 !important;
    }

    .container {
        padding: 1rem;
    }

    /* Universal Stacking for Layout Wrappers */
    .grid,
    .flex,
    .row,
    .hero,
    .pricing-tier,
    .feature-box {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Enforce stacking on flex/grid elements */
    .grid-2,
    .grid-3,
    .grid-4,
    .agent-grid,
    .stat-grid,
    .inventory-grid {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    /* Specifically stacking the split screen layout */
    .split-screen {
        flex-direction: column !important;
        height: auto;
    }

    /* Wrapper for Data Tables */
    .table-panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 2rem;
    }

    table {
        min-width: 600px;
        /* Ensure content is readable while scrolling */
    }

    /* Dashboard Grid Collapses */
    .dashboard-grid,
    .dashboard-grid.override-grid {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    /* Sidebar Hidden by Default */
    .sidebar {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        z-index: 999;
        overflow-y: auto;
    }

    .sidebar.active {
        display: block;
    }

    .main-panel {
        padding: 1rem;
    }

    /* Hamburger Menu Nav Display */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: rgba(5, 5, 5, 0.95);
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-mobile-toggle {
        display: block;
    }
}

/* END MOBILE MEDIA QUERY */

/* --- MARKETPLACE MODULES (Flexbox Layout) --- */
.inventory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

/* FIX: Prevent single items from stretching full width */
@media (min-width: 1200px) {
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Force 3 columns on large screens */
    }
}

/* CYBER CARD COMPONENT */
.cyber-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);

    /* FLEXBOX FIX */
    flex: 0 0 350px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .cyber-card {
        flex: 0 0 100%;
    }
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-card:hover::before {
    opacity: 1;
}

.cyber-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.asset-price-box {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 2px;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 8px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: inline-block;
    letter-spacing: 1px;
}

/* STATUS LIGHTS */
.status-light {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: var(--success-color);
    box-shadow: 0 0 5px var(--success-color);
}

.status-available {
    background-color: var(--warning-color);
    box-shadow: 0 0 5px var(--warning-color);
}

/* ========================================
   GLOBAL NAVIGATION HEADER
   ======================================== */

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(5, 10, 21, 0.95);
    border-bottom: 1px solid rgba(0, 102, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /* Consistent Padding */
}

/* Removed .nav-container constraint to allow full width/left align */


.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--iron-text);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #e0e6ed;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--neon-accent);
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.6);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--neon-accent);
    border-radius: 4px;
    background: rgba(0, 102, 255, 0.1);
}

.btn-nav:hover {
    background: var(--neon-accent);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--iron-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 21, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 102, 255, 0.3);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    }

    .nav-mobile-toggle {
        display: block;
    }
}

/* Body padding for fixed nav */
body.has-nav {
    padding-top: 80px;
}

/* ==========================================================================
   MODULE: ADMIN & DASHBOARD (Consolidated 2026)
   ========================================================================== */
:root {
    --iron-bg: var(--bg-base);
    --iron-text: var(--text-main);
    --iron-border: rgba(0, 102, 255, 0.2);
    --iron-glow: rgba(0, 102, 255, 0.4);
    --iron-blue: var(--neon-accent);
    /* Map legacy to global */
    --accent-orange: #ff6600;
}

/* --- Layout Scopes --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.login-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-base);
    overflow-x: hidden;
    padding: 20px;
}

.settings-layout {
    display: flex;
    background: var(--bg-base);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
}

/* --- Admin Sidebar --- */
.admin-sidebar {
    width: 320px;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--iron-border);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
}

.admin-sidebar nav ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar nav li {
    margin-bottom: 1rem;
}

.admin-sidebar nav a {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: var(--neon-accent);
    text-shadow: 0 0 10px var(--iron-glow);
}

.admin-main {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.05), transparent);
}

/* --- Components: Stats & Tables --- */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--iron-border);
    padding-bottom: 1.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--iron-border);
    padding: 1.5rem;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.7rem;
    color: #8892b0;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-accent);
}

.table-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--iron-border);
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
}

.table-panel table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.table-panel th {
    text-align: left;
    font-size: 0.7rem;
    color: #8892b0;
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 1px solid var(--iron-border);
}

.table-panel td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.btn-action {
    background: transparent;
    border: 1px solid var(--neon-accent);
    color: var(--neon-accent);
    padding: 6px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--neon-accent);
    color: #000;
}

/* --- Login Module --- */
.login-container {
    width: 400px;
    max-width: 100%;
    padding: 2rem;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 20, 20, 0.9);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.login-container::before {
    content: "SECURE CONNECTION ESTABLISHED";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-base);
    padding: 0 10px;
    color: var(--neon-cyan);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--neon-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn-login {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: translateY(-2px);
}

/* --- Settings Module --- */
.settings-sidebar {
    width: 280px;
    background: rgba(10, 10, 15, 0.9);
    border-right: 1px solid var(--iron-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.settings-main {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
    min-height: 100vh;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #8892b0;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.settings-nav-link:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--text-main);
}

.settings-nav-link.active {
    background: rgba(0, 102, 255, 0.2);
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.settings-card {
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid var(--iron-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--iron-border);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
}

.input-field:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

/* --- Responsive Helpers --- */
@media (max-width: 900px) {

    .admin-layout,
    .settings-layout {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    .admin-sidebar,
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--iron-border);
        position: relative;
        height: auto;
    }

    .admin-main,
    .settings-main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   MODULE: DASHBOARD LOBBY (Role Selection)
   ========================================================================== */
.dashboard-loader {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loader-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--iron-blue);
    text-shadow: 0 0 30px var(--iron-glow);
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.loader-status {
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin: 1rem 0;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 102, 255, 0.2);
    border-top-color: var(--iron-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.role-selection {
    display: none;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.role-selection.active {
    display: block;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.role-card {
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid var(--iron-border);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.role-card:hover {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--iron-blue);
    box-shadow: 0 0 30px var(--iron-glow);
    transform: translateY(-5px);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.role-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--iron-text);
    margin-bottom: 0.5rem;
}

.role-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #8892b0;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--neon-cyan);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Helper Classes for Clean HTML */
.text-center {
    text-align: center;
}

.role-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--iron-text);
    margin-bottom: 1rem;
}

.role-subheader {
    font-family: 'JetBrains Mono', monospace;
    color: #8892b0;
    margin-bottom: 2rem;
}

.back-link {
    color: #8892b0;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.back-link-container {
    margin-top: 3rem;
}

/* ==========================================================================
   MODULE: GLOBAL BRANDING (Standardized Header)
   ========================================================================== */
.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    /* For link wrappers */
}

.brand-logo {
    height: 80px;
    /* Matched to Platform page */
    width: auto;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    transition: transform 0.3s ease;
}

.brand-header:hover .brand-logo {
    transform: scale(1.1);
    /* Matched to Marketplace style */
}

.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    /* User requested Neon Cyan */
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    /* Glow Effect */
    margin: 0;
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(5, 10, 21, 0.98);
    border: 1px solid var(--neon-cyan);
    padding: 1.5rem 2rem;
    display: none;
    z-index: 10001;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 98% 100%, 0 100%);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.15);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    backdrop-filter: blur(15px);
}

#cookie-banner.active {
    display: flex;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cookie-text {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.btn-accept {
    background: var(--neon-cyan);
    color: #000;
}

.btn-decline {
    border-color: #444;
    color: #666;
}

.btn-decline:hover {
    border-color: #888;
    color: #888;
    background: transparent;
}