:root {
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --primary: #ccff00;
    --primary-dim: #8fb300;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

body.overdrive-mode {
    --primary: #ff003c;
    --primary-dim: #b3002a;
}

body.overdrive-mode .mission-driver {
    filter: drop-shadow(0 0 10px #ff003c);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,%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)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9000;
}

.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
    padding: 0 20px;
}

.loader-text { 
    font-family: var(--font-mono); 
    color: var(--primary); 
    margin-bottom: 1rem; 
    letter-spacing: 2px; 
    text-align: center; 
}

.loader-bar { 
    width: 100%; 
    max-width: 300px; 
    height: 2px; 
    background: #333; 
    position: relative; 
}

.loader-progress { 
    width: 0%; 
    height: 100%; 
    background: var(--primary); 
    transition: width 2s cubic-bezier(0.19, 1, 0.22, 1); 
}

.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; 
    z-index: 10001; 
    pointer-events: none;
}

.cursor-dot { 
    width: 8px; 
    height: 8px; 
    background: var(--primary); 
}

.cursor-outline { 
    width: 40px; 
    height: 40px; 
    border: 1px solid var(--primary); 
    transition: all 0.15s ease-out; 
}

body.hovering .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(204, 255, 0, 0.1);
    border-color: transparent;
}

body.overdrive-mode.hovering .cursor-outline {
    background: rgba(255, 0, 60, 0.1);
}

h1, h2, h3 { 
    font-family: var(--font-heading); 
    text-transform: uppercase; 
}

.text-neon { 
    color: var(--primary); 
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.3); 
}

body.overdrive-mode .text-neon { 
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.3); 
}

.text-stroke { 
    -webkit-text-stroke: 1px #fff; 
    color: transparent; 
}

.btn-primary {
    background: var(--primary); color: #000;
    padding: 12px 24px; border: none; font-weight: 700;
    font-family: var(--font-mono); text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 10px;
    transition: 0.3s;
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 15px var(--primary); 
}

.btn-primary.connected {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(204,255,0,0.2);
}

body.overdrive-mode .btn-primary.connected {
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
}

.btn-secondary {
    background: transparent; color: #fff; border: 1px solid var(--border);
    padding: 12px 24px; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase;
    transition: 0.3s;
}

.btn-secondary:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
}

.btn-primary.small { 
    padding: 8px 16px; 
    font-size: 0.8rem; 
    width: 100%; 
    justify-content: center; 
}

.btn-icon-only {
    background: transparent; border: 1px solid var(--border);
    color: var(--primary); width: 45px; height: 45px;
    border-radius: 50%; font-size: 1.2rem; margin-right: 15px;
    display: grid; place-items: center; transition: 0.3s;
}

.btn-icon-only:hover {
    background: var(--primary); 
    color: #000; 
    box-shadow: 0 0 15px var(--primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1; 
    height: 100%;
}

@media (min-width: 1025px) {
    .nav-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        gap: 30px;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        font-size: 0.9rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        transition: 0.3s;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .nav-menu a:hover {
        color: #fff;
    }
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.nav-auth a, 
.nav-auth button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.nav-auth a.btn-secondary {
    text-decoration: none;
    box-sizing: border-box;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: baseline; 
}

.logo .dot {
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    color: transparent; 
    margin-left: 5px;
    box-shadow: 0 0 8px var(--primary);
    position: relative;
    top: 20px;
}

.hero {
    height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; position: relative; overflow: hidden;
    padding-top: 80px;
}

.badge {
    border: 1px solid var(--primary); color: var(--primary);
    display: inline-block; padding: 5px 10px; font-size: 0.7rem;
    font-family: var(--font-mono); margin-bottom: 20px;
}

.hero-title { 
    font-size: clamp(3rem, 6vw, 5rem); 
    line-height: 0.9; 
    margin-bottom: 1.5rem; 
}

.hero-desc { 
    max-width: 500px; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    line-height: 1.6; 
}

.hero-actions { 
    display: flex; 
    gap: 1rem; 
}

.hero-visual { 
    position: relative; 
    width: 45%; 
    height: 500px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; opacity: 0; transition: opacity 1s ease; cursor: grab;
}

#canvas-container:active { 
    cursor: grabbing; 
}

.floating-card {
    background: rgba(20, 20, 20, 0.8); border: 1px solid var(--border);
    backdrop-filter: blur(10px); padding: 20px; border-radius: 12px;
    position: absolute; width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2;
}

.c1 { 
    top: 20%; 
    left: 0; 
    animation: float 6s infinite ease-in-out; 
}

.c2 { 
    bottom: 20%; 
    right: 0; 
    animation: float 6s infinite ease-in-out 1s; 
}

.ticker-wrap {
    width: 100%; background: var(--primary); overflow: hidden; height: 50px;
    display: flex; align-items: center; transform: rotate(-1deg);
}

.ticker { 
    display: flex; 
    animation: ticker 20s linear infinite; 
    white-space: nowrap; 
}

.ticker-item {
    color: #000; font-family: var(--font-mono); font-weight: 700;
    font-size: 1.2rem; padding: 0 2rem;
}

.dashboard { 
    padding: 5rem 5%; 
}

.section-header { 
    margin-bottom: 3rem; 
    text-align: center; 
}

.bento-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    height: 500px;
}

