@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Syncopate:wght@400;700&family=Space+Grotesk:wght@300;500;700&display=swap');

/* Global Persistence & Flow */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}

[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .v-logo-wrapper {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .auth-branding .v-logo-wrapper {
    justify-content: center !important;
    width: 100% !important;
}

[dir="rtl"] .auth-tabs {
    flex-direction: row-reverse !important;
}

:root {
    --bg: #030303;
    --fg: #ffffff;
    --accent: #ffffff;
    --accent-light: #2299ff;
    --gold: #FFD700;
    --noise: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(3, 3, 3, 0.9);
    --card-bg: rgba(255, 255, 255, 0.01);

    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --gutter: clamp(20px, 5vw, 60px);
    --gap: 24px;
    --radius: 4px;

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-slow: cubic-bezier(0.7, 0, 0.3, 1);

    --nav-height: 100px;
    --nav-height-mobile: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --v-accent: #ffffff;
    --v-accent-bright: #ffffff;
    --v-accent-dim: rgba(0, 122, 255, 0.1);
    --v-border: rgba(255, 255, 255, 0.1);
    --v-white: #ffffff;
    --v-black: #050505;
    --v-gray-deep: #0a0a0a;
    --v-gold: #FFD700;
    --v-gray: #0a0a0a;
    --v-gray-light: #f5f5f7;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
}

.label-mono,
.v-label,
.v-label-sm,
.v-label-accent {
    text-align: center;
}

/* Global Grid Container */
.v-container {
    width: 100%;
    padding-inline: var(--gutter);
}

/* Texture & Noise Overlay */
.v-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.v-noise {
    display: none;
}

.v-scanlines {
    display: none;
}


/* Precision Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: #00ffcc;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.05s;
    box-shadow: 0 0 15px #00ffcc;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 255, 204, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.15s var(--ease);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

/* Institutional Navigation Refinement */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 11000;
    /* Higher than overlays */
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: 0.4s var(--ease);
}

nav::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

/* Institutional Logo System */
.v-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 10001;
}

.v-logo-icon {
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.v-logo-icon::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.v-logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 480px) {
    .v-logo-text {
        font-size: 0.8rem !important;
        letter-spacing: 0.15em !important;
        max-width: 150px !important;
    }
}

@media (max-width: 480px) {
    .v-logo-text {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        max-width: 150px;
    }
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    margin-inline-start: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    transition: 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

/* Force hero links to stay white on dark background even in light mode */
.hero-premium .nav-link, 
.hero-premium .label-mono {
    color: #ffffff !important;
    opacity: 0.8;
}

.hero-premium .nav-link:hover {
    opacity: 1;
}

.nav-link i {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 60%;
    height: 1px;
    background: var(--gold);
}

.nav-group {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-box {
    position: absolute;
    top: 80%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s var(--ease);
    z-index: 100;
}

.nav-group:hover .dropdown-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    text-decoration: none;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    transition: 0.3s var(--ease);
}

.dropdown-item:hover {
    opacity: 1;
    padding-left: 10px;
}

/* Authentication Visual Architecture */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 5;
}

.auth-panel {
    background: var(--card-bg);
    backdrop-filter: blur(50px);
    border: 1px solid var(--border);
    padding: 60px;
    width: 100%;
    max-width: 500px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 18px 20px;
    margin-bottom: 20px;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: 0.4s var(--ease);
    border-radius: 4px;
    display: block;
}

.auth-input::placeholder {
    color: var(--fg);
    opacity: 1 !important;
    font-size: 1.2rem !important;
    font-family: var(--font-mono);
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.1);
}

.auth-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

.v-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.v-button {
    background: var(--accent);
    color: var(--bg);
    /* High contrast with background */
    border: 1px solid var(--accent);
    padding: 18px 30px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s var(--ease);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
}

.v-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.v-button span {
    position: relative;
    z-index: 2;
}

.v-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 8px;
    transition: 0.4s var(--ease);
}

.v-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

/* Nav Tools Architecture */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-inline-start: auto;
}

.nav-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s var(--ease);
}

.nav-tool-btn:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tool-btn i {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.8;
}

.v-btn-login {
    padding: 12px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    /* Increased opacity for visibility */
    transition: 0.3s var(--ease);
    margin-inline-start: 10px;
}

[data-theme="light"] .v-btn-login {
    background: rgba(0, 0, 0, 0.05);
}

.v-btn-login:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.mobile-logout-btn {
    display: none !important;
}

/* Institutional Footer Architecture */
footer {
    padding-block: 10vh;
    border-top: 1px solid var(--border);
    background: var(--bg);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(40px, 5vw, 120px);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .footer-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-col .v-logo-wrapper {
        order: -1 !important;
        margin-bottom: 25px !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .hud-row, .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-inline: 10px !important;
    }

    .v-panel, .hud-panel {
        grid-column: span 1 !important;
        padding: 25px 20px !important;
    }

    .footer-col {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .v-logo-wrapper {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }

    .footer-col {
        margin-bottom: 20px;
    }
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.4;
    text-align: left;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    text-decoration: none;
    color: var(--fg);
    font-size: 1.15rem;
    opacity: 0.6;
    transition: 0.3s var(--ease);
}

.footer-link:hover {
    opacity: 1;
    color: var(--gold);
}

.v-btn-logout {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--v-border);
    color: var(--fg);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-btn-logout:hover {
    background: var(--v-accent);
    color: #fff;
    border-color: var(--v-accent);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile Core Architecture */
.v-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.v-mobile-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--fg);
    transition: 0.4s var(--ease);
    display: block;
}

.v-mobile-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.v-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.v-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}



