/* Hyper-Reality XR Styles */

:root {
    /* Neon Cyberpunk Palette */
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-lime: #00ff00;
    --neon-yellow: #ffff00;
    --neon-pink: #ff1493;
    --dark-bg: #0a0a0f;
    --dark-panel: rgba(20, 20, 35, 0.85);
    --dark-panel-solid: #141423;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glow-cyan: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    --glow-magenta: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta), 0 0 30px var(--neon-magenta);
    --glow-lime: 0 0 10px var(--neon-lime), 0 0 20px var(--neon-lime), 0 0 30px var(--neon-lime);
}

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

body {
    font-family: 'Courier New', 'Monaco', monospace;
    overflow: hidden;
    background: var(--dark-bg);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

a-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* HUD Container */
.hud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    font-size: 14px;
}

.hud-container > * {
    pointer-events: auto;
}

/* Status Bar (Top) */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 12px;
    z-index: 1001;
}

.status-left, .status-right {
    display: flex;
    gap: 15px;
}

.status-center {
    flex: 1;
    text-align: center;
}

.status-item {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    font-weight: bold;
}

/* Panels (Left & Right) - More dense, overlapping */
.panel {
    position: fixed;
    top: 40px;
    width: 320px;
    max-width: 90vw;
    max-height: calc(100vh - 40px);
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-magenta);
    box-shadow: var(--glow-magenta);
    padding: 15px;
    overflow-y: auto;
    z-index: 1002;
}

.panel-left {
    left: 0;
    border-right: 2px solid var(--neon-magenta);
}

.panel-right {
    right: 0;
    border-left: 2px solid var(--neon-magenta);
}

.panel-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--neon-magenta);
    padding-bottom: 8px;
}

.panel-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--neon-magenta);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mission List */
.mission-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mission-card {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--neon-magenta);
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
    transition: left 0.5s;
}

.mission-card:hover::before,
.mission-card.active::before {
    left: 100%;
}

.mission-card.active {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px var(--neon-magenta);
    transform: scale(1.02);
}

.mission-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-magenta);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mission-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.mission-reward {
    font-size: 11px;
    color: var(--neon-lime);
    text-shadow: 0 0 5px var(--neon-lime);
}

.mission-progress {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.mission-progress-fill {
    height: 100%;
    background: var(--neon-lime);
    box-shadow: 0 0 10px var(--neon-lime);
    transition: width 0.3s ease;
}

/* Notification List */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease;
}

.notification-item:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.notification-time {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Navigation HUD (Bottom Center) */
.navigation-hud {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1003;
}

.next-action {
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-lime);
    box-shadow: var(--glow-lime);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.action-arrow {
    font-size: 24px;
    color: var(--neon-lime);
    text-shadow: 0 0 10px var(--neon-lime);
}

.action-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-lime);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compass {
    width: 60px;
    height: 60px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.compass-needle {
    font-size: 20px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Gamification HUD */
.gamification-hud {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1004;
}

.xp-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-yellow);
    padding: 8px 15px;
    border-radius: 6px;
}

.xp-label {
    font-size: 12px;
    font-weight: bold;
    color: var(--neon-yellow);
    text-transform: uppercase;
}

.xp-bar {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--neon-yellow);
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-lime));
    box-shadow: 0 0 10px var(--neon-yellow);
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.level-badge {
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px var(--neon-pink);
}

.level-label {
    font-size: 10px;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.score-display {
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    padding: 8px 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 10px;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.score-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Ad Container */
.ad-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.ad-banner {
    background: var(--dark-panel-solid);
    border: 3px solid var(--neon-yellow);
    padding: 18px 30px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    box-shadow: 0 0 25px var(--neon-yellow), 0 0 50px rgba(255, 255, 0, 0.3);
    max-width: 320px;
    min-width: 280px;
    backdrop-filter: blur(5px);
}

.ad-logo {
    font-size: 2.5em;
    margin-bottom: 8px;
    text-align: center;
    filter: drop-shadow(0 0 5px currentColor);
}

.ad-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
}

.ad-text {
    font-size: 12px;
    text-align: center;
    opacity: 0.9;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--dark-panel-solid);
    border: 3px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--glow-cyan);
    animation: scaleIn 0.3s ease;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.modal-message {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-button {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.modal-button:hover {
    background: var(--neon-lime);
    box-shadow: 0 0 20px var(--neon-lime);
    transform: scale(1.05);
}

/* Settings Menu */
.settings-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    animation: fadeIn 0.3s ease;
}

.settings-menu.hidden {
    display: none;
}

.settings-content {
    background: var(--dark-panel-solid);
    border: 3px solid var(--neon-magenta);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--glow-magenta);
    animation: scaleIn 0.3s ease;
}