.bento-card {
    background: var(--bg-card); 
    border: 1px solid var(--border);
    border-radius: 16px; 
    padding: 24px; 
    position: relative; 
    overflow: hidden;
    transition: 0.3s;
}

.bento-card:hover { 
    border-color: var(--primary); 
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 20px; 
}

.live-indicator { 
    font-size: 0.7rem; 
    color: #ff3333; 
    font-family: var(--font-mono); 
    animation: blink 1s infinite; 
}

.scanner-card { 
    grid-column: span 1; 
    display: flex; 
    flex-direction: column; 
}

.scanner-interface {
    flex-grow: 1; 
    border: 2px dashed var(--border); 
    border-radius: 8px;
    position: relative; 
    overflow: hidden;
    transition: 0.3s;
}

.camera-feed-container {
    position: relative; 
    width: 100%; 
    height: 100%; 
    min-height: 250px;
    background: #000; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

#webcam { 
    display: none; 
} 

#ai-canvas {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

.scanner-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 10; 
    background: rgba(0, 0, 0, 0.7);
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    cursor: pointer; 
    transition: opacity 0.3s;
}

.scanner-overlay.active { 
    opacity: 0; 
    pointer-events: none; 
}

.scanner-circle {
    width: 50px; 
    height: 50px; 
    border: 2px solid var(--primary); 
    border-radius: 50%;
    position: relative;
}

.scanner-circle::after {
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 2px; 
    background: var(--primary);
    top: 0; 
    animation: scanMove 1.5s infinite linear;
}

.scan-result { 
    margin-top: 10px; 
    min-height: 80px; 
}

.scan-data h4 { 
    color: var(--primary); 
    margin-bottom: 5px; 
    font-size: 0.9rem; 
}

#detected-list { 
    list-style: none; 
    padding: 0; 
}

#detected-list li {
    font-family: var(--font-mono); 
    color: var(--text-muted); 
    border-bottom: 1px dashed var(--border);
    padding: 5px 0; 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8rem;
}

.market-card { 
    grid-column: span 1; 
}

.chart-container {
    height: 150px; 
    display: flex; 
    align-items: flex-end; 
    justify-content: space-between; 
    gap: 5px;
}

.bar { 
    background: #333; 
    width: 100%; 
    transition: height 0.5s; 
    border-top: 2px solid var(--primary); 
}

.map-card { 
    grid-column: span 1; 
    background: #111; 
    position: relative; 
}

.map-visual {
    height: 200px; 
    width: 100%; 
    background: #080808; 
    position: relative; 
    overflow: hidden;   
    border-radius: 8px; 
}

.map-grid {
    width: 200%; 
    height: 200%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 20px 20px; 
    opacity: 0.3;
}

.driver-pin, .user-pin { 
    position: absolute; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
}

.driver-pin { 
    background: var(--primary); 
    box-shadow: 0 0 10px var(--primary); 
    transition: all 2s linear; 
}

.user-pin { 
    top: 50%; 
    left: 50%; 
    background: #fff; 
    border: 2px solid var(--primary); 
    width: 15px; 
    height: 15px; 
    transform: translate(-50%, -50%); 
    display: grid; 
    place-items: center; 
    font-size: 8px; 
    color: #000; 
    font-weight: bold; 
}

.driver-info { 
    margin-top: 15px; 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
}

.driver-info img { 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
}

.history-section { 
    padding: 0 5% 5rem 5%; 
}

.history-container { 
    max-width: 800px; 
    margin: 0 auto; 
}

.history-list { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.history-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 15px 20px; 
    border-radius: 12px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: 0.3s;
}

.history-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    background: rgba(204, 255, 0, 0.05);
}

.h-date { 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    display: block; 
    margin-bottom: 5px; 
}

.h-type { 
    font-weight: bold; 
    font-size: 1.1rem; 
}

.h-weight { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.h-status {
    background: rgba(204,255,0,0.1); 
    color: var(--primary);
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.7rem; 
    font-family: var(--font-mono);
}

.timeline-meta {
    display: flex; 
    justify-content: space-between;
    border-bottom: 1px dashed var(--border); 
    padding-bottom: 1rem; 
    margin-bottom: 1.5rem;
}

.meta-item small { 
    color: var(--text-muted); 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
}

.meta-item h4 { 
    font-size: 1.2rem; 
}

.timeline-container { 
    position: relative; 
    padding-left: 30px; 
}

.timeline-container::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 7px;
    width: 2px; 
    height: 100%; 
    background: #333;
}

