/* =========================================
   ⚡ GODTIER ENGINE V7: MASTER STYLE SHEET
   Target: Apple VisionOS / Cyberpunk Aesthetic
   Updated: 2025-12-11
   ========================================= */

:root {
    /* --- BRAND: THE DIVINE SPECTRUM (ENHANCED) --- */
    --primary: #00F3FF;
    /* Electric Cyan */
    --primary-dim: rgba(0, 243, 255, 0.15);
    --primary-glow: rgba(0, 243, 255, 0.6);

    --secondary: #9D4EDD;
    /* Deep Void Purple */
    --secondary-glow: rgba(157, 78, 221, 0.6);

    --accent: #FFD700;
    /* Golden Ray */
    --danger: #FF0055;
    /* Critical Red */
    --success: #00FF9D;
    /* Matrix Green */

    /* --- SURFACES: VISION OS GLASS (REFINED) --- */
    --bg-deep: #030308;
    /* Darker Deep Space */
    --bg-glass: rgba(20, 25, 40, 0.5);
    /* More transparent */
    --bg-glass-strong: rgba(15, 20, 35, 0.8);

    /* --- BORDERS & HIGHLIGHTS --- */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-neon: rgba(0, 243, 255, 0.6);

    /* --- SPACING SCALE --- */
    --nav-height: 90px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* --- TYPOGRAPHY --- */
    --font-head: 'Orbitron', system-ui, sans-serif;
    --font-body: 'Rajdhani', system-ui, sans-serif;
    --text-white: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.7);
    --text-dark: #000000;

    /* --- RADIUS --- */
    --radius-sm: 8px;
    --radius-md: 20px;
    /* Slightly rounder */
    --radius-lg: 40px;
    --radius-full: 9999px;

    /* --- ANIMATION PHYSICS --- */
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & FOUNDATION --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(123, 44, 191, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(0, 243, 255, 0.1) 0%, transparent 40%);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--nav-height);
    text-rendering: optimizeLegibility;
}

/* --- NOISE TEXTURE (CINEMATIC GRAIN) --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- V7 GLASSMORPHISM UTILITIES (ENHANCED) --- */
.glass-panel,
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--ease-elastic);
    position: relative;
    overflow: hidden;
}

.glass-panel::before,
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

.glass-panel:hover,
.card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--bg-glass-strong);
    border-color: var(--primary-glow);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.15);
}

/* --- TYPOGRAPHY SYSTEM --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.divine-text {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- INTERACTIVE: GLOW BUTTONS (V7 ULTRA) --- */
.glow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid var(--primary-glow);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s var(--ease-elastic);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s;
    z-index: -1;
}

.glow-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 50px var(--primary-glow), 0 0 20px var(--primary);
    transform: translateY(-3px);
    border-color: transparent;
}

.glow-btn:hover::before {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

.glow-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- INPUTS & FORMS (VISION STYLE) --- */
.neon-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.neon-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 10, 20, 0.7);
    box-shadow: 0 0 25px var(--primary-dim), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transform: scale(1.01);
}

.neon-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- ANIMATIONS (CINEMATIC) --- */
@keyframes holoGlitch {
    0% {
        transform: skew(0deg);
        opacity: 1;
    }

    5% {
        transform: skew(2deg);
        opacity: 0.9;
    }

    10% {
        transform: skew(-2deg);
        opacity: 1;
    }

    15% {
        transform: skew(0deg);
        opacity: 1;
    }

    50% {
        transform: skew(0deg);
        opacity: 1;
    }

    55% {
        transform: skew(3deg);
        opacity: 0.8;
        filter: hue-rotate(90deg);
    }

    60% {
        transform: skew(0deg);
        opacity: 1;
        filter: hue-rotate(0deg);
    }

    100% {
        transform: skew(0deg);
        opacity: 1;
    }
}

.holo-glitch {
    animation: holoGlitch 4s infinite;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    }
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinSlowRev {
    100% {
        transform: rotate(-360deg);
    }
}

.animate-fade-in {
    animation: revealUp 0.8s var(--ease-smooth) forwards;
}

