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

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 40, 40, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 60, 80, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #0a0f0f 0%, #1a2226 25%, #0f1922 50%, #1a2226 75%, #0a0f0f 100%);
    min-height: 100vh;
    color: #00ffff;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* ========== CORNER NOTIFICATION SYSTEM ========== */

/* Bounce in from right animation for reward notifications */
@keyframes bounceInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
        scale: 0.8;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
        scale: 1.1;
    }
    80% {
        transform: translateX(5px);
        scale: 0.95;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
        scale: 1;
    }
}

/* Slide out to right animation */
@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Enhanced kill reward popup styling */
.kill-reward-popup {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    transform: none !important;
    background: rgba(0, 255, 65, 0.9) !important;
    color: #000 !important;
    padding: 15px 25px !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    font-size: 18px !important;
    z-index: 1000 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    animation: bounceInRight 0.6s ease-out !important;
    pointer-events: none !important;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.4) !important;
    border: 2px solid rgba(0, 200, 50, 0.8) !important;
    font-family: 'Courier New', 'Arial', monospace !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    user-select: none !important;
    cursor: default !important;
}

/* Stack multiple notifications */
.kill-reward-popup:nth-child(n+2) {
    top: calc(20px + (80px * var(--notification-index, 1))) !important;
}

/* Glow effect for reward notifications */
.kill-reward-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 65, 0.6), 
        rgba(0, 200, 50, 0.4), 
        rgba(0, 255, 65, 0.6)
    );
    border-radius: 12px;
    z-index: -1;
    filter: blur(1px);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.6; }
    100% { opacity: 0.9; }
}

/* Player kill notifications (different style) */
.player-kill-notification {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    background: rgba(0, 170, 255, 0.9) !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    z-index: 1000 !important;
    animation: slideInRight 0.5s ease-out !important;
    pointer-events: none !important;
    font-family: 'Courier New', monospace !important;
}

/* Copy notification (temporary) */
.copy-notification {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    background: rgba(0, 255, 65, 0.9) !important;
    color: #000 !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    z-index: 10000 !important;
    animation: slideInRight 0.3s ease-out !important;
    font-family: 'Courier New', monospace !important;
}

/* ========== TOP STATUS BAR ========== */

/* Top Status Bar - Fixed positioning for connection status and logout */
#topStatusBar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    border-bottom-left-radius: 10px;
}

/* Connection Status Indicator */
.connection-status {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
    text-align: center;
}