.timeline-step {
    position: relative; 
    margin-bottom: 30px;
    animation: slideInRight 0.5s ease forwards; 
    opacity: 0;
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.3s; }
.timeline-step:nth-child(3) { animation-delay: 0.5s; }
.timeline-step:nth-child(4) { animation-delay: 0.7s; }

.tl-dot {
    position: absolute; 
    left: -27px; 
    top: 0;
    width: 16px; 
    height: 16px; 
    background: #000;
    border: 2px solid var(--text-muted); 
    border-radius: 50%;
    z-index: 2; 
    transition: 0.3s;
}

.timeline-step.active .tl-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.tl-date { 
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
    color: var(--primary); 
    margin-bottom: 5px; 
    display: block; 
}

.tl-content {
    background: #1a1a1a; 
    padding: 15px; 
    border-radius: 8px;
    border: 1px solid var(--border);
}

.tl-title { 
    font-weight: bold; 
    margin-bottom: 5px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.tl-desc { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    line-height: 1.4; 
}

.close-timeline { 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 1.5rem; 
}

.gamification { 
    padding: 0 5% 5rem 5%; 
}

.game-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.leaderboard-list { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.leaderboard-item {
    display: flex; 
    align-items: center; 
    gap: 15px;
    padding: 10px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 8px;
    font-family: var(--font-mono); 
    font-size: 0.9rem;
}

.rank { 
    width: 30px; 
    font-weight: bold; 
    color: var(--primary); 
    text-align: center; 
}

.lb-avatar { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
}

.lb-info { 
    flex-grow: 1; 
}

.lb-score { 
    font-weight: bold; 
    color: #fff; 
}

.profile-header { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 1rem; 
}

.profile-avatar { 
    position: relative; 
}

.profile-avatar img { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 2px solid var(--primary); 
}

.level-badge {
    position: absolute; 
    bottom: 0; 
    right: 0;
    background: var(--primary); 
    color: #000; 
    font-weight: bold;
    font-size: 0.7rem; 
    padding: 2px 6px; 
    border-radius: 4px;
}

.profile-meta { 
    flex-grow: 1; 
}

.xp-bar-container { 
    width: 100%; 
    height: 6px; 
    background: #333; 
    border-radius: 3px; 
    margin-bottom: 5px; 
    position: relative; 
    overflow: hidden; 
}

.xp-bar-fill { 
    height: 100%; 
    background: var(--primary); 
    width: 0%; 
    transition: width 0.5s ease; 
}

.profile-meta small { 
    color: var(--text-muted); 
    font-size: 0.7rem; 
    font-family: var(--font-mono); 
}

.badges-section h4 { 
    color: var(--text-muted); 
    margin-bottom: 15px; 
    font-size: 0.8rem; 
}

.badges-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
}

.badge-item {
    background: #1a1a1a; 
    padding: 10px; 
    border-radius: 8px; 
    text-align: center;
    border: 1px solid var(--border); 
    transition: 0.3s; 
    opacity: 0.5; 
    filter: grayscale(100%);
}

.badge-item.unlocked { 
    opacity: 1; 
    filter: grayscale(0%); 
    border-color: var(--primary); 
    box-shadow: 0 0 10px rgba(204,255,0,0.1); 
}

body.overdrive-mode .badge-item.unlocked { 
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.1); 
}

.badge-icon { 
    font-size: 1.5rem; 
    margin-bottom: 5px; 
    display: block; 
}

.impact { 
    padding: 5rem 5%; 
    text-align: center; 
    border-top: 1px solid var(--border); 
}

.clean-o-meter { 
    display: flex; 
    justify-content: center; 
    gap: 3rem; 
    margin-top: 3rem; 
    flex-wrap: wrap; 
}

.stat-box .big-num { 
    font-size: 4rem; 
    font-family: var(--font-heading); 
    color: var(--primary); 
    display: block; 
}

.stat-box .label { 
    font-family: var(--font-mono); 
    letter-spacing: 2px; 
    color: var(--text-muted); 
}

footer { 
    padding: 3rem 5%; 
    border-top: 1px solid var(--border); 
    font-family: var(--font-mono); 
    color: var(--text-muted); 
    font-size: 0.8rem; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(15px);
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
}

.modal-card {
    background: #111; 
    border: 1px solid var(--border);
    width: 90%; 
    max-width: 500px; 
    padding: 2rem; 
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8); 
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 1rem; 
}