@media (max-width: 1100px) {
    nav {
        height: var(--nav-height-mobile);
    }

    .nav-links {
        display: none;
    }

    .v-mobile-toggle {
        display: flex !important;
    }



    .nav-tool-btn {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }

    .v-btn-login {
        display: none;
    }

    .mobile-logout-btn {
        display: flex !important;
    }

    .v-mobile-toggle {
        display: flex;
        padding: 8px;
        order: 10;
        margin-inline-start: 10px;
    }

    .nav-tools {
        display: flex;
        margin-inline-start: auto;
        gap: 15px;
        order: 5;
    }

    .nav-tool-btn {
        width: 36px;
        height: 36px;
        font-size: 0.7rem;
    }

    /* Mobile Menu Active State */
    @keyframes mobileMenuInLTR {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes mobileMenuInRTL {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }


        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        padding: 100px var(--gutter);
        align-items: flex-start;
        text-align: start;
        z-index: 9999;
        gap: 0;
        overflow-y: auto;
        animation: mobileMenuInLTR 0.5s var(--ease);
    }

    [dir="rtl"] .nav-links.active {
        align-items: stretch;
        /* Ensure flex children fill width for internal justification */
        text-align: right;
        animation: mobileMenuInRTL 0.5s var(--ease);
    }

    .nav-links.active .nav-link {
        font-size: 1.5rem;
        padding: 20px 0;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
        opacity: 0;
        animation: fadeIn 0.5s forwards;
    }

    .nav-links.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.active .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.active .nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links.active .nav-link:nth-child(5) {
        animation-delay: 0.5s;
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    .mobile-only-login {
        display: flex !important;
    }

    .nav-links.active .dropdown-box {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        padding-block: 15px;
        padding-inline: 30px 15px;
        /* Logical padding: [start] [end] */
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-links.active .nav-group {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: 100%;
    }

    /* Mobile Toggle Active Animation */
    .v-mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .v-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .v-mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Massive Heading Scale down for mobile */
    .massive-heading {
        font-size: clamp(2.5rem, 12vw, 5rem) !important;
        line-height: 1;
        text-align: center;
    }

    /* Global Mobile Alignment Fixes */
    .v-grid-experimental,
    .hud-grid-main,
    .footer-grid,
    .v-grid,
    .v-grid-high-density,
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hud-panel,
    .v-box,
    .v-card,
    [style*="padding: 80px"],
    [style*="padding: 100px"] {
        padding: 25px !important;
        height: auto !important;
    }

    [style*="grid-column: span"] {
        grid-column: span 1 !important;
    }

    [style*="display: flex"][style*="gap: 40px"],
    [style*="display: flex"][style*="gap: 60px"],
    [style*="display: flex"][style*="gap: 80px"],
    [style*="display: flex"][style*="gap: 100px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .v-float-text {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding-top: 40px;
    }

    .v-float-text h1,
    .v-float-text h2,
    .v-float-text h3 {
        font-size: 2rem !important;
    }

    section,
    .v-section,
    [style*="padding: 15vh 0"],
    [style*="padding: 20vh 0"] {
        padding-inline: var(--gutter) !important;
        padding-block: 60px !important;
    }

    .split-experience {
        grid-template-columns: 1fr !important;
    }

    .visual-anchor {
        height: 40vh !important;
        position: relative !important;
    }

    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    img[style*="width: 100%"] {
        height: auto !important;
    }

    /* Fix for "The Doctrine of Neutrality" section and similar */
    [style*="max-width: 800px"],
    [style*="max-width: 900px"],
    [style*="max-width: 600px"] {
        max-width: 100% !important;
    }
}

/* Hero & Grid Foundation */
.hero-content {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15vh;
}

.massive-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 14rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    text-align: left;
    width: 100%;
}

.outline-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: none;
}

/* Architectural Grid - Fluid Multi-Column */
.v-grid,
.v-grid-experimental {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    align-items: stretch;
}

.v-box {
    grid-column: span 6;
    height: 70vh;
    background: var(--bg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 5vw, 60px);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;
}

/* Gradient Scrim for Text Legibility */
.v-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 5;
    pointer-events: none;
}

.v-float-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    z-index: 20;
    pointer-events: none;
    text-align: center;
}

.v-float-text * {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
}

.v-float-text p {
    opacity: 0.8 !important;
    /* Increase opacity for better legibility on images */
    max-width: 450px;
    margin-inline: auto;
}

.v-float-text .label-mono {
    color: var(--v-gold) !important;
    margin-bottom: 20px;
    opacity: 1 !important;
}

.v-float-text h2,
.v-float-text h3 {
    line-height: 1.1;
    margin-top: 10px;
    font-weight: 800;
}

@media (max-width: 900px) {

    .v-grid,
    .v-grid-experimental {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        /* Increased gap for better separation */
    }

    .v-box {
        grid-column: span 1 !important;
        height: 400px;
        margin-top: 20px !important;
    }

    .v-section {
        padding-block: 60px !important;
    }
}

.v-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) grayscale(1);
    transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
    z-index: -1;
}

.v-box:hover img {
    filter: brightness(0.5) grayscale(0);
    transform: scale(1.05);
}

.label-mono,
.v-label,
.v-label-sm,
.v-label-accent {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
    opacity: 0.9;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {

    .label-mono,
    .v-label,
    .v-label-sm,
    .v-label-accent {
        letter-spacing: 0.1em !important;
        font-size: 0.85rem !important;
    }
}

.v-card:hover .v-card-img {
    filter: contrast(1) brightness(1) grayscale(0) !important;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .v-card-img-wrapper {
        height: 250px !important;
    }
}

/* HUD / Dashboard Fluid Architecture */
.hud-grid-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    height: calc(100vh - 100px);
    margin-top: 100px;
    padding: var(--gap);
    gap: var(--gap);
}