.status-connected {
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.status-disconnected {
    color: #ff4444;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.status-error {
    color: #ffaa00;
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
    animation: pulse 1s infinite;
}

/* Top Logout Button - Prominent red button */
.top-logout-btn {
    background: rgba(255, 68, 68, 0.9);
    color: white;
    border: 1px solid #ff4444;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 3px;
    min-width: 70px;
}

.top-logout-btn:hover {
    background: rgba(255, 68, 68, 1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== MARKETPLACE STYLES ========== */

.skin-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    justify-content: center;
}

.apply-skin-btn, .sell-skin-btn {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #00ff41;
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    transition: all 0.3s;
}

.apply-skin-btn:hover, .sell-skin-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.sell-skin-btn {
    border-color: #ffaa00;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.sell-skin-btn:hover {
    background: rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.sell-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.sell-dialog {
    background: #0a0a2e;
    border: 2px solid #00ff41;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.sell-dialog h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #00ff41;
}

.skin-preview {
    text-align: center;
    margin-bottom: 20px;
}

.sell-skin-image {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #333;
    border-radius: 5px;
}

.sell-form label {
    display: block;
    margin-bottom: 5px;
    color: #00ff41;
    font-weight: bold;
}

.sell-form input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    color: #fff;
    font-family: 'Courier New', monospace;
    border-radius: 5px;
    margin-bottom: 5px;
}

.sell-form small {
    color: #888;
    display: block;
    margin-bottom: 15px;
}

.sell-info {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.sell-info p {
    margin: 5px 0;
    font-size: 12px;
    color: #ccc;
}

.sell-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-sell-btn, .cancel-sell-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.confirm-sell-btn {
    background: #00ff41;
    color: #000;
}

.confirm-sell-btn:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.confirm-sell-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-sell-btn {
    background: #ff4444;
    color: #fff;
}

.cancel-sell-btn:hover {
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.sell-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.sell-status.success {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid #00ff41;
}

.sell-status.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.sell-status.loading {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

/* Marketplace Tabs */
.marketplace-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.marketplace-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.marketplace-tab.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-color: #ffffff;
    color: #0f0f23;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.marketplace-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Marketplace Grids */
.marketplace-grid, .my-skins-grid, .my-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.marketplace-item, .my-skin-item, .listing-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.marketplace-item:hover, .my-skin-item:hover, .listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.marketplace-item img, .my-skin-item img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.skin-info h4 {
    color: #4ecdc4;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.skin-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Buttons */
.buy-btn, .sell-btn, .remove-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.buy-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: #0f0f23;
}

.sell-btn {
    background: linear-gradient(45deg, #ffaa00, #ff8800);
    color: #0f0f23;
}

.remove-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    color: #ffffff;
}

.buy-btn:hover, .sell-btn:hover, .remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sell Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3a 0%, #2d1b69 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 2px solid #4ecdc4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h4 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.modal-actions .sell-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: #0f0f23;
}

.modal-actions .cancel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.empty-state h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.empty-state p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.empty-state small {
    color: #ffaa00;
    font-style: italic;
}

/* Listing Item Specific Styles */
.listing-item {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.3);
}

.listing-info {
    text-align: center;
}

.listing-info h4 {
    color: #ffaa00;
    margin-bottom: 10px;
}

/* ========== AUTHENTICATION STYLES ========== */

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a1920 0%, #16252e 50%, #0f2d40 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
}

.login-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border: 2px solid #00ffff;
    border-radius: 0;
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.login-content h2 {
    color: #00ffff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.auth-form input {
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    border-radius: 0;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #40e0d0;
    box-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
    background: rgba(0, 0, 0, 0.95);
}

.auth-form input::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

.auth-btn {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 0;
}

.auth-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

.auth-btn.secondary {
    border-color: #888;
    color: #888;
}

.auth-btn.secondary:hover {
    background: rgba(136, 136, 136, 0.1);
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.5);
}

.auth-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 0;
    font-weight: bold;
    text-align: center;
    display: none;
    font-size: 14px;
}

.auth-status.success {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
}

.auth-status.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    animation: shake 0.5s ease-in-out;
}