.modal-header h3 { 
    color: var(--primary); 
    font-size: 1.2rem; 
}

.close-modal, .back-modal { 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 1.5rem; 
}

.manifest-grid { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 2rem; 
}

.manifest-img { 
    width: 100px; 
    height: 100px; 
    background: #222; 
    border-radius: 8px; 
    display: grid; 
    place-items: center; 
    font-size: 0.6rem; 
    text-align: center; 
    border: 1px dashed var(--text-muted); 
    color: var(--text-muted); 
}

.manifest-details { 
    flex-grow: 1; 
}

.input-group { 
    margin-bottom: 1rem; 
}

.input-group label { 
    display: block; 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    margin-bottom: 5px; 
}

.input-group input, .input-group select { 
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid var(--border); 
    color: #fff; 
    padding: 5px 0; 
    font-family: var(--font-body); 
    font-size: 1rem; 
}

.input-group select option { 
    background: #111; 
    color: #fff; 
}

.weight-control { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.weight-control button { 
    width: 30px; 
    height: 30px; 
    background: var(--glass); 
    color: var(--primary); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
}

.weight-control input { 
    text-align: center; 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--primary); 
    border-bottom: none; 
}

.total-value { 
    margin-top: 1rem; 
    border-top: 1px dashed var(--border); 
    padding-top: 1rem; 
    text-align: right; 
}

.total-value h2 { 
    font-size: 2rem; 
    color: var(--primary); 
    text-shadow: 0 0 10px rgba(204,255,0,0.3); 
}

body.overdrive-mode .total-value h2 { 
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.3); 
}

.full-width { 
    width: 100%; 
    justify-content: center; 
    margin-top: 1rem; 
}

.logistic-option {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 15px; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    margin-bottom: 1rem; 
    cursor: pointer; 
    transition: 0.3s;
}

.logistic-option:hover, .logistic-option.selected { 
    border-color: var(--primary); 
    background: rgba(204,255,0,0.05); 
}

body.overdrive-mode .logistic-option:hover, body.overdrive-mode .logistic-option.selected { 
    background: rgba(255, 0, 60, 0.05); 
}

.opt-radio { 
    margin-left: auto; 
    color: var(--primary); 
    font-weight: bold; 
}

.fee { 
    font-size: 0.7rem; 
    font-family: var(--font-mono); 
    display: block; 
    margin-top: 5px; 
    color: #ff5555; 
}

.fee.highlight { 
    color: var(--primary); 
}

.contract-loader { 
    text-align: center; 
    width: 100%; 
    max-width: 400px; 
}

.terminal-text {
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
    color: var(--primary);
    text-align: left; 
    background: #000; 
    padding: 1rem; 
    border-radius: 4px;
    border: 1px solid var(--primary-dim); 
    margin-bottom: 1.5rem; 
    height: 100px; 
    overflow: hidden;
}

.loading-bar-container { 
    width: 100%; 
    height: 4px; 
    background: #333; 
    margin-bottom: 1rem; 
}

.loading-bar-fill { 
    width: 0%; 
    height: 100%; 
    background: var(--primary); 
    animation: loadBar 3s ease-in-out forwards; 
}

.blink { 
    animation: blink 0.5s infinite; 
    font-size: 1rem; 
    letter-spacing: 2px; 
}
#wallet-modal-overlay { 
    z-index: 9999; 
}

.wallet-card {
    background: #0f0f0f; 
    border: 1px solid var(--border); 
    width: 350px;
    border-radius: 20px; 
    padding: 0; 
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(204, 255, 0, 0.1);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.overdrive-mode .wallet-card { 
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(255, 0, 60, 0.1); 
}

.wallet-header { 
    background: #1a1a1a; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border); 
}

.wallet-status { 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.close-wallet { 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 1.5rem; 
    cursor: pointer; 
}

.wallet-body { 
    padding: 25px; 
}

.wallet-user { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.wallet-avatar { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid var(--primary); 
}

.wallet-address { 
    font-family: var(--font-mono); 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    background: rgba(255,255,255,0.05); 
    padding: 4px 8px; 
    border-radius: 4px; 
    cursor: pointer; 
}

.wallet-balance-card { 
    background: linear-gradient(135deg, rgba(204,255,0,0.1), transparent); 
    border: 1px solid var(--primary-dim); 
    padding: 20px; 
    border-radius: 12px; 
    text-align: center; 
    margin-bottom: 25px; 
}

body.overdrive-mode .wallet-balance-card { 
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.1), transparent); 
}

.wallet-balance-card h1 { 
    font-size: 2rem; 
    color: #fff; 
    margin: 10px 0; 
    font-family: var(--font-body); 
}

.wallet-crypto-val { 
    font-size: 0.8rem; 
    color: var(--primary); 
    font-family: var(--font-mono); 
}

.wallet-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.wallet-actions .full-width { 
    grid-column: span 2; 
    margin-top: 5px; 
}

#live-feed-container { 
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    z-index: 8000; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    pointer-events: none; 
}