.animate-pulse {
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.5), transparent);
    opacity: 0.1;
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes textGlitch {
    0% {
        text-shadow: 2px 0 var(--danger), -2px 0 var(--primary);
    }

    10% {
        text-shadow: -2px 0 var(--danger), 2px 0 var(--primary);
    }

    20% {
        text-shadow: 0 0 0;
    }

    100% {
        text-shadow: 0 0 0;
    }
}

.glitch-text:hover {
    animation: textGlitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--text-white);
}

.float-hover {
    transition: transform 0.5s ease;
}

.float-hover:hover {
    transform: translateY(-10px);
}

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spinSlowRev 15s linear infinite;
}

/* --- LAYOUT UTILS --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.full-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- RESPONSIVE GRID OVERRIDE --- */
@media (max-width: 768px) {

    .module-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .holo-card,
    .card {
        /* Fix mobile overflow */
        min-width: 0 !important;
        transform: none !important;
        /* Disable hover scaling on mobile */
    }

    h1,
    .divine-title,
    .divine-text {
        font-size: clamp(2rem, 5vw, 4rem) !important;
        word-wrap: break-word;
    }
}

/* --- UTILITIES --- */
.hidden {
    display: none !important;
}

/* --- V6/V7 SPECIFIC ELEMENTS --- */
.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-deep);
    border: 4px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -26px;
    /* Optimized for default padding */
    top: 6px;
    box-shadow: 0 0 20px var(--primary);
    z-index: 10;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* --- TAILWIND COMPATIBILITY UTILITIES --- */