.auth-status.loading {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

/* ========== USER INFO STYLES ========== */

.user-info {
    text-align: center;
    margin: 20px 0;
    padding: 25px;
    background: rgba(0, 20, 30, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0;
    position: relative;
}

.user-info::before {
    content: 'PILOT STATUS';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 0 15px;
    font-size: 10px;
    color: #40e0d0;
    letter-spacing: 2px;
}

.user-info small {
    color: #88cccc;
    font-size: 18px;
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    flex-wrap: wrap;
}

.quick-stats span {
    color: #40e0d0;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 0;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* Logout Controls Container - Prominent placement */
.logout-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Main Menu Logout Button - Large and prominent */
#menuLogoutBtn {
    padding: 12px 25px;
    background: rgba(255, 68, 68, 0.8);
    color: white;
    border: 2px solid #ff4444;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 150px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

#menuLogoutBtn:hover {
    background: rgba(255, 68, 68, 1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
    transform: translateY(-2px);
}

/* Legacy logout button support */
.logout-btn {
    padding: 12px 25px;
    background: rgba(255, 68, 68, 0.8);
    color: white;
    border: 2px solid #ff4444;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 150px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
    transform: translateY(-2px);
}

/* ========== MENU SCREEN EFFECTS ========== */

/* Tactical grid overlay - ONLY for menu screen */
.menu-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Scanning line animation - ONLY for menu screen */
.menu-screen::after {
    content: '';
    position: fixed;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* ========== MENU SCREEN STYLES ========== */

.menu-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
}

.menu-content {
    text-align: center;
    max-width: 1000px;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Command center header */
.menu-content::before {
    content: 'CLASSIFIED - COMMAND CENTER ACCESS';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #ff4444;
    letter-spacing: 2px;
    border: 1px solid #ff4444;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.8);
}

.menu-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #00ffff;
    color: #00ffff;
    letter-spacing: 3px;
    font-weight: bold;
    position: relative;
}

.menu-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.menu-content p {
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #88cccc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Grid Layout for Military Menu */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.menu-btn {
    padding: 25px;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid #00ffff;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(0, 20, 30, 0.7);
    color: #00ffff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

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

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 0;
    height: 0;
    border-left: 10px solid #00ffff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-btn:hover::after {
    opacity: 1;
}

.menu-btn span {
    display: block;
    font-size: 0.7em;
    font-weight: normal;
    margin-top: 10px;
    opacity: 0.8;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
}

/* Military-themed button colors with improved contrast */
.deploy-btn {
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.deploy-btn:hover {
    background: rgba(255, 68, 68, 0.15);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    transform: translateY(-3px);
}

.engineering-btn {
    border-color: #40e0d0;
    color: #40e0d0;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
}

.engineering-btn:hover {
    background: rgba(64, 224, 208, 0.15);
    box-shadow: 0 0 30px rgba(64, 224, 208, 0.5);
    transform: translateY(-3px);
}

.marketplace-btn {
    border-color: #00bfff;
    color: #00bfff;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.marketplace-btn:hover {
    background: rgba(0, 191, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
    transform: translateY(-3px);
}

.leaderboard-btn {
    border-color: #ff8800;
    color: #ff8800;
    box-shadow: 0 0 20px rgba(255, 136, 0, 0.3);
}

.leaderboard-btn:hover {
    background: rgba(255, 136, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 136, 0, 0.5);
    transform: translateY(-3px);
}

.wallet-btn {
    border-color: #20b2aa;
    color: #20b2aa;
    box-shadow: 0 0 20px rgba(32, 178, 170, 0.3);
}

.wallet-btn:hover {
    background: rgba(32, 178, 170, 0.15);
    box-shadow: 0 0 30px rgba(32, 178, 170, 0.5);
    transform: translateY(-3px);
}

.profile-btn {
    border-color: #7b68ee;
    color: #7b68ee;
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.3);
}

.profile-btn:hover {
    background: rgba(123, 104, 238, 0.15);
    box-shadow: 0 0 30px rgba(123, 104, 238, 0.5);
    transform: translateY(-3px);
}

.about-btn {
    border-color: #888888;
    color: #888888;
    box-shadow: 0 0 20px rgba(136, 136, 136, 0.3);
}

.about-btn:hover {
    background: rgba(136, 136, 136, 0.15);
    box-shadow: 0 0 30px rgba(136, 136, 136, 0.5);
    transform: translateY(-3px);
}

/* ========== GAME SCREEN STYLES ========== */

.game-screen {
    width: 100%;
    height: 100vh;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.mode-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 20, 30, 0.8);
    padding: 15px 25px;
    border: 1px solid #00ffff;
    border-radius: 0;
    font-family: 'Courier New', monospace;
}

.mode-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(0, 20, 30, 0.8);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    z-index: 1001;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-weight: bold;
}

.back-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ========== ENGINEERING MODE STYLES ========== */

.controls {
    position: absolute;
    top: 100px;
    left: 20px;
    width: 350px;
    background: rgba(0, 20, 30, 0.9);
    padding: 25px;
    border: 1px solid #00ffff;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 90;
    color: #00ffff;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.controls::before {
    content: 'ENGINEERING CONSOLE';
    position: absolute;
    top: -12px;
    left: 20px;
    background: rgba(0, 20, 30, 0.9);
    padding: 0 10px;
    font-size: 10px;
    color: #40e0d0;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00ffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #00ffff;
    border-radius: 0;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #40e0d0;
    box-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
    background: rgba(0, 0, 0, 0.95);
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: rgba(0, 20, 30, 0.8);
    color: #40e0d0;
    border: 2px solid #40e0d0;
    border-radius: 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.generate-btn:hover {
    background: rgba(64, 224, 208, 0.1);
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
    transform: translateY(-1px);
}

.generate-btn:disabled {
    background: rgba(68, 68, 68, 0.8);
    color: #666;
    border-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 0;
    font-weight: bold;
    text-align: center;
    display: none;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.status.success {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
    animation: glow 2s ease-in-out;
}

.status.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    animation: shake 0.5s ease-in-out;
}

.status.loading {
    background: rgba(64, 224, 208, 0.2);
    color: #40e0d0;
    border: 1px solid #40e0d0;
}

.status.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.2), transparent);
    animation: loading-sweep 2s linear infinite;
}