.feed-toast {
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--primary); 
    padding: 12px 20px;
    border-radius: 4px; 
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), fadeOut 0.5s ease 4.5s forwards;
    max-width: 300px;
}

.feed-toast strong { 
    color: var(--primary); 
}

.mission-section {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background: var(--bg-dark); 
    z-index: 100;
    display: flex; 
    flex-direction: column;
}

.mission-header { 
    padding: 20px 5%; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #000; 
}

.mission-status { 
    color: var(--primary); 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.pulse-dot { 
    width: 10px; 
    height: 10px; 
    background: var(--primary); 
    border-radius: 50%; 
    animation: pulse 1s infinite; 
}

.mission-grid { 
    display: flex; 
    height: 100%; 
}

.mission-map-container { 
    flex: 2; 
    position: relative; 
    background: #080808; 
    overflow: hidden; 
}

.mission-map-grid {
    width: 200%; 
    height: 200%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px; 
    opacity: 0.2;
}

.mission-user {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 20px; 
    height: 20px; 
    background: #fff; 
    border: 4px solid var(--primary); 
    border-radius: 50%; 
    z-index: 10;
}

.mission-user::after { 
    content:''; 
    position: absolute; 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    border: 1px solid var(--primary); 
    opacity: 0.3; 
    animation: pulse 2s infinite; 
}

.mission-driver {
    position: absolute; 
    top: 10%; 
    left: 10%;
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent; 
    border-right: 10px solid transparent; 
    border-bottom: 20px solid var(--primary);
    filter: drop-shadow(0 0 10px var(--primary)); 
    transition: all 1s linear; 
    z-index: 11;
}

.driver-tooltip { 
    position: absolute; 
    top: -30px; 
    left: -50px; 
    width: 120px; 
    background: #000; 
    color: white; 
    padding: 4px; 
    font-size: 0.7rem; 
    text-align: center; 
    border: 1px solid var(--primary); 
}

.mission-panel { 
    flex: 1; 
    background: var(--bg-card); 
    border-left: 1px solid var(--border); 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.panel-box { 
    background: rgba(255,255,255,0.03); 
    padding: 1.5rem; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
}

.countdown-box h1 { 
    font-size: 3rem; 
    color: var(--primary); 
    font-family: var(--font-mono); 
}

.driver-profile { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    margin-bottom: 1rem; 
}

.driver-profile img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid var(--primary); 
}

.driver-actions { 
    display: flex; 
    gap: 10px; 
}

.btn-icon { 
    flex: 1; 
    padding: 10px; 
    background: transparent; 
    border: 1px solid var(--border); 
    color: #fff; 
    border-radius: 8px; 
    transition: 0.3s; 
}

.btn-icon:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
}

.qr-code { 
    width: 150px; 
    height: 150px; 
    background: #fff; 
    margin: 10px auto; 
    padding: 10px; 
}