.settings-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-magenta);
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-magenta);
}

.settings-section {
    margin-bottom: 20px;
}

.settings-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    cursor: pointer;
}

.settings-toggle {
    width: 50px;
    height: 26px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--neon-cyan);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-toggle:checked {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.settings-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.settings-toggle:checked::after {
    left: 26px;
}

.settings-slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    margin-top: 10px;
}

.settings-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.settings-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.settings-button {
    width: 100%;
    background: var(--neon-magenta);
    color: var(--dark-bg);
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--neon-magenta);
}

.settings-button:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
    transform: scale(1.02);
}

/* Pause Button */
.pause-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1005;
    box-shadow: 0 0 15px var(--neon-cyan);
    transition: all 0.3s ease;
}

.pause-button:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Animations */
@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
        transform: translate(0);
    }
    20% {
        text-shadow: -2px 0 5px var(--neon-magenta), 2px 0 10px var(--neon-cyan);
        transform: translate(2px, 0);
    }
    40% {
        text-shadow: 2px 0 5px var(--neon-cyan), -2px 0 10px var(--neon-magenta);
        transform: translate(-2px, 0);
    }
    60% {
        text-shadow: 0 0 5px var(--neon-lime), 0 0 10px var(--neon-lime);
        transform: translate(0);
    }
    80% {
        text-shadow: -1px 0 5px var(--neon-magenta), 1px 0 10px var(--neon-cyan);
        transform: translate(1px, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.glitch-text {
    animation: glitch 3s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .panel {
        width: 200px;
        font-size: 12px;
    }
    
    .panel-title {
        font-size: 14px;
    }
    
    .mission-title {
        font-size: 12px;
    }
    
    .mission-description {
        font-size: 11px;
    }
    
    .gamification-hud {
        flex-wrap: wrap;
        gap: 10px;
        top: 45px;
    }
    
    .xp-container {
        padding: 6px 10px;
    }
    
    .xp-bar {
        width: 100px;
    }
    
    .status-bar {
        font-size: 10px;
        padding: 0 10px;
    }
    
    .status-item {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .panel {
        width: 150px;
        padding: 10px;
    }
    
    .panel-left {
        border-right: 1px solid var(--neon-magenta);
    }
    
    .panel-right {
        border-left: 1px solid var(--neon-magenta);
    }
    
    .gamification-hud {
        flex-direction: column;
        align-items: flex-start;
        left: 10px;
        transform: none;
    }
    
    .navigation-hud {
        bottom: 60px;
    }
    
    .next-action {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Minimal UI Mode */
.hud-container.minimal-ui .panel {
    opacity: 0.3;
    pointer-events: none;
}

.hud-container.minimal-ui .gamification-hud {
    opacity: 0.5;
}

.hud-container.minimal-ui .ad-container {
    display: none;
}

/* Low FX Mode */
.hud-container.low-fx * {
    animation: none !important;
}

.hud-container.low-fx .glitch-text {
    animation: none;
}

.hud-container.low-fx .next-action {
    animation: none;
}

/* Mode Indicator */
.mode-indicator {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reputation & Streak Display */
.reputation-display, .streak-display {
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-pink);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px var(--neon-pink);
}

.reputation-label, .streak-label {
    font-size: 9px;
    color: var(--neon-pink);
    text-transform: uppercase;
}

.reputation-value, .streak-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* Combo Display */
.combo-display {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    pointer-events: none;
}

.combo-display:not(.hidden) {
    animation: comboPulse 0.5s ease;
}

.combo-text {
    font-size: 32px;
    font-weight: bold;
    color: var(--neon-yellow);
    text-shadow: 0 0 20px var(--neon-yellow), 0 0 40px var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes comboPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.3); }
}

/* XP Burst Animations */
.xp-burst-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1600;
}

.xp-burst {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-lime);
    text-shadow: 0 0 15px var(--neon-lime);
    animation: xpBurst 1s ease-out forwards;
    pointer-events: none;
}

@keyframes xpBurst {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Context Cards */
.context-cards-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.context-card {
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-magenta);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 20px var(--neon-magenta);
    animation: cardSlideIn 0.3s ease;
    transition: all 0.3s ease;
}

.context-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--neon-magenta);
}

.context-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.context-card-icon {
    font-size: 24px;
}

.context-card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--neon-magenta);
    text-transform: uppercase;
}