@media (max-width: 1600px) {
    .hud-grid-main {
        grid-template-columns: 320px 1fr 320px;
        /* Reduced sidebars for better fit */
    }
}

@media (max-width: 1400px) {
    .hud-grid-main {
        grid-template-columns: 350px 1fr 350px;
    }
}

@media (max-width: 1200px) {
    .hud-grid-main {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow-y: visible !important;
        padding-top: 140px !important;
        /* More space for the tactical bar wrap */
    }

    body {
        overflow-y: auto !important;
        height: auto !important;
    }

    .hud-panel {
        height: auto !important;
        min-height: auto !important;
        padding: 30px !important;
    }
}

.hud-panel {
    background: var(--card-bg);
    backdrop-filter: blur(50px);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Reveal System Transition */
.reveal-wrap {
    overflow: hidden;
    display: block;
}

.reveal-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 1.5s var(--ease-slow);
}

.reveal-wrap.active .reveal-inner,
.active .reveal-wrap .reveal-inner {
    transform: translateY(0);
}

/* Theme Adaptation System */
[data-theme="light"] {
    --bg: #ffffff;
    --fg: #0a0a0a;
    /* Darker for better contrast */
    --noise: rgba(0, 0, 0, 0.01);
    --border: rgba(0, 0, 0, 0.15);
    /* More visible border */
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(0, 0, 0, 0.04);
    --accent: #0066cc;
    /* Stronger blue for light mode */
    --gold: #8a6d1a;
    /* Darker gold for better white background contrast */
    --v-gray: #f0f0f2;
    --v-gray-deep: #ffffff;
    --v-border: rgba(0, 0, 0, 0.15);
    --v-accent: #0066cc;
    --v-accent-bright: #004499;
    --v-white: #0a0a0a;
    --v-black: #ffffff;
    --v-gold: #8a6d1a;
}

/* v-float-text always sits on top of images — keep white text regardless of theme */
[data-theme="light"] .v-float-text * {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .v-float-text .label-mono {
    color: var(--v-gold) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="light"] .massive-heading {
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nav-link {
    opacity: 0.8;
}

[data-theme="light"] .nav-link:hover {
    opacity: 1;
    color: var(--accent);
}

[data-theme="light"] .nav-tool-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #1a1a2e;
}

[data-theme="light"] p {
    color: #222222;
    /* Darker for accessibility */
    opacity: 0.9;
}

[data-theme="light"] .label-mono {
    opacity: 1;
    color: var(--gold);
    -webkit-font-smoothing: initial;
    text-shadow: 0 0 1px rgba(179, 146, 45, 0.2);
}

[data-theme="light"] nav {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .outline-text {
    -webkit-text-stroke: 2px rgba(26, 26, 46, 0.6);
    -webkit-text-fill-color: rgba(26, 26, 46, 0.05);
}

/* Fix for technical images/holograms in light mode */
[data-theme="light"] img[style*="mix-blend-mode: screen"],
[data-theme="light"] .v-tech-img,
[data-theme="light"] .v-hologram {
    mix-blend-mode: multiply !important;
    filter: invert(1) brightness(0.8) contrast(1.2) !important;
}

/* Fix for dark sections in light mode */
[data-theme="light"] .v-section[style*="background: var(--fg)"],
[data-theme="light"] .v-section[style*="background: #000"],
[data-theme="light"] .v-section[style*="background: #0a0a0a"],
[data-theme="light"] .v-section[style*="background: #050505"],
[data-theme="light"] .v-section[style*="background: #333333"],
[data-theme="light"] .v-section[style*="background: #666666"],
[data-theme="light"] section[style*="background: var(--fg)"],
[data-theme="light"] section[style*="background: #000"],
[data-theme="light"] section[style*="background: #333333"],
[data-theme="light"] section[style*="background: #666666"] {
    color: #ffffff !important;
}

[data-theme="light"] .v-box img {
    /* Keep images dark enough so white text overlay is legible */
    filter: brightness(0.45) grayscale(0.3) contrast(1.1);
}

[data-theme="light"] .v-box:hover img {
    filter: brightness(0.55) grayscale(0);
}

[data-theme="light"] img[style*="filter: brightness(0.5) grayscale(1)"],
[data-theme="light"] img[style*="filter: brightness(0.5)grayscale(1)"] {
    filter: grayscale(1) brightness(1.2) contrast(1.1) !important;
}

[data-theme="light"] .v-section[style*="background: var(--fg)"] h1,
[data-theme="light"] .v-section[style*="background: var(--fg)"] h2,
[data-theme="light"] .v-section[style*="background: var(--fg)"] h3,
[data-theme="light"] .v-section[style*="background: var(--fg)"] h4,
[data-theme="light"] .v-section[style*="background: var(--fg)"] p,
[data-theme="light"] .v-section[style*="background: var(--fg)"] .v-stat,
[data-theme="light"] .v-section[style*="background: var(--fg)"] .label-mono,
[data-theme="light"] .v-section[style*="background: #000"] h1,
[data-theme="light"] .v-section[style*="background: #000"] h2,
[data-theme="light"] .v-section[style*="background: #000"] h3,
[data-theme="light"] .v-section[style*="background: #000"] h4,
[data-theme="light"] .v-section[style*="background: #000"] p,
[data-theme="light"] .v-section[style*="background: #000"] .v-stat,
[data-theme="light"] .v-section[style*="background: #000"] .label-mono,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] h1,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] h2,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] h3,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] h4,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] p,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] .v-stat,
[data-theme="light"] .v-section[style*="background: #0a0a0a"] .label-mono,
[data-theme="light"] .v-section[style*="background: #050505"] h1,
[data-theme="light"] .v-section[style*="background: #050505"] h2,
[data-theme="light"] .v-section[style*="background: #050505"] h3,
[data-theme="light"] .v-section[style*="background: #050505"] h4,
[data-theme="light"] .v-section[style*="background: #050505"] p,
[data-theme="light"] .v-section[style*="background: #050505"] .v-stat,
[data-theme="light"] .v-section[style*="background: #050505"] .label-mono,
[data-theme="light"] .v-section[style*="background: #333333"] h1,
[data-theme="light"] .v-section[style*="background: #333333"] h2,
[data-theme="light"] .v-section[style*="background: #333333"] h3,
[data-theme="light"] .v-section[style*="background: #333333"] h4,
[data-theme="light"] .v-section[style*="background: #333333"] p,
[data-theme="light"] .v-section[style*="background: #333333"] .v-stat,
[data-theme="light"] .v-section[style*="background: #333333"] .label-mono,
[data-theme="light"] .v-section[style*="background: #666666"] h1,
[data-theme="light"] .v-section[style*="background: #666666"] h2,
[data-theme="light"] .v-section[style*="background: #666666"] h3,
[data-theme="light"] .v-section[style*="background: #666666"] h4,
[data-theme="light"] .v-section[style*="background: #666666"] p,
[data-theme="light"] .v-section[style*="background: #666666"] .v-stat,
[data-theme="light"] .v-section[style*="background: #666666"] .label-mono,
[data-theme="light"] section[style*="background: var(--fg)"] h1,
[data-theme="light"] section[style*="background: var(--fg)"] h2,
[data-theme="light"] section[style*="background: var(--fg)"] h3,
[data-theme="light"] section[style*="background: var(--fg)"] h4,
[data-theme="light"] section[style*="background: var(--fg)"] p,
[data-theme="light"] section[style*="background: var(--fg)"] .v-stat,
[data-theme="light"] section[style*="background: var(--fg)"] .label-mono,
[data-theme="light"] section[style*="background: #333333"] h1,
[data-theme="light"] section[style*="background: #333333"] h2,
[data-theme="light"] section[style*="background: #333333"] h3,
[data-theme="light"] section[style*="background: #333333"] h4,
[data-theme="light"] section[style*="background: #333333"] p,
[data-theme="light"] section[style*="background: #333333"] .v-stat,
[data-theme="light"] section[style*="background: #333333"] .label-mono,
[data-theme="light"] section[style*="background: #666666"] h1,
[data-theme="light"] section[style*="background: #666666"] h2,
[data-theme="light"] section[style*="background: #666666"] h3,
[data-theme="light"] section[style*="background: #666666"] h4,
[data-theme="light"] section[style*="background: #666666"] p,
[data-theme="light"] section[style*="background: #666666"] .v-stat,
[data-theme="light"] section[style*="background: #666666"] .label-mono {
    color: #ffffff !important;
    opacity: 1 !important;
}