.rounded-full {
    border-radius: 9999px;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.object-cover {
    object-fit: cover;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
}

.border-primary {
    border-color: var(--primary);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
        --space-md: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .hide-mobile {
        display: none;
    }


    /* --- SPLIT PORTAL (CHOICE PAGE) --- */
    .split-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100vh;
    }

    @media (min-width: 768px) {
        .split-container {
            flex-direction: row;
        }
    }

    .portal-option {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s var(--ease-elastic);
        position: relative;
        cursor: pointer;
        border: 1px solid var(--border-subtle);
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        padding: var(--space-md);
        text-align: center;
        overflow: hidden;
    }

    .portal-option:hover {
        flex: 1.5;
        background: rgba(255, 255, 255, 0.03);
        z-index: 10;
    }

    /* Option 1: MAIN */
    .option-main {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/split_universe.png');
        background-size: cover;
        background-position: center;
    }

    .option-main:hover {
        box-shadow: 0 0 80px rgba(0, 243, 255, 0.15);
        border-color: var(--primary);
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/split_universe.png');
        background-size: cover;
        background-position: center;
    }

    .option-main:hover h2,
    .option-main:hover .portal-icon {
        color: var(--primary);
        text-shadow: 0 0 20px var(--primary);
    }

    /* Option 2: RADAR */
    .option-radar {
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/split_radar.png');
        background-size: cover;
        background-position: center;
    }

    .option-radar:hover {
        box-shadow: 0 0 80px rgba(255, 0, 255, 0.15);
        border-color: magenta;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/split_radar.png');
        background-size: cover;
        background-position: center;
    }

    .option-radar:hover h2,
    .option-radar:hover .portal-icon {
        color: magenta;
        text-shadow: 0 0 20px magenta;
    }

    .portal-icon {
        font-size: 5rem;
        margin-bottom: var(--space-md);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
        transition: transform 0.4s var(--ease-elastic), color 0.3s;
    }

    .portal-option:hover .portal-icon {
        transform: scale(1.2) rotate(5deg);
    }

    .portal-desc {
        margin-top: var(--space-sm);
        color: var(--text-dim);
        font-size: 1.1rem;
        max-width: 400px;
        line-height: 1.6;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .portal-option:hover .portal-desc {
        opacity: 1;
        color: var(--text-white);
    }

    .portal-btn {
        margin-top: var(--space-md);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s var(--ease-smooth);
    }

    .portal-option:hover .portal-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .portal-line {
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
        position: absolute;
        left: 50%;
        top: 0;
        z-index: 20;
        display: none;
    }

    @media(min-width:768px) {
        .portal-line {
            display: block;
        }
    }

    /* --- MOBILE OPTIMIZATIONS (TOUCH) --- */
    @media (max-width: 768px) {
        .portal-option {
            padding: 1rem;
            justify-content: center;
            /* Make items visible by default on mobile since there is no hover */
            background: rgba(0, 0, 0, 0.6);
        }

        .portal-option .portal-icon {
            font-size: 3rem;
            margin-bottom: 0.5rem;
            transform: scale(1);
        }

        .portal-option h2 {
            font-size: 1.5rem;
        }

        .portal-option .portal-desc {
            opacity: 1;
            /* Always visible */
            font-size: 0.9rem;
            margin-top: 0.5rem;
            display: block;
            max-height: 100px;
            /* Ensure it doesn't take too much space if long */
        }

        .portal-option .portal-btn {
            opacity: 1;
            /* Always visible */
            transform: translateY(0);
            margin-top: 1rem;
            padding: 0.8rem 2rem;
        }

        /* Add a subtle pulsing border to indicate active zones */
        .option-main {
            border-bottom: 1px solid var(--primary);
        }

        .option-radar {
            border-top: 1px solid magenta;
        }
    }

    /* --- INTRO PORTAL BUTTON (FIXED) --- */
    .start-btn-container {
        opacity: 0;
        /* JS will reveal, Fallback will force visible */
        animation: fadeIn 2s ease forwards 0.5s;
        /* CSS Fallback Animation */
        position: relative;
        z-index: 1000;
    }

    .start-btn {
        font-family: var(--font-head);
        font-size: 1.5rem;
        letter-spacing: 0.2em;
        padding: 1rem 3rem;
        background: transparent;
        color: var(--primary);
        border: 1px solid var(--primary);
        border-radius: var(--radius-sm);
        cursor: pointer;
        text-transform: uppercase;
        transition: all 0.3s var(--ease-elastic);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

    .start-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .start-btn:hover {
        background: var(--primary-dim);
        box-shadow: 0 0 40px var(--primary-glow);
        transform: scale(1.05);
        text-shadow: 0 0 8px var(--primary);
    }

    .start-btn:hover::before {
        left: 100%;
    }

    /* --- VIEWPORT FIX: Force Button & Intro Higher --- */
    #intro-layer {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100dvh !important;
        /* Dynamic Viewport Height */
        position: fixed !important;
        inset: 0 !important;
        overflow: hidden !important;
    }

    .intro-title {
        margin-bottom: 2rem !important;
    }

    .start-btn-container {
        position: absolute !important;
        bottom: 20% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 2000 !important;
        opacity: 1;
        /* Safety default */
    }

    /* Fallback for blocked JS */
    .js-failed .start-btn-container {
        opacity: 1 !important;
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    /* --- NAVIGATION LAYOUT (CENTRALIZED V2) --- */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(5, 5, 10, 0.85);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-container {
        max-width: 1600px;
        /* Wider canvas */
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        /* Space logo/profile to edges */
        align-items: center;
        padding: 0 2rem;
        height: var(--nav-height);
        position: relative;
        /* Anchor for absolute center */
    }

    /* LOGO: Left */
    .nav-logo {
        font-size: 1.5rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        color: var(--text-white);
        text-decoration: none;
        text-shadow: 0 0 10px var(--primary-glow);
        z-index: 20;
    }

    /* LINKS: Absolute Center */
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 3rem;
        /* More breathing room */
        height: 100%;
    }

    .nav-link {
        color: var(--text-dim);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        transition: all 0.3s;
        text-transform: uppercase;
        position: relative;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-white);
        text-shadow: 0 0 10px var(--primary-glow);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
        box-shadow: 0 0 10px var(--primary);
    }

    /* USER: Right */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        z-index: 20;
    }

    /* --- FOOTER LAYOUT (CENTRALIZED V2) --- */
    .global-footer {
        border-top: 1px solid var(--border-subtle);
        background: #020205;
        padding: 6rem 0 4rem;
        /* More space */
        margin-top: auto;
        position: relative;
    }

    .global-footer .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        text-align: center;
        /* FORCE CENTER ALL TEXT */
    }

    .footer-grid {
        display: flex;
        /* Use Flex instead of Grid for better centering of variable items */
        flex-wrap: wrap;
        justify-content: center;
        /* Center flex items */
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .footer-grid>div {
        flex: 1;
        min-width: 250px;
        max-width: 300px;
        text-align: center;
        /* Center content inside columns */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center flex children vertically */
    }

    /* Fix lists in footer to be centered */
    .footer-grid ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    /* --- LANDING CLARITY GRID (POST-BANG) --- */
    .clarity-layer {
        opacity: 0;
        transform: translateY(20px);
        transition: all 1.5s var(--ease-smooth);
        width: 100%;
        max-width: 1200px;
        margin-top: 4rem;
        display: none;
        /* JS will toggle flex */
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }

    .clarity-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        width: 100%;
    }

    .clarity-card {
        background: rgba(10, 10, 20, 0.6);
        border: 1px solid var(--border-subtle);
        padding: 2rem;
        border-radius: var(--radius-md);
        backdrop-filter: blur(10px);
        text-align: center;
        transition: transform 0.3s ease;
    }

    .clarity-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    }

    .clarity-icon {
        font-size: 3rem;
        color: var(--primary);
        margin-bottom: 1rem;
        text-shadow: 0 0 20px var(--primary-glow);
    }

    .action-row {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 2rem;
    }

    .btn-secondary {
        border-color: var(--secondary);
        color: var(--secondary);
        background: rgba(123, 44, 191, 0.05);
    }

    .btn-secondary:hover {
        background: var(--secondary);
        color: #fff;
        box-shadow: 0 0 40px var(--secondary-glow);
    }

    /* --- BUSINESS CARD GENERATOR --- */
    .card-preview-container {
        width: 100%;
        max-width: 500px;
        aspect-ratio: 1.75;
        /* Business Card Ratio */
        margin: 0 auto 2rem;
        perspective: 1000px;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        background: #000;
    }

    .business-card {
        width: 100%;
        height: 100%;
        position: relative;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.5s ease;
        background-size: cover;
        background-position: center;
    }

    /* STYLES */
    .card-galactic {
        background: linear-gradient(135deg, #050510 0%, #1a0b2e 100%);
        border: 1px solid var(--primary);
        color: var(--primary);
    }

    .card-galactic::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 20%, rgba(0, 243, 255, 0.2), transparent 50%);
    }

    .card-void {
        background: #000;
        border: 2px solid #fff;
        color: #fff;
        font-family: monospace;
    }

    .card-nebula {
        background: radial-gradient(circle at center, #2e003e 0%, #000 100%);
        border: 1px solid var(--secondary);
        color: #fff;
        text-shadow: 0 0 10px var(--secondary);
    }

    .card-gold {
        background: linear-gradient(to bottom, #111, #222);
        border: 1px solid #d4af37;
        color: #d4af37;
    }

    .card-cyber {
        background: #0a0a0a;
        border: 1px solid #0f0;
        color: #0f0;
        font-family: 'Courier New', monospace;
        text-shadow: 2px 0 0 red, -2px 0 0 blue;
    }

    .card-logo {
        font-family: var(--font-head);
        font-weight: 900;
        font-size: 1.5rem;
        letter-spacing: 0.2em;
        z-index: 2;
    }

    .card-details {
        z-index: 2;
        text-align: right;
    }

    .card-name {
        font-size: 1.8rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 0.2rem;
    }

    .card-title {
        font-size: 0.9rem;
        opacity: 0.8;
        letter-spacing: 0.1em;
    }

    .card-contact {
        margin-top: 1rem;
        font-size: 0.7rem;
        opacity: 0.7;
        line-height: 1.4;
    }



    /* --- UTILITIES & LAYOUT FIXES --- */
    .text-center {
        text-align: center;
    }

    .flex-center {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .w-full {
        width: 100%;
    }

    .mt-auto {
        margin-top: auto;
    }

    /* Force clean container */
    .container {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 var(--space-md);
    }

    /* Nav Container Override */
    .nav-container {
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--space-md);
        height: var(--nav-height);
    }

    /* Footer Fix */
    .global-footer {
        border-top: 1px solid var(--border-subtle);
        background: #020205;
        padding: 6rem 0 4rem;
        margin-top: auto;
    }

    .global-footer .container {
        text-align: center;
    }

    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4rem;
        margin-bottom: 4rem;
        text-align: left;
        /* Internal text alignment */
    }

    /* Resp Fixes */
    @media (max-width: 768px) {
        .container {
            padding: 0 var(--space-sm);
        }

        .footer-grid {
            gap: 2rem;
        }
    }

    /* =========================================
   ⚡ UTILITY BELT (TAILWIND-ISH ADAPTER)
   ========================================= */
    .flex {
        display: flex;
    }

    .flex-col {
        display: flex;
        flex-direction: column;
    }

    .flex-row {
        display: flex;
        flex-direction: row;
    }

    .items-center {
        align-items: center;
    }

    .justify-center {
        justify-content: center;
    }

    .justify-between {
        justify-content: space-between;
    }

    .gap-1 {
        gap: 0.25rem;
    }

    .gap-2 {
        gap: 0.5rem;
    }

    .gap-3 {
        gap: 0.75rem;
    }

    .gap-4 {
        gap: 1rem;
    }

    .gap-6 {
        gap: 1.5rem;
    }

    .gap-8 {
        gap: 2rem;
    }

    .mx-auto {
        margin-left: auto;
        margin-right: auto;
    }

    .my-4 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .mt-2 {
        margin-top: 0.5rem;
    }

    .mt-4 {
        margin-top: 1rem;
    }

    .mt-8 {
        margin-top: 2rem;
    }

    .mb-1 {
        margin-bottom: 0.25rem;
    }

    .mb-4 {
        margin-bottom: 1rem;
    }

    .mb-8 {
        margin-bottom: 2rem;
    }

    .mb-12 {
        margin-bottom: 3rem;
    }

    .mr-2 {
        margin-right: 0.5rem;
    }

    .p-0 {
        padding: 0;
    }

    .p-2 {
        padding: 0.5rem;
    }

    .p-4 {
        padding: 1rem;
    }

    .p-6 {
        padding: 1.5rem;
    }

    .p-8 {
        padding: 2rem;
    }

    .px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .pb-8 {
        padding-bottom: 2rem;
    }

    .pb-20 {
        padding-bottom: 5rem;
    }

    .pt-32 {
        padding-top: 8rem;
    }

    .pl-8 {
        padding-left: 2rem;
    }

    /* Sizing */
    .w-full {
        width: 100%;
    }

    .h-full {
        height: 100%;
    }

    .h-screen {
        height: 100vh;
    }

    .w-32 {
        width: 8rem;
    }

    .h-32 {
        height: 8rem;
    }

    .w-48 {
        width: 12rem;
    }

    .h-48 {
        height: 12rem;
    }

    .h-fit {
        height: fit-content;
    }

    .max-w-4xl {
        max-width: 56rem;
    }

    .max-w-md {
        max-width: 28rem;
    }

    /* Text */
    .text-xs {
        font-size: 0.75rem;
    }

    .text-sm {
        font-size: 0.875rem;
    }

    .text-xl {
        font-size: 1.25rem;
    }

    .text-2xl {
        font-size: 1.5rem;
    }

    .text-3xl {
        font-size: 1.875rem;
    }

    .text-4xl {
        font-size: 2.25rem;
    }

    .text-5xl {
        font-size: 3rem;
    }

    .font-bold {
        font-weight: 700;
    }

    .text-center {
        text-align: center;
    }

    .text-right {
        text-align: right;
    }

    .tracking-wider {
        letter-spacing: 0.05em;
    }

    .tracking-widest {
        letter-spacing: 0.1em;
    }

    .uppercase {
        text-transform: uppercase;
    }

    /* Visuals */
    .rounded {
        border-radius: 0.25rem;
    }

    .rounded-xl {
        border-radius: 0.75rem;
    }

    .rounded-2xl {
        border-radius: 1rem;
    }

    .rounded-full {
        border-radius: 9999px;
    }

    .border-4 {
        border-width: 4px;
    }

    .border-b {
        border-bottom-width: 1px;
    }

    .hidden {
        display: none;
    }

    .visible {
        display: block;
    }

    .relative {
        position: relative;
    }

    .absolute {
        position: absolute;
    }

    .fixed {
        position: fixed;
    }

    .inset-0 {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .overflow-hidden {
        overflow: hidden;
    }

    .cursor-pointer {
        cursor: pointer;
    }

    /* Grid */
    .grid {
        display: grid;
    }

    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @media (min-width: 768px) {
        .md\:grid-cols-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .md\:flex-row {
            flex-direction: row;
        }

        .md\:items-start {
            align-items: flex-start;
        }

        .md\:col-span-2 {
            grid-column: span 2 / span 2;
        }
    }

    /* Colors */
    .text-dim {
        color: var(--text-dim);
    }

    .text-primary,
    .text-neon-blue {
        color: var(--primary);
    }

    .text-secondary {
        color: var(--secondary);
    }

    .text-white {
        color: #fff;
    }

    .bg-black\/20 {
        background-color: rgba(0, 0, 0, 0.2);
    }

    .bg-black\/50 {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .border-white\/5 {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .border-white\/10 {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .opacity-0 {
        opacity: 0;
    }

    .hover\:opacity-100:hover {
        opacity: 1;
    }

    .group:hover .group-hover\:opacity-100 {
        opacity: 1;
    }

    /* =========================================
   ⚡ DASHBOARD & PROFILE MODULES
   ========================================= */
    .dashboard-grid,
    .profile-grid {
        display: grid;
        grid-template-columns: 280px 1fr 320px;
        gap: 2rem;
        max-width: 1800px;
        margin: 0 auto;
        padding: 2rem;
        padding-top: 2rem;
        min-height: calc(100vh - 80px);
    }

    .profile-grid {
        grid-template-columns: 280px 1fr;
    }

    @media (max-width: 1200px) {
        .dashboard-grid {
            grid-template-columns: 1fr 300px;
        }

        .profile-grid {
            grid-template-columns: 1fr;
        }

        .nav-column {
            display: none;
        }
    }

    @media (max-width: 800px) {
        .dashboard-grid {
            grid-template-columns: 1fr;
        }
    }

    .holo-panel,
    .card {
        background: rgba(10, 15, 30, 0.7);
        border: 1px solid rgba(0, 243, 255, 0.2);
        border-radius: 12px;
        backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
    }

    .holo-panel {
        padding: 1.5rem;
    }

    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0.5rem;
    }

    .panel-title {
        font-family: var(--font-head);
        font-size: 0.9rem;
        color: var(--primary);
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .nav-module,
    .nav-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 0.8rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        color: #aaa;
    }

    .nav-module:hover,
    .nav-module.active,
    .nav-item:hover,
    .nav-item.active {
        background: rgba(0, 243, 255, 0.05);
        border-color: rgba(0, 243, 255, 0.3);
        color: #fff;
        transform: translateX(5px);
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    }

    .nav-icon {
        font-size: 1.5rem;
        width: 40px;
        display: flex;
        justify-content: center;
    }

    /* Avatar Uploader */
    .avatar-uploader {
        width: 120px;
        height: 120px;
        position: relative;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--primary);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
        margin-bottom: 1rem;
        cursor: pointer;
    }

    .avatar-uploader .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        color: var(--primary);
        font-size: 1.5rem;
    }

    .avatar-uploader:hover .overlay {
        opacity: 1;
    }

    /* Settings Grids */
    .grid-1 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* XP Bar Container */
    .xp-bar-container {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        overflow: hidden;
        position: relative;
        margin-top: 1rem;
        border: 1px solid rgba(0, 243, 255, 0.1);
    }

    .xp-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), #7B2CBF);
        border-radius: 4px;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
    }

    .xp-bar-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
        animation: xp-shine 2s ease-in-out infinite;
    }

    @keyframes xp-shine {

        0%,
        100% {
            transform: translateX(-100%);
        }

        50% {
            transform: translateX(100%);
        }
    }

    /* Stat Row */
    .stat-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.85rem;
        color: var(--text-dim);
    }

    .stat-val {
        color: white;
        font-weight: 600;
        font-family: var(--font-head);
    }

    /* Holo Colors */
    .text-holo-blue {
        color: var(--primary);
    }

    .text-holo-purple {
        color: #7B2CBF;
    }

    .border-holo-blue\/30 {
        border-color: rgba(0, 243, 255, 0.3);
    }

    .bg-holo-blue\/10 {
        background-color: rgba(0, 243, 255, 0.1);
    }

    .hover\:bg-holo-blue\/20:hover {
        background-color: rgba(0, 243, 255, 0.2);
    }

    .focus\:border-holo-blue:focus {
        border-color: var(--primary);
    }

    /* =========================================
   ⚡ CHAT SYSTEM
   ========================================= */
    .chat-container {
        height: calc(100vh - 180px);
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 24px;
        max-width: 1800px;
        margin: 0 auto;
    }

    @media (max-width: 768px) {
        .chat-container {
            grid-template-columns: 1fr;
            height: calc(100vh - 120px);
        }

        .sidebar.hidden {
            display: none;
        }

        .chat-main.hidden {
            display: none;
        }
    }

    .sidebar,
    .chat-main {
        background: rgba(10, 15, 30, 0.4);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-item {
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        cursor: pointer;
        transition: all 0.3s;
    }

    .chat-item:hover {
        background: rgba(255, 255, 255, 0.03);
        padding-left: 25px;
    }

    .chat-item.active {
        background: rgba(0, 243, 255, 0.05);
        border-left: 4px solid var(--primary);
    }

    /* =========================================
   ⚡ CHOICE ORBS
   ========================================= */
    .orb-vis {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        position: relative;
        margin-bottom: 2rem;
        transition: transform 0.5s ease;
    }

    .orb-vis::before,
    .orb-vis::after {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        border: 2px solid transparent;
        animation: orb-spin 6s linear infinite;
    }

    .orb-main {
        background: radial-gradient(circle at 30% 30%, rgba(0, 243, 255, 0.2), transparent 70%);
    }

    .orb-radar {
        background: radial-gradient(circle at 70% 30%, rgba(255, 0, 255, 0.2), transparent 70%);
    }

    @keyframes orb-spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .portal-option:hover .orb-vis {
        transform: scale(1.3);
    }

    .portal-line {
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
        position: absolute;
        left: 50%;
        top: 0;
        display: none;
    }

    @media(min-width:768px) {
        .portal-line {
            display: block;
        }
    }

    /* =========================================
   ⚡ FEED MASONRY & COLORS
   ========================================= */
    .columns-1 {
        column-count: 1;
    }

    .break-inside-avoid {
        break-inside: avoid;
    }

    .space-y-8> :not([hidden])~ :not([hidden]) {
        --tw-space-y-reverse: 0;
        margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(2rem * var(--tw-space-y-reverse));
    }

    @media (min-width: 768px) {
        .md\:columns-2 {
            column-count: 2;
        }
    }

    @media (min-width: 1024px) {
        .lg\:columns-3 {
            column-count: 3;
        }
    }
}