.qr-pattern { 
    width: 100%; 
    height: 100%; 
    background: repeating-linear-gradient(45deg, #000 0, #000 10px, #fff 10px, #fff 20px); 
}

.chat-widget {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 320px; 
    height: 400px;
    background: #151515; 
    border: 1px solid var(--primary-dim); 
    border-radius: 12px;
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 200; 
    overflow: hidden; 
    animation: slideUp 0.3s ease-out;
}

.chat-header { 
    background: #0a0a0a; 
    padding: 12px 15px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.chat-body { 
    flex: 1; 
    padding: 15px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.msg { 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    max-width: 80%; 
    line-height: 1.4; 
}

.msg.driver { 
    background: #222; 
    align-self: flex-start; 
    color: #ddd; 
    border: 1px solid var(--border); 
}

.msg.user { 
    background: rgba(204, 255, 0, 0.1); 
    align-self: flex-end; 
    color: var(--primary); 
    border: 1px solid var(--primary-dim); 
}

.chat-input-area { 
    padding: 10px; 
    border-top: 1px solid var(--border); 
    display: flex; 
    gap: 5px; 
    background: #0a0a0a; 
}

.chat-input-area input { 
    flex: 1; 
    background: #222; 
    border: none; 
    padding: 8px; 
    color: #fff; 
    border-radius: 4px; 
    outline: none; 
}

.chat-input-area button { 
    background: var(--primary); 
    border: none; 
    padding: 0 15px; 
    font-weight: bold; 
    border-radius: 4px; 
    cursor: pointer; 
    color: #000; 
}

.call-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(20px);
    z-index: 300; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    animation: fadeIn 0.3s ease-out;
}

.call-box { 
    text-align: center; 
    width: 100%; 
    max-width: 350px; 
}

.caller-profile h2 { 
    font-size: 1.8rem; 
    margin-top: 1.5rem; 
    color: #fff; 
}

.caller-profile p { 
    color: var(--primary); 
    font-family: var(--font-mono); 
    animation: blink 1.5s infinite; 
}

.avatar-container { 
    position: relative; 
    width: 100px; 
    height: 100px; 
    margin: 0 auto; 
}

.avatar-container img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    border: 3px solid var(--primary); 
    position: relative; 
    z-index: 2; 
}

.pulse-ring { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    border: 1px solid var(--primary); 
    z-index: 1; 
    animation: pulseWave 2s infinite linear; 
}

.call-controls { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 2rem; 
}

.btn-control { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    border: none; 
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
    font-size: 1.2rem; 
    cursor: pointer; 
    transition: 0.3s; 
}

.btn-control.end-call { 
    background: #ff3333; 
    transform: rotate(135deg); 
}

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes loadBar { 0% { width: 0; } 100% { width: 100%; } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.2); } }
@keyframes scanMove { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes blink { 50% { opacity: 0.5; } }
@keyframes pulseWave { 0% { width: 100%; height: 100%; opacity: 1; } 100% { width: 250%; height: 250%; opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(10px); } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; height: auto; }
    .game-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column; justify-content: center; text-align: center; padding-top: 100px; height: auto; }
    .hero-visual { width: 100%; margin-top: 50px; height: 300px; }
    .hero-title { font-size: 3rem; }
    .mission-grid { flex-direction: column-reverse; }
    .mission-map-container { height: 40vh; }
    .chat-widget { width: 90%; right: 5%; bottom: 20px; }
    .history-section { padding: 3rem 5%; }
}
.hidden { display: none !important; }

.hamburger-menu {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10002;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-menu:hover .bar {
    background-color: var(--primary);
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--primary);
}
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: var(--primary);
}

@media (max-width: 1024px) {
.cursor-dot, 
    .cursor-outline {
        display: none !important;
    }

    
    * {
        cursor: auto !important;
    }

    nav { 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        height: 80px !important; 
        padding: 10px 20px !important; 
        background: rgba(5, 5, 5, 0.9) !important;
    }
    
    .nav-container {
        position: fixed;
        top: 0; 
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98); 
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 100px 30px 40px 30px; 
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9998; 
        box-shadow: -10px 0 50px rgba(0,0,0,0.9);
        overflow-y: auto;
    }
    
    .nav-container.active { right: 0; }

    .nav-menu {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 40px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: center;
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-auth a, 
    .nav-auth button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center;
        height: 50px !important;
    }

    #btn-overdrive {
        border-radius: 8px !important;
        width: 100% !important;
        aspect-ratio: auto !important;
        background: rgba(255, 253, 253, 0.05);
        border: 1px solid var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #btn-overdrive::after {
        content: " SYSTEM OVERDRIVE";
        font-family: var(--font-mono);
        font-size: 0.9rem;
        font-weight: bold;
        margin-left: 10px;
    }

    .desktop-only { display: none !important; }
    .mobile-only { 
        display: block; 
        color: #000 !important; 
        background: var(--primary);
        font-weight: bold; 
        padding: 12px; 
        border-radius: 4px;
        text-align: center;
        margin-bottom: 20px;
        text-decoration: none;
    }

    .hero { flex-direction: column; height: auto; padding-top: 120px; text-align: center; }
    .hero-visual { width: 100%; height: 350px; margin-top: 30px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
    .bento-grid { grid-template-columns: 1fr; height: auto; }
    .game-grid { grid-template-columns: 1fr; }
    .badges-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
   
    .mission-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: rgba(0,0,0,0.9); 
        z-index: 50;
    }

    .mission-header .logo {
        font-size: 1.2rem; 
        white-space: nowrap; 
        display: flex;
        align-items: baseline;
    }
    
    .mission-header .mission-status {
        font-size: 0.7rem; 
        margin-left: auto; 
        margin-right: 15px;
        white-space: nowrap;
    }

    #mission-hamburger-btn {
        display: flex;
        transform: scale(0.8); 
    }

    .mission-grid { 
        flex-direction: column;
        height: 100vh;
        padding-top: 60px; 
        position: relative;
        overflow: hidden; 
    }
    
    .mission-map-container { 
        height: 50vh; 
        width: 100%;
        flex-shrink: 0;
    }

    .mission-panel { 
        flex: 1; 
        width: 100%;
        background: #0a0a0a;
        border-top: 1px solid var(--primary);
        border-radius: 25px 25px 0 0; 
        box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
        display: flex;
        flex-direction: column;
        position: fixed; 
        bottom: 0; 
        left: 0;
        height: 55vh; 
        z-index: 100;
        backdrop-filter: blur(10px);
    }
    
    .panel-handle-container {
        width: 100%;
        padding: 15px 0 5px 0;
        display: flex;
        justify-content: center;
        flex-shrink: 0; 
        cursor: grab;
    }
    .panel-handle {
        width: 50px;
        height: 4px;
        background: #333;
        border-radius: 10px;
    }

    .panel-scroll-content {
        padding: 10px 25px 80px 25px; 
        overflow-y: auto; 
        height: 100%;
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    .panel-scroll-content::-webkit-scrollbar { 
        display: none; 
    }

    .countdown-box h1 { font-size: 2.5rem; }
    .driver-profile { flex-direction: row; text-align: left; }
    .driver-actions { gap: 10px; }
    .btn-icon { padding: 12px; }
}