[data-theme="light"] .v-section[style*="background: var(--fg)"] .label-mono,
[data-theme="light"] .v-section[style*="background: var(--fg)"] .v-label,
[data-theme="light"] .v-section[style*="background: var(--fg)"] .v-label-sm,
[data-theme="light"] .v-section[style*="background: var(--fg)"] .v-label-accent,
[data-theme="light"] section[style*="background: var(--fg)"] .label-mono,
[data-theme="light"] section[style*="background: var(--fg)"] .v-label {
    color: var(--v-gold) !important;
}

[data-theme="light"] footer {
    background: #f8f8fb;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] footer p,
[data-theme="light"] footer .label-mono,
[data-theme="light"] footer span {
    opacity: 0.7 !important;
    color: #1a1a2e !important;
}

[data-theme="light"] footer h4 {
    color: #1a1a2e !important;
}

[data-theme="light"] footer div[style*="border-top"] {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
    opacity: 0.6 !important;
}

/* RTL Symmetric Support */
[dir="rtl"] {
    text-align: right;
    font-family: var(--font-primary);
}

[dir="rtl"] .nav-links {
    margin-inline-start: 0;
    margin-inline-end: 40px;
}

[dir="rtl"] .dropdown-box {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-link i {
    margin-inline-start: 8px;
    margin-inline-end: 0;
}

[dir="rtl"] .v-logo-wrapper {
    /* Reverse puts the icon on the visual left and text on the visual right in RTL, identifying the brand text with the right edge */
    flex-direction: row-reverse;
}

[dir="rtl"] .v-float-text {
    left: auto !important;
    right: 80px;
}

[dir="rtl"] .footer-col {
    text-align: right;
}

[dir="rtl"] .footer-links {
    padding-inline-start: 0;
}

[dir="rtl"] .nav-tools {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .nav-links.active {
    transform: translateX(0);
}

[dir="rtl"] .nav-links.active[style*="display: none"] {
    transform: translateX(-100%);
}

/* RTL Icon Mirroring */
[dir="rtl"] i[data-lucide*="right"],
[dir="rtl"] i[data-lucide*="chevron-right"],
[dir="rtl"] i[data-lucide="log-out"] {
    transform: scaleX(-1);
}

[dir="rtl"] .nav-link i[data-lucide="chevron-down"] {
    margin-inline-start: 10px;
    margin-inline-end: 0;
}

.rtl-toggle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* Tactical Header (Sub-nav for modules) */
.tactical-module-bar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--v-border);
    padding: 15px var(--gutter);
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: var(--nav-height);
    margin-top: var(--nav-height);
    z-index: 8000;
    backdrop-filter: blur(20px);
}

.module-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--fg);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    opacity: 0.5;
    transition: 0.3s var(--ease);
    padding: 8px 12px;
    border-radius: 4px;
}