/* =========================================
   ⚡ FIXES & NEW GLOBAL STYLES
   ========================================= */

.bg-deep-space {
    background-color: var(--bg-deep);
}

.text-hologram-cyan {
    color: var(--primary);
}

.text-neon-pink {
    color: var(--danger);
}

.bg-neon-pink\/90 {
    background-color: rgba(255, 0, 85, 0.9);
}

.bg-neon-blue,
.hover\:bg-neon-blue:hover {
    background-color: var(--primary);
}

.hover\:text-neon-pink:hover {
    color: var(--danger);
}

.hover\:text-neon-blue:hover {
    color: var(--primary);
}

.shadow-\[0_0_10px_\#ff0055\] {
    box-shadow: 0 0 10px #ff0055;
}

.shadow-\[0_0_40px_rgba\(0\,243\,255\,0\.15\)\] {
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.15);
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

.aspect-w-16>img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.overflow-x-auto {
    overflow-x: auto;
}

.whitespace-nowrap {
    white-space: nowrap;
}


/* --- FIX: Index Button Alignment --- */
.galactic-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

/* =========================================
   ⚡ GODTIER CHOICE PORTAL (CYBERPUNK DUEL)
   ========================================= */
.split-layout {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.split-side {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    z-index: 10;
}

.split-left {
    left: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 20, 30, 0.9));
    border-right: 1px solid var(--primary);
}