@media (max-width: 600px) {
    #timeline-modal.modal-card {
        width: 95%;          
        max-height: 85vh;    
        padding: 1.5rem;     
        display: flex;       
        flex-direction: column;
        overflow: hidden;    
    }

    #timeline-content.timeline-container {
        overflow-y: auto;    
        max-height: 60vh;    
        padding-right: 10px; 
        margin-top: 10px;
    }

    .timeline-meta {
        flex-direction: column; 
        gap: 15px;
        background: rgba(255, 255, 255, 0.03); 
        padding: 15px;
        border-radius: 8px;
        border: 1px solid var(--border);
    }

    .meta-item {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        border-bottom: 1px dashed rgba(255,255,255,0.1); 
        padding-bottom: 8px;
    }
    
    .meta-item:last-child { border-bottom: none; padding-bottom: 0; }

    .meta-item h4 {
        font-size: 1rem; 
        margin: 0;
    }
    
    .meta-item small {
        font-size: 0.75rem; 
        opacity: 0.7;
    }

    .timeline-step {
        margin-bottom: 20px;
        padding-left: 5px;
    }
    
    .tl-content {
        padding: 10px; 
    }
    
    .tl-title { font-size: 0.9rem; }
    .tl-desc { font-size: 0.75rem; }
}

nav a, .nav-menu a, .nav-auth a {
    text-decoration: none !important;
    color: var(--text-main) !important; 
}
nav a:hover, .nav-menu a:hover {
    color: var(--primary) !important; 
}

@media (min-width: 1025px) {
    .hamburger-menu {
        display: none !important;
    }
    .nav-container {
        position: relative !important;
        right: auto !important;
        width: auto !important;
        height: 100% !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        display: flex !important; 
        box-shadow: none !important;
    }
}

@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex !important; 
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 10002;
    }
    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: 0.4s;
    }
    
    .hamburger-menu.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--primary); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background: var(--primary); }

    .nav-container {
        display: flex !important; 
        position: fixed !important;
        top: 0;
        right: -100% !important; 
        width: 80% !important;
        height: 100vh !important;
        background: #050505 !important; 
        border-left: 1px solid var(--primary);
        flex-direction: column !important;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px !important;
        transition: 0.4s ease-in-out;
        z-index: 9999;
        box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    }
  
    .nav-container.active {
        right: 0 !important;
    }
   
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        position: static !important;
        transform: none !important;
    }
    .nav-menu a {
        font-size: 1.2rem;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-auth {
        flex-direction: column !important;
        width: 100%;
        padding: 0 20px;
        margin-top: 20px;
    }
    .nav-auth button, .nav-auth a {
        width: 100% !important;
        margin-bottom: 15px;
        justify-content: center;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; color: #000 !important; background: var(--primary); font-weight: bold; border-radius: 4px; margin-bottom: 20px;}
}

@media (max-width: 600px) {
    #timeline-modal.modal-card {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 85vh !important; 
        padding: 20px !important;
        display: flex;
        flex-direction: column;
    }

    .timeline-meta {
        display: flex !important;
        flex-direction: column !important; 
        gap: 15px;
        background: rgba(255,255,255,0.03);
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .meta-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed rgba(255,255,255,0.1);
        padding-bottom: 8px;
        width: 100%;
    }
    .meta-item:last-child { border: none; padding: 0; }
    
    .meta-item h4 { font-size: 1rem !important; margin: 0; text-align: right; }
    .meta-item small { font-size: 0.8rem !important; opacity: 0.7; }

    #timeline-content.timeline-container {
        overflow-y: auto !important; 
        padding-right: 5px;
        margin-top: 10px;
        flex-grow: 1; 
    }

    .timeline-step {
        margin-bottom: 25px;
    }
    .tl-content {
        padding: 12px;
    }
    .tl-title { font-size: 0.9rem; }
    .tl-desc { font-size: 0.8rem; line-height: 1.4; }
}