.context-card-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.context-card-cta {
    background: var(--neon-magenta);
    color: var(--dark-bg);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.context-card-cta:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.context-card-reward {
    margin-top: 8px;
    font-size: 11px;
    color: var(--neon-lime);
    text-shadow: 0 0 5px var(--neon-lime);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Identity Panel */
.identity-panel {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 1200;
}

.identity-toggle {
    width: 50px;
    height: 50px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--neon-cyan);
    transition: all 0.3s ease;
}

.identity-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

.identity-content {
    position: absolute;
    top: 60px;
    right: 0;
    width: 250px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 20px var(--neon-cyan);
    animation: slideDown 0.3s ease;
}

.identity-content.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.identity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--neon-cyan);
}

.identity-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.identity-username {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.identity-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.identity-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.identity-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.identity-tag {
    padding: 4px 8px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    font-size: 10px;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

/* Social Feed */
.social-feed {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--neon-cyan);
}

.social-comment {
    background: rgba(0, 255, 255, 0.1);
    border-left: 2px solid var(--neon-cyan);
    padding: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-primary);
    animation: commentSlide 0.3s ease;
}

@keyframes commentSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-comment-user {
    font-weight: bold;
    color: var(--neon-cyan);
}

/* Nearby Users */
.nearby-users {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1050;
}

.nearby-user-bubble {
    position: absolute;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-lime);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--neon-lime);
    pointer-events: none;
    box-shadow: 0 0 15px var(--neon-lime);
    animation: bubbleFloat 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mode Switcher */
.mode-switcher {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-yellow);
    border-radius: 50%;
    color: var(--neon-yellow);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1006;
    box-shadow: 0 0 15px var(--neon-yellow);
    transition: all 0.3s ease;
}

.mode-switcher:hover {
    background: rgba(255, 255, 0, 0.2);
    transform: scale(1.1) rotate(90deg);
}

/* Overload Toggle */
.overload-toggle {
    position: fixed;
    bottom: 140px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--dark-panel);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-magenta);
    border-radius: 50%;
    color: var(--neon-magenta);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1006;
    box-shadow: 0 0 15px var(--neon-magenta);
    transition: all 0.3s ease;
}

.overload-toggle:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: scale(1.1);
}

.overload-toggle.active {
    background: var(--neon-magenta);
    color: var(--dark-bg);
    animation: overloadPulse 1s infinite;
}

@keyframes overloadPulse {
    0%, 100% { box-shadow: 0 0 15px var(--neon-magenta); }
    50% { box-shadow: 0 0 30px var(--neon-magenta), 0 0 50px var(--neon-magenta); }
}

/* Stabilize Button */
.stabilize-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2002;
    background: var(--neon-lime);
    color: var(--dark-bg);
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 30px var(--neon-lime);
    animation: stabilizePulse 2s infinite;
}

.stabilize-button.hidden {
    display: none;
}

@keyframes stabilizePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Overload Mode Styles */
.hud-container.overload-mode {
    filter: brightness(1.2) contrast(1.3);
}

.hud-container.overload-mode .panel {
    animation: glitch 0.1s infinite;
    border-width: 3px;
}

.hud-container.overload-mode .context-card,
.hud-container.overload-mode .ad-banner {
    animation: cardGlitch 0.2s infinite;
}

.hud-container.overload-mode .status-bar {
    animation: statusGlitch 0.15s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes cardGlitch {
    0%, 100% { 
        transform: translate(0) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translate(-3px, 3px) rotate(1deg);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: translate(3px, -3px) rotate(-1deg);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: translate(-2px, -2px) rotate(0.5deg);
        filter: hue-rotate(270deg);
    }
}

@keyframes statusGlitch {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ad Billboards */
.ad-billboards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 900;
}

.ad-billboard {
    position: absolute;
    background: var(--dark-panel-solid);
    border: 3px solid var(--neon-yellow);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 25px var(--neon-yellow);
    animation: billboardFloat 4s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
}

@keyframes billboardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* WebXR AR Button */
.xr-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    min-width: 120px;
    height: 50px;
    padding: 0 15px;
    border-radius: 25px;
    background: var(--dark-panel);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-cyan-sm);
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.xr-button:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: var(--glow-cyan);
}

.xr-button:active {
    transform: scale(0.95);
}

/* AR Overlays (3D objects in world space) */
/* Note: AR overlays are A-Frame entities styled via A-Frame attributes */
/* These CSS rules are placeholders for future styling if needed */

/* Focus Reticle (Mobile) */
.focus-reticle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 998;
    display: none;
}

.focus-reticle.active {
    display: block;
}

.reticle-crosshair {
    position: relative;
    width: 100%;
    height: 100%;
}

.reticle-line {
    position: absolute;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.reticle-horizontal {
    width: 40px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reticle-vertical {
    width: 2px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reticle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--neon-cyan);
    animation: reticlePulse 2s infinite;
}

@keyframes reticlePulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@media (min-width: 769px) {
    .focus-reticle {
        display: none !important;
    }
}