.viewer {
    position: absolute;
    top: 100px;
    right: 20px;
    bottom: 20px;
    left: 390px;
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid #00ffff;
    border-radius: 0;
    padding: 20px;
    overflow: auto;
}

#customizeCanvas {
    width: 100%;
    height: calc(100% - 80px);
    border-radius: 0;
    border: 1px solid #444;
}

.sphere-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px 0;
}

.sphere-controls button {
    padding: 10px 18px;
    background: rgba(0, 20, 30, 0.8);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-weight: bold;
    min-width: 120px;
}

.sphere-controls button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.deploy-design-btn {
    border-color: #ff4444 !important;
    color: #ff4444 !important;
    font-weight: bold;
}

.deploy-design-btn:hover {
    background: rgba(255, 68, 68, 0.1) !important;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5) !important;
}

.gallery {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    max-height: 220px;
    background: rgba(0, 20, 30, 0.9);
    padding: 20px;
    border: 1px solid #00ffff;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: #00ffff;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.gallery::before {
    content: 'ARCHIVE ACCESS';
    position: absolute;
    top: -12px;
    left: 20px;
    background: rgba(0, 20, 30, 0.9);
    padding: 0 10px;
    font-size: 10px;
    color: #00ffff;
    letter-spacing: 2px;
}

.gallery h3 {
    margin-bottom: 15px;
    color: #00ffff;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.gallery-item {
    border: 1px solid #444;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-item:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.image-info {
    padding: 8px;
    background: rgba(0, 0, 0, 0.9);
    font-size: 10px;
}

.image-name {
    display: block;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.image-size {
    color: #888;
    font-size: 9px;
}

.active-indicator {
    display: block;
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    padding: 2px 6px;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    margin-top: 3px;
    text-transform: uppercase;
}

/* ========== GAME MODE STYLES ========== */

.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 20, 30, 0.8);
    border-bottom: 1px solid #00ffff;
    font-family: 'Courier New', monospace;
}

.game-header h2 {
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-header .back-btn {
    pointer-events: all;
}

#gameCanvas {
    width: 100%;
    height: 100vh;
    display: block;
    cursor: crosshair;
    background: none !important;
    border: none !important;
    outline: none !important;
}

/* Game Over Screen */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
}

.game-over-content {
    text-align: center;
    background: rgba(0, 20, 30, 0.95);
    padding: 50px;
    border: 2px solid #ff4444;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    position: relative;
}

.game-over-content::before {
    content: 'MISSION TERMINATED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 30, 0.95);
    padding: 0 15px;
    font-size: 12px;
    color: #ff4444;
    letter-spacing: 2px;
}

.game-over-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.final-score {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #40e0d0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-over-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-over-buttons .menu-btn {
    font-size: 1em;
    padding: 15px 30px;
    min-width: 180px;
    min-height: auto;
}

/* ========== MARKETPLACE STYLES (ADDITIONAL) ========== */

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
}

.marketplace-item {
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid #00ffff;
    border-radius: 0;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.marketplace-item:hover {
    border-color: #40e0d0;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.3);
    transform: translateY(-2px);
}

.marketplace-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #444;
    margin-bottom: 10px;
}

.skin-info h4 {
    color: #00ffff;
    margin: 10px 0 5px 0;
    font-size: 16px;
    text-transform: uppercase;
}

.skin-info p {
    color: #888;
    margin: 5px 0;
    font-size: 14px;
}

.buy-btn {
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    border: 1px solid #00ffff;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    transition: all 0.3s;
}