.module-item:hover,
.module-item.active {
    opacity: 1;
    background: rgba(0, 122, 255, 0.1);
    color: var(--v-accent);
}

.module-action-group {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tactical-ticker {
    display: flex;
    gap: 30px;
    margin-left: 20px;
    margin-right: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.4;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item b {
    color: var(--v-accent);
}

@media (max-width: 1300px) {
    .tactical-ticker {
        display: none;
        /* Hide on smaller screens to prevent overlap */
    }
}

@media (max-width: 1100px) {
    .tactical-module-bar {
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .tactical-module-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        flex-direction: row !important;
        /* Override potential flex-direction: column */
        gap: 12px !important;
        padding: 20px var(--gutter) !important;
        align-items: center !important;
        height: auto !important;
        margin-top: 0 !important;
        top: 0 !important;
    }

    .tactical-module-bar .v-logo-wrapper {
        grid-column: span 2 !important;
        position: relative !important;
        /* Override position: absolute */
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid var(--v-border) !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tactical-module-bar .module-item {
        grid-column: span 1 !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.75rem !important;
        padding: 12px 5px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .tactical-module-bar .tactical-ticker {
        grid-column: span 2 !important;
        display: flex !important;
        flex-direction: row !important;
        margin: 5px 0 !important;
        justify-content: center !important;
        font-size: 0.7rem !important;
        opacity: 0.6 !important;
    }

    .tactical-module-bar .module-action-group {
        grid-column: span 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid var(--v-border) !important;
        margin-left: 0 !important;
    }

    .tactical-module-bar .module-action-group .v-button,
    .tactical-module-bar .module-action-group .v-btn-login,
    .tactical-module-bar .module-action-group .nav-tool-btn {
        flex: 1 !important;
        min-width: 70px !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .tactical-module-bar .module-action-group span[style*="width: 1px"] {
        display: none !important;
    }
}

/* Global Content Utilities */
.v-section {
    padding-block: 40px;
}

.v-stat {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

/* Mission Validation Card Components */
.mission-card {
    flex: 1.2;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: clamp(20px, 5vw, 40px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 4px;
}

.mission-card::before,
.mission-card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--gold);
    z-index: 5;
}

.mission-card::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.mission-card::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.mission-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

.mission-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.mission-stat-item .label-mono {
    text-align: left !important;
    margin-bottom: 8px !important;
    font-size: 0.85rem !important;
    opacity: 0.6;
    display: inline-block !important;
    width: auto !important;
}

.stat-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fg);
}

.validation-key-col {
    grid-column: span 2;
}

.uplink-col {
    grid-column: span 1;
}

@media (max-width: 900px) {
    .mission-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Table Utility */
.tactical-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
    .tactical-table {
        min-width: 600px;
    }
}

/* Progress System */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 0%;
    background: var(--accent);
    z-index: 10005;
}

/* Mobile Hero Adjustments */
@media (max-width: 900px) {
    .hero-premium {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 50px;
        padding-top: 120px;
        text-align: center;
    }

    .hero-premium .v-container {
        padding-top: 0;
        text-align: center;
        flex-direction: column;
        gap: 50px;
    }

    .hero-text-block {
        text-align: center !important;
        max-width: 100% !important;
    }

    .hero-text-block h1 {
        text-align: center !important;
    }

    .hero-text-block div {
        justify-content: center !important;
    }

    .hero-visual-system {
        transform: scale(0.9);
        max-width: 450px;
    }

    .hero-scroll-indicator {
        display: none !important;
    }

    /* Force the following section to pull up closer */
    section.v-section[style*="margin-top: -20vh"] {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Perfectly Centered Mobile Navbar Layout */
    nav .v-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: var(--nav-height-mobile) !important;
        padding-inline: 15px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 11005 !important;
        /* Higher than wrapper */
    }

    nav .v-logo-wrapper {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 10005 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        pointer-events: none !important;
        /* Prevent overlapping clicks */
        max-width: 180px !important;
        overflow: visible !important;
    }

    .v-logo-wrapper * {
        pointer-events: auto !important;
        /* Re-enable for the actual text/icon */
    }

    .v-logo-text {
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        /* Added to prevent clipping */
    }

    .v-logo-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
    }

    .v-mobile-toggle {
        display: flex !important;
        order: -1 !important;
        margin: 0 !important;
        z-index: 10010 !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-tools {
        order: 1 !important;
        display: flex !important;
        gap: 12px !important;
        margin: 0 !important;
        z-index: 10010 !important;
        position: relative !important;
        flex-shrink: 1 !important;
    }

    .nav-tool-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    @media (max-width: 400px) {
        nav .v-logo-wrapper {
            max-width: 120px !important;
        }
        nav .v-logo-text {
            font-size: 0.65rem !important;
        }
    }

    @media (max-width: 350px) {
        nav .v-logo-text {
            display: none !important;
        }
        nav .v-logo-wrapper {
            max-width: 30px !important;
        }
    }

    [dir="rtl"] nav .v-logo-wrapper {
        left: auto !important;
        right: 50% !important;
        transform: translate(50%, -50%) !important;
    }

    .v-logo-text {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        direction: inherit;
        unicode-bidi: plaintext !important;
        white-space: nowrap !important;
        color: var(--fg) !important;
        overflow: visible !important;
    }

    [dir="rtl"] .nav-tools,
    [dir="rtl"] .v-mobile-toggle {
        margin: 0 !important;
    }

    /* Fixed Drawer Background and Centering */
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--bg) !important;
        padding-top: 100px !important;
        padding-inline: 40px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        z-index: 12000 !important;
        /* On top of nav and everything else */
        overflow-y: auto !important;
        animation: mobileMenuInLTR 0.4s var(--ease) forwards !important;
    }

    .nav-links.active .nav-link {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        padding: 25px 0 !important;
        width: 100% !important;
        justify-content: center !important;
        border-bottom: 1px solid var(--border) !important;
        text-align: center !important;
        opacity: 0.8;
    }

    .nav-links.active .nav-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .nav-links.active .dropdown-box {
        position: static !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: none !important;
    }

    .nav-links.active .dropdown-item {
        font-size: 1.1rem !important;
        text-align: center !important;
        width: 100% !important;
        opacity: 0.6 !important;
    }

    [dir="rtl"] .nav-links.active {
        left: 0 !important;
        right: auto !important;
        animation: mobileMenuInRTL 0.4s var(--ease) forwards !important;
    }

    .nav-tool-btn,
    .rtl-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        border: 1px solid var(--border) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: inherit;
    }

    [data-theme="light"] .nav-tool-btn,
    [data-theme="light"] .rtl-toggle {
        background: rgba(0, 0, 0, 0.05) !important;
    }

    /* RTL Mobile Refinements */
    /* Special Header Logo Centering Logic for Mobile Navbar */
    nav .v-logo-wrapper {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    [dir="rtl"] nav .v-logo-wrapper {
        left: auto !important;
        right: 50% !important;
        transform: translate(50%, -50%) !important;
    }

    [dir="rtl"] .rtl-toggle {
        background: var(--gold) !important;
        color: #000000 !important;
        border-color: var(--gold) !important;
    }

    [dir="rtl"] .nav-tools {
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .nav-links.active .nav-link {
        text-align: center !important;
    }

    [dir="rtl"] .sync-progress-sidebar {
        left: auto !important;
        right: 20px !important;
    }

    [dir="rtl"] .industrial-manifesto {
        border-left: none !important;
        border-right: 2px solid var(--v-accent) !important;
    }

    [dir="rtl"] .industrial-manifesto::after {
        right: auto !important;
        left: 10px !important;
    }

    /* Prevent right side space / overflow - USE 100% NOT 100vw */
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    /* Ensure specific elements don't cause overflow */
    * {
        max-width: 100% !important;
    }

    /* Fix navigation bar collapsing */
    nav {
        height: var(--nav-height-mobile) !important;
        min-height: var(--nav-height-mobile) !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        /* Allow dropdowns but keeping bar fixed */
        width: 100% !important;
        max-width: 100% !important;
    }

    .v-btn-login {
        display: none !important;
        /* Managed by mobile-only-login */
    }

    .mobile-only-login {
        display: block !important;
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }

    /* Force all grid systems to stack EXCEPT NAVBAR */
    .v-grid-experimental:not(nav div)>div,
    .v-grid:not(nav div)>div,
    [style*="grid-column: span"]:not(nav div),
    [style*="grid-column:span"]:not(nav div) {
        grid-column: span 12 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [style*="grid-column-start"] {
        grid-column-start: auto !important;
    }

    /* Force all flex containers EXCEPT NAVBAR to column */
    div:not(nav div):not(.nav-links):not(.status-indicator):not(.inline-flex)[style*="display: flex"],
    header:not(nav header)[style*="display: flex"],
    section:not(nav section)[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        /* Centered for better mobile feel */
        gap: 25px !important;
    }

    /* Force 1 column for success briefs on mobile to avoid label collisions */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    /* Exceptions for small inline flex (like status dots) */
    div[style*="display: flex"][style*="gap: 20px"],
    div[style*="display: flex"][style*="gap: 40px"] {
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix text alignment globally for mobile */
    .v-section,
    .hero-content,
    header {
        text-align: center !important;
    }

    .v-card {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 30px 20px !important;
    }

    /* Fix English text direction in RTL mode to prevent trailing periods at the start */
    .v-section p,
    .hero-content p,
    .v-card p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .label-mono,
    .v-stat,
    .nav-logo-text {
        unicode-bidi: plaintext !important;
        text-align: center !important;
        margin-inline: auto !important;
    }

    /* Standardize mobile container scaling */
    .v-container {
        padding-inline: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Ensure specific functional grids maintain their structure */
    .v-container>.v-grid,
    .v-container>.v-grid-experimental,
    .v-grid-experimental,
    .v-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 30px !important;
    }

    .hero-content .label-mono {
        margin-bottom: 20px !important;
    }

    /* Fix status block */
    .hero-content .reveal-wrap[style*="max-width: 300px"] {
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .hero-content .label-mono {
        margin-bottom: 10px;
    }

    /* Fix Validation Card on Mobile */
    [style*="min-width: 400px"] {
        min-width: unset !important;
        width: 100% !important;
    }

    /* Ensure boxes stack and don't overflow */
    .v-box {
        grid-column: span 12 !important;
        height: auto !important;
        min-height: 350px !important;
        padding: 30px !important;
        margin-top: 20px !important;
    }

    .v-box img {
        height: 100% !important;
    }

    .v-float-text {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        padding-top: 40px !important;
        text-align: center !important;
    }

    .evolution-item {
        border-right: none !important;
        padding: 0 !important;
        border-bottom: 1px solid var(--v-border);
        padding-bottom: 30px !important;
        margin-bottom: 30px !important;
    }

    .evolution-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Fix Operational Geography Section */
    h3[style*="font-size: 4rem"],
    h2[style*="font-size: 3.5rem"],
    h2[style*="font-size: 4rem"],
    h2[style*="font-size: 5rem"],
    h2[style*="font-size: 6rem"],
    .massive-heading {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
        line-height: 1.1 !important;
    }

    /* Ensure specific grid gaps and table wrappers work */
    .v-grid-experimental {
        gap: 20px !important;
    }

    [style*="min-width: 350px"] {
        min-width: unset !important;
        width: 100% !important;
    }

    /* Fix Location Rows */
    [style*="justify-content: space-between"][style*="border-bottom"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    [style*="justify-content: space-between"][style*="border-bottom"] span:last-child {
        margin-bottom: 5px;
        align-self: flex-end;
        /* Align value to right for cleaner look, or align-self: flex-start */
        font-size: 0.9rem;
    }

    /* Fix Epic Statement / Sentinel Industries Section */
    div[style*="gap: clamp"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 60px !important;
        gap: 40px !important;
    }

    /* Normalize section spacing */
    .v-section,
    [style*="padding: 15vh"],
    [style*="padding: 10vh"],
    [style*="padding: 5vh"] {
        padding-block: 60px !important;
    }

    [style*="margin-top: -10vh"],
    [style*="margin-top: -5vh"] {
        margin-top: 0 !important;
    }

    /* Scaling down stats */
    .v-stat,
    [style*="font-size: 3rem"],
    [style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }

    /* Fix table responsiveness */
    .tactical-table-wrapper,
    div[style*="overflow-x: auto"] {
        margin-inline: -20px;
        width: calc(100% + 40px);
        padding-inline: 20px;
    }

    /* Hide decorative/complex overlays on small mobile if they overlap */
    .p-center-viz,
    .v-tech-img[style*="position: absolute"] {
        opacity: 0.1 !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }

    /* Fix Success Briefs / Cards on mobile */
    div[style*="gap: 100px"],
    div[style*="gap: 80px"],
    div[style*="gap: 60px"],
    div[style*="gap: 50px"],
    div[style*="gap: 40px"] {
        gap: 30px !important;
        flex-direction: column !important;
    }

    /* Button alignment */
    .v-btn-login,
    .v-button,
    a[style*="display: inline-block"],
    a[style*="display: block"] {
        margin-inline: auto !important;
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Fix the "VECTORS" hero text overlap */
    .massive-heading div {
        display: block !important;
    }

    /* Ensure vertical ticker is readable */
    .ticker-container {
        text-align: center !important;
    }

    .ticker-container .label-mono {
        text-align: center !important;
        margin-inline: auto !important;
        margin-bottom: 20px !important;
    }

    .ticker-vertical {
        width: 100% !important;
        text-align: center !important;
        height: 1.4rem !important;
        /* Slightly more height to prevent overlap */
    }

    .ticker-item {
        font-size: 0.75rem !important;
        width: 100% !important;
        letter-spacing: 1px !important;
        line-height: 1.4rem !important;
        height: 1.4rem !important;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .doctrine-heading {
        font-size: clamp(1.6rem, 10vw, 2.5rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    /* Fix ticker-v animation for the new height */
    @keyframes ticker-v-mobile {

        0%,
        14% {
            transform: translateY(0);
        }

        16%,
        30% {
            transform: translateY(-1.4rem);
        }

        32%,
        46% {
            transform: translateY(-2.8rem);
        }

        48%,
        62% {
            transform: translateY(-4.2rem);
        }

        64%,
        78% {
            transform: translateY(-5.6rem);
        }

        80%,
        94% {
            transform: translateY(-7.0rem);
        }

        96%,
        100% {
            transform: translateY(-8.4rem);
        }
    }

    .ticker-track {
        animation-name: ticker-v-mobile !important;
        animation-duration: 15s !important;
    }

    /* Fix the grid overlaps in the capability matrix */
    .v-grid-experimental [style*="border-bottom: 4px"] {
        border-bottom: 1px solid var(--border) !important;
        border-left: 4px solid var(--gold) !important;
        text-align: left !important;
        padding: 30px !important;
    }

    /* Ensure forms and inputs are full width */
    input,
    textarea,
    select {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mission Validation Mobile Refinement */
    .mission-card {
        max-width: 100% !important;
        padding: 30px 15px !important;
    }

    .mission-stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px 15px !important;
    }

    @media (max-width: 500px) {
        .mission-stats-grid {
            grid-template-columns: 1fr !important;
        }

        .validation-key-col,
        .uplink-col {
            grid-column: span 1 !important;
        }
    }

    .mission-stat-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100%;
    }

    .mission-stat-item .label-mono {
        text-align: left !important;
        margin-bottom: 8px !important;
        font-size: 0.75rem !important;
        opacity: 0.5;
        display: block !important;
        width: 100%;
    }

    .stat-value-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        justify-content: flex-start !important;
    }

    .validation-key-col {
        grid-column: span 2 !important;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .validation-key-col .stat-value-wrap {
        font-size: 0.85rem !important;
        font-family: var(--font-mono);
        opacity: 0.5;
        word-break: break-all !important;
        white-space: normal !important;
        /* Allow break for long keys */
    }

    .uplink-col {
        grid-column: span 2 !important;
        margin-top: 5px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .uplink-col .label-mono {
        text-align: center !important;
    }

    .uplink-col .stat-value-wrap {
        justify-content: center !important;
        color: var(--gold) !important;
    }

    /* Aggressive Global Centering for Mobile - EXCLUDING NAV */
    .v-section,
    .hero-content,
    header,
    .v-container:not(nav .v-container),
    .v-grid,
    .v-grid-experimental,
    [class*="grid-"],
    .reveal-wrap,
    .p-box,
    .v-box {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Reset grid behavior for sub-containers to stay centered */
    .v-grid,
    .v-grid-experimental {
        display: flex !important;
        /* Switch to flex on mobile for perfect centering */
        gap: 40px !important;
    }

    /* Ensure every direct child of a centered container is also centered - EXCLUDING NAV & NON-VISUAL TAGS */
    .v-section>*:not(style):not(script),
    .v-container:not(nav .v-container)>*:not(style):not(script),
    .v-grid>*:not(style):not(script),
    .v-grid-experimental>*:not(style):not(script),
    .reveal-wrap>*:not(style):not(script) {
        margin-inline: auto !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force style/script tags to stay hidden even if they are direct children */
    style,
    script {
        display: none !important;
    }

    /* Fixed Headings and Text */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    .label-mono,
    .v-stat,
    .v-logo-text,
    .nav-link {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        margin-inline: auto !important;
        width: 100% !important;
        max-width: 600px !important;
        /* Prevent text from spreading too wide on larger mobiles */
        float: none !important;
        unicode-bidi: plaintext !important;
    }

    /* Exception for Icons to keep them centered without stretching */
    i[data-lucide],
    i.lucide,
    .v-logo-icon,
    svg {
        width: auto !important;
        max-width: fit-content !important;
        display: inline-block !important;
        margin-inline: auto !important;
    }

    /* Card Specific Refinement */
    .v-card {
        padding: 40px 20px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Logic for labels in forms - keep them left/start aligned for usability if they exist */
    label {
        text-align: start !important;
        width: 100% !important;
        max-width: 400px !important;
    }

    .support-dashboard {
        padding: 40px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .support-dashboard .label-mono {
        text-align: center !important;
        font-size: 0.85rem !important;
    }

    .support-dashboard p {
        font-size: 0.95rem !important;
    }

    /* Service Cards (Transit, Storage, etc) Centering */
    .service-card-centered {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 40px !important;
        width: 100% !important;
    }

    .service-card-centered i {
        margin-bottom: 25px !important;
    }

    .service-card-centered h4 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    .service-card-centered p {
        text-align: center !important;
        max-width: 320px !important;
        margin-inline: auto !important;
    }

    /* Prevent chart overlap on dashboard modules */
    .hud-panel,
    .v-panel {
        padding-top: 40px !important;
    }

    .chart-container-sm,
    .chart-container-md {
        margin-top: 25px !important;
    }

    /* Contact & Form Centering */
    .uplink-form {
        text-align: center !important;
        align-items: center !important;
    }

    .uplink-form h1,
    .uplink-form .v-label {
        text-align: center !important;
        width: 100% !important;
    }

    .uplink-form form {
        width: 100% !important;
        max-width: 500px !important;
        margin-inline: auto !important;
    }

    .uplink-form label {
        display: block !important;
        text-align: left !important;
        /* Keep input labels left-aligned for usability */
    }

}

/* Master RTL Mobile Overrides - DO NOT MOVE */
@media (max-width: 1100px) {
    nav .v-logo-wrapper {
        left: auto !important;
        right: 50% !important;
        transform: translate(50%, -50%) !important;
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .v-logo-text {
        text-align: right !important;
        margin-inline: 0 !important;
    }

    [dir="rtl"] .nav-tools {
        flex-direction: row-reverse !important;
        margin-inline-end: 0 !important;
    }

    [dir="rtl"] .nav-links.active {
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        text-align: center !important;
        align-items: center !important;
    }

    [dir="rtl"] .nav-links.active .nav-link {
        text-align: center !important;
        justify-content: center !important;
    }

    [dir="rtl"] i[data-lucide*="right"],
    [dir="rtl"] i[data-lucide*="chevron-right"],
    [dir="rtl"] i[data-lucide="log-out"] {
        transform: scaleX(-1) !important;
    }

    [dir="rtl"] .sync-progress-sidebar {
        left: auto !important;
        right: 20px !important;
    }

    /* Force direction inherit on text to allow RTL layouts to work */
    [dir="rtl"] h1,
    [dir="rtl"] h1,
    [dir="rtl"] h2,
    [dir="rtl"] h3,
    [dir="rtl"] h4,
    [dir="rtl"] h5,
    [dir="rtl"] h6,
    [dir="rtl"] p,
    [dir="rtl"] span {
        text-align: right !important;
    }
}

/* ABSOLUTE AUTH CENTERING - FINAL FIX */
.auth-panel .v-logo-wrapper,
.auth-branding .v-logo-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    gap: 15px !important;
}

[dir="rtl"] .auth-panel .v-logo-wrapper,
[dir="rtl"] .auth-branding .v-logo-wrapper {
    flex-direction: row-reverse !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.auth-branding {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

.auth-branding * {
    text-align: center !important;
}

/* Master RTL Mobile Overrides - DO NOT MOVE */
@media (max-width: 1100px) {
    .nav-logo, .v-logo-wrapper.nav-logo {
        left: auto !important;
        right: 50% !important;
        transform: translate(50%, -50%) !important;
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .nav-tools {
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .nav-links.active {
        left: 0 !important;
        right: auto !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    [dir="rtl"] .nav-links.active .nav-link {
        text-align: right !important;
        justify-content: flex-start !important;
        padding-inline: 40px !important;
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .nav-links.active .dropdown-box,
    [dir="rtl"] .nav-links.active .dropdown-item {
        text-align: right !important;
        align-items: flex-end !important;
    }

    [dir="rtl"] h1,
    [dir="rtl"] h2,
    [dir="rtl"] h3,
    [dir="rtl"] h4,
    [dir="rtl"] h5,
    [dir="rtl"] h6,
    [dir="rtl"] p,
    [dir="rtl"] .label-mono,
    [dir="rtl"] .v-stat {
        text-align: right !important;
    }

    [dir="rtl"] .v-button {
        justify-content: flex-end !important;
    }

    [dir="rtl"] .v-button i,
    [dir="rtl"] .v-button svg {
        margin-right: 15px !important;
        margin-left: 0 !important;
    }
}

.mobile-hide {
    display: none !important;
}