.split-right {
    right: 0;
    background: linear-gradient(225deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 20, 0.9));
    border-left: 1px solid var(--secondary);
}

/* Hover Effects (The "Duel") */
.split-side:hover {
    width: 75%;
    z-index: 20;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.split-layout:hover .split-side:not(:hover) {
    width: 25%;
    filter: brightness(0.3) blur(2px);
}

/* Content */
.choice-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
    transition: all 0.5s ease;
    width: 100%;
    padding: 0 2rem;
}

.choice-title {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px currentColor;
    opacity: 0.8;
    transition: all 0.5s;
}

.choice-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s 0.2s;
}

.split-side:hover .choice-title {
    font-size: 5rem;
    opacity: 1;
    text-shadow: 0 0 50px currentColor;
}

.split-side:hover .choice-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Icons / Orbs */
.choice-orb {
    width: 150px;
    height: 150px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    position: relative;
    transition: transform 0.8s ease;
}

.split-side:hover .choice-orb {
    transform: scale(1.5) rotate(180deg);
}

/* Mobile Fallback */
@media(max-width: 768px) {
    .split-side {
        width: 100%;
        height: 50%;
        position: relative;
    }

    .split-right {
        bottom: 0;
        top: auto;
    }

    .split-side:hover {
        width: 100%;
        height: 60%;
    }

    .split-layout:hover .split-side:not(:hover) {
        height: 40%;
        width: 100%;
    }

    .choice-title {
        font-size: 2.5rem;
    }
}