.buy-btn:hover {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

/* ========== WALLET STYLES ========== */

.wallet-info-box {
    background: rgba(0, 20, 30, 0.6);
    border: 1px solid #00ffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0;
}

.wallet-info-box h4 {
    color: #40e0d0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.wallet-info-box p {
    color: #88cccc;
    margin: 8px 0;
    line-height: 1.4;
}

.wallet-info {
    margin: 20px 0;
    text-align: left;
}

.wallet-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-field label {
    color: #00ffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.wallet-field input {
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    flex: 1;
}

.wallet-field button {
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    border: 1px solid #00ffff;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.3s;
    align-self: flex-start;
}

.wallet-field button:hover {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.wallet-address-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

.wallet-address-info input {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.warning {
    color: #ff4444;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border: 1px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
    margin: 15px 0;
    border-radius: 0;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.balance-item {
    background: rgba(0, 20, 30, 0.5);
    padding: 20px;
    border: 1px solid #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
}

.balance-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.balance-value {
    color: #00ffff;
    font-weight: bold;
    font-size: 18px;
}

.blockchain-balance {
    border-left: 3px solid #ff8800;
}

.game-balance {
    border-left: 3px solid #00bfff;
}

/* FIXED WALLET ACTIONS - PROPER RESPONSIVE DESIGN */
.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    overflow: visible;
}

.wallet-actions .menu-btn {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 220px;
    min-height: 70px;
    font-size: 14px;
    padding: 15px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wallet-action-btn {
    padding: 12px 20px;
    background: rgba(0, 20, 30, 0.8);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s;
    min-width: 140px;
    white-space: nowrap;
    flex: 1 1 140px;
    max-width: 200px;
}

.wallet-action-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.deposit-btn { border-color: #20b2aa; color: #20b2aa; }
.withdraw-btn { border-color: #ff4444; color: #ff4444; }
.convert-btn { border-color: #40e0d0; color: #40e0d0; }
.history-btn { border-color: #00bfff; color: #00bfff; }
.refresh-btn { border-color: #7b68ee; color: #7b68ee; }

.balance-explanation {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 0;
}

.balance-explanation h4 {
    color: #40e0d0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.balance-explanation p {
    color: #888;
    margin: 8px 0;
    line-height: 1.4;
}

.balance-explanation em {
    color: #00ffff;
    font-style: normal;
    font-weight: bold;
}

.wallet-notice {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid #00bfff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0;
}

.wallet-notice h4 {
    color: #00bfff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.wallet-notice p {
    color: #88ccff;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.wallet-address-section, .balance-overview, .server-info-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 20, 30, 0.6);
    border: 1px solid #00ffff;
    border-radius: 0;
}

.wallet-address-display, .server-wallet-display {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
}

.wallet-address-display input, .server-wallet-display input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    min-width: 0;
}

.copy-btn, .copy-btn-small {
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    border: 1px solid #00ffff;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn-small {
    padding: 4px 8px;
    font-size: 8px;
}

.copy-btn:hover, .copy-btn-small:hover {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.balance-card {
    padding: 15px;
    background: rgba(0, 20, 30, 0.4);
    border: 1px solid #444;
    border-radius: 0;
}

.balance-card h5 {
    color: #40e0d0;
    margin-bottom: 10px;
    font-size: 14px;
}

.token-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.token-symbol {
    color: #888;
}

.token-amount {
    color: #00ffff;
    font-weight: bold;
}

.action-form {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid #40e0d0;
    border-radius: 0;
}

.action-form h4 {
    color: #40e0d0;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #00ffff;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
}

.submit-btn, .cancel-btn {
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    margin-right: 10px;
    transition: all 0.3s;
}

.submit-btn {
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    border-color: #00ffff;
}

.cancel-btn {
    background: rgba(255, 68, 68, 0.8);
    color: #fff;
    border-color: #ff4444;
}

.submit-btn:hover {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cancel-btn:hover {
    background: rgba(255, 68, 68, 1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 20, 30, 0.6);
    border: 1px solid #444;
    border-radius: 0;
}

.transaction-item.deposit {
    border-left: 3px solid #20b2aa;
}

.transaction-item.withdrawal {
    border-left: 3px solid #ff4444;
}

.tx-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.tx-type {
    color: #40e0d0;
    font-weight: bold;
    text-transform: uppercase;
}

.tx-amount {
    color: #00ffff;
    font-weight: bold;
}

.tx-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 11px;
    flex-wrap: wrap;
    gap: 5px;
}

.tx-date {
    color: #888;
}

.tx-status.confirmed {
    color: #20b2aa;
}

.tx-status.pending {
    color: #40e0d0;
}

.tx-hash {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: #666;
    overflow-x: auto;
}

.status-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 0;
    text-align: center;
    font-weight: bold;
    display: none;
}

.status-success {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
}

.status-error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.status-loading {
    background: rgba(64, 224, 208, 0.2);
    color: #40e0d0;
    border: 1px solid #40e0d0;
}

/* ========== LEADERBOARD STYLES ========== */

.leaderboards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.leaderboard {
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid #00ffff;
    padding: 20px;
    border-radius: 0;
    max-height: 500px;
    overflow-y: auto;
}

.leaderboard h4 {
    color: #40e0d0;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
}

.leaderboard-list {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto auto;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #444;
    align-items: center;
    font-size: 14px;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item .rank {
    color: #40e0d0;
    font-weight: bold;
}

.leaderboard-item .name {
    color: #00ffff;
    font-weight: bold;
}

.leaderboard-item .stat {
    color: #fff;
    text-align: right;
}

.leaderboard-item .kills,
.leaderboard-item .points {
    color: #888;
    font-size: 12px;
    text-align: right;
}

.leaderboard-item .title {
    color: #ff4444;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 3px 6px;
    border: 1px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* ========== PROFILE STYLES ========== */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
}

.stat-group {
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid #00ffff;
    padding: 25px;
    border-radius: 0;
    max-height: 400px;
    overflow-y: auto;
}

.stat-group h4 {
    color: #40e0d0;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span {
    color: #00ffff;
    font-weight: bold;
}

/* Coming Soon Features */
.coming-soon-features {
    margin: 30px 0;
    text-align: left;
}

.coming-soon-features h4 {
    color: #40e0d0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.coming-soon-features ul {
    list-style: none;
    padding: 0;
}

.coming-soon-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #88cccc;
}

.coming-soon-features li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #00ffff;
    font-weight: bold;
}

/* ========== PLACEHOLDER CONTENT STYLES ========== */

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 20, 30, 0.8);
    margin: 100px 20px 20px 20px;
    border: 1px solid #00ffff;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.placeholder-content h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.placeholder-content p {
    font-size: 1.1em;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 600px;
    color: #88cccc;
}

.rules-section {
    text-align: left;
    max-width: 600px;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border: 1px solid #444;
    border-radius: 0;
}

.rules-section h4 {
    color: #40e0d0;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-section ul {
    list-style: none;
    padding: 0;
}

.rules-section li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #88cccc;
}

.rules-section li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #00ffff;
    font-weight: bold;
    font-size: 1.2em;
}

/* ========== BUTTON VARIANTS ========== */

.menu-btn.secondary {
    background: rgba(136, 136, 136, 0.8);
    color: #fff;
    border-color: #888;
}

.menu-btn.secondary:hover {
    background: rgba(136, 136, 136, 1);
    box-shadow: 0 0 10px rgba(136, 136, 136, 0.5);
}

/* ========== NOTIFICATIONS AND POPUPS ========== */

.notification {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(0, 20, 30, 0.9);
    border: 1px solid;
    padding: 15px;
    border-radius: 5px;
    z-index: 9999;
    max-width: 320px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: slideInRight 0.5s ease-out;
}

.notification-success {
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.notification-error {
    color: #ff4444;
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.notification-info {
    color: #40e0d0;
    border-color: #40e0d0;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.3);
}

/* ========== ANIMATIONS ========== */

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

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

@keyframes bounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Responsive Design - Mobile First */
@media (max-width: 480px) {
    body { 
        overflow-y: auto; 
        overflow-x: hidden;
    }
    
    /* Top status bar adjustments */
    #topStatusBar {
        padding: 8px;
        gap: 8px;
    }
    
    .connection-status, .top-logout-btn {
        font-size: 10px;
        padding: 6px 10px;
        min-width: 60px;
    }
    
    /* Corner notifications mobile adjustments */
    .kill-reward-popup {
        top: 60px !important;
        right: 10px !important;
        font-size: 16px !important;
        padding: 12px 20px !important;
    }
    
    .player-kill-notification, .copy-notification {
        right: 10px !important;
        top: 120px !important;
        font-size: 12px !important;
    }
    
    /* Menu adjustments */
    .menu-content {
        padding: 20px 15px;
    }
    
    .menu-content h1 {
        font-size: 2.2em;
        letter-spacing: 1px;
    }
    
    .menu-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .menu-btn {
        min-height: 100px;
        font-size: 1em;
        padding: 20px;
    }
    
    /* User info adjustments */
    .user-info {
        margin: 15px 0;
        padding: 20px;
    }
    
    .quick-stats {
        gap: 8px;
        font-size: 11px;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .quick-stats span {
        padding: 4px 8px;
        min-width: 70px;
        font-size: 10px;
    }
    
    #menuLogoutBtn, .logout-btn {
        font-size: 12px;
        padding: 10px 20px;
        min-width: 120px;
    }
    
    /* Login screen adjustments */
    .login-content {
        min-width: 280px;
        padding: 25px 20px;
        margin: 20px;
    }
    
    /* Engineering mode adjustments */
    .controls {
        position: relative;
        width: calc(100% - 20px);
        margin: 10px auto 20px auto;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .viewer {
        position: relative;
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        height: 300px;
        margin: 20px 10px;
        overflow: auto;
    }
    
    .gallery {
        position: relative;
        width: calc(100% - 20px);
        margin: 20px auto;
        max-height: 200px;
    }
    
    /* Content adjustments */
    .placeholder-content {
        margin: 80px 10px 20px 10px;
        padding: 25px 15px;
        max-height: calc(100vh - 100px);
    }
    
    .placeholder-content h3 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    /* FIXED WALLET MOBILE ADJUSTMENTS */
    .balance-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .balance-item {
        padding: 15px;
    }
    
    /* FIXED WALLET ACTIONS FOR MOBILE */
    .wallet-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 0 10px;
    }
    
    .wallet-actions .menu-btn,
    .wallet-action-btn {
        width: 100%;
        min-width: auto;
        max-width: none;
        flex: none;
        padding: 15px;
        font-size: 13px;
    }
    
    .wallet-field {
        margin-bottom: 15px;
    }
    
    .wallet-field button {
        align-self: stretch;
        margin-top: 8px;
        width: 100%;
    }
    
    .wallet-address-display, .server-wallet-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn, .copy-btn-small {
        width: 100%;
        text-align: center;
    }
    
    .tx-info, .tx-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Leaderboard adjustments */
    .leaderboards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leaderboard-item {
        grid-template-columns: 30px 1fr auto auto;
        gap: 8px;
        padding: 10px;
        font-size: 12px;
    }
    
    /* Profile adjustments */
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    /* Marketplace adjustments */
    .marketplace-grid {
        grid-template-columns: 1fr;
        max-height: 60vh;
        gap: 15px;
    }
    
    .marketplace-item img {
        height: 120px;
    }
    
    /* Notification adjustments */
    .notification {
        max-width: 280px;
        right: 10px;
        top: 50px;
        font-size: 12px;
    }
    
    .sphere-controls {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
    }
    
    .sphere-controls button {
        min-width: 100px;
        flex-shrink: 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Tablet adjustments */
    .menu-content h1 {
        font-size: 2.8em;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .menu-btn {
        min-height: 120px;
        font-size: 1.1em;
    }
    
    .quick-stats {
        gap: 12px;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .controls {
        width: calc(50% - 20px);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    .viewer {
        left: calc(50% + 10px);
        right: 20px;
        overflow: auto;
    }
    
    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* FIXED WALLET ACTIONS FOR TABLET */
    .wallet-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .wallet-actions .menu-btn,
    .wallet-action-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 160px;
        max-width: 200px;
    }
    
    .leaderboards {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 70vh;
    }
}

@media (min-width: 769px) {
    /* Desktop refinements */
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* DESKTOP WALLET ACTIONS */
    .wallet-actions .menu-btn,
    .wallet-action-btn {
        flex: 1 1 200px;
        min-width: 180px;
        max-width: 220px;
    }
    
    .marketplace-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: 70vh;
    }
    
    .placeholder-content {
        max-height: calc(100vh - 140px);
    }
}

@media (min-width: 1200px) {
    /* Large desktop optimizations */
    .menu-content {
        max-width: 1200px;
        padding: 50px;
    }
    
    .menu-grid {
        max-width: 1200px;
    }
    
    .menu-btn {
        min-height: 160px;
        font-size: 1.3em;
    }
    
    .balance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .marketplace-grid {
        grid-template-columns: repeat(4, 1fr);
        max-height: 80vh;
    }
    
    /* LARGE DESKTOP WALLET ACTIONS */
    .wallet-actions .menu-btn,
    .wallet-action-btn {
        flex: 1 1 220px;
        min-width: 200px;
        max-width: 250px;
    }
}