@media (max-width: 900px) {
    .hero-actions .btn-primary {
        width: 100%;             
        justify-content: center; 
        text-align: center;
    }
    
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.hamburger-menu .bar {
    height: 4px !important;       
    background-color: var(--primary) !important; 
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(204, 255, 0, 0.5); 
}

.hamburger-menu {
    height: 24px; 
}

.mobile-close-btn {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        border: 2px solid var(--primary); 
        color: var(--primary);
        font-size: 2rem;
        line-height: 0.8; 
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        z-index: 10005;
        transition: 0.3s;
    }

    .mobile-close-btn:hover {
        background: var(--primary);
        color: #000;
        box-shadow: 0 0 15px var(--primary);
    }
    
    .mobile-only:hover {
        background-color: #b4e83b !important; 
        color: #000000 !important;            
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); 
        border: 1px solid #fff;
    }

    .mobile-only { 
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        height: 50px !important;
        margin-bottom: 15px !important;
        
        background: var(--primary); 
        color: #000 !important;
        font-weight: bold; 
        font-family: var(--font-mono);
        border-radius: 8px;
        border: none;
        text-transform: uppercase;
        box-shadow: none; 
        transition: 0.3s;
    }

    .mobile-only:hover, .mobile-only:active {
        background-color: var(--primary) !important; 
        color: #000 !important;            
        transform: translateY(-2px);       
        box-shadow: 0 0 15px var(--primary); 
        border: none;
    }

   #live-feed-container {
        bottom: auto !important;     
        left: auto !important;       
        transform: none !important;  
        top: 90px !important;        
        left: 0 !important;         
        width: auto !important;      
        max-width: 70%;              
        display: flex;
        flex-direction: column;
        align-items: flex-end;       
        padding-right: 15px;         
        pointer-events: none;        
        z-index: 8000;               
    }

    .feed-toast {
        max-width: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 0.9); 
        border-left: none;
        border-bottom: 3px solid var(--primary); 
    }

    .mission-grid { 
        display: block !important; 
        width: 100%;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .mission-map-container { 
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important; 
        z-index: 1; 
    }

    .map-overlay-gradient {
        height: 50% !important; 
        background: linear-gradient(to top, #000 10%, transparent) !important;
    }

    .mission-user {
        top: 40% !important; 
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .mission-panel { 
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 55vh; 
        background: rgba(10, 10, 10, 0.95); 
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--primary);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
        z-index: 101; 
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
    }

    .panel-handle-container {
        padding: 15px 0;
    }

    .panel-scroll-content {
        overflow-y: auto;
        padding: 0 25px 30px 25px;
    }
    
    .back-core-mobile {
        display: block !important;
        background: var(--primary);
        color: #000;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        margin-top: 10px;
        border-radius: 50px;
        font-family: var(--font-mono);
        font-weight: 700;
        z-index: 10003;
        position: relative;
    }

    .wallet-mobile {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 10px;
        padding: 10px 15px;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--primary);
        border-radius: 50px;
        font-family: var(--font-mono);
        z-index: 10003;
        position: relative;
    }

    nav > .back-core-mobile,
    nav > .wallet-mobile {
        order: 2; 
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto !important;
        padding: 15px 20px;
    }

    .hamburger-menu {
        align-self: flex-end;
        margin-top: 10px;
        order: 3;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cursor-dot, 
    .cursor-outline {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }

    .bento-card:hover {
        transform: none;
    }
}


#gesture-hud {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
    transition: 0.3s;
}

#gesture-hud.active {
    background: rgba(204, 255, 0, 0.1);
    box-shadow: 0 0 25px var(--primary);
}

.hud-icon {
    font-size: 1.5rem;
    animation: pulse 1s infinite;
}

.hud-text {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
}

.hud-scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    animation: scanTopDown 1.5s infinite linear;
    opacity: 0.5;
}

@keyframes scanTopDown {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}


#voice-hud {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.voice-wave .bar {
    width: 4px;
    height: 100%;
    background: var(--primary);
    animation: wave 0.5s infinite ease-in-out;
}

.voice-wave .bar:nth-child(1) { animation-delay: 0.1s; height: 10px; }
.voice-wave .bar:nth-child(2) { animation-delay: 0.2s; height: 15px; }
.voice-wave .bar:nth-child(3) { animation-delay: 0.3s; height: 20px; }
.voice-wave .bar:nth-child(4) { animation-delay: 0.2s; height: 15px; }
.voice-wave .bar:nth-child(5) { animation-delay: 0.1s; height: 10px; }

.voice-text {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.voice-cmd-log {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-left: 1px solid #555;
    padding-left: 10px;
    min-width: 80px;
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}