/* --- MISSING UTILITIES (FIXED) --- */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gap-4 {
    gap: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hidden {
    display: none !important;
}

/* Tailwind Compat */
.rounded-full {
    border-radius: 9999px;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.object-cover {
    object-fit: cover;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
}

.border-primary {
    border-color: var(--primary);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- RESPONSIVE GRIDS --- */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ⚡ V7 GLOBAL UTILITY OVERRIDE (DESKTOP FIX)
   ========================================= */

/* LAYOUT */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-neg-10 {
    z-index: -10;
}

.z-neg-20 {
    z-index: -20;
}

/* SIZING */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-screen {
    width: 100vw;
}

.h-screen {
    height: 100vh;
}

.max-w-sm {
    max-width: 24rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

/* SPACING */
.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* VISUALS */
.overflow-hidden {
    overflow: hidden;
}

.object-contain {
    object-fit: contain;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-80 {
    opacity: 0.8;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.bg-deep {
    background-color: var(--bg-deep);
}

.text-white {
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.uppercase {
    text-transform: uppercase;
}

/* ANIMATION UTILS */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* =========================================
   ♿ ACCESSIBILITY ENHANCEMENTS
   ========================================= */

/* Focus-visible states for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.2);
}

/* Remove default focus outline (replaced by focus-visible) */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for buttons */
.glow-btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Enhanced focus for links */
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    text-decoration: underline;
}

/* Enhanced focus for inputs */
.neon-input:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.25), 0 0 20px rgba(0, 243, 255, 0.15);
}

/* Skip to content link (accessibility feature) */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 1rem 2rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    z-index: 100000;
    border-radius: var(--radius-sm);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-spin-slow,
    .animate-spin-slow-reverse,
    .animate-pulse,
    .holo-glitch {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #00FFFF;
        --danger: #FF0000;
        --success: #00FF00;
        --border-subtle: rgba(255, 255, 255, 0.3);
        --border-light: rgba(255, 255, 255, 0.5);
    }

    .glass-panel,
    .card {
        border-width: 2px;
    }

    .glow-btn {
        border-width: 2px;
    }
}