:root {
    --bg: #0a0a0a;
    --neon-blue: #ff6a00;  /* Battlefield Orange */
    --neon-pink: #ff3d00;
    --neon-gold: #ffcc00;
    --neon-green: #00ff44;
    --glass: rgba(15, 15, 15, 0.95);

    /* Battlefield 2042 Colors */
    --bf-orange: #ff6a00;
    --bf-orange-bright: #ff8c00;
    --bf-red: #ff3d00;
    --bf-dark: #0d0d0d;
    --bf-darker: #080808;
    --bf-panel: rgba(20, 20, 20, 0.85);
    --bf-panel-border: rgba(255, 106, 0, 0.3);
    --bf-text: #e8e8e8;
    --bf-text-dim: #888888;
}

body {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    font-family: 'Courier New', monospace;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}


/* Hintergrund GIF */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('demo.gif') center center / cover no-repeat;
    opacity: 0.1;
    z-index: -2;
    pointer-events: none;
}

/* ========================================
   BATTLEFIELD FIRE/EMBER PARTICLE EFFECT
   ======================================== */
.fire-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--bf-orange);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 106, 0, 0.6);
    animation: ember-rise linear infinite;
    opacity: 0;
}

.ember:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.ember:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 2s; }
.ember:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 1s; }
.ember:nth-child(4) { left: 35%; animation-duration: 9s; animation-delay: 3s; }
.ember:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 0.5s; }
.ember:nth-child(6) { left: 55%; animation-duration: 7s; animation-delay: 2.5s; }
.ember:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 1.5s; }
.ember:nth-child(8) { left: 75%; animation-duration: 8s; animation-delay: 4s; }
.ember:nth-child(9) { left: 85%; animation-duration: 10s; animation-delay: 0.8s; }
.ember:nth-child(10) { left: 95%; animation-duration: 9s; animation-delay: 3.5s; }
.ember:nth-child(11) { left: 10%; animation-duration: 11s; animation-delay: 5s; }
.ember:nth-child(12) { left: 30%; animation-duration: 8s; animation-delay: 6s; }
.ember:nth-child(13) { left: 50%; animation-duration: 12s; animation-delay: 4.5s; }
.ember:nth-child(14) { left: 70%; animation-duration: 9s; animation-delay: 5.5s; }
.ember:nth-child(15) { left: 90%; animation-duration: 10s; animation-delay: 7s; }

/* Different ember sizes */
.ember:nth-child(odd) { width: 3px; height: 3px; }
.ember:nth-child(3n) { width: 5px; height: 5px; box-shadow: 0 0 8px 3px rgba(255, 106, 0, 0.7); }
.ember:nth-child(5n) { background: var(--bf-orange-bright); }
.ember:nth-child(7n) { background: #ff4400; }

@keyframes ember-rise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
        transform: translateX(20px) scale(0.8);
    }
    80% {
        opacity: 0.3;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-10px) scale(0.4);
    }
}

/* Ambient glow at bottom */
.fire-glow {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(255, 80, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #fff; }

canvas { display: block; position: absolute; top: 0; left: 0; cursor: none; }
.modal-open { cursor: default !important; }

.screen {
    position: absolute; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.85); z-index: 50;
    transition: opacity 0.3s; pointer-events: auto; cursor: default;
}

/* Landing screen has no background overlay - cosmic-bg shows through */
#screen-landing {
    background: transparent;
}

/* ============================================ */
/* LANDING PAGE - PROFESSIONAL SCROLLABLE PARALLAX */
/* ============================================ */
.landing-intro {
    background: #000;
    overflow: hidden;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Fixed Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Stars Layer */
.parallax-stars {
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,106,0,0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 160px 120px, #fff, transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(255,204,0,0.6), transparent),
        radial-gradient(2px 2px at 250px 150px, rgba(255,106,0,0.5), transparent),
        radial-gradient(1px 1px at 300px 100px, #fff, transparent),
        radial-gradient(2px 2px at 350px 180px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 400px 60px, rgba(255,106,0,0.7), transparent);
    background-size: 450px 250px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Nebula Layer */
.parallax-nebula {
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255,100,0,0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(255,0,100,0.05), transparent),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(100,0,255,0.04), transparent);
    opacity: 0.8;
}

/* Grid Layer */
.parallax-grid {
    background-image:
        linear-gradient(rgba(255,106,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,106,0,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
}

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--neon-blue);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 20s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Scroll Container */
.landing-scroll {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Landing Sections */
.landing-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    box-sizing: border-box;
}

/* Section Content Container */
.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,106,0,0.1);
    border: 1px solid rgba(255,106,0,0.3);
    border-radius: 30px;
    color: var(--neon-blue);
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-size: 48px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 30px rgba(255,106,0,0.3);
}

/* ==================== */
/* HERO SECTION */
/* ==================== */
.hero-section {
    background: radial-gradient(ellipse at center bottom, rgba(30,15,0,0.4) 0%, transparent 70%);
    padding-bottom: 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(255,106,0,0.15), rgba(255,106,0,0.05));
    border: 1px solid rgba(255,106,0,0.4);
    border-radius: 50px;
    color: var(--neon-blue);
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-transform: uppercase;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,106,0,0.2); }
    50% { box-shadow: 0 0 40px rgba(255,106,0,0.4); }
}

.hero-title {
    margin: 0 0 30px 0;
}

.hero-title .title-main {
    display: block;
    font-size: 90px;
    font-weight: bold;
    letter-spacing: 8px;
    background: linear-gradient(180deg, #fff 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255,106,0,0.5));
    line-height: 1;
}

.hero-title .title-evolved {
    display: block;
    font-size: 32px;
    color: var(--neon-gold);
    letter-spacing: 20px;
    margin-top: 10px;
    text-shadow: 0 0 20px var(--neon-gold);
    -webkit-text-fill-color: var(--neon-gold);
}

.hero-title .title-beta {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 3px;
    margin-top: 15px;
    text-shadow: none;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 20px rgba(247, 147, 30, 0.5);
    animation: betaPulse 2s ease-in-out infinite;
}

@keyframes betaPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(247, 147, 30, 0.5); }
    50% { box-shadow: 0 0 30px rgba(247, 147, 30, 0.8); }
}

.hero-subtitle {
    font-size: 20px;
    color: #8899aa;
    margin: 0 0 50px 0;
    line-height: 1.6;
    font-weight: normal;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-hero-primary {
    position: relative;
    padding: 22px 50px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, var(--neon-blue) 0%, #ff8c00 100%);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 30px rgba(255,106,0,0.4),
        0 10px 40px rgba(0,0,0,0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 0 50px rgba(255,106,0,0.6),
        0 15px 50px rgba(0,0,0,0.4);
}

.btn-hero-primary .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-hero-secondary {
    padding: 15px 30px;
    font-size: 14px;
    color: #667788;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 25px 40px;
    background: rgba(15,10,5,0.6);
    border: 1px solid rgba(255,106,0,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ff6a00;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255,106,0,0.5);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,106,0,0.3);
}

/* Scroll Indicator - Hidden */
.scroll-indicator {
    display: none;
}

.scroll-arrow {
    display: none;
}

/* ==================== */
/* PREVIEW SECTION */
/* ==================== */
.preview-section {
    background: linear-gradient(180deg, transparent 0%, rgba(15,10,5,0.5) 50%, transparent 100%);
}

.preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.preview-frame {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15,10,5,0.8);
    border: 2px solid rgba(255,106,0,0.3);
    box-shadow:
        0 0 60px rgba(255,106,0,0.2),
        inset 0 0 60px rgba(0,0,0,0.5);
}

.preview-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,106,0,0.1) 0%, transparent 50%);
    animation: glowRotate 10s linear infinite;
    pointer-events: none;
}

@keyframes glowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,20,50,0.9), rgba(15,10,5,0.95));
    color: var(--neon-blue);
}

.preview-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    margin-bottom: 20px;
    animation: pulseIcon 2s infinite;
}

.preview-icon svg {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255,106,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255,106,0,0.5); }
}

.preview-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.preview-badge {
    padding: 8px 15px;
    background: rgba(255,0,0,0.8);
    color: #fff;
    font-size: 10px;
    letter-spacing: 2px;
    border-radius: 5px;
    animation: livePulse 2s infinite;
}

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

/* Preview Features */
.preview-features {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.pf-item {
    text-align: center;
}

.pf-icon {
    font-size: 36px;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 10px;
}

.pf-item span {
    display: block;
    font-size: 13px;
    color: #667;
    letter-spacing: 1px;
}

/* ==================== */
/* FEATURES SECTION */
/* ==================== */
.features-section {
    padding: 100px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0,20,50,0.6), rgba(15,10,5,0.8));
    border: 1px solid rgba(255,106,0,0.15);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,106,0,0.4);
    box-shadow: 0 20px 60px rgba(255,106,0,0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
}

.feature-icon-bg {
    position: absolute;
    inset: 0;
    background: rgba(255,106,0,0.1);
    border-radius: 20px;
    transform: rotate(45deg);
}

.feature-icon {
    position: relative;
    width: 32px;
    height: 32px;
    color: var(--neon-blue);
    margin: 19px;
}

.feature-card h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: none;
}

.feature-card p {
    font-size: 14px;
    color: #778;
    line-height: 1.7;
    margin: 0;
}

/* ==================== */
/* SHOWCASE CAROUSEL */
/* ==================== */
.showcase-section {
    padding: 100px 20px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 106, 0, 0.03) 30%,
        rgba(0, 180, 255, 0.03) 70%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.3), transparent);
}

.showcase-carousel {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.showcase-track {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.6), rgba(15, 10, 5, 0.8));
    border: 1px solid rgba(255, 106, 0, 0.2);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 106, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.showcase-slide {
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-slide.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 40px;
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateX(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.showcase-slide.slide-out {
    animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.95) translateX(-30px);
    }
}

/* Media Section */
.showcase-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 20, 40, 0.6));
}

.showcase-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, rgba(255, 106, 0, 0.15), transparent 60%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.showcase-slide:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 106, 0, 0.1) 0%,
        transparent 50%,
        rgba(0, 180, 255, 0.1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.showcase-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 3;
}

/* Content Section */
.showcase-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.showcase-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.2), rgba(255, 106, 0, 0.1));
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
    margin-bottom: 20px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 106, 0, 0.5); }
}

.showcase-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.showcase-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-tag {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.showcase-tag:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.4);
    transform: translateY(-2px);
}

/* Navigation */
.showcase-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.showcase-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 106, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.showcase-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.3), rgba(0, 0, 0, 0.5));
    border-color: var(--neon-blue);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.3);
}

.showcase-nav-btn:hover svg {
    stroke: #fff;
}

.showcase-nav-btn:active {
    transform: scale(0.95);
}

/* Dots */
.showcase-dots {
    display: flex;
    gap: 12px;
}

.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-dot:hover {
    background: rgba(255, 106, 0, 0.4);
    transform: scale(1.2);
}

.showcase-dot.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-gold));
    border-color: var(--neon-blue);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

/* Progress Bar */
.showcase-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 25px auto 0;
    overflow: hidden;
}

.showcase-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-gold));
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .showcase-slide.active {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .showcase-media {
        aspect-ratio: 16/9;
    }

    .showcase-title {
        font-size: 26px;
    }

    .showcase-desc {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .showcase-slide.active {
        padding: 20px;
    }

    .showcase-title {
        font-size: 22px;
    }

    .showcase-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .showcase-tag {
        font-size: 11px;
        padding: 6px 10px;
    }

    .showcase-nav-btn {
        width: 40px;
        height: 40px;
    }

    .showcase-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==================== */
/* HOW TO SECTION */
/* ==================== */
.howto-section {
    background: linear-gradient(180deg, transparent 0%, rgba(15,10,5,0.3) 50%, transparent 100%);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.step-number {
    font-size: 64px;
    font-weight: bold;
    background: linear-gradient(180deg, var(--neon-blue) 0%, rgba(255,106,0,0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.step-content h3 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: none;
}

.step-content p {
    font-size: 14px;
    color: #667;
    line-height: 1.6;
    margin: 0;
}

.step-line {
    position: absolute;
    top: 50%;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,106,0,0.5), rgba(255,106,0,0.1));
    transform: translateX(50%);
}

.step-card:last-child .step-line {
    display: none;
}

/* ==================== */
/* CTA SECTION */
/* ==================== */
.cta-section {
    min-height: 80vh;
    background: radial-gradient(ellipse at center, rgba(40,20,0,0.2) 0%, transparent 60%);
}

.cta-content {
    text-align: center;
    position: relative;
    padding: 60px;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,106,0,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: 52px;
    color: #fff;
    margin: 0 0 20px 0;
    text-shadow: 0 0 40px rgba(255,106,0,0.4);
}

.cta-subtitle {
    font-size: 18px;
    color: #667;
    margin: 0 0 50px 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-cta-primary {
    position: relative;
    padding: 25px 60px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, var(--neon-blue) 0%, #ff8c00 100%);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 40px rgba(255,106,0,0.5),
        0 10px 50px rgba(0,0,0,0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 60px rgba(255,106,0,0.7),
        0 20px 60px rgba(0,0,0,0.5);
}

.btn-cta-primary .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

.btn-cta-login {
    padding: 15px 30px;
    font-size: 14px;
    color: #556;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
}

.btn-cta-login:hover {
    color: var(--neon-blue);
}

/* Trust Items */
.cta-trust {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #445;
    font-size: 13px;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: rgba(255,106,0,0.5);
}

/* ==================== */
/* FOOTER */
/* ==================== */
.landing-footer-new {
    background: rgba(0,5,15,0.95);
    border-top: 1px solid rgba(255,106,0,0.1);
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-blue);
}

.footer-version {
    font-size: 11px;
    color: #445;
    letter-spacing: 2px;
    padding: 5px 10px;
    background: rgba(255,106,0,0.1);
    border-radius: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #556;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-copy {
    color: #334;
    font-size: 12px;
}

/* ==================== */
/* SCROLL ANIMATIONS */
/* ==================== */
.feature-card,
.step-card,
.preview-frame {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card.visible,
.step-card.visible,
.preview-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.step-card:nth-child(1) { transition-delay: 0s; }
.step-card:nth-child(2) { transition-delay: 0.15s; }
.step-card:nth-child(3) { transition-delay: 0.3s; }

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
        gap: 20px;
    }

    .step-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title .title-main {
        font-size: 50px;
        letter-spacing: 4px;
    }

    .hero-title .title-evolved {
        font-size: 20px;
        letter-spacing: 10px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 25px;
        padding: 25px 30px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .preview-features {
        flex-direction: column;
        gap: 30px;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-trust {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .landing-section {
        padding: 60px 15px;
    }

    .hero-title .title-main {
        font-size: 36px;
    }

    .hero-title .title-evolved {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .btn-hero-primary {
        padding: 18px 35px;
        font-size: 14px;
    }

    .btn-cta-primary {
        padding: 20px 40px;
        font-size: 14px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

.hidden { display: none !important; }

h1 { font-size: 60px; text-shadow: 0 0 20px var(--neon-blue); margin-bottom: 10px; margin-top: 0; text-align: center; }
h2 { color: var(--neon-gold); text-shadow: 0 0 10px var(--neon-gold); margin-bottom: 15px; }

.panel {
    background: var(--glass); border: 2px solid var(--neon-blue);
    padding: 30px; text-align: center; border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.15);
    min-width: 500px; max-width: 800px; position: relative;
}

/* --- TABS & NAV --- */
.nav-container { width: 100%; max-width: 800px; margin-bottom: 20px; display: flex; justify-content: center; gap: 10px; z-index: 60; }
.nav-btn {
    background: rgba(0,0,0,0.6); border: 1px solid #444; color: #888;
    padding: 10px 20px; cursor: pointer; font-weight: bold; transition: 0.3s;
    flex: 1; text-align: center;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
}
.nav-btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.nav-btn.active {
    background: var(--neon-blue); color: #000;
    box-shadow: 0 0 15px var(--neon-blue); border-color: var(--neon-blue);
    transform: scale(1.05); z-index: 2;
}

.tab-content { display: none; animation: fadeIn 0.3s; width: 100%; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.scroll-box {
    max-height: 400px; overflow-y: auto; text-align: left; padding: 10px;
    background: rgba(0,0,0,0.3); border: 1px solid #333; margin-bottom: 15px;
    font-size: 14px; line-height: 1.5;
}
.scroll-box strong { color: var(--neon-blue); }
.key-badge {
    background: #333; border: 1px solid #666; padding: 2px 6px;
    border-radius: 4px; color: #fff; font-weight: bold; font-size: 12px;
    margin: 0 2px; box-shadow: 0 2px 0 #000;
}

/* --- FORMS & BUTTONS --- */
input, select, button {
    display: block; width: 100%; margin: 10px 0; padding: 15px;
    font-size: 18px; font-family: inherit;
    background: rgba(0,0,0,0.5); border: 1px solid #555; color: #fff;
    box-sizing: border-box;
}
button {
    background: var(--neon-blue); color: #000; font-weight: bold; cursor: pointer;
    border: none; transition: 0.2s; text-transform: uppercase; letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}
button:hover { transform: scale(1.02); box-shadow: 0 0 25px var(--neon-blue); }
button:disabled { background: #333; color: #888; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary { background: transparent; border: 1px solid var(--neon-pink); color: var(--neon-pink); }
.btn-secondary:hover { background: var(--neon-pink); color: white; box-shadow: 0 0 15px var(--neon-pink); }

.color-picker { display: flex; gap: 10px; justify-content: center; margin: 15px 0; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid #333; }
.color-dot.selected { border-color: #fff; box-shadow: 0 0 10px #fff; transform: scale(1.2); }

/* --- HUD & GAME --- */
#hud-layer { position: absolute; width: 100%; height: 100%; pointer-events: none; z-index: 5; display: none; }
#top-hud { position: absolute; top: 20px; width: 100%; text-align: center; font-size: 24px; text-shadow: 0 0 10px var(--neon-pink); font-weight: bold; }
#player-list-hud { position: absolute; top: 20px; right: 20px; width: 250px; background: rgba(0,0,0,0.6); border: 1px solid #444; padding: 10px; text-align: right; }
.p-row { font-size: 12px; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
.hp-bar-mini { width: 50px; height: 4px; background: #333; display: inline-block; margin-right: 5px; }
.hp-fill-mini { height: 100%; background: #0f0; }

#stats-hud { position: absolute; top: 20px; left: 20px; width: 200px; background: rgba(0,0,0,0.6); border: 1px solid var(--neon-blue); padding: 10px; font-size: 14px; }

#inventory-hud { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); border: 2px solid var(--neon-gold); padding: 8px 15px; font-size: 11px; border-radius: 8px; display: flex; align-items: center; gap: 15px; }
#inventory-hud .inv-title { color: var(--neon-gold); font-weight: bold; font-size: 10px; white-space: nowrap; }
#inventory-hud .inv-section { display: flex; align-items: center; gap: 5px; }
#inventory-hud .inv-label { display: none; }
.powerup-slot { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(0,0,0,0.5); border: 2px solid #333; border-radius: 6px; margin: 0 2px; font-size: 18px; position: relative; cursor: pointer; transition: 0.2s; }
.powerup-slot.selected { border-color: var(--neon-gold); box-shadow: 0 0 8px var(--neon-gold); }
.powerup-slot.empty { opacity: 0.3; }
.powerup-slot .slot-key { position: absolute; top: 1px; left: 3px; font-size: 7px; color: #666; }
.health-counter { display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,0.3); padding: 5px 8px; border-radius: 5px; border: 1px solid #333; }
.health-counter .heart-icon { font-size: 18px; }
.health-counter .heart-count { color: #f55; font-size: 14px; font-weight: bold; }
.health-counter .key-hint { color: #666; font-size: 9px; }
.inv-hint { display: none; }
.inv-active { display: flex; align-items: center; gap: 5px; background: rgba(0,255,100,0.15); padding: 5px 8px; border-radius: 5px; border: 1px solid var(--neon-green); font-size: 10px; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 5px; align-items: center; }
.bar-cont { width: 80px; height: 12px; background: #222; border: 1px solid #555; position: relative; }
.bar-fill { height: 100%; background: var(--neon-gold); }
.bar-text { position: absolute; top: -1px; width: 100%; text-align: center; font-size: 10px; color: #000; font-weight: bold; }

.ability-box { position: absolute; bottom: 20px; right: 20px; display: flex; gap: 8px; pointer-events: auto; }
.ability-icon {
    width: 42px; height: 42px; background: rgba(0,0,0,0.5);
    border: 2px solid #555; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 18px;
    position: relative; overflow: hidden; filter: grayscale(100%); opacity: 0.5;
}
.ability-icon::after { content: "🔒"; position: absolute; font-size: 10px; top: 1px; right: 1px; }
.ability-icon.unlocked { filter: none; opacity: 1; border-color: var(--neon-blue); }
.ability-icon.unlocked::after { content: attr(data-lvl); color: #fff; }
.cooldown-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 0%; background: rgba(0,0,0,0.7); transition: height 0.1s linear; }
.key-hint { position: absolute; top: 1px; left: 3px; font-size: 9px; color: #aaa; font-weight: bold; }

#minimap-cont {
    position: absolute; bottom: 100px; left: 20px;
    width: 180px; height: 180px; background: rgba(0,10,20,0.9);
    border: 3px solid var(--neon-blue); border-radius: 50%;
    overflow: hidden; pointer-events: auto;
    box-shadow: 0 0 20px rgba(255,106,0,0.3), inset 0 0 30px rgba(0,0,0,0.5);
}
#minimap { display: block; width: 180px; height: 180px; border-radius: 50%; }

#shop-modal {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--glass); border: 2px solid var(--neon-gold); padding: 20px;
    pointer-events: auto; display: none; z-index: 30; text-align: center;
    min-width: 800px; max-height: 85vh; overflow-y: auto; cursor: default;
    border-radius: 15px; box-shadow: 0 0 40px rgba(255,204,0,0.3);
}
.shop-grid { display: grid; gap: 8px; }
.shop-item {
    border: 2px solid #333; padding: 8px; cursor: pointer; position: relative;
    background: rgba(0,0,0,0.6); display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-height: 70px;
    border-radius: 8px; transition: all 0.15s ease; font-size: 11px;
}
.shop-item:hover {
    border-color: var(--neon-gold);
    background: rgba(255, 204, 0, 0.15);
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255,204,0,0.4);
}
.shop-item:active { transform: scale(0.97); }
.shop-item .price { color: gold; font-weight: bold; font-size: 12px; }
.shop-item .lvl { font-size: 9px; color: var(--neon-blue); margin-top: 3px; }
.shop-item.powerup-buy { border-color: var(--neon-green); }
.shop-item.powerup-buy:hover { border-color: #00ff88; background: rgba(0,255,100,0.15); box-shadow: 0 0 15px rgba(0,255,100,0.4); }
.shop-item.bought { animation: buyPulse 0.3s ease; }
.shop-item.cant-afford { opacity: 0.4; filter: grayscale(50%); cursor: not-allowed; }
.shop-item.cant-afford:hover { transform: none; box-shadow: none; background: rgba(100,0,0,0.2); border-color: #600; }
.shop-item.cant-afford .price { color: #f55 !important; }
.shop-item.cant-afford::after { content: 'NOT ENOUGH GOLD'; position: absolute; bottom: 3px; font-size: 8px; color: #f55; text-transform: uppercase; }
@keyframes buyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); background: rgba(0,255,100,0.5); }
    100% { transform: scale(1); }
}

/* Shop Kategorien */
.shop-cat {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 12px 8px; background: rgba(0,0,0,0.6); border: 2px solid #444;
    border-radius: 8px; cursor: pointer; transition: all 0.2s; position: relative;
}
.shop-cat:hover { border-color: #888; background: rgba(50,50,50,0.8); }
.shop-cat.active { border-color: var(--neon-gold); background: rgba(255,200,0,0.15); box-shadow: 0 0 15px rgba(255,200,0,0.3); }
.shop-cat.unlocked { border-color: var(--neon-green); }
.shop-cat.unlocked .cat-lock { display: none; }
.shop-cat.locked { opacity: 0.7; }
.shop-cat.locked .cat-name { opacity: 0.5; }
.shop-cat .cat-icon { font-size: 24px; }
.shop-cat .cat-name { font-size: 10px; font-weight: bold; color: #fff; text-align: center; }
.shop-cat .cat-lock { font-size: 9px; color: var(--neon-gold); position: absolute; bottom: 3px; }
.shop-cat.cant-afford .cat-lock { color: #f55; }

.float-text {
    position: absolute; font-weight: bold; pointer-events: none;
    animation: floatUp 1s forwards; font-size: 20px; white-space: nowrap;
}
@keyframes floatUp { 0% { transform:translate(-50%,0) scale(1); opacity:1; } 100% { transform:translate(-50%,-50px) scale(1.5); opacity:0; } }
@keyframes purchasePop { 0% { transform:translate(-50%,-50%) scale(0); opacity:0; } 50% { transform:translate(-50%,-50%) scale(1.1); } 100% { transform:translate(-50%,-50%) scale(1); opacity:1; } }
@keyframes purchaseFadeOut { 0% { opacity:1; transform:translate(-50%,-50%) scale(1); } 100% { opacity:0; transform:translate(-50%,-50%) scale(0.8); } }

/* ========== MOBILE CONTROLS ========== */
#mobile-controls {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 15;
}

/* Joystick Zone - Links, höher und etwas rechts positioniert */
.joystick-zone {
    position: absolute;
    bottom: 120px;
    left: 40px;
    width: 130px;
    height: 130px;
    pointer-events: auto;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.joystick-base {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,106,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    border: 3px solid rgba(255,106,0,0.5);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(255,106,0,0.3), inset 0 0 30px rgba(0,0,0,0.5);
}

.joystick-knob {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, var(--neon-blue) 0%, rgba(200,100,0,0.9) 100%);
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255,106,0,0.6), 0 4px 8px rgba(0,0,0,0.4);
    /* KEINE transition für sofortige Reaktion */
    will-change: transform;
}

.joystick-knob.active {
    box-shadow: 0 0 25px rgba(255,106,0,0.9), 0 4px 12px rgba(0,0,0,0.5);
    border-color: #fff;
}

/* Rechte Controls Container */
.mobile-right-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

/* Shoot Button - Groß für den Daumen */
.mobile-shoot-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4444 0%, #aa0000 100%);
    border: 4px solid rgba(255,255,255,0.5);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 0 20px rgba(255,0,0,0.5), 0 6px 12px rgba(0,0,0,0.5);
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mobile-shoot-btn:active {
    transform: scale(0.92);
    box-shadow: 0 0 30px rgba(255,100,100,0.8), 0 2px 6px rgba(0,0,0,0.5);
    background: radial-gradient(circle, #ff6666 0%, #cc2222 100%);
}

.mobile-shoot-btn .shoot-icon {
    font-size: 28px;
}

.mobile-shoot-btn .shoot-text {
    font-size: 11px;
    letter-spacing: 1px;
}

/* Ability Buttons Container */
.mobile-abilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-ability-btn {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(50,50,80,0.9) 0%, rgba(30,30,50,0.95) 100%);
    border: 2px solid rgba(100,100,150,0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mobile-ability-btn:active {
    transform: scale(0.9);
    background: linear-gradient(135deg, rgba(200,100,0,0.8) 0%, rgba(150,70,0,0.9) 100%);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(255,106,0,0.5);
}

.mobile-ability-btn.on-cooldown {
    opacity: 0.5;
    pointer-events: none;
}

.mobile-ability-btn.on-cooldown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
}

.mobile-ability-btn .ability-key {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-weight: bold;
}

.mobile-ability-btn .ability-icon {
    font-size: 22px;
}

/* Top Controls - Klein oben rechts */
.mobile-top-controls {
    position: absolute;
    top: 80px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.mobile-small-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-small-btn:active {
    background: rgba(255,106,0,0.3);
    border-color: var(--neon-blue);
}

/* ============================================
   WAVE ANNOUNCEMENT SYSTEM - Battlefield Style
   ============================================ */
#wave-announcement {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 100;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

/* --- BATTLEFIELD COUNTDOWN CONTAINER --- */
.bf-countdown-container {
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(20,15,10,0.95) 100%);
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-left: 3px solid var(--bf-orange, #ff6a00);
    padding: 15px 40px;
    display: inline-block;
    position: relative;
    box-shadow:
        0 0 30px rgba(255, 106, 0, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.bf-countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bf-orange, #ff6a00), transparent);
}

/* Tag (oben) */
.bf-countdown-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bf-orange, #ff6a00);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bf-countdown-tag.bf-tag-success {
    background: #00ff6a;
}

.bf-countdown-tag.bf-tag-danger {
    background: #ff3333;
    color: #fff;
}

/* Große Countdown-Zahl */
.bf-countdown-number {
    font-size: 100px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow:
        0 0 15px var(--bf-orange, #ff6a00),
        0 0 30px var(--bf-orange, #ff6a00),
        0 0 60px rgba(255, 106, 0, 0.4);
    letter-spacing: 3px;
}

/* Wave Title */
.bf-wave-title {
    font-size: 50px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-shadow:
        0 0 15px var(--bf-orange, #ff6a00),
        0 0 30px var(--bf-orange, #ff6a00);
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Subtitle */
.bf-countdown-sub {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 5px;
    margin-top: 8px;
    text-transform: uppercase;
}

.bf-countdown-sub.bf-sub-success {
    color: #00ff6a;
    text-shadow: 0 0 15px #00ff6a;
}

/* GO Text */
.bf-go-text {
    font-size: 80px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow:
        0 0 20px #00ff6a,
        0 0 40px #00ff6a,
        0 0 70px rgba(0, 255, 106, 0.4);
    letter-spacing: 10px;
}

/* Wave Complete Style */
.bf-wave-complete {
    border-left-color: #00ff6a;
    border-color: rgba(0, 255, 106, 0.4);
    box-shadow:
        0 0 40px rgba(0, 255, 106, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.bf-wave-complete::before {
    background: linear-gradient(90deg, transparent, #00ff6a, transparent);
}

.bf-wave-complete .bf-wave-title {
    text-shadow:
        0 0 20px #00ff6a,
        0 0 40px #00ff6a;
}

/* Wave Go Style */
.bf-wave-go {
    border-left-color: #00ff6a;
    border-color: rgba(0, 255, 106, 0.4);
    padding: 18px 50px;
}

.bf-wave-go::before {
    background: linear-gradient(90deg, transparent, #00ff6a, transparent);
}

/* --- ANIMATIONS --- */
.bf-countdown-anim {
    animation: bfCountdownPop 0.9s ease-out forwards;
}

@keyframes bfCountdownPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) translateY(0);
    }
    30% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(-10px);
    }
}

.bf-wave-incoming-anim {
    animation: bfWaveIncoming 3s ease-out forwards;
}

@keyframes bfWaveIncoming {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(30px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02) translateY(0);
    }
    20% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.05) translateY(-20px);
    }
}

.bf-wave-go-anim {
    animation: bfWaveGo 1.5s ease-out forwards;
}

@keyframes bfWaveGo {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.bf-wave-complete-anim {
    animation: bfWaveComplete 3s ease-out forwards;
}

@keyframes bfWaveComplete {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) translateY(0);
    }
    25% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(-15px);
    }
}

#spectator-ui {
    position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.8); border: 2px solid var(--neon-pink);
    padding: 15px 30px; text-align: center; display: none; z-index: 20; pointer-events: auto;
}
#spectator-ui .spec-title { color: var(--neon-pink); font-size: 18px; font-weight: bold; margin-bottom: 5px; }
#spectator-ui .spec-info { color: #aaa; font-size: 14px; margin-bottom: 10px; }
#spectator-ui .spec-controls { display: flex; gap: 10px; justify-content: center; }
#spectator-ui button { width: auto; padding: 8px 15px; font-size: 12px; }

/* --- CHAT --- */
.chat-msg { margin-bottom: 8px; line-height: 1.4; word-wrap: break-word; }
.chat-msg .chat-name { font-weight: bold; margin-right: 5px; }
.chat-msg .chat-text { color: #fff; }

/* --- EMOTE PICKER --- */
.emote-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.emote-dot {
    width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
    border: 2px solid #333; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; transition: all 0.2s ease;
}
.emote-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.emote-dot.selected {
    border-color: #fff;
    box-shadow: 0 0 15px #fff;
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
}
.emote-dot.emote-positive.selected {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}
.emote-dot.emote-negative.selected {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

/* Emote Display Animation in Game */
.emote-bubble {
    position: absolute; pointer-events: none;
    font-size: 48px; z-index: 100;
    animation: emotePop 2s forwards;
}
@keyframes emotePop {
    0% { transform: translate(-50%, 0) scale(0); opacity: 0; }
    15% { transform: translate(-50%, -20px) scale(1.3); opacity: 1; }
    25% { transform: translate(-50%, -30px) scale(1); }
    75% { transform: translate(-50%, -40px) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -60px) scale(0.8); opacity: 0; }
}

/* Character Preview Animation */
.preview-animate {
    animation: previewPulse 0.4s ease;
}
@keyframes previewPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* ============================================ */
/* MANUAL / ANLEITUNG STYLES */
/* ============================================ */
.manual-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.manual-tab {
    padding: 8px 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    border-radius: 5px;
}
.manual-tab:hover {
    color: #fff;
    border-color: var(--neon-blue);
}
.manual-tab.active {
    background: var(--neon-blue);
    color: #000;
    border-color: var(--neon-blue);
}
.manual-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
}
.control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    text-align: left;
}
.control-item {
    background: rgba(0,0,0,0.3);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #ccc;
}
.control-item .key-badge {
    margin-right: 8px;
}

/* Enemy entries */
.enemy-entry {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.enemy-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 5px #000;
    flex-shrink: 0;
}
.enemy-info {
    flex: 1;
    text-align: left;
}
.enemy-name {
    font-weight: bold;
    color: #fff;
    font-size: 13px;
}
.enemy-stats {
    font-size: 11px;
    color: #aaa;
    margin: 2px 0;
}
.enemy-desc {
    font-size: 11px;
    color: #666;
}

/* Ability entries */
.ability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
}
.ability-entry {
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    color: #ccc;
}
.ability-entry b {
    color: #fff;
    margin-right: 5px;
}
.ability-icon {
    margin-right: 8px;
}

/* Zone entries */
.zone-entry {
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #333;
    text-align: left;
}
.zone-name {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}
.zone-price {
    font-size: 12px;
    color: var(--neon-gold);
    margin: 3px 0;
}
.zone-desc {
    font-size: 11px;
    color: #888;
}

/* ============================================ */
/* XP BAR (Fortnite-Style) */
/* ============================================ */
#xp-bar-container {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.7);
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid var(--neon-gold);
    box-shadow: 0 0 20px rgba(255,204,0,0.3);
    min-width: 350px;
}
.xp-level {
    font-size: 18px;
    font-weight: 900;
    color: var(--neon-gold);
    text-shadow: 0 0 10px var(--neon-gold);
    min-width: 60px;
}
.xp-bar-bg {
    flex: 1;
    height: 14px;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    border: 1px solid #555;
    overflow: hidden;
    position: relative;
}
.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-gold), #ffaa00, var(--neon-gold));
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-gold);
    animation: xpBarGlow 2s ease-in-out infinite;
}
@keyframes xpBarGlow {
    0%, 100% { box-shadow: 0 0 10px var(--neon-gold); }
    50% { box-shadow: 0 0 20px var(--neon-gold), 0 0 30px rgba(255,204,0,0.5); }
}
.xp-text {
    font-size: 12px;
    color: #aaa;
    min-width: 80px;
    text-align: right;
}

/* Item Count Badge für Inventar */
.item-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--neon-pink);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 5px var(--neon-pink);
}

/* Level-Up Animation */
@keyframes levelUpPulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); box-shadow: 0 0 40px var(--neon-gold); }
    100% { transform: translateX(-50%) scale(1); }
}
#xp-bar-container.level-up {
    animation: levelUpPulse 0.5s ease;
}

/* Special Reward Announcement */
#special-reward-announce {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255,0,100,0.9), rgba(100,0,255,0.9));
    border: 3px solid #fff;
    padding: 15px 40px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px #fff;
    box-shadow: 0 0 50px rgba(255,0,100,0.8);
    z-index: 100;
    animation: specialRewardPop 3s forwards;
    pointer-events: none;
}
@keyframes specialRewardPop {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
    15% { opacity: 1; transform: translateX(-50%) scale(1.2); }
    25% { transform: translateX(-50%) scale(1); }
    75% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.5) translateY(-30px); }
}

/* ============================================
   NEW LANDING PAGE STYLES - REDESIGNED
   ============================================ */

/* ========================================
   ANIMATED INFERNO BACKGROUND
   Orange-dominant, dunkel, aggressiv animiert
   ======================================== */

/* Base container - sehr dunkel */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #030303;
}

/* Haupt-Feuer/Lava Layer - Orange dominant */
.nebula-layer-1 {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 80, 0, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 120, 0, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 60, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 30%, rgba(255, 100, 0, 0.18) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 70%, rgba(255, 50, 0, 0.22) 0%, transparent 40%);
    animation: fireFloat1 12s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes fireFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(3%, -2%) scale(1.05); }
    50% { transform: translate(-2%, 3%) scale(0.98); }
    75% { transform: translate(2%, 1%) scale(1.02); }
}

/* Sekundärer Orange/Rot Layer */
.nebula-layer-2 {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(255, 40, 0, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 60%, rgba(255, 100, 20, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 90%, rgba(200, 50, 0, 0.15) 0%, transparent 50%);
    animation: fireFloat2 18s ease-in-out infinite reverse;
    filter: blur(100px);
}

@keyframes fireFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-4%, 3%) rotate(1deg); }
    66% { transform: translate(3%, -2%) rotate(-1deg); }
}

/* Glühender Kern - intensives Orange */
.nebula-layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 106, 0, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(255, 80, 0, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 50%, rgba(255, 80, 0, 0.2) 0%, transparent 40%);
    animation: coreGlow 8s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes coreGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Rauch/Asche Layer - dunkler Kontrast */
.smoke-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(30, 15, 5, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(20, 10, 5, 0.7) 0%, transparent 45%),
        radial-gradient(ellipse at 40% 70%, rgba(25, 12, 5, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(35, 15, 5, 0.7) 0%, transparent 50%);
    animation: smokeRise 25s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes smokeRise {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(2%, -3%); }
    50% { transform: translate(-1%, -5%); }
    75% { transform: translate(-2%, -2%); }
}

/* Funken/Ember Partikel - Hauptschicht */
.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 10% 90%, rgba(255, 150, 50, 0.9), transparent),
        radial-gradient(1px 1px at 20% 85%, rgba(255, 200, 100, 0.7), transparent),
        radial-gradient(2px 2px at 35% 95%, rgba(255, 120, 30, 0.8), transparent),
        radial-gradient(1px 1px at 50% 88%, rgba(255, 180, 80, 0.6), transparent),
        radial-gradient(3px 3px at 65% 92%, rgba(255, 100, 0, 1), transparent),
        radial-gradient(1px 1px at 80% 87%, rgba(255, 160, 60, 0.7), transparent),
        radial-gradient(2px 2px at 90% 93%, rgba(255, 140, 40, 0.8), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(255, 220, 150, 0.5), transparent),
        radial-gradient(2px 2px at 45% 82%, rgba(255, 100, 20, 0.9), transparent),
        radial-gradient(1px 1px at 75% 78%, rgba(255, 180, 100, 0.6), transparent),
        radial-gradient(2px 2px at 3% 88%, rgba(255, 130, 40, 0.85), transparent),
        radial-gradient(1px 1px at 28% 92%, rgba(255, 190, 90, 0.65), transparent),
        radial-gradient(3px 3px at 58% 96%, rgba(255, 90, 0, 1), transparent),
        radial-gradient(1px 1px at 83% 81%, rgba(255, 210, 130, 0.55), transparent),
        radial-gradient(2px 2px at 97% 89%, rgba(255, 110, 25, 0.9), transparent);
    animation: embersRise 15s linear infinite;
}

@keyframes embersRise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* Zweite Funken-Schicht (versetzt) */
.stars-moving {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 5% 95%, rgba(255, 130, 30, 0.8), transparent),
        radial-gradient(1px 1px at 25% 90%, rgba(255, 170, 70, 0.6), transparent),
        radial-gradient(3px 3px at 40% 98%, rgba(255, 80, 0, 1), transparent),
        radial-gradient(1px 1px at 55% 85%, rgba(255, 200, 120, 0.5), transparent),
        radial-gradient(2px 2px at 70% 92%, rgba(255, 110, 20, 0.9), transparent),
        radial-gradient(1px 1px at 85% 88%, rgba(255, 150, 50, 0.7), transparent),
        radial-gradient(2px 2px at 95% 96%, rgba(255, 90, 10, 0.8), transparent),
        radial-gradient(2px 2px at 12% 97%, rgba(255, 140, 35, 0.85), transparent),
        radial-gradient(1px 1px at 33% 83%, rgba(255, 185, 85, 0.6), transparent),
        radial-gradient(3px 3px at 48% 91%, rgba(255, 70, 0, 1), transparent),
        radial-gradient(1px 1px at 62% 87%, rgba(255, 195, 110, 0.55), transparent),
        radial-gradient(2px 2px at 78% 94%, rgba(255, 105, 15, 0.9), transparent);
    animation: embersRise2 20s linear infinite;
    animation-delay: -7s;
}

@keyframes embersRise2 {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(-30px); opacity: 0; }
}

/* Dritte Funken-Schicht - schnellere kleine Partikel */
.cosmic-bg .sparks-layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 8% 94%, rgba(255, 220, 150, 0.9), transparent),
        radial-gradient(1px 1px at 18% 89%, rgba(255, 180, 80, 0.8), transparent),
        radial-gradient(2px 2px at 26% 97%, rgba(255, 140, 40, 1), transparent),
        radial-gradient(1px 1px at 38% 86%, rgba(255, 200, 100, 0.7), transparent),
        radial-gradient(1px 1px at 52% 93%, rgba(255, 160, 60, 0.85), transparent),
        radial-gradient(2px 2px at 66% 98%, rgba(255, 120, 20, 1), transparent),
        radial-gradient(1px 1px at 74% 84%, rgba(255, 190, 90, 0.75), transparent),
        radial-gradient(1px 1px at 88% 91%, rgba(255, 170, 70, 0.8), transparent),
        radial-gradient(2px 2px at 94% 95%, rgba(255, 130, 30, 0.95), transparent),
        radial-gradient(1px 1px at 42% 88%, rgba(255, 210, 120, 0.7), transparent),
        radial-gradient(1px 1px at 82% 96%, rgba(255, 150, 50, 0.85), transparent);
    animation: embersRise3 10s linear infinite;
    animation-delay: -3s;
}

@keyframes embersRise3 {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    5% { opacity: 1; }
    50% { transform: translateY(-50vh) translateX(15px) scale(0.8); }
    95% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(25px) scale(0.5); opacity: 0; }
}

/* Vierte Funken-Schicht - heiße weiße Funken */
.cosmic-bg .sparks-layer-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 7% 99%, rgba(255, 255, 200, 1), transparent),
        radial-gradient(1px 1px at 22% 96%, rgba(255, 240, 180, 0.9), transparent),
        radial-gradient(2px 2px at 31% 94%, rgba(255, 255, 220, 1), transparent),
        radial-gradient(1px 1px at 47% 98%, rgba(255, 230, 160, 0.85), transparent),
        radial-gradient(2px 2px at 59% 95%, rgba(255, 255, 200, 1), transparent),
        radial-gradient(1px 1px at 68% 97%, rgba(255, 245, 190, 0.9), transparent),
        radial-gradient(2px 2px at 79% 93%, rgba(255, 255, 210, 1), transparent),
        radial-gradient(1px 1px at 91% 99%, rgba(255, 235, 170, 0.85), transparent);
    animation: hotSparks 8s linear infinite;
    animation-delay: -2s;
}

@keyframes hotSparks {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 0.9; }
    70% { opacity: 0.4; }
    100% { transform: translateY(-120vh) translateX(-20px); opacity: 0; }
}

/* Fünfte Schicht - großer glühender Funken */
.cosmic-bg .sparks-layer-5 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(4px 4px at 15% 98%, rgba(255, 100, 0, 1), transparent),
        radial-gradient(5px 5px at 45% 95%, rgba(255, 80, 0, 1), transparent),
        radial-gradient(4px 4px at 72% 99%, rgba(255, 120, 20, 1), transparent),
        radial-gradient(3px 3px at 88% 96%, rgba(255, 90, 0, 1), transparent);
    animation: bigSparks 25s linear infinite;
    filter: blur(1px);
}

@keyframes bigSparks {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    5% { opacity: 0.8; }
    50% { opacity: 1; }
    95% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

/* Pulsierender Orange Glow */
.color-pulse {
    position: absolute;
    bottom: -20%;
    left: 50%;
    width: 150%;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center bottom, rgba(255, 106, 0, 0.3) 0%, rgba(255, 50, 0, 0.1) 40%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleY(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scaleY(1.15); }
}

/* Flackernde Lichtstreifen */
.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(255,60,0,0.1) 100%);
    pointer-events: none;
    animation: vignetteFlicker 3s ease-in-out infinite;
}

@keyframes vignetteFlicker {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.95; }
    50% { opacity: 1; }
    75% { opacity: 0.92; }
}

/* Horizontale Lichtstreifen */
.cosmic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,106,0,0.03) 45%, rgba(255,150,50,0.08) 50%, rgba(255,106,0,0.03) 55%, transparent 100%);
    animation: lightSweep 8s ease-in-out infinite;
}

@keyframes lightSweep {
    0% { transform: translateX(0); }
    100% { transform: translateX(33%); }
}

/* Vertikale Wellen */
.cosmic-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(0deg, rgba(255, 60, 0, 0.15) 0%, rgba(255, 100, 0, 0.05) 50%, transparent 100%);
    animation: heatWave 6s ease-in-out infinite;
}

@keyframes heatWave {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.2); opacity: 0.9; }
}

/* Apply to landing screen */
#screen-landing {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

#screen-landing::before {
    display: none;
}

#screen-landing::after {
    display: none;
}

/* ========================================
   STAGGERED WIDGET ENTRANCE ANIMATION
   Windows 10 style - schnell aber smooth
   ======================================== */

/* Base animation für alle animierten Elemente */
@keyframes widgetEnter {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Widgets im Home-Tab - initial versteckt (auch ohne .active) */
#main-tab-home .live-ai-widget,
#main-tab-home .bf-info-slider,
#main-tab-home .home-layout .bf-tile {
    opacity: 0;
}

/* Animation nur wenn .active gesetzt ist */
#main-tab-home.active .live-ai-widget,
#main-tab-home.active .bf-info-slider,
#main-tab-home.active .home-layout .bf-tile {
    animation: widgetEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Gestaffelte Delays - schnell hintereinander */
#main-tab-home.active .live-ai-widget {
    animation-delay: 0ms;
}

#main-tab-home.active .bf-info-slider {
    animation-delay: 40ms;
}

/* Featured Tile (große Kachel) */
#main-tab-home.active .home-main .bf-tile.featured {
    animation-delay: 80ms;
}

/* Level Progress Tile */
#main-tab-home.active .home-main .bf-tile:nth-child(2) {
    animation-delay: 120ms;
}

/* Daily Missions Tile */
#main-tab-home.active .home-main .bf-tile:nth-child(3) {
    animation-delay: 160ms;
}

/* Shop Tab Widgets */
#main-tab-shop.active .shop-section {
    animation: widgetEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

#main-tab-shop.active .shop-section:nth-child(1) {
    animation-delay: 0ms;
}
#main-tab-shop.active .shop-section:nth-child(2) {
    animation-delay: 60ms;
}
#main-tab-shop.active .shop-section:nth-child(3) {
    animation-delay: 120ms;
}

/* Stats Tab Cards */
#main-tab-stats.active .stat-card {
    animation: widgetEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

#main-tab-stats.active .stat-card:nth-child(1) { animation-delay: 0ms; }
#main-tab-stats.active .stat-card:nth-child(2) { animation-delay: 40ms; }
#main-tab-stats.active .stat-card:nth-child(3) { animation-delay: 80ms; }
#main-tab-stats.active .stat-card:nth-child(4) { animation-delay: 120ms; }
#main-tab-stats.active .stat-card:nth-child(5) { animation-delay: 160ms; }
#main-tab-stats.active .stat-card:nth-child(6) { animation-delay: 200ms; }

/* Inventar Tab */
#main-tab-inventory.active .inventory-section {
    animation: widgetEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

#main-tab-inventory.active .inventory-section:nth-child(1) { animation-delay: 0ms; }
#main-tab-inventory.active .inventory-section:nth-child(2) { animation-delay: 80ms; }

/* Pilot Tab */
#main-tab-pilot.active .pilot-section,
#main-tab-pilot.active .char-grid-container {
    animation: widgetEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 50ms;
}

/* Friends Tab */
#main-tab-friends.active .friends-content > * {
    animation: widgetEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

#main-tab-friends.active .friends-content > *:nth-child(1) { animation-delay: 0ms; }
#main-tab-friends.active .friends-content > *:nth-child(2) { animation-delay: 60ms; }
#main-tab-friends.active .friends-content > *:nth-child(3) { animation-delay: 120ms; }

/* ========================================
   BATTLEFIELD-STYLE NAVBAR
   ======================================== */
#main-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 65px;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.98) 0%, rgba(12, 12, 12, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 106, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

/* Subtle orange accent line at bottom */
#main-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 106, 0, 0.6) 30%,
        rgba(255, 106, 0, 0.8) 50%,
        rgba(255, 106, 0, 0.6) 70%,
        transparent 100%);
}

@keyframes navbarGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
}

/* Battlefield-style clean logo */
.navbar-logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    color: var(--bf-orange);
}

.navbar-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--bf-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-logo:hover::after {
    transform: scaleX(1);
}

.navbar-logo-img {
    height: 60px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.4));
    transition: all 0.3s ease;
}

.navbar-logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.7));
    transform: scale(1.05);
}

.navbar-logo-sub {
    font-size: 9px;
    color: white;
    vertical-align: super;
    font-weight: 600;
    letter-spacing: 2px;
    margin-left: 4px;
    opacity: 0.9;
}

/* Battlefield-style tab navigation */
.navbar-center {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    justify-content: left;
}

.navbar-tab {
    padding: 20px 24px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
    overflow: visible;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
}

.navbar-tab::before {
    display: none;
}

/* Orange underline indicator */
.navbar-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--bf-orange);
    transition: width 0.2s ease;
}

.navbar-tab:hover {
    color: #ffffff;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
}

.navbar-tab:hover::after {
    width: 60%;
}

.navbar-tab.active {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
}

.navbar-tab.active::after {
    width: 100%;
    height: 3px;
    background: var(--bf-orange);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

/* Admin Tabs - special styling */
.navbar-tab.admin-tab {
    color: rgba(255, 80, 80, 0.7);
    border-left: 1px solid rgba(255, 80, 80, 0.2);
    margin-left: 10px;
    padding-left: 24px;
}

.navbar-tab.admin-tab:hover {
    color: #ff6b6b;
    background: rgba(255, 80, 80, 0.05);
}

.navbar-tab.admin-tab::after {
    background: #ff6b6b;
}

.navbar-tab.admin-tab:hover::after {
    width: 60%;
    background: #ff6b6b;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10;
    margin-right: 30px;
}

/* PROFILE CARD - Battlefield Style */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 6px;
    padding: 10px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.user-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--bf-orange) 0%, #ff8800 100%);
    box-shadow: 0 0 10px var(--bf-orange);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bf-orange);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.user-name {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.level-badge {
    width: 36px;
    height: 36px;
    background: var(--bf-orange);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
    position: relative;
}
.level-badge::before {
    display: none;
}

.level-number {
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

.xp-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xp-bar-outer {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.xp-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--bf-orange), var(--bf-orange-bright, #ff8c00));
    width: 0%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
    border-radius: 3px;
}

.xp-text {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    font-weight: 600;
}

.profile-right {
    display: flex;
    align-items: center;
}

.coin-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(40,35,20,0.9) 0%, rgba(30,25,15,0.9) 100%);
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid #ffcc00;
    box-shadow: 0 0 15px rgba(255,204,0,0.3);
}

.coin-icon {
    font-size: 20px;
    animation: coinPulse 2s infinite;
}

@keyframes coinPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.coin-amount {
    font-size: 18px;
    font-weight: 800;
    color: #ffcc00;
    text-shadow: 0 0 12px rgba(255,204,0,0.8);
    letter-spacing: 0.5px;
}

.btn-logout, .btn-login {
    padding: 10px 18px !important;
    font-size: 11px !important;
    width: auto !important;
    margin: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-logout {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 100, 100, 0.4);
    color: rgba(255, 150, 150, 0.9);
}
.btn-logout:hover {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 50, 50, 0.15);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.3);
}
.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0 4px;
    border: 2px solid rgba(255, 100, 100, 0.5);
    background: rgba(60, 30, 30, 0.9);
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffaaaa;
}
.btn-icon:hover {
    border-color: #ff5555;
    background: rgba(255, 50, 50, 0.25);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
    color: #ff5555;
    transform: scale(1.05);
}
.btn-login {
    background: var(--neon-green) !important;
    color: #000 !important;
}

.badge {
    background: var(--neon-pink);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
}
.badge.hidden { display: none; }

/* MAIN CONTENT */
.main-content {
    padding: 20px 60px;
    min-height: calc(100vh - 65px);
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 100px;
    width: 100%;
    box-sizing: border-box;
}

.main-tab-content {
    display: none !important;
    animation: fadeIn 0.3s;
    width: 100%;
        max-width: none;
    margin: 0;
}
.main-tab-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-title {
    color: var(--neon-blue);
    font-size: 28px;
    text-shadow: 0 0 15px var(--neon-blue);
    margin-bottom: 10px;
}
.section-subtitle {
    color: var(--neon-gold);
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
}
.section-desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ========================================
   BATTLEFIELD-STYLE INFO SLIDER
   ======================================== */
.bf-info-slider {
    position: relative;
    width: 100%;
    margin: 0 0 15px 0;
    height: 350px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px 50px;
    box-sizing: border-box;
}

.slide.active {
    /* Kein opacity mehr nötig */
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 45%;
    padding-right: 20px;
}

.slide-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--bf-orange);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
    border-radius: 2px;
}

.slide-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 500px;
}

.slide-btn {
    padding: 12px 28px;
    background: var(--bf-orange);
    border: 2px solid var(--bf-orange);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: inherit;
    border-radius: 2px;
}

.slide-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.slide-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 1;
    overflow: hidden;
}

.slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, rgba(12, 12, 12, 1) 0%, rgba(12, 12, 12, 0.8) 30%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    filter: brightness(0.9);
}

.slide-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.15) 0%, transparent 50%);
    z-index: 4;
    pointer-events: none;
}

/* Slider Text-Tabs (Battlefield Style) */
.slider-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding-top: 30px;
}

.slider-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.slider-tab .tab-label {
    position: relative;
    z-index: 2;
}

.slider-tab .tab-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--bf-orange), rgba(255, 200, 0, 0.8));
    transition: width 0.1s linear;
}

.slider-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 106, 0, 0.05);
}

.slider-tab.active {
    color: #fff;
    border-bottom-color: var(--bf-orange);
    background: linear-gradient(to top, rgba(255, 106, 0, 0.15), transparent);
}

.slider-tab.active .tab-progress {
    width: 100%;
    transition: width 6s linear;
}

/* Divider zwischen Tabs */
.slider-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 106, 0, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 106, 0, 0.2);
    border-color: var(--bf-orange);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

/* Responsive Slider */
@media (max-width: 900px) {
    .bf-info-slider {
        height: 200px;
    }

    .slide {
        padding: 25px;
    }

    .slide-content {
        max-width: 100%;
        padding-right: 0;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-desc {
        font-size: 14px;
    }

    .slide-image {
        display: none;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .slider-tabs {
        padding-top: 15px;
    }

    .slider-tab {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* ========================================
   TOP 3 LEADERBOARD SLIDER
   ======================================== */
/* Leaderboard Section Container */
.bf-leaderboard-section {
    width: 100%;
    margin: 40px 0 20px 0;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 15px 10px;
    border-bottom: 2px solid rgba(255, 106, 0, 0.3);
    margin-bottom: 0;
}

.leaderboard-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.leaderboard-icon {
    font-size: 32px;
    animation: trophyPulse 2s ease-in-out infinite;
}

@keyframes trophyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.leaderboard-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6a00 50%, #ff3d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.5));
}

.leaderboard-header-right {
    display: flex;
    align-items: center;
}

.leaderboard-subtitle {
    font-size: 12px;
    letter-spacing: 6px;
    color: #666;
    font-weight: 600;
}

.bf-leaderboard-slider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(8, 8, 8, 0.95) 100%);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-top: none;
}

.leaderboard-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.leaderboard-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 60px;
    position: relative;
    box-sizing: border-box;
}

.leaderboard-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 0;
}

/* Rank Section (Left) */
.leaderboard-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    min-width: 150px;
}

.rank-number {
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 30px currentColor;
}

.rank-number.rank-gold {
    color: #ffd700;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.4);
}

.rank-number.rank-silver {
    color: #c0c0c0;
    text-shadow: 0 0 40px rgba(192, 192, 192, 0.8), 0 0 80px rgba(192, 192, 192, 0.4);
}

.rank-number.rank-bronze {
    color: #cd7f32;
    text-shadow: 0 0 40px rgba(205, 127, 50, 0.8), 0 0 80px rgba(205, 127, 50, 0.4);
}

.rank-label {
    font-size: 14px;
    letter-spacing: 4px;
    color: #888;
    margin-top: 5px;
}

.rank-crown {
    font-size: 32px;
    margin-top: 10px;
    animation: crownFloat 2s ease-in-out infinite;
}

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

/* Player Section (Right) */
.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1;
}

.player-avatar {
    position: relative;
}

.avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 5px;
    position: relative;
}

.avatar-frame.gold {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.avatar-frame.silver {
    background: linear-gradient(135deg, #e8e8e8, #a0a0a0, #e8e8e8);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.5);
}

.avatar-frame.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513, #cd7f32);
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.5);
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #444;
}

.avatar-image::after {
    content: '👤';
    font-size: 50px;
}

.avatar-image.has-profile::after {
    display: none;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    animation: avatarPulse 3s ease-in-out infinite;
}

.avatar-glow.gold {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
}

.avatar-glow.silver {
    background: radial-gradient(circle, rgba(192, 192, 192, 0.6) 0%, transparent 70%);
}

.avatar-glow.bronze {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.6) 0%, transparent 70%);
}

@keyframes avatarPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-name {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

.player-stats {
    display: flex;
    gap: 25px;
}

.player-stats .stat-item {
    font-size: 16px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Leaderboard Tabs */
.leaderboard-slider-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 10;
}

.leaderboard-tab {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 106, 0, 0.2);
    color: #888;
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.leaderboard-tab .tab-rank {
    font-size: 14px;
}

.leaderboard-tab .tab-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--bf-orange);
    transition: width 0.1s linear;
}

.leaderboard-tab.active {
    background: rgba(255, 106, 0, 0.15);
    border-color: var(--bf-orange);
    color: #fff;
}

.leaderboard-tab.active .tab-progress {
    animation: leaderboardTabProgress 5s linear forwards;
}

@keyframes leaderboardTabProgress {
    from { width: 0; }
    to { width: 100%; }
}

.leaderboard-tab:hover:not(.active) {
    background: rgba(255, 106, 0, 0.1);
    color: #ccc;
}

/* Responsive Leaderboard Slider */
@media (max-width: 900px) {
    .leaderboard-title {
        font-size: 22px;
    }

    .leaderboard-icon {
        font-size: 26px;
    }

    .bf-leaderboard-slider {
        height: 220px;
    }

    .leaderboard-slide {
        padding: 20px 30px;
    }

    .rank-number {
        font-size: 60px;
    }

    .leaderboard-rank {
        min-width: 100px;
    }

    .avatar-frame {
        width: 80px;
        height: 80px;
    }

    .player-name {
        font-size: 22px;
    }

    .player-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .player-stats .stat-item {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .leaderboard-header {
        padding: 0 5px 10px 5px;
    }

    .leaderboard-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .leaderboard-icon {
        font-size: 22px;
    }

    .leaderboard-subtitle {
        display: none;
    }

    .bf-leaderboard-slider {
        height: 180px;
    }

    .leaderboard-slide {
        padding: 15px 20px;
    }

    .rank-number {
        font-size: 44px;
    }

    .rank-label {
        font-size: 10px;
    }

    .rank-crown {
        font-size: 20px;
    }

    .leaderboard-rank {
        min-width: 70px;
    }

    .avatar-frame {
        width: 50px;
        height: 50px;
    }

    .avatar-image::after {
        font-size: 24px;
    }

    .player-name {
        font-size: 16px;
    }

    .leaderboard-player {
        gap: 15px;
    }

    .leaderboard-tab {
        padding: 6px 12px;
        font-size: 9px;
    }

    .leaderboard-tab .tab-rank {
        font-size: 12px;
    }
}

/* ========================================
   BATTLEFIELD HOME LAYOUT - FULL WIDTH (NO SIDEBAR)
   ======================================== */
.home-layout {
    display: block;
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 400px;
    max-height: 500px;
}

.home-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Remove decorative accents for cleaner look */
.home-main::before,
.home-main::after {
    display: none;
}

/* Sidebar removed - keeping empty selector for backwards compatibility */
.home-sidebar {
    display: none;
}

/* Battlefield-Style Tile Cards */
.bf-tile {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 2px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bf-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--bf-orange);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bf-tile:hover {
    border-color: var(--bf-orange);
    background: rgba(20, 15, 10, 0.95);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.15);
}

.bf-tile:hover::before {
    opacity: 1;
}

/* Featured Large Tile (Mission Start) */
.bf-tile.featured {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background: linear-gradient(180deg, rgba(255,106,0,0.05) 0%, rgba(12,12,12,0.98) 60%);
    border: 2px solid rgba(255, 106, 0, 0.3);
}

/* Level Progress Tile - spans 2 columns */
.home-main > .bf-tile:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
}

/* Daily Missions Tile - spans 2 columns */
.home-main > .bf-tile:nth-child(3) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.bf-tile.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,106,0,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.bf-tile.featured:hover {
    border-color: var(--bf-orange);
    box-shadow: 0 0 50px rgba(255, 106, 0, 0.25);
}

.bf-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bf-tile-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--bf-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bf-tile-action {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bf-tile-action:hover {
    color: var(--bf-orange);
}

/* Sidebar Menu Buttons */
.bf-menu-btn {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    font-family: inherit;
}

.bf-menu-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bf-orange);
    opacity: 0;
    transition: opacity 0.2s;
}

.bf-menu-btn:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.4);
    color: #fff;
}

.bf-menu-btn:hover::before {
    opacity: 1;
}

.bf-menu-btn.active {
    background: rgba(255, 106, 0, 0.15);
    border-color: var(--bf-orange);
    color: #fff;
}

.bf-menu-btn.active::before {
    opacity: 1;
}

/* Featured Tile Content */
.featured-content {
    position: relative;
    z-index: 2;
}

.featured-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bf-orange);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.featured-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
    max-width: 400px;
}

.featured-pilot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 4px;
    max-width: 280px;
}

.featured-pilot .pilot-char-icon {
    font-size: 32px;
}

.featured-pilot .pilot-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.featured-pilot .pilot-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.featured-pilot .pilot-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.featured-btn {
    padding: 16px 40px;
    background: var(--bf-orange);
    border: none;
    border-radius: 2px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
}

.featured-btn:hover {
    background: var(--bf-orange-bright);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.5);
    transform: translateY(-2px);
}

/* Tile Level Display */
.tile-level-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tile-level-badge {
    width: 50px;
    height: 50px;
    background: var(--bf-orange);
    color: #000;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.tile-level-info {
    flex: 1;
}

.tile-xp-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.tile-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bf-orange), var(--bf-orange-bright));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.tile-xp-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.tile-reward {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tile-reward strong {
    color: var(--neon-gold);
}

/* Character Preview Widget (bf-tile Stil) */
.char-preview-tile {
    padding: 12px !important;
    min-height: 220px;
}

.char-preview-tile .bf-tile-header {
    margin-bottom: 8px;
}

#char-preview-canvas {
    display: block;
    width: 100%;
    height: 170px;
    border-radius: 4px;
    background: #0a0a12;
    border: 1px solid rgba(255, 106, 0, 0.15);
}

.char-preview-footer {
    margin-top: 10px;
    text-align: center;
}

.char-preview-title {
    font-size: 11px;
    font-weight: 700;
    color: #ff6a00;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.char-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

/* Sidebar Styles */
.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding-left: 3px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.sidebar-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sidebar-stat-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.sidebar-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    flex: 1;
}

.sidebar-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.sidebar-leaderboard {
    font-size: 12px;
}

.sidebar-leaderboard .leaderboard-entry {
    padding: 8px 12px;
    margin-bottom: 4px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 2px;
}

/* QUICK STATS ROW */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.quick-stat {
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.6), rgba(0, 10, 30, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quick-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-stat:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.2);
}

.quick-stat:hover::before {
    opacity: 1;
}

.quick-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.quick-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.quick-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.quick-stat.gold .quick-stat-value { color: var(--neon-gold); text-shadow: 0 0 15px rgba(255, 204, 0, 0.5); }
.quick-stat.level .quick-stat-value { color: var(--neon-blue); text-shadow: 0 0 15px rgba(255, 106, 0, 0.5); }
.quick-stat.kills .quick-stat-value { color: var(--neon-pink); text-shadow: 0 0 15px rgba(255, 0, 85, 0.5); }

/* LEVEL PROGRESS CARD - Battlefield Style */
.level-progress-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    transition: all 0.3s ease;
}
.level-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--bf-orange);
}
.level-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.level-progress-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--bf-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.level-progress-current {
    display: flex;
    align-items: center;
    gap: 10px;
}
.level-badge-big {
    background: var(--bf-orange);
    color: #000;
    font-size: 18px;
    font-weight: 800;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}
.level-xp-info {
    text-align: right;
}
.level-xp-current {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}
.level-xp-needed {
    font-size: 11px;
    color: #aaa;
}
.level-progress-bar-wrap {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.level-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: 8px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.5);
    position: relative;
}
.level-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 8px 8px 0 0;
}
.level-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #ccc;
}
/* Next Level Reward */
.next-level-reward {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px dashed rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.next-level-icon {
    font-size: 24px;
}
.next-level-info {
    flex: 1;
}
.next-level-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.next-level-value {
    font-size: 14px;
    color: var(--neon-gold);
    font-weight: bold;
}


/* MISSION START WIDGET */
.mission-start-widget {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    grid-column: span 2;
}
.mission-start-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--bf-orange);
}

.mission-start-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mission-start-widget-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--bf-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pilot-change-btn {
    padding: 5px 12px;
    font-size: 11px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pilot-change-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-pink);
    color: #fff;
}

.pilot-preview-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pilot-preview-char {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pilot-char-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.2), rgba(138, 43, 226, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.pilot-char-info {
    flex: 1;
    min-width: 0;
}

.pilot-char-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}

.pilot-char-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pilot-preview-cosmetics {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 100px;
}

.cosmetic-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 10px;
}

.cosmetic-icon {
    font-size: 12px;
}

.cosmetic-name {
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mission-start-btn {
    width: 100%;
    padding: 16px;
    background: var(--bf-orange);
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    font-family: inherit;
}

.mission-start-btn:hover {
    background: var(--bf-orange-bright);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

.mission-start-btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid rgba(255, 106, 0, 0.4);
    border-radius: 4px;
    color: var(--bf-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.mission-start-btn-secondary:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: var(--bf-orange);
    color: #fff;
}

/* DAILY MISSIONS WIDGET - Battlefield Style */
.daily-missions-widget {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
}
.daily-missions-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-green);
}

.daily-missions-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daily-missions-widget-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.daily-missions-timer-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
}

.timer-icon-small {
    font-size: 11px;
}

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

.mission-widget-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.mission-widget-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 106, 0, 0.2);
}

.mission-widget-item.completed {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.mission-widget-item.claimed {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.1);
}

.mission-widget-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-widget-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 8px;
}

.mission-widget-info {
    flex: 1;
    min-width: 0;
}

.mission-widget-name {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mission-widget-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.mission-widget-reward {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 11px;
    font-weight: bold;
}

.mission-widget-reward .coin-reward {
    color: var(--neon-gold);
}

.mission-widget-reward .xp-reward {
    color: var(--neon-blue);
    font-size: 10px;
}

.mission-widget-progress {
    margin-top: 8px;
}

.mission-widget-progress-bar {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.mission-widget-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mission-widget-item.completed .mission-widget-progress-fill {
    background: linear-gradient(90deg, var(--neon-green), #00ff88);
}

.mission-widget-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.mission-widget-claim-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: linear-gradient(90deg, var(--neon-gold), #ff8800);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.mission-widget-claim-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.mission-widget-claimed-text {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.missions-widget-login {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* SHOP HIGHLIGHTS SECTION */
.shop-highlights-section {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    grid-column: span 2;
}
.shop-highlights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-gold);
}

.shop-highlights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shop-highlights-header h3 {
    margin: 0;
    color: var(--neon-gold);
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.shop-highlights-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.shop-highlights-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

.shop-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.shop-highlight-card {
    background: linear-gradient(145deg, rgba(25, 28, 40, 0.95), rgba(15, 18, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.shop-highlight-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-gold);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.2);
}

.shop-highlight-card.rarity-common { border-left: 3px solid #888; }
.shop-highlight-card.rarity-rare { border-left: 3px solid #3498db; }
.shop-highlight-card.rarity-epic { border-left: 3px solid #9b59b6; }
.shop-highlight-card.rarity-legendary { border-left: 3px solid #f39c12; }

.shop-highlight-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.shop-highlight-name {
    font-size: 11px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-highlight-price {
    font-size: 12px;
    color: var(--neon-gold);
    font-weight: bold;
}

@media (max-width: 600px) {
    .shop-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PILOT SHOWCASE ROW */
.pilot-showcase-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}
.pilot-showcase-row .level-progress-card {
    flex: 1;
    margin-bottom: 0;
}
.pilot-preview-card {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 15, 40, 0.9));
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 170px;
}
.pilot-preview-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
#dashboard-pilot-canvas {
    background: radial-gradient(ellipse at center, rgba(0,20,40,0.8) 0%, rgba(0,10,25,1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.pilot-cosmetics-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    width: 100%;
}
.cosmetic-slot-mini {
    font-size: 9px;
    color: #aaa;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

/* INVENTORY PREVIEW */
.inventory-preview-section {
    background: linear-gradient(135deg, rgba(0, 40, 20, 0.6), rgba(0, 25, 15, 0.8));
    border: 1px solid rgba(0, 255, 68, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.inventory-preview-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.inventory-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
#inventory-preview-canvas {
    background: radial-gradient(ellipse at center, rgba(0,25,15,0.9) 0%, rgba(0,15,10,1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(0,255,68,0.2);
}
.inventory-preview-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.inventory-preview-info span {
    font-size: 10px;
    color: #aaa;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

/* PLAY BUTTON - MEGA STYLE */
.btn-play {
    font-size: 26px !important;
    padding: 30px 40px !important;
    background: linear-gradient(135deg, var(--neon-blue), #0066ff, var(--neon-blue)) !important;
    background-size: 200% 100% !important;
    box-shadow:
        0 0 40px rgba(255, 106, 0, 0.4),
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    animation: playBtnShine 3s linear infinite;
    letter-spacing: 4px !important;
}

@keyframes playBtnShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: playBtnGlare 2s ease-in-out infinite;
}

@keyframes playBtnGlare {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-play:hover {
    transform: scale(1.05) !important;
    box-shadow:
        0 0 60px rgba(255, 106, 0, 0.6),
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
}

/* FEATURE CARDS */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 15, 30, 0.7), rgba(0, 5, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 106, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.feature-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
}

.feature-card-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.feature-card.shop { border-left: 3px solid var(--neon-gold); }
.feature-card.inventory { border-left: 3px solid var(--neon-green); }
.feature-card.pilot { border-left: 3px solid var(--neon-blue); }
.feature-card.stats { border-left: 3px solid var(--neon-pink); }
.feature-card.missions {
    border-left: 3px solid #ff8800;
    position: relative;
}

.missions-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0055;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px 3px rgba(255, 0, 85, 0.4); }
}

/* DAILY MISSIONS STYLES */
.missions-timer {
    background: linear-gradient(90deg, rgba(255, 136, 0, 0.15), rgba(255, 204, 0, 0.1));
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 136, 0, 0.3);
}

.timer-icon {
    font-size: 18px;
}

.timer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

#missions-countdown {
    color: var(--neon-gold);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.missions-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.missions-loading {
    text-align: center;
    color: #888;
    padding: 30px;
}

.mission-item {
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.8), rgba(15, 10, 5, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.mission-item:hover {
    border-color: rgba(255, 204, 0, 0.3);
    transform: translateX(3px);
}

.mission-item.completed {
    border-color: var(--neon-green);
    background: linear-gradient(135deg, rgba(0, 40, 20, 0.6), rgba(0, 25, 15, 0.7));
}

.mission-item.claimed {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.mission-icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.mission-info {
    flex: 1;
}

.mission-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}

.mission-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.mission-reward {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 204, 0, 0.15);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
}

.mission-reward .reward-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--neon-gold);
}

.mission-reward .reward-row.xp-reward {
    color: #00d4aa;
    font-size: 11px;
}

.mission-progress-wrap {
    margin-top: 10px;
}

.mission-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.mission-item.completed .mission-progress-fill {
    background: linear-gradient(90deg, var(--neon-green), #00ff88);
}

.mission-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.mission-claim-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, var(--neon-gold), #ff8800);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-claim-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.mission-claim-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mission-claimed-text {
    text-align: center;
    margin-top: 10px;
    color: var(--neon-green);
    font-size: 12px;
    font-weight: bold;
}

.missions-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.missions-reward-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.reward-icon {
    font-size: 16px;
}

/* LEADERBOARD BOX - ENHANCED */
.leaderboard-box {
    margin-top: 0;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    grid-column: span 2;
}

.leaderboard-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-gold);
}

.leaderboard-box h3 {
    color: var(--neon-gold);
    margin: 0 0 15px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-box h3::before {
    content: '👑';
    font-size: 16px;
}

#leaderboard-list {
    font-size: 13px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.leaderboard-entry:hover {
    border-color: rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.05);
}

.leaderboard-entry.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0.3));
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-entry.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(0, 0, 0, 0.3));
    border-color: rgba(192, 192, 192, 0.2);
}

.leaderboard-entry.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0.3));
    border-color: rgba(205, 127, 50, 0.2);
}

.leaderboard-rank {
    font-size: 16px;
    font-weight: bold;
    width: 30px;
    text-align: center;
}

.leaderboard-name {
    flex: 1;
    color: #fff;
    font-weight: bold;
}

.leaderboard-score {
    color: var(--neon-gold);
    font-weight: bold;
}

/* INFO CARD - ENHANCED */
.info-card {
    background: linear-gradient(135deg, rgba(0, 15, 30, 0.8), rgba(0, 5, 20, 0.9));
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 15px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-blue));
    background-size: 200% 100%;
    animation: infoCardGlow 3s linear infinite;
}

@keyframes infoCardGlow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.info-card h4 {
    color: var(--neon-blue);
    margin: 0 0 15px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ONLINE PLAYERS WIDGET */
.online-widget {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 4px;
    padding: 18px;
    position: relative;
}
.online-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-green);
}

.online-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: onlinePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px var(--neon-green);
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.online-count {
    font-size: 28px;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
}

.online-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* AKTIVES SPIEL WIDGET */
.active-game-widget {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 0, 0, 0.5));
    border: 2px solid rgba(255, 140, 0, 0.4);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    animation: activeGameGlow 2s ease-in-out infinite;
}

@keyframes activeGameGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 140, 0, 0.6); }
}

.active-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #ff8c00;
    text-transform: uppercase;
}

.active-game-dot {
    width: 10px;
    height: 10px;
    background: #ff8c00;
    border-radius: 50%;
    animation: activeGamePulse 1s ease-in-out infinite;
    box-shadow: 0 0 10px #ff8c00;
}

@keyframes activeGamePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.active-game-info {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
}

.active-game-info strong {
    color: var(--neon-green);
    font-size: 18px;
}

.active-game-buttons {
    display: flex;
    gap: 8px;
}

.btn-rejoin {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #ff8c00, #cc5500);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rejoin:hover {
    background: linear-gradient(135deg, #00ccff, #0088ee);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

.btn-end-game {
    padding: 10px 15px;
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.4);
    border-radius: 8px;
    color: #ff5555;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-end-game:hover {
    background: rgba(255, 50, 50, 0.4);
    border-color: #ff5555;
}

/* ESC HINT IM SPIEL */
#esc-hint {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
}

#esc-hint:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.esc-key {
    background: linear-gradient(180deg, #444, #222);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border: 1px solid #555;
    box-shadow: 0 2px 0 #111;
}

.esc-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* NETWORK STATS oben rechts */
#network-stats {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 11px;
    font-family: monospace;
    z-index: 100;
}

#network-stats span {
    color: rgba(255, 255, 255, 0.6);
}

#network-stats #fps-disp {
    color: #00ff00;
}

#network-stats #ping-disp {
    color: #ffff00;
}

#network-stats #net-disp {
    color: #00ffff;
}

.manual-mini-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}
.mini-tab {
    padding: 5px 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    color: #888;
}
.mini-tab.active {
    background: var(--neon-blue);
    color: #000;
    border-color: var(--neon-blue);
}
.control-item {
    padding: 5px 0;
    font-size: 12px;
    color: #aaa;
    border-bottom: 1px solid #222;
}
.enemy-mini {
    padding: 5px 0;
    font-size: 12px;
    color: #aaa;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: rgba(0,0,0,0.6);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}
.stat-card.highlight {
    border-color: var(--neon-gold);
    background: rgba(255,204,0,0.1);
}
.stat-icon { font-size: 30px; margin-bottom: 10px; }
.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}
.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.history-list {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.history-item {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px 120px;
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    font-size: 13px;
    align-items: center;
}
.history-item:hover { background: rgba(255,255,255,0.03); }
.history-empty {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* PILOT CONFIG */
.pilot-config {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    max-width: 700px;
}
.pilot-options {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
}
.config-label {
    display: block;
    color: var(--neon-blue);
    font-size: 12px;
    margin-bottom: 8px;
    margin-top: 20px;
}
.config-label:first-child { margin-top: 0; }

.pilot-preview-box {
    background: rgba(0,0,0,0.6);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.preview-label {
    color: #666;
    font-size: 11px;
    margin-top: 10px;
}

.btn-save {
    margin-top: 25px !important;
    background: var(--neon-green) !important;
}

/* FRIENDS */
.friends-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}
.friends-main {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
}
.friends-main h3 {
    color: var(--neon-green);
    margin: 0 0 20px 0;
    font-size: 14px;
}
.friends-list-large {
    max-height: 400px;
    overflow-y: auto;
}
.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #222;
    border-radius: 8px;
    margin-bottom: 8px;
}
.friend-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.friend-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
}
.friend-status.online { background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.friend-name { font-size: 14px; }
.friend-level { color: var(--neon-gold); font-size: 11px; }

.friends-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.friends-search-box, .pending-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
}
.friends-search-box h4, .pending-box h4 {
    color: var(--neon-blue);
    margin: 0 0 15px 0;
    font-size: 13px;
}
.search-results {
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 12px;
}

/* SETTINGS */
.settings-section {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    max-width: 500px;
}
.settings-section h3 {
    color: var(--neon-blue);
    margin: 0 0 20px 0;
    font-size: 14px;
}
.account-info {
    font-size: 14px;
    line-height: 2;
}
.account-info strong { color: #888; }
.result-msg {
    margin-top: 10px;
    font-size: 13px;
    padding: 10px;
    border-radius: 5px;
}
.result-msg.success { background: rgba(0,255,68,0.2); color: var(--neon-green); }
.result-msg.error { background: rgba(255,0,85,0.2); color: var(--neon-pink); }

/* Danger Zone - Account Deletion */
.settings-section.danger-zone {
    border-color: rgba(255, 68, 68, 0.5);
    background: rgba(50, 0, 0, 0.3);
    margin-top: 40px;
}
.settings-section.danger-zone h3 {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}
.btn-danger {
    background: linear-gradient(45deg, #aa0000, #ff4444);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-danger:hover {
    background: linear-gradient(45deg, #cc0000, #ff6666);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    transform: translateY(-2px);
}
.btn-danger:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   COIN SHOP UI
   ============================================ */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.shop-coins-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255,204,0,0.2), rgba(255,165,0,0.1));
    border: 2px solid var(--neon-gold);
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255,204,0,0.3);
}
.coin-icon-big {
    font-size: 32px;
    animation: coinPulse 2s ease-in-out infinite;
}
@keyframes coinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.coins-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--neon-gold);
    text-shadow: 0 0 10px var(--neon-gold);
}
.coins-label {
    font-size: 12px;
    color: #cccccc;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Promo Code Section */
.promo-code-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px dashed rgba(255,204,0,0.3);
    border-radius: 10px;
}
#promo-code-input {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #444;
    color: var(--neon-gold);
    border-radius: 5px;
    width: 200px;
    text-align: center;
    transition: all 0.3s;
}
#promo-code-input:focus {
    outline: none;
    border-color: var(--neon-gold);
    box-shadow: 0 0 15px rgba(255,204,0,0.3);
}
#promo-code-input::placeholder {
    color: #666;
    letter-spacing: 1px;
}
#redeem-code-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255,204,0,0.2), rgba(255,165,0,0.1));
    border: 2px solid var(--neon-gold);
    color: var(--neon-gold);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}
#redeem-code-btn:hover {
    background: var(--neon-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255,204,0,0.5);
}

/* Shop Search Bar */
.shop-search-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

#shop-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(0,243,255,0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#shop-search-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,243,255,0.3);
}

#shop-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Shop Category Tabs - Professioneller Stil */
.shop-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}
.shop-cat-tab {
    padding: 12px 22px;
    background: linear-gradient(180deg, rgba(40,40,50,0.9) 0%, rgba(20,20,30,0.9) 100%);
    border: 2px solid #555;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.shop-cat-tab:hover {
    border-color: var(--neon-blue);
    color: #fff;
    background: linear-gradient(180deg, rgba(150,70,0,0.5) 0%, rgba(50,25,0,0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,106,0,0.3);
}
.shop-cat-tab.active {
    background: linear-gradient(180deg, var(--neon-blue) 0%, #0088aa 100%);
    color: #000;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(255,106,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: none;
}

/* Shop Items Container */
.shop-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 15px;
    background: linear-gradient(180deg, rgba(10,12,20,0.95) 0%, rgba(5,8,15,0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.shop-items-container::-webkit-scrollbar {
    width: 8px;
}
.shop-items-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}
.shop-items-container::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}
.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #aaa;
    padding: 60px;
    font-size: 16px;
}

/* Shop Item Card - Premium Look */
.shop-item-card {
    background: linear-gradient(180deg, rgba(25,28,40,0.98) 0%, rgba(15,18,28,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}
.shop-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.shop-item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.shop-item-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,106,0,0.2), 0 0 20px rgba(255,106,0,0.1);
}
.shop-item-card .item-icon {
    font-size: 28px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}
.shop-item-card:hover .item-icon {
    transform: scale(1.15);
}
.shop-item-card .item-name {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shop-item-card .item-description {
    font-size: 10px;
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.3;
    opacity: 0.9;
}
.shop-item-card .item-price {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.shop-item-card .item-rarity {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.shop-item-card.owned {
    border-color: var(--neon-green);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(20,35,25,0.95) 0%, rgba(15,25,20,0.95) 100%);
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}
.shop-item-card.owned::before {
    background: linear-gradient(90deg, transparent, rgba(0,255,68,0.15), transparent);
}
.shop-item-card.owned .item-icon {
    filter: grayscale(40%) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.shop-item-card.owned .item-price {
    display: none;
}
.owned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--neon-green), #00aa44);
    color: #000;
    font-size: 9px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,255,68,0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Rarity Borders & Labels */
.shop-item-card.rarity-common { border-color: #666; }
.shop-item-card.rarity-common .item-rarity { background: #666; color: #fff; }
.shop-item-card.rarity-rare { border-color: #3498db; }
.shop-item-card.rarity-rare .item-rarity { background: #3498db; color: #fff; }
.shop-item-card.rarity-epic { border-color: #9b59b6; }
.shop-item-card.rarity-epic .item-rarity { background: #9b59b6; color: #fff; }
.shop-item-card.rarity-legendary {
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243,156,18,0.35);
    background: linear-gradient(180deg, rgba(40,30,15,0.95) 0%, rgba(20,15,5,0.95) 100%);
}
.shop-item-card.rarity-legendary .item-rarity {
    background: linear-gradient(90deg, #f39c12, #e67e22);
    color: #000;
    animation: legendaryPulse 2s infinite;
}
.shop-item-card.rarity-legendary:hover {
    box-shadow: 0 15px 50px rgba(243,156,18,0.5);
}
@keyframes legendaryPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(243,156,18,0.5); }
    50% { box-shadow: 0 0 15px rgba(243,156,18,0.8); }
}

/* Rabatt-Badge und Preisanzeige */
.discount-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 10;
    animation: discountPulse 1.5s infinite;
    box-shadow: 0 2px 8px rgba(255,0,0,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 12px;
    margin-right: 5px;
}
.discounted-price {
    color: #00ff44;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 8px rgba(0,255,68,0.5);
}

/* Welcome Coupon Modal */
.welcome-coupon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.welcome-coupon-modal.show {
    opacity: 1;
}
.welcome-coupon-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid var(--neon-gold);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(255, 204, 0, 0.3);
    animation: modalPop 0.4s ease;
}
@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.welcome-coupon-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.welcome-coupon-content h2 {
    color: var(--neon-gold);
    font-size: 32px;
    margin: 0 0 15px 0;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}
.welcome-coupon-content p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.welcome-coupon-code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--neon-gold);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.coupon-label {
    color: #888;
    font-size: 12px;
}
.coupon-value {
    color: var(--neon-gold);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}
.copy-coupon-btn {
    background: var(--neon-blue);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-coupon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.5);
}
.welcome-coupon-reward {
    font-size: 36px;
    color: var(--neon-gold);
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}
.welcome-coupon-close {
    background: linear-gradient(90deg, var(--neon-gold), #e67e22);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}
.welcome-coupon-close:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.5);
}

/* Kaufbestätigung Overlay */
.buy-confirm-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border-radius: 10px;
}
.shop-item-card.confirming .buy-confirm-overlay {
    opacity: 1;
    pointer-events: auto;
}
.confirm-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-gold);
    text-align: center;
}
.confirm-buttons {
    display: flex;
    gap: 10px;
}
.confirm-yes, .confirm-no {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}
.confirm-yes {
    background: rgba(0,255,68,0.2);
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.confirm-yes:hover {
    background: var(--neon-green);
    color: #000;
}
.confirm-no {
    background: rgba(255,50,50,0.2);
    border-color: #ff5555;
    color: #ff5555;
}
.confirm-no:hover {
    background: #ff5555;
    color: #000;
}

/* Kauf-Animation */
.shop-item-card.purchased {
    animation: purchasePulse 0.5s ease-out;
}
@keyframes purchasePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); border-color: var(--neon-green); }
    100% { transform: scale(1); }
}

/* Fliegende Coins */
.flying-coin {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    animation: coinFly 1s ease-out forwards;
    z-index: 9999;
}
@keyframes coinFly {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(0.5); }
}
.coin-deducting {
    animation: coinShake 0.3s ease-in-out;
    color: #ff5555 !important;
}
@keyframes coinShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.item-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.item-name {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.item-desc {
    font-size: 10px;
    color: whitesmoke;
    margin-bottom: 10px;
    line-height: 1.4;
}
.item-stats {
    font-size: 9px;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.item-stats .stat-positive {
    color: var(--neon-green);
}
.item-stats .stat-negative {
    color: var(--neon-pink);
}
.item-price {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,204,0,0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    color: var(--neon-gold);
}
.item-rarity {
    font-size: 9px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.rarity-common { background: #555; color: #fff; }
.rarity-rare { background: #3498db; color: #fff; }
.rarity-epic { background: #9b59b6; color: #fff; }
.rarity-legendary { background: linear-gradient(45deg, #f39c12, #e74c3c); color: #fff; }

.item-quantity {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--neon-blue);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}
.item-max-stack {
    font-size: 9px;
    color: #666;
    margin-top: 5px;
}

/* ============================================
   INVENTAR UI
   ============================================ */
.equipped-section {
    background: rgba(0,20,40,0.5);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}
.equipped-section h3 {
    color: var(--neon-blue);
    margin: 0 0 15px 0;
    font-size: 14px;
}
.equipped-slots {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.equipped-slot {
    background: rgba(0,0,0,0.5);
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 15px;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s;
}
.equipped-slot:hover {
    border-color: var(--neon-blue);
}
.equipped-slot.filled {
    border-style: solid;
    border-color: var(--neon-green);
}
.slot-label {
    font-size: 10px;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.slot-content {
    font-size: 14px;
    color: #fff;
}
.slot-content.empty {
    color: #555;
}

/* Inventory Category Tabs */
.inventory-category-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.inv-cat-tab {
    padding: 10px 18px;
    background: linear-gradient(180deg, rgba(30,35,45,0.95) 0%, rgba(20,25,35,0.95) 100%);
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 11px;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inv-cat-tab:hover {
    border-color: var(--neon-green);
    color: #fff;
    background: linear-gradient(180deg, rgba(0,80,50,0.5) 0%, rgba(0,50,30,0.5) 100%);
    transform: translateY(-2px);
}
.inv-cat-tab.active {
    background: linear-gradient(180deg, var(--neon-green) 0%, #00aa44 100%);
    color: #000;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0,255,68,0.4);
}

/* All Tab - Purple Gradient (wie im Shop) */
.inv-cat-tab.all-tab {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.2));
    border-color: #8a2be2;
}
.inv-cat-tab.all-tab:hover {
    border-color: #9932cc;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.5), rgba(75, 0, 130, 0.4));
}
.inv-cat-tab.all-tab.active {
    background: linear-gradient(145deg, #9932cc, #8a2be2);
    color: #fff;
    border-color: #9932cc;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* Inventory Items - Gleiche Breite wie Shop/Market */
.inventory-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, rgba(15,20,30,0.95) 0%, rgba(8,12,20,0.95) 100%);
    border-radius: 14px;
    border: 1px solid rgba(0,255,68,0.15);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) #1a1a2e;
}
.inventory-items-container::-webkit-scrollbar {
    width: 8px;
}
.inventory-items-container::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}
.inventory-items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-green), #00aa44);
    border-radius: 4px;
}
.inventory-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 60px 40px;
    font-style: italic;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px dashed rgba(0,255,68,0.2);
}

/* Inventory Subcategory Headers */
.inv-subcategory {
    grid-column: 1 / -1;
    color: var(--neon-green);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0 5px 0;
    border-bottom: 1px solid rgba(0,255,68,0.2);
    margin-top: 10px;
}
.inv-subcategory:first-child {
    margin-top: 0;
}

/* Inventory Item Card */
.inv-item-card {
    background: rgba(0,10,20,0.8);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}
.inv-item-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-3px);
}
.inv-item-card.equipped {
    border-color: var(--neon-gold);
    box-shadow: 0 0 15px rgba(255,204,0,0.3);
}
.inv-item-card.equipped::before {
    content: 'AKTIV';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-gold);
    color: #000;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
}

.inv-item-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.inv-item-name {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.inv-item-quantity {
    font-size: 10px;
    color: var(--neon-blue);
}
.inv-item-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.inv-item-actions button {
    padding: 5px 10px;
    font-size: 10px;
    margin: 0;
    width: auto;
}
.inv-item-actions .unequip-btn {
    background: rgba(255,50,50,0.2);
    border-color: #ff5555;
    color: #ff5555;
}
.inv-item-actions .unequip-btn:hover {
    background: #ff5555;
    color: #000;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border: 2px solid var(--neon-green);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    animation: toastIn 0.3s ease-out;
    box-shadow: 0 0 30px rgba(0,255,68,0.3);
}
.toast.error {
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255,0,85,0.3);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   XP PROGRESS SCREEN (Einheitlich mit Panel-Design)
   ============================================ */
#xp-progress-screen {
    position: fixed;
    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: 9999;
    animation: xpScreenIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

/* Neue XP Screen Styles */
.xp-reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.xp-reward-row:last-child {
    border-bottom: none;
}

.xp-gained-value {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px var(--neon-green);
    animation: xpValuePulse 1s ease-in-out infinite;
}

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

.xp-levelup-row {
    background: rgba(255, 106, 0, 0.1);
    margin: 5px -15px -15px -15px;
    padding: 12px 15px !important;
    border-radius: 0 0 4px 4px;
    border-bottom: none !important;
}

.xp-bar-container-new {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.xp-bar-fill-new {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #00ff88);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--neon-green);
}

.xp-bar-label {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

#xp-progress-screen.closing {
    animation: xpScreenOut 0.3s ease-in forwards;
}

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

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

.xp-progress-container {
    text-align: center;
    padding: 40px 60px;
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.9), rgba(0, 10, 30, 0.95));
    border: 3px solid var(--neon-blue);
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(255, 106, 0, 0.3),
        inset 0 0 30px rgba(255, 106, 0, 0.1);
    animation: containerPulse 2s ease-in-out infinite;
    min-width: 450px;
}

@keyframes containerPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(255, 106, 0, 0.3), inset 0 0 30px rgba(255, 106, 0, 0.1); }
    50% { box-shadow: 0 0 70px rgba(255, 106, 0, 0.5), inset 0 0 40px rgba(255, 106, 0, 0.15); }
}

.xp-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 30px var(--neon-blue), 0 0 60px var(--neon-blue);
    margin-bottom: 20px;
    letter-spacing: 8px;
    animation: titleGlow 1.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 30px var(--neon-blue), 0 0 60px var(--neon-blue); }
    to { text-shadow: 0 0 40px var(--neon-blue), 0 0 80px var(--neon-blue), 0 0 100px var(--neon-blue); }
}

.xp-double-badge {
    background: linear-gradient(90deg, var(--neon-gold), #ff8800, var(--neon-gold));
    background-size: 200% 100%;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 25px;
    border-radius: 25px;
    margin-bottom: 20px;
    display: inline-block;
    animation: doubleBadgeShine 2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

@keyframes doubleBadgeShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.xp-gained {
    font-size: 64px;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green), 0 0 60px var(--neon-green);
    margin-bottom: 30px;
    animation: xpGainedPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes xpGainedPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.xp-bar-wrapper {
    position: relative;
    margin: 20px 0;
}

.xp-level-badge {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-blue), #0066ff);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 20px var(--neon-blue);
    z-index: 2;
}

.xp-level-badge.level-up-flash {
    animation: levelUpFlash 0.5s ease-out;
}

@keyframes levelUpFlash {
    0% { transform: translateY(-50%) scale(1); background: linear-gradient(135deg, var(--neon-blue), #0066ff); }
    50% { transform: translateY(-50%) scale(1.5); background: linear-gradient(135deg, var(--neon-gold), #ff8800); box-shadow: 0 0 50px var(--neon-gold); }
    100% { transform: translateY(-50%) scale(1); background: linear-gradient(135deg, var(--neon-blue), #0066ff); }
}

.xp-bar-track {
    width: 350px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #444;
    border-radius: 15px;
    margin-left: 55px;
    overflow: hidden;
    position: relative;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), #00ff88, var(--neon-green));
    background-size: 200% 100%;
    border-radius: 13px;
    transition: width 0.05s linear;
    position: relative;
    animation: barShine 2s linear infinite;
}

@keyframes barShine {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 13px 13px 0 0;
}

.xp-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    z-index: 3;
    margin-left: 27px;
}

.xp-levelup-text {
    font-size: 36px;
    font-weight: bold;
    color: var(--neon-gold);
    text-shadow: 0 0 30px var(--neon-gold), 0 0 60px var(--neon-gold);
    margin: 20px 0;
    animation: levelUpBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes levelUpBounce {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(0.9) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.xp-coins-earned {
    font-size: 24px;
    color: var(--neon-gold);
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.xp-coins-earned span {
    font-size: 28px;
}

.xp-close-btn {
    background: linear-gradient(135deg, var(--neon-blue), #0066ff);
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 50px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

.xp-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.5);
    background: linear-gradient(135deg, #00ff88, var(--neon-green));
}

.xp-close-btn:active {
    transform: scale(0.98);
}

/* ============================================
   BOOST ACTIVATION BUTTONS
   ============================================ */
.activate-boost-btn {
    background: linear-gradient(135deg, var(--neon-gold), #ff8800);
    border: none;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.activate-boost-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.boost-active-timer {
    background: linear-gradient(135deg, var(--neon-green), #00cc44);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 15px;
    margin-top: 8px;
    animation: timerPulse 1.5s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 68, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 68, 0.6); }
}

.boost-info {
    color: #888;
    font-size: 11px;
    font-style: italic;
    margin-top: 8px;
}

/* ============================================
   RESPAWN CONFIRMATION DIALOG
   ============================================ */
#respawn-dialog,
#coin-revive-dialog {
    position: fixed;
    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: 9998;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.respawn-dialog-content {
    text-align: center;
    padding: 40px 50px;
    background: linear-gradient(135deg, rgba(20, 0, 30, 0.95), rgba(40, 0, 50, 0.95));
    border: 3px solid var(--neon-pink);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.4);
    max-width: 400px;
}

.respawn-dialog-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 30px var(--neon-pink);
    margin-bottom: 15px;
}

.respawn-dialog-text {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.respawn-dialog-count {
    font-size: 24px;
    color: var(--neon-gold);
    font-weight: bold;
    margin-bottom: 20px;
}

.respawn-dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.respawn-btn-use {
    background: linear-gradient(135deg, var(--neon-green), #00cc44);
    border: none;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.respawn-btn-use:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 68, 0.5);
}

.respawn-btn-skip {
    background: rgba(100, 100, 100, 0.5);
    border: 2px solid #666;
    color: #aaa;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.respawn-btn-skip:hover {
    background: rgba(150, 150, 150, 0.5);
    color: #fff;
    border-color: #999;
}

/* ============================================
   TUTORIAL SCREEN STYLES
   ============================================ */
#screen-tutorial #tutorial-overlay {
    /* Überschreibe nicht die Inline-Styles - nur Animationen hinzufügen */
    animation: tutorialSlideIn 0.3s ease-out;
}

@keyframes tutorialSlideIn {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

#screen-tutorial #tutorial-overlay h3 {
    text-shadow: 0 0 15px var(--neon-blue);
}

#screen-tutorial #btn-tutorial-next {
    background: linear-gradient(135deg, var(--neon-blue), #0066ff);
    border: none;
    transition: all 0.3s;
}

#screen-tutorial #btn-tutorial-next:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

#screen-tutorial #btn-tutorial-next:disabled {
    background: #444;
    cursor: not-allowed;
}

/* ============================================
   ACTIVE BOOSTS DISPLAY (Dashboard)
   ============================================ */
.active-boosts-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.active-boosts-title {
    font-size: 14px;
    color: var(--neon-gold);
    font-weight: bold;
    margin-bottom: 10px;
}

.active-boost-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
}

.active-boost-item:last-child {
    margin-bottom: 0;
}

.active-boost-name {
    color: #fff;
    font-size: 13px;
}

.active-boost-timer {
    color: var(--neon-green);
    font-size: 12px;
    font-weight: bold;
    font-family: monospace;
}
/* ============================================
   LEGAL MODALS (AGB & Impressum)
   ============================================ */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.legal-modal-content {
    background: linear-gradient(135deg, rgba(20, 15, 10, 0.98) 0%, rgba(0, 10, 20, 0.98) 100%);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.3);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 106, 0, 0.3);
    background: rgba(255, 106, 0, 0.05);
}

.legal-modal-header h2 {
    margin: 0;
    color: var(--neon-blue);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-close {
    background: transparent;
    border: 1px solid rgba(255, 0, 85, 0.5);
    color: var(--neon-pink);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-pink);
}

.legal-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    color: #ccc;
    font-size: 13px;
    line-height: 1.7;
}

.legal-modal-body h3 {
    color: var(--neon-blue);
    margin: 20px 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin: 0 0 12px 0;
}

.legal-modal-body a {
    color: var(--neon-blue);
    text-decoration: none;
}

.legal-modal-body a:hover {
    text-decoration: underline;
}

/* ============================================
   LOOTBOX OPENING ANIMATION - FIFA/CS:GO STYLE
   ============================================ */

/* Main Modal */
.lootbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a15 100%);
}

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

.lootbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.lootbox-modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 40px 0;
}

/* Phase 1: Box Shake Animation */
.lootbox-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lootbox-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.lootbox-box {
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    border: 3px solid var(--neon-gold);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 30px rgba(255,215,0,0.3), inset 0 0 30px rgba(255,215,0,0.1);
}

.lootbox-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255,215,0,0.5), inset 0 0 40px rgba(255,215,0,0.2);
}

.lootbox-box.shake {
    animation: boxShake 0.5s ease-in-out;
}

.lootbox-box.shake-intense {
    animation: boxShakeIntense 0.3s ease-in-out infinite;
}

.lootbox-box.explode {
    animation: boxExplode 0.5s ease-out forwards;
}

@keyframes boxShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-10px) rotate(-3deg); }
    75% { transform: translateX(10px) rotate(3deg); }
}

@keyframes boxShakeIntense {
    0%, 100% { transform: translateX(0) rotate(0) scale(1); }
    25% { transform: translateX(-15px) rotate(-5deg) scale(1.02); }
    75% { transform: translateX(15px) rotate(5deg) scale(1.02); }
}

@keyframes boxExplode {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.lootbox-icon {
    font-size: 80px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}

.lootbox-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-gold);
    text-shadow: 0 0 20px var(--neon-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lootbox-click-hint {
    margin-top: 30px;
    font-size: 18px;
    color: #888;
    animation: hintBlink 1.5s ease-in-out infinite;
}

@keyframes hintBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Phase 2: Carousel (CS:GO Style) */
.lootbox-carousel-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
}

.lootbox-carousel-header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.carousel-pointer {
    font-size: 40px;
    color: var(--neon-gold);
    text-shadow: 0 0 20px var(--neon-gold);
    animation: pointerBounce 0.5s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.lootbox-carousel {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    transition: transform 4s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.carousel-item {
    flex-shrink: 0;
    width: 140px;
    height: 180px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    border: 3px solid #444;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.carousel-item.rarity-common { border-color: #888888; }
.carousel-item.rarity-rare { border-color: #3498db; box-shadow: 0 0 15px rgba(52,152,219,0.5); }
.carousel-item.rarity-epic { border-color: #9b59b6; box-shadow: 0 0 15px rgba(155,89,182,0.5); }
.carousel-item.rarity-legendary { 
    border-color: #f39c12; 
    box-shadow: 0 0 25px rgba(243,156,18,0.7);
    animation: legendaryGlow 1s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(243,156,18,0.7); }
    50% { box-shadow: 0 0 40px rgba(243,156,18,1); }
}

.carousel-item-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.carousel-item-name {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.lootbox-carousel-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    pointer-events: none;
    border-left: 2px solid rgba(255,215,0,0.5);
    border-right: 2px solid rgba(255,215,0,0.5);
}

/* Phase 3: Card Reveal (FIFA Style) */
.lootbox-reveal-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reveal-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--neon-gold);
    text-shadow: 0 0 30px var(--neon-gold);
    margin-bottom: 40px;
    animation: titlePop 0.5s ease-out;
}

.reveal-title.jackpot {
    color: #ff00ff;
    text-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff;
    animation: titlePop 0.5s ease-out, jackpotRainbow 2s linear infinite;
}

@keyframes titlePop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes jackpotRainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.reveal-cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.reveal-card {
    width: 180px;
    height: 240px;
    perspective: 1000px;
    cursor: pointer;
}

.reveal-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-card.flipped .reveal-card-inner {
    transform: rotateY(180deg);
}

.reveal-card-front, .reveal-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reveal-card-front {
    background: linear-gradient(145deg, #3a3a5a, #2a2a4a);
    border: 3px solid #555;
    font-size: 60px;
}

.reveal-card-back {
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    transform: rotateY(180deg);
    padding: 20px;
}

.reveal-card-back.rarity-common { border: 3px solid #888888; }
.reveal-card-back.rarity-rare { border: 3px solid #3498db; box-shadow: 0 0 20px rgba(52,152,219,0.6); }
.reveal-card-back.rarity-epic { border: 3px solid #9b59b6; box-shadow: 0 0 20px rgba(155,89,182,0.6); }
.reveal-card-back.rarity-legendary { 
    border: 3px solid #f39c12; 
    box-shadow: 0 0 30px rgba(243,156,18,0.8);
    animation: legendaryCardGlow 1.5s ease-in-out infinite;
}

@keyframes legendaryCardGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(243,156,18,0.8); }
    50% { box-shadow: 0 0 50px rgba(243,156,18,1), 0 0 80px rgba(243,156,18,0.6); }
}

.reveal-card-icon {
    font-size: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.reveal-card-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.reveal-card-rarity {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 10px;
}

.reveal-card-rarity.common { background: #888; color: #fff; }
.reveal-card-rarity.rare { background: #3498db; color: #fff; }
.reveal-card-rarity.epic { background: #9b59b6; color: #fff; }
.reveal-card-rarity.legendary { background: linear-gradient(45deg, #f39c12, #e74c3c); color: #fff; }

.reveal-card-new {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 10px;
    animation: newBadgePulse 1s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reveal-card-duplicate {
    position: absolute;
    bottom: 10px;
    font-size: 10px;
    color: #888;
}

.reveal-card-duplicate span {
    color: var(--neon-gold);
}

/* Near Miss Section */
.near-miss-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,100,100,0.1);
    border: 2px dashed #ff6666;
    border-radius: 15px;
}

.near-miss-title {
    font-size: 18px;
    color: #ff6666;
    font-weight: bold;
    margin-bottom: 15px;
    animation: nearMissShake 0.5s ease-in-out infinite;
}

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

.near-miss-items {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.near-miss-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    opacity: 0.6;
}

.near-miss-item span {
    font-size: 30px;
}

.near-miss-item-name {
    font-size: 10px;
    color: #888;
    margin-top: 5px;
}

/* Value Display */
.reveal-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 24px;
}

.value-label {
    color: #888;
}

.value-amount {
    color: var(--neon-gold);
    font-weight: bold;
    font-size: 32px;
}

/* Buttons */
.lootbox-close-btn, .lootbox-again-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lootbox-close-btn {
    background: linear-gradient(145deg, #444, #333);
    color: #fff;
}

.lootbox-close-btn:hover {
    background: linear-gradient(145deg, #555, #444);
    transform: scale(1.05);
}

.lootbox-again-btn {
    background: linear-gradient(145deg, var(--neon-gold), #e6a800);
    color: #000;
    animation: againBtnPulse 2s ease-in-out infinite;
}

.lootbox-again-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255,215,0,0.5);
}

@keyframes againBtnPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 25px rgba(255,215,0,0.6); }
}

/* Pity Progress Bar */
.pity-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.pity-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.pity-label span {
    color: #4ade80;
    font-weight: bold;
}

.pity-bar {
    width: 200px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.pity-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Particles */
.lootbox-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: particleFall linear forwards;
}

@keyframes particleFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Lootbox Tab Special Style */
.shop-cat-tab.lootbox-tab {
    background: linear-gradient(145deg, #ff6b00, #ff4500);
    color: #fff;
    animation: lootboxTabGlow 2s ease-in-out infinite;
}

.shop-cat-tab.lootbox-tab:hover {
    background: linear-gradient(145deg, #ff8c00, #ff6b00);
}

.shop-cat-tab.lootbox-tab.active {
    background: linear-gradient(145deg, #ffa500, #ff8c00);
}

@keyframes lootboxTabGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,107,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,107,0,0.8); }
}

/* All Tab */
.shop-cat-tab.all-tab {
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
    color: #fff;
}
.shop-cat-tab.all-tab:hover {
    background: linear-gradient(145deg, #a569bd, #9b59b6);
}
.shop-cat-tab.all-tab.active {
    background: linear-gradient(145deg, #bb8fce, #a569bd);
}

/* Shop Sort Options */
.shop-sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.sort-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.shop-sort-options select {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}
.shop-sort-options select:hover {
    border-color: var(--neon-blue);
}

/* Item Category Badge */
.item-category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 6px;
    border-radius: 4px;
}

/* Pilots Shop */
.pilots-shop-intro {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 150, 0, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 150, 0, 0.3);
}
.pilots-intro-icon {
    font-size: 50px;
    margin-bottom: 10px;
}
.pilots-intro-title {
    font-size: 24px;
    color: var(--neon-blue);
    margin: 0 0 10px 0;
}
.pilots-intro-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}
.pilots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Pilot Shop Card */
.pilot-shop-card {
    background: linear-gradient(145deg, rgba(30,30,40,0.95), rgba(15,15,25,0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.pilot-shop-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.2);
}
.pilot-shop-card.owned {
    opacity: 0.6;
    cursor: default;
}
.pilot-shop-card .pilot-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.pilot-shop-card .pilot-rarity {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.pilot-shop-card .pilot-rarity.rarity-common { background: #777; color: #fff; }
.pilot-shop-card .pilot-rarity.rarity-uncommon { background: #2ecc71; color: #fff; }
.pilot-shop-card .pilot-rarity.rarity-rare { background: #3498db; color: #fff; }
.pilot-shop-card .pilot-rarity.rarity-epic { background: #9b59b6; color: #fff; }
.pilot-shop-card .pilot-rarity.rarity-legendary { background: linear-gradient(90deg, #f39c12, #e74c3c); color: #fff; }
.pilot-shop-card .pilot-rarity.rarity-mythic { background: linear-gradient(90deg, #e91e63, #9c27b0); color: #fff; }
.pilot-shop-card .pilot-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.pilot-shop-card .pilot-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 28px;
}
.pilot-shop-card .pilot-stats {
    font-size: 11px;
    margin-bottom: 8px;
}
.pilot-shop-card .stat-pos { color: var(--neon-green); }
.pilot-shop-card .stat-neg { color: var(--neon-pink); }
.pilot-shop-card .pilot-passive {
    font-size: 10px;
    color: var(--neon-gold);
    margin-bottom: 10px;
}
.pilot-shop-card .pilot-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--neon-gold);
    padding: 8px;
    background: rgba(255, 204, 0, 0.1);
    border-radius: 6px;
}

/* Lootbox Item Cards in Shop */
.shop-item-lootbox {
    position: relative;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.shop-item-lootbox::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255,215,0,0.3), transparent);
    animation: lootboxRotate 3s linear infinite;
}

@keyframes lootboxRotate {
    100% { transform: rotate(360deg); }
}

.shop-item-lootbox::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    border-radius: 12px;
    z-index: 0;
}

.shop-item-lootbox > * {
    position: relative;
    z-index: 1;
}

.shop-item-lootbox.tier-bronze { border-color: #cd7f32; }
.shop-item-lootbox.tier-silver { border-color: #c0c0c0; }
.shop-item-lootbox.tier-gold { border-color: #ffd700; }
.shop-item-lootbox.tier-diamond { border-color: #b9f2ff; }
.shop-item-lootbox.tier-cosmic { 
    border-color: #ff00ff; 
    animation: cosmicBorder 2s linear infinite;
}

@keyframes cosmicBorder {
    0% { border-color: #ff00ff; }
    33% { border-color: #00ffff; }
    66% { border-color: #ffff00; }
    100% { border-color: #ff00ff; }
}

.shop-item-lootbox:hover {
    transform: translateY(-5px) scale(1.02);
}

.lootbox-item-icon {
    font-size: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

.lootbox-item-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.lootbox-item-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.4;
}

.lootbox-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-gold);
}

.lootbox-item-price .coin-icon {
    font-size: 24px;
}

.lootbox-item-odds {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.odds-title {
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.odds-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.odds-segment {
    height: 100%;
}

.odds-segment.common { background: #888; }
.odds-segment.rare { background: #3498db; }
.odds-segment.epic { background: #9b59b6; }
.odds-segment.legendary { background: #f39c12; }

.odds-legend {
    display: flex;
    justify-content: space-around;
    font-size: 9px;
}

.odds-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.odds-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.odds-dot.common { background: #888; }
.odds-dot.rare { background: #3498db; }
.odds-dot.epic { background: #9b59b6; }
.odds-dot.legendary { background: #f39c12; }

/* ============================================
   LOOTBOX GRID - GEKACHELT
   ============================================ */

/* Override grid when showing lootboxes */
.shop-items-container:has(.lootbox-shop-intro) {
    display: block !important;
}

.lootbox-shop-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(255,107,0,0.2), rgba(255,69,0,0.1));
    border-radius: 15px;
    border: 2px solid rgba(255,107,0,0.3);
}

.lootbox-intro-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.lootbox-intro-title {
    color: var(--neon-gold);
    margin: 0 0 10px;
    font-size: 24px;
}

.lootbox-intro-desc {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.lootbox-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    justify-content: center !important;
}

.shop-item-lootbox {
    width: 100% !important;
    max-width: 320px !important;
    min-height: 320px;
    margin: 0 auto;
}

.lootbox-disclaimer {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #444;
    border-radius: 10px;
    font-size: 11px;
    color: #888;
    text-align: center;
}

.lootbox-disclaimer-title {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.lootbox-disclaimer p {
    margin: 0 0 8px;
}

.lootbox-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Override grid when showing market */
.inventory-items-container:has(.market-container) {
    display: block !important;
}

/* ============================================
   CAROUSEL VERBESSERUNGEN - SUCHT-FAKTOR
   ============================================ */

/* Glow-Effekt hinter jedem Item */
.carousel-item-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.carousel-item.rarity-legendary .carousel-item-glow {
    background: radial-gradient(circle, rgba(243,156,18,0.4) 0%, transparent 70%);
    opacity: 1;
    animation: legendaryGlowPulse 1s ease-in-out infinite;
}

.carousel-item.rarity-epic .carousel-item-glow {
    background: radial-gradient(circle, rgba(155,89,182,0.3) 0%, transparent 70%);
    opacity: 1;
}

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

/* Rarity Badge im Carousel */
.carousel-item-rarity {
    font-size: 8px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 5px;
    font-weight: bold;
}

.carousel-item.rarity-common .carousel-item-rarity { background: #888; color: #fff; }
.carousel-item.rarity-rare .carousel-item-rarity { background: #3498db; color: #fff; }
.carousel-item.rarity-epic .carousel-item-rarity { background: #9b59b6; color: #fff; }
.carousel-item.rarity-legendary .carousel-item-rarity { background: linear-gradient(90deg, #f39c12, #e74c3c); color: #fff; }

/* Winning Item Animation */
.carousel-item.winning {
    transform: scale(1.15) !important;
    border-width: 4px !important;
    z-index: 100;
    animation: winnerPulse 0.5s ease-in-out infinite;
}

.carousel-item.winning::after {
    content: '★';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
    animation: starBounce 0.5s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255,215,0,0.8); }
    50% { box-shadow: 0 0 60px rgba(255,215,0,1), 0 0 80px rgba(255,215,0,0.5); }
}

@keyframes starBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Actual item (das gewonnene Item) hervorheben während Scroll */
.carousel-item.actual-item {
    position: relative;
}

/* Konfetti/Partikel beim Stoppen */
.lootbox-win-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    animation: confettiExplode 3s ease-out forwards;
}

@keyframes confettiExplode {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, 300px)) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Intensivere Carousel-Glow in der Mitte */
.lootbox-carousel-glow {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,215,0,0.1) 20%,
        rgba(255,215,0,0.3) 50%,
        rgba(255,215,0,0.1) 80%,
        transparent 100%
    ) !important;
    border-left: 3px solid rgba(255,215,0,0.8) !important;
    border-right: 3px solid rgba(255,215,0,0.8) !important;
    box-shadow: inset 0 0 30px rgba(255,215,0,0.3);
}

/* Flash-Effekt bei Gewinn */
.lootbox-modal.flash::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    animation: flashEffect 0.3s ease-out;
    pointer-events: none;
    z-index: 9999;
}

@keyframes flashEffect {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Hover-Effekt auf Lootbox-Karten im Shop - mehr Feedback */
.shop-item-lootbox:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 10px 40px rgba(255,215,0,0.4) !important;
}

.shop-item-lootbox:hover .lootbox-item-icon {
    animation: iconWiggle 0.5s ease-in-out infinite;
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Pulsierender Kaufen-Effekt */
.shop-item-lootbox::after {
    animation: lootboxPulse 2s ease-in-out infinite !important;
}

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

/* ============================================
   COMMUNITY MARKET STYLES - PREMIUM DESIGN
   ============================================ */

.market-tab {
    background: linear-gradient(145deg, rgba(243, 156, 18, 0.25), rgba(211, 84, 0, 0.15)) !important;
    border-color: #f39c12 !important;
    position: relative;
    overflow: hidden;
}

.market-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    animation: market-shine 3s infinite;
}

@keyframes market-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.market-tab.active {
    background: linear-gradient(145deg, #f39c12, #d35400) !important;
    color: #000 !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    box-shadow: 0 0 25px rgba(243, 156, 18, 0.5);
}

.market-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(180deg, rgba(20, 15, 10, 0.95) 0%, rgba(10, 8, 5, 0.98) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(243, 156, 18, 0.2);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}

.market-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.05) 0%, transparent 100%);
    padding: 15px;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 25px -20px;
}

.market-nav-btn {
    flex: 1;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(30, 25, 20, 0.95) 0%, rgba(20, 15, 10, 0.95) 100%);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 10px;
    color: #c9a959;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-nav-btn:hover {
    border-color: #f39c12;
    color: #f39c12;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.15) 0%, rgba(211, 84, 0, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.2);
}

.market-nav-btn.active {
    background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
    border-color: #f39c12;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 25px rgba(243, 156, 18, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.market-content {
    flex: 1;
    overflow-y: auto;
    padding: 5px 10px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: #f39c12 #1a1510;
}

.market-content::-webkit-scrollbar {
    width: 8px;
}

.market-content::-webkit-scrollbar-track {
    background: #1a1510;
    border-radius: 4px;
}

.market-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f39c12, #d35400);
    border-radius: 4px;
}

.market-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-top: 20px;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.1) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: 10px;
    font-size: 12px;
    color: #c9a959;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.market-disclaimer {
    color: #e74c3c;
    font-weight: bold;
}

.market-loading, .market-error, .market-empty {
    text-align: center;
    padding: 60px 40px;
    color: #c9a959;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    border: 1px dashed rgba(243, 156, 18, 0.3);
}

.market-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.3));
}

.market-empty-hint {
    font-size: 13px;
    margin-top: 15px;
    color: #8a7a5a;
}

.market-error {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.market-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid rgba(243, 156, 18, 0.15);
}

.market-sort {
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(30, 25, 20, 0.95) 0%, rgba(20, 15, 10, 0.95) 100%);
    border: 2px solid rgba(243, 156, 18, 0.4);
    border-radius: 8px;
    color: #f39c12;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.market-sort:hover {
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.market-count {
    color: #c9a959;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 15px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.market-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.market-listing {
    background: linear-gradient(180deg, rgba(35, 30, 25, 0.95) 0%, rgba(20, 18, 15, 0.98) 100%);
    border: 2px solid rgba(100, 90, 70, 0.5);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.market-listing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.5), transparent);
}

.market-listing:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 30px rgba(243, 156, 18, 0.15);
}

.market-listing.rarity-common {
    border-color: rgba(136, 136, 136, 0.6);
}
.market-listing.rarity-common::before {
    background: linear-gradient(90deg, transparent, rgba(136, 136, 136, 0.5), transparent);
}

.market-listing.rarity-rare {
    border-color: rgba(52, 152, 219, 0.7);
    box-shadow: 0 0 20px rgba(52,152,219,0.2), inset 0 0 30px rgba(52,152,219,0.05);
}
.market-listing.rarity-rare::before {
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.market-listing.rarity-epic {
    border-color: rgba(155, 89, 182, 0.7);
    box-shadow: 0 0 20px rgba(155,89,182,0.2), inset 0 0 30px rgba(155,89,182,0.05);
}
.market-listing.rarity-epic::before {
    background: linear-gradient(90deg, transparent, #9b59b6, transparent);
}

.market-listing.rarity-legendary {
    border-color: rgba(243, 156, 18, 0.8);
    box-shadow: 0 0 30px rgba(243,156,18,0.3), inset 0 0 40px rgba(243,156,18,0.08);
    animation: legendary-pulse 2s ease-in-out infinite;
}
.market-listing.rarity-legendary::before {
    background: linear-gradient(90deg, transparent, #f39c12, transparent);
    height: 4px;
}

@keyframes legendary-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(243,156,18,0.3), inset 0 0 40px rgba(243,156,18,0.08); }
    50% { box-shadow: 0 0 40px rgba(243,156,18,0.5), inset 0 0 50px rgba(243,156,18,0.12); }
}

.market-listing-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.market-listing-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.market-listing-rarity {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-listing-seller {
    font-size: 11px;
    color: #8a7a5a;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    display: inline-block;
}

.market-listing-price {
    font-size: 22px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
    padding: 8px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.market-listing-price.cannot-afford {
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.market-listing-date {
    font-size: 10px;
    color: #666;
    margin-bottom: 12px;
}

.market-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-btn.buy {
    background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.market-btn.buy:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
}

.market-btn.buy.disabled {
    background: linear-gradient(180deg, #444 0%, #333 100%);
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.market-btn.cancel {
    background: linear-gradient(180deg, #c0392b 0%, #962d22 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.market-btn.cancel:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(192, 57, 43, 0.5);
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}

/* Sell View - Premium Design */
.sell-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.sell-header h3 {
    color: #f39c12;
    margin-bottom: 8px;
    font-size: 20px;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

.sell-header p {
    color: #c9a959;
    font-size: 13px;
}

.sell-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.sell-item {
    background: linear-gradient(180deg, rgba(35, 30, 25, 0.95) 0%, rgba(20, 18, 15, 0.98) 100%);
    border: 2px solid rgba(100, 90, 70, 0.5);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sell-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.5), transparent);
}

.sell-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #f39c12;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 25px rgba(243, 156, 18, 0.2);
}

.sell-item.rarity-common { border-color: rgba(136, 136, 136, 0.6); }
.sell-item.rarity-rare { border-color: rgba(52, 152, 219, 0.7); box-shadow: inset 0 0 20px rgba(52,152,219,0.05); }
.sell-item.rarity-epic { border-color: rgba(155, 89, 182, 0.7); box-shadow: inset 0 0 20px rgba(155,89,182,0.05); }
.sell-item.rarity-legendary { border-color: rgba(243, 156, 18, 0.8); box-shadow: inset 0 0 20px rgba(243,156,18,0.08); }

.sell-item-icon {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.sell-item-name {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sell-item-rarity {
    font-size: 10px;
    color: #8a7a5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sell-item-qty {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.sell-item-hint {
    font-size: 10px;
    color: #666;
    margin-top: 8px;
    opacity: 0;
    transition: all 0.3s;
    transform: translateY(5px);
}

.sell-item:hover .sell-item-hint {
    opacity: 1;
    color: #f39c12;
    transform: translateY(0);
}

/* Sell Modal - Premium Design */
.market-sell-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

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

.market-sell-modal-content {
    background: linear-gradient(180deg, rgba(35, 30, 25, 0.98) 0%, rgba(15, 12, 10, 0.99) 100%);
    border: 2px solid #f39c12;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 60px rgba(243, 156, 18, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.market-sell-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.15) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
}

.market-sell-modal-header h3 {
    margin: 0;
    color: #f39c12;
    font-size: 18px;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.modal-close {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

.market-sell-modal-body {
    padding: 25px;
}

.sell-modal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(243, 156, 18, 0.15);
}

.sell-modal-icon {
    font-size: 42px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.sell-modal-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.sell-price-input {
    margin-bottom: 20px;
}

.sell-price-input label {
    display: block;
    margin-bottom: 10px;
    color: #c9a959;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sell-price-input input {
    width: 100%;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    border: 2px solid rgba(243, 156, 18, 0.4);
    border-radius: 12px;
    color: #f39c12;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.sell-price-input input:focus {
    border-color: #f39c12;
    outline: none;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.sell-price-input input::placeholder {
    color: #666;
}

.sell-price-hints {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.sell-price-hints span {
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.1) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #c9a959;
    cursor: pointer;
    transition: all 0.3s;
}

.sell-price-hints span:hover {
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.25) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-color: #f39c12;
    color: #f39c12;
    transform: scale(1.05);
}

.sell-fee-info {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 10px;
    font-size: 13px;
    color: #c9a959;
    border: 1px solid rgba(243, 156, 18, 0.15);
}

.market-sell-modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    border-top: 1px solid rgba(243, 156, 18, 0.15);
}

.market-sell-modal-footer button {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-sell-modal-footer .btn-secondary {
    background: linear-gradient(180deg, rgba(60, 55, 50, 0.9) 0%, rgba(40, 35, 30, 0.9) 100%);
    border: 2px solid rgba(100, 90, 70, 0.5);
    color: #8a7a5a;
}

.market-sell-modal-footer .btn-secondary:hover {
    border-color: #c9a959;
    color: #f39c12;
    background: linear-gradient(180deg, rgba(80, 70, 60, 0.9) 0%, rgba(50, 45, 40, 0.9) 100%);
}

.market-sell-modal-footer .btn-primary {
    background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
    border: none;
    color: #000;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.market-sell-modal-footer .btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(243, 156, 18, 0.5);
    background: linear-gradient(180deg, #ffb733 0%, #f39c12 100%);
}

/* My Listings - Premium */
.my-listings-header {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.my-listings-header h3 {
    color: #2ecc71;
    font-size: 18px;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.market-listing.mine {
    border-color: rgba(46, 204, 113, 0.7) !important;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.15), inset 0 0 30px rgba(46, 204, 113, 0.05);
}

.market-listing.mine::before {
    background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

/* Transaction History - Premium */
.transaction-header {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.transaction-header h3 {
    color: #f39c12;
    font-size: 18px;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(35, 30, 25, 0.95) 0%, rgba(20, 18, 15, 0.98) 100%);
    border: 2px solid rgba(100, 90, 70, 0.4);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.transaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: #888;
}

.transaction-item:hover {
    border-color: rgba(243, 156, 18, 0.4);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.transaction-item.sold::before {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.transaction-item.bought::before {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.transaction-icon {
    font-size: 36px;
    margin-right: 16px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.transaction-details {
    flex: 1;
}

.transaction-item-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.transaction-partner {
    font-size: 12px;
    color: #c9a959;
    margin-bottom: 2px;
}

.transaction-date {
    font-size: 11px;
    color: #8a7a5a;
}

.transaction-amount {
    text-align: right;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid rgba(243, 156, 18, 0.15);
}

.transaction-label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-label.sold {
    color: #2ecc71;
}

.transaction-label.bought {
    color: #e74c3c;
}

.transaction-coins {
    font-size: 18px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

.transaction-fee {
    display: block;
    font-size: 10px;
    color: #8a7a5a;
    margin-top: 3px;
}

/* ============================================
   FRIENDS POPUP - Bottom Right
   ============================================ */
.friends-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: linear-gradient(180deg, rgba(15, 20, 30, 0.98) 0%, rgba(8, 12, 20, 0.99) 100%);
    border: 2px solid rgba(255, 106, 0, 0.3);
    border-radius: 15px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 106, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.friends-popup.collapsed .friends-popup-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.friends-popup.collapsed .friends-popup-arrow {
    transform: rotate(180deg);
}

.friends-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(180deg, rgba(255, 106, 0, 0.15) 0%, rgba(255, 106, 0, 0.05) 100%);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 106, 0, 0.2);
    transition: background 0.3s;
}

.friends-popup-header:hover {
    background: linear-gradient(180deg, rgba(255, 106, 0, 0.25) 0%, rgba(255, 106, 0, 0.1) 100%);
}

.friends-popup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friends-icon {
    font-size: 16px;
}

.friends-online-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.friends-popup-arrow {
    color: var(--neon-blue);
    font-size: 10px;
    transition: transform 0.3s;
}

.friends-popup-content {
    max-height: 350px;
    padding: 10px;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.friends-popup-content::-webkit-scrollbar {
    width: 5px;
}

.friends-popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.friends-popup-content::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.friends-popup-search {
    margin-bottom: 12px;
}

.friends-popup-search input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.friends-popup-search input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.2);
}

.friends-popup-search input::placeholder {
    color: #666;
}

.friends-popup-section {
    margin-bottom: 12px;
}

.friends-popup-section-title {
    font-size: 10px;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-left: 5px;
}

.friends-popup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.friends-popup-empty {
    text-align: center;
    color: #555;
    font-size: 11px;
    padding: 10px;
    font-style: italic;
}

.friends-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.friends-popup-item:hover {
    background: rgba(255, 106, 0, 0.1);
    transform: translateX(3px);
}

.friends-popup-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.friends-popup-item .status-dot.online {
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

.friends-popup-item .status-dot.offline {
    background: #666;
}

.friends-popup-item .friend-name {
    flex: 1;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friends-popup-item .friend-level {
    font-size: 10px;
    color: var(--neon-gold);
    font-weight: bold;
}

.friends-popup-item .friend-action {
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(255, 106, 0, 0.2);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    color: var(--neon-blue);
    cursor: pointer;
    transition: all 0.2s;
}

.friends-popup-item .friend-action:hover {
    background: var(--neon-blue);
    color: #000;
}

.friends-popup-item .friend-action.add {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

.friends-popup-item .friend-action.add:hover {
    background: #2ecc71;
    color: #000;
}

.friends-popup-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.friends-popup-footer a {
    font-size: 11px;
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.2s;
}

.friends-popup-footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Hide popup during gameplay */
body.in-game .friends-popup {
    display: none !important;
}

/* ============================================
   FRIEND CHAT WIDGET
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 320px;
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.chat-widget.hidden {
    display: none;
}

/* Chat-Widget während des Spiels ausblenden */
body.in-game .chat-widget {
    display: none !important;
}

.chat-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.2) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.chat-widget-header .chat-friend-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-blue);
}

.chat-widget-header .chat-friend-status {
    font-size: 11px;
    color: #888;
}

.chat-widget-header .chat-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget-header .chat-close:hover {
    color: var(--neon-pink);
}

.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 250px;
    min-height: 150px;
}

.chat-widget-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.chat-message {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.sent {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
    margin-left: auto;
    text-align: right;
}

.chat-message.received {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    margin-right: auto;
}

.chat-message .msg-text {
    font-size: 12px;
    color: #fff;
}

.chat-message .msg-time {
    font-size: 9px;
    color: #666;
    margin-top: 3px;
}

.chat-widget-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(255, 140, 0, 0.3);
    gap: 8px;
}

.chat-widget-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 5px;
    padding: 8px 10px;
    color: #fff;
    font-size: 12px;
}

.chat-widget-input input:focus {
    border-color: var(--neon-blue);
    outline: none;
}

.chat-widget-input button {
    background: var(--neon-blue);
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.chat-widget-input button:hover {
    background: #00d4ff;
}

/* Chat Empty State */
.chat-empty {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 12px;
}

/* ============================================
   GAME INVITE NOTIFICATIONS
   ============================================ */

.invite-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 320px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--neon-green);
    border-radius: 12px;
    padding: 15px;
    z-index: 2000;
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.4);
    animation: inviteSlideIn 0.4s ease;
}

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

.invite-notification.hiding {
    animation: inviteSlideOut 0.3s ease forwards;
}

@keyframes inviteSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

.invite-notification-header .invite-icon {
    font-size: 24px;
}

.invite-notification-header .invite-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--neon-green);
}

.invite-notification-body {
    margin-bottom: 12px;
}

.invite-notification-body .invite-sender {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.invite-notification-body .invite-details {
    font-size: 11px;
    color: #888;
}

.invite-notification-body .invite-details span {
    color: var(--neon-blue);
}

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

.invite-notification-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.invite-notification-actions .accept-btn {
    background: var(--neon-green);
    color: #000;
}

.invite-notification-actions .accept-btn:hover {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.5);
}

.invite-notification-actions .decline-btn {
    background: rgba(255, 0, 85, 0.2);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
}

.invite-notification-actions .decline-btn:hover {
    background: rgba(255, 0, 85, 0.4);
}

/* ============================================
   FRIEND STATUS WITH WAVE INFO
   ============================================ */

.friends-popup-item .friend-wave {
    font-size: 10px;
    color: var(--neon-green);
    background: rgba(0, 255, 100, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.friends-popup-item .friend-game-status {
    font-size: 9px;
    color: #888;
    display: block;
    margin-top: 2px;
}

.friends-popup-item .invite-btn {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
}

.friends-popup-item .invite-btn:hover {
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

.friends-popup-item .chat-btn {
    background: rgba(255, 140, 0, 0.2);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 5px;
}

.friends-popup-item .chat-btn:hover {
    background: rgba(255, 140, 0, 0.4);
}

/* Unread message badge */
.friends-popup-item .unread-badge {
    background: var(--neon-pink);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Total unread count in header */
.friends-popup-header .unread-total {
    background: var(--neon-pink);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* ============================================
   CHARACTER SELECTION SYSTEM
   ============================================ */

.character-selection-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.current-character-box {
    flex: 0 0 280px;
    background: linear-gradient(145deg, #1a1a2e, #0a0a15);
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

.current-char-header {
    font-size: 12px;
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.current-char-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.char-icon-large {
    font-size: 64px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px currentColor);
}

.char-info {
    width: 100%;
}

.char-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.char-rarity {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.char-rarity.common { background: #888; }
.char-rarity.uncommon { background: #00cc44; }
.char-rarity.rare { background: #3498db; }
.char-rarity.epic { background: #9b59b6; }
.char-rarity.legendary { background: #f39c12; color: #000; }
.char-rarity.mythic { background: linear-gradient(90deg, #e74c3c, #ff6b6b); animation: mythicPulse 2s infinite; }
.char-rarity.secret { background: #00ff00; color: #000; animation: glitchText 0.3s infinite; }
.char-rarity.admin { background: linear-gradient(90deg, #ff00ff, #ff6a00); color: #000; }

@keyframes mythicPulse {
    0%, 100% { box-shadow: 0 0 10px #e74c3c; }
    50% { box-shadow: 0 0 20px #ff6b6b; }
}

.char-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.character-grid-section {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.char-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.char-filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    letter-spacing: 1px;
}

.char-filter-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.char-filter-btn.active {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: #000;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

.character-card {
    background: linear-gradient(145deg, #1a1a2e, #0a0a15);
    border: 2px solid #333;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.character-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-blue);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.character-card.selected {
    border-color: var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.character-card.locked {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.character-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 14px;
}

.character-card .char-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.character-card .char-card-name {
    font-size: 10px;
    color: #fff;
    font-weight: bold;
}

.character-card .char-card-rarity {
    font-size: 8px;
    color: #888;
    margin-top: 3px;
}

/* Rarity Border Colors */
.character-card.rarity-common { border-color: #888; }
.character-card.rarity-uncommon { border-color: #00cc44; }
.character-card.rarity-rare { border-color: #3498db; }
.character-card.rarity-epic { border-color: #9b59b6; }
.character-card.rarity-legendary { border-color: #f39c12; }
.character-card.rarity-mythic { border-color: #e74c3c; animation: mythicBorder 2s infinite; }

@keyframes mythicBorder {
    0%, 100% { border-color: #e74c3c; box-shadow: 0 0 10px #e74c3c; }
    50% { border-color: #ff6b6b; box-shadow: 0 0 20px #ff6b6b; }
}

.character-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px;
}

/* CHARACTER SHOP */
.char-shop-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.char-shop-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rarity-filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #444;
    color: #888;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    letter-spacing: 1px;
}

.rarity-filter-btn:hover {
    color: #fff;
    border-color: currentColor;
}

.rarity-filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.char-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.char-shop-card {
    background: linear-gradient(145deg, #1a1a2e, #0a0a15);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.char-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.char-shop-card.owned {
    opacity: 0.6;
}

.char-shop-card.owned::before {
    content: 'BESITZT';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--neon-green);
    color: #000;
    padding: 3px 40px;
    font-size: 9px;
    font-weight: bold;
    transform: rotate(45deg);
}

.char-shop-card .shop-char-icon {
    font-size: 48px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px currentColor);
}

.char-shop-card .shop-char-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.char-shop-card .shop-char-rarity {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.char-shop-card .shop-char-desc {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 12px;
    min-height: 30px;
}

.char-shop-card .shop-char-stats {
    font-size: 10px;
    color: #666;
    margin-bottom: 10px;
}

.char-shop-card .shop-char-stats span {
    display: inline-block;
    margin: 0 3px;
}

.char-shop-card .shop-char-stats .stat-positive { color: #00ff44; }
.char-shop-card .shop-char-stats .stat-negative { color: #ff4444; }

.char-shop-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
    color: var(--neon-gold);
    margin-bottom: 10px;
}

.char-shop-buy-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, var(--neon-gold), #ff9900);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.char-shop-buy-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.char-shop-buy-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

/* Rarity backgrounds for shop cards */
.char-shop-card.rarity-uncommon { border-color: #00cc44; }
.char-shop-card.rarity-rare { border-color: #3498db; }
.char-shop-card.rarity-epic { border-color: #9b59b6; }
.char-shop-card.rarity-legendary {
    border-color: #f39c12;
    background: linear-gradient(145deg, #2a1a0a, #1a0a00);
}
.char-shop-card.rarity-mythic {
    border-color: #e74c3c;
    background: linear-gradient(145deg, #2a0a0a, #1a0000);
    animation: mythicCardGlow 3s infinite;
}

@keyframes mythicCardGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 0 30px rgba(231, 76, 60, 0.5); }
}

/* Notification Toast for purchases */
.char-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(145deg, #1a2a1a, #0a150a);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    color: #fff;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 0 30px rgba(0, 255, 68, 0.3);
}

.char-toast.error {
    background: linear-gradient(145deg, #2a1a1a, #150a0a);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
}

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

/* Glitch effect for secret characters */
@keyframes glitchText {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* ============================================
   LOBBY WAITING ROOM - PILOT CARDS
   ============================================ */

.lobby-panel {
    max-width: 1100px !important;
    width: 95%;
}

.lobby-header {
    text-align: center;
    margin-bottom: 20px;
}

.lobby-header h2 {
    margin-bottom: 10px;
}

.invite-link-btn {
    background: linear-gradient(45deg, #ff9900, #ffcc00);
    color: #000;
    padding: 8px 20px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.lobby-section-title {
    color: var(--neon-blue);
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Piloten Grid */
.lobby-pilots-section {
    margin-bottom: 20px;
}

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

/* Einzelne Piloten-Karte */
.lobby-pilot-card {
    background: linear-gradient(145deg, rgba(20,25,35,0.95), rgba(10,15,25,0.95));
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: all 0.3s;
}

.lobby-pilot-card.is-ready {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 68, 0.2);
}

.lobby-pilot-card.is-host {
    border-color: var(--neon-gold);
}

.lobby-pilot-card.is-me {
    background: linear-gradient(145deg, rgba(150,70,0,0.3), rgba(50,25,0,0.3));
    border-color: var(--neon-blue);
}

.lobby-pilot-card.is-ai {
    border-style: dashed;
    opacity: 0.8;
}

/* Pilot Icon */
.lobby-pilot-icon {
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    flex-shrink: 0;
}

.lobby-pilot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bf-orange);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
    flex-shrink: 0;
}

.lobby-pilot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pilot Info */
.lobby-pilot-info {
    flex: 1;
    min-width: 0;
}

.lobby-pilot-username {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.lobby-pilot-username .host-crown {
    color: var(--neon-gold);
}

.lobby-pilot-username .ai-badge {
    font-size: 12px;
    color: #ff9900;
}

.lobby-pilot-level {
    font-size: 11px;
    color: var(--neon-blue);
    margin-bottom: 4px;
}

.lobby-pilot-name {
    font-size: 12px;
    color: var(--neon-green);
    font-weight: bold;
    text-transform: uppercase;
}

.lobby-pilot-stats {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.lobby-pilot-stats .stat-pos { color: var(--neon-green); }
.lobby-pilot-stats .stat-neg { color: var(--neon-pink); }

/* Ready Status */
.lobby-pilot-status {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

.lobby-pilot-status.ready {
    color: var(--neon-green);
}

.lobby-pilot-status.waiting {
    color: #666;
}

/* Eigene Pilot-Auswahl */
.lobby-my-pilot {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: linear-gradient(90deg, rgba(150,70,0,0.2), rgba(50,25,0,0.1));
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    margin-bottom: 20px;
}

.lobby-my-pilot label {
    font-size: 12px;
    color: var(--neon-blue);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.lobby-my-pilot select {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,106,0,0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    max-width: 300px;
}

.lobby-my-pilot select:hover {
    border-color: var(--neon-blue);
}

/* Bottom Section */
.lobby-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lobby-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Wave Select Controls */
#wave-select-controls {
    padding: 12px;
    background: rgba(0,200,255,0.1);
    border: 1px solid #00c8ff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.wave-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #00c8ff;
    font-weight: bold;
    font-size: 12px;
}

.wave-select-row {
    display: flex;
    gap: 8px;
}

.wave-select-row select {
    flex: 1;
    padding: 8px;
    background: #1a1a2e;
    border: 1px solid #00c8ff;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
}

/* AI Controls */
#ai-controls {
    padding: 12px;
    background: rgba(255,150,0,0.1);
    border: 1px solid #ff9900;
    border-radius: 8px;
}

.ai-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #ff9900;
    font-weight: bold;
    font-size: 12px;
}

.ai-controls-header span:last-child {
    color: #aaa;
}

.ai-controls-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ai-controls-actions select {
    flex: 1;
    padding: 8px;
    background: #1a1a2e;
    border: 1px solid #ff9900;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
}

.btn-add-ai {
    padding: 8px 15px;
    background: #ff9900;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#ai-player-list {
    font-size: 12px;
}

/* Lobby Buttons */
.lobby-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lobby-buttons button {
    padding: 12px 20px;
    font-size: 14px;
}

#btn-lobby-ready {
    background: var(--neon-green);
    color: #000;
    font-weight: bold;
}

#btn-start-game {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    color: #000;
    font-weight: bold;
}

#wait-msg {
    color: #aaa;
    font-size: 12px;
    text-align: center;
    margin: 5px 0;
}

.btn-leave {
    margin-top: auto;
}

/* Chat */
.lobby-chat {
    display: flex;
    flex-direction: column;
}

.chat-messages-box {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 10px;
    min-height: 200px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 13px;
    margin-bottom: 10px;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    margin: 0;
}

.chat-input-row button {
    width: auto;
    padding: 10px 20px;
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 800px) {
    .lobby-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .lobby-pilots-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .lobby-pilots-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MODAL & SCREEN ANIMATIONS - SNAPPY TRANSITIONS
   ============================================ */

/* Basis Screen Transition */
.screen {
    animation: none;
}

.screen:not(.hidden) {
    animation: screenFadeIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes screenFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Panel Animation */
.screen:not(.hidden) .panel {
    animation: panelSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes panelSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    50% {
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Lobby Cards Animation */
/* Lobby Cards - keine Animation beim dynamischen Update */
.lobby-pilot-card {
    opacity: 1;
    transform: scale(1);
}

@keyframes cardPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Shop Item Cards Animation */
.shop-item-card {
    animation: itemFadeUp 0.2s ease-out backwards;
}

.shop-item-card:nth-child(1) { animation-delay: 0.02s; }
.shop-item-card:nth-child(2) { animation-delay: 0.04s; }
.shop-item-card:nth-child(3) { animation-delay: 0.06s; }
.shop-item-card:nth-child(4) { animation-delay: 0.08s; }
.shop-item-card:nth-child(5) { animation-delay: 0.1s; }
.shop-item-card:nth-child(6) { animation-delay: 0.12s; }
.shop-item-card:nth-child(7) { animation-delay: 0.14s; }
.shop-item-card:nth-child(8) { animation-delay: 0.16s; }

@keyframes itemFadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Click Animation */
button:active:not(:disabled) {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Tab Switch Animation */
.main-tab-content:not(.hidden) {
    animation: tabSlideIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes tabSlideIn {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar Tab Hover */
.navbar-tab {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-tab:hover {
    transform: translateY(-2px);
}

.navbar-tab.active {
    animation: tabActivePulse 0.3s ease-out;
}

@keyframes tabActivePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shop Category Tab Animation */
.shop-cat-tab, .inv-cat-tab {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.shop-cat-tab:hover, .inv-cat-tab:hover {
    transform: translateY(-3px);
}

.shop-cat-tab.active, .inv-cat-tab.active {
    animation: catTabBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes catTabBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.08) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}

/* Mission Start Widget Animation */
.mission-start-widget {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-start-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.2);
}

/* Character Grid Animation */
.character-card {
    animation: charCardPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.character-card:nth-child(1) { animation-delay: 0.03s; }
.character-card:nth-child(2) { animation-delay: 0.06s; }
.character-card:nth-child(3) { animation-delay: 0.09s; }
.character-card:nth-child(4) { animation-delay: 0.12s; }
.character-card:nth-child(5) { animation-delay: 0.15s; }
.character-card:nth-child(6) { animation-delay: 0.18s; }

@keyframes charCardPop {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ready Status Animation */
.lobby-pilot-status.ready {
    animation: readyPulse 0.5s ease-out;
}

@keyframes readyPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); color: #fff; }
    100% { transform: scale(1); }
}

/* Toast Notification Animation */
.char-toast, .toast-notification {
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Lootbox Modal Animation */
#lootbox-modal:not(.hidden) .lootbox-modal-content {
    animation: lootboxModalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lootboxModalPop {
    0% {
        opacity: 0;
        transform: scale(0.7) rotateX(15deg);
    }
    60% {
        transform: scale(1.05) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

/* Inventory Item Hover */
.inventory-item {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inventory-item:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Widget Hover Effects */
.stat-widget, .daily-missions-widget, .level-progress-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-widget:hover, .daily-missions-widget:hover, .level-progress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Loading Spinner Animation */
.shop-loading {
    animation: loadingPulse 1s ease-in-out infinite;
}

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

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

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .home-main {
        grid-template-columns: 1fr 1fr;
    }

    .main-content {
        padding: 25px 20px;
    }

    .navbar-tab {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 900px) {
    /* Navbar wird horizontal scrollbar */
    #main-navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }

    .navbar-left {
        order: 1;
        flex: 0 0 auto;
    }

    .navbar-right {
        order: 2;
        flex: 1;
        justify-content: flex-end;
    }

    .navbar-center {
        order: 3;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0 5px 0;
        margin-top: 10px;
        gap: 8px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .navbar-center::-webkit-scrollbar {
        display: none;
    }

    .navbar-tab {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
    }

    .main-content {
        min-height: calc(100vh - 100px);
    }

    .home-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Stack tiles vertically on small screens */
    .home-main > .bf-tile.featured,
    .home-main > .bf-tile:nth-child(2),
    .home-main > .bf-tile:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

}

/* Mobile Portrait */
@media (max-width: 768px) {
    /* Navbar kompakter */
    .navbar-logo {
        font-size: 20px;
    }

    .navbar-logo-sub {
        display: none;
    }

    .user-profile-card {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }

    .profile-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .level-display {
        width: 100%;
    }

    .xp-bar-outer {
        width: 100%;
        max-width: 150px;
    }

    .btn-logout, .btn-login {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Main Content */
    .main-content {
        padding: 15px 12px;
        min-height: calc(100vh - 110px);
    }

    .main-tab-content {
        max-width: 100%;
    }

    /* Home Layout */
    .home-main {
        padding: 15px;
        border-radius: 12px;
        grid-template-columns: 1fr;
    }

    /* Mission Start Widget */
    .mission-start-widget {
        padding: 15px;
    }

    .mission-start-widget-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .pilot-preview-row {
        flex-direction: column;
        gap: 15px;
    }

    .pilot-preview-cosmetics {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    .mission-start-btn {
        font-size: 16px;
        padding: 14px 20px;
    }

    /* Level Progress Card */
    .level-progress-card {
        padding: 15px;
    }

    .level-progress-current {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .level-badge-big {
        font-size: 28px;
        width: 50px;
        height: 50px;
    }

    /* Daily Missions */
    .daily-missions-widget {
        padding: 15px;
    }

    .mission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mission-reward {
        align-self: flex-end;
    }

    /* Shop Highlights */
    .shop-highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .shop-highlight-card {
        padding: 12px;
    }

    /* Leaderboard */
    .leaderboard-box {
        padding: 15px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 28px;
    }

    /* Shop Tab */
    .shop-cat-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .shop-cat-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-cat-tab {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
    }

    .shop-items-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 12px;
        max-height: 50vh;
    }

    .shop-item-card {
        padding: 10px;
    }

    .shop-item-icon {
        font-size: 28px;
    }

    .shop-item-name {
        font-size: 11px;
    }

    .shop-item-price {
        font-size: 12px;
    }

    /* Inventory Tab */
    .inv-cat-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .inv-cat-tabs::-webkit-scrollbar {
        display: none;
    }

    .inventory-items-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        max-height: 50vh;
    }

    /* Character Selection */
    .character-selection-container {
        flex-direction: column;
    }

    .current-character-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .char-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .char-filter-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 11px;
    }

    /* Friends Tab */
    .friends-layout {
        flex-direction: column;
    }

    .friends-list-section,
    .friend-requests-section {
        width: 100%;
    }

    /* Settings Tab */
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .setting-card {
        padding: 15px;
    }

    /* Section Titles */
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .section-desc {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Navbar sehr kompakt */
    #main-navbar {
        padding: 8px 10px;
    }

    .navbar-logo {
        font-size: 18px;
    }

    .navbar-tab {
        padding: 8px 12px;
        font-size: 11px;
    }

    .user-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .coin-display {
        font-size: 12px;
    }

    /* Main Content */
    .main-content {
        padding: 10px 8px;
    }

    /* Home Main */
    .home-main {
        padding: 12px;
    }

    /* Mission Start */
    .mission-start-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .mission-start-btn-secondary {
        font-size: 12px;
        padding: 10px 14px;
    }

    /* Pilot Preview */
    .pilot-char-icon {
        font-size: 36px;
    }

    .pilot-char-name {
        font-size: 14px;
    }

    /* Shop Highlights */
    .shop-highlights-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Shop & Inventory */
    .shop-items-container,
    .inventory-items-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 10px;
    }

    /* Character Grid */
    .character-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .character-card {
        padding: 10px;
    }

    .char-icon {
        font-size: 28px;
    }

    /* Info Cards */
    .info-card {
        padding: 12px;
    }

    .info-card h4 {
        font-size: 13px;
    }

    /* Online Widget */
    .online-widget {
        padding: 12px;
    }

    .online-count {
        font-size: 24px;
    }

    /* Manual Section */
    .manual-mini-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .mini-tab {
        font-size: 10px;
        padding: 5px 10px;
    }

    .control-item {
        font-size: 11px;
    }

    .key-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .navbar-tab {
        padding: 6px 10px;
        font-size: 10px;
    }

    .shop-items-container,
    .inventory-items-container,
    .character-grid {
        grid-template-columns: 1fr !important;
    }

    .shop-highlights-header h3 {
        font-size: 14px;
    }

    .mission-start-widget-title {
        font-size: 16px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .navbar-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-cat-tab,
    .inv-cat-tab,
    .char-filter-btn {
        min-height: 44px;
    }

    .shop-item-card,
    .inventory-item,
    .character-card {
        min-height: 100px;
    }

    button {
        min-height: 44px;
    }

    /* Hover-Effekte deaktivieren */
    .navbar-tab:hover,
    .shop-cat-tab:hover,
    .inv-cat-tab:hover,
    .shop-item-card:hover,
    .character-card:hover {
        transform: none;
    }

    /* Active State für Touch */
    .navbar-tab:active,
    .shop-cat-tab:active,
    .shop-item-card:active,
    .character-card:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        min-height: calc(100vh - 60px);
        padding: 10px 15px;
    }

    #main-navbar {
        padding: 5px 10px;
    }

    .navbar-center {
        margin-top: 0;
        padding: 5px 0;
    }

    .home-main {
        grid-template-columns: 1fr;
    }

    .mission-start-widget,
    .level-progress-card,
    .daily-missions-widget {
        padding: 10px;
    }

    .shop-items-container,
    .inventory-items-container {
        max-height: 40vh;
    }
}

/* ====================================
   MISSION SCREENS MOBILE OPTIMIZATION
   ==================================== */

/* CRITICAL: Fix .panel min-width and .screen scrollability for mobile */
@media (max-width: 768px) {
    /* Make screens scrollable on mobile */
    .screen {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 20px 10px !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* Fix panel min-width - THIS IS CRITICAL */
    .panel {
        min-width: unset !important;
        min-width: 0 !important;
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    /* All screen titles */
    .screen h2 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
        padding: 0 10px !important;
        text-align: center !important;
    }

    /* All buttons in screens */
    .screen button {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }

    /* Input fields */
    .screen input[type="text"],
    .screen input[type="password"],
    .screen select {
        font-size: 14px !important;
        padding: 12px !important;
    }
}

/* Mission Start Widget - Mobile */
@media (max-width: 768px) {
    .mission-start-widget {
        padding: 15px;
    }

    .mission-start-widget-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .mission-start-widget-title {
        font-size: 16px;
    }

    .mission-start-btn,
    .mission-start-btn-secondary {
        padding: 14px 16px;
        font-size: 14px;
        width: 100%;
    }

    /* Daily Missions Widget - Mobile */
    .daily-missions-widget {
        padding: 12px;
    }

    .daily-missions-widget-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .daily-missions-widget-title {
        font-size: 14px;
    }

    .daily-missions-timer-inline {
        font-size: 11px;
    }

    .missions-widget-list {
        gap: 8px;
    }

    .mission-widget-item {
        padding: 10px;
    }

    .mission-widget-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mission-widget-icon {
        font-size: 20px;
        width: 32px;
    }

    .mission-widget-name {
        font-size: 12px;
    }

    .mission-widget-desc {
        font-size: 10px;
    }

    .mission-widget-reward {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 6px 10px;
    }

    .mission-widget-claim-btn {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }

    /* Mission List (Full Screen) - Mobile */
    .missions-list {
        padding: 10px;
        gap: 10px;
    }

    .mission-item {
        padding: 12px;
    }

    .mission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mission-icon {
        font-size: 24px;
        width: 36px;
    }

    .mission-name {
        font-size: 13px;
    }

    .mission-desc {
        font-size: 10px;
    }

    .mission-reward {
        width: 100%;
        flex-direction: row;
        padding: 8px 12px;
    }

    .mission-claim-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* Lobby Browser Screen - Mobile */
    #screen-lobby-browser {
        padding-top: 20px !important;
    }

    #screen-lobby-browser .panel {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 0 !important;
        padding: 15px !important;
        margin: 10px auto !important;
    }

    #screen-lobby-browser h2 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }

    #screen-lobby-browser .panel button {
        font-size: 14px !important;
        padding: 14px !important;
        width: 100% !important;
    }

    #map-selection {
        font-size: 14px !important;
        padding: 12px !important;
    }

    #server-browser {
        max-height: 180px !important;
        min-height: 120px !important;
    }

    #input-code {
        font-size: 14px !important;
        letter-spacing: 2px !important;
        padding: 12px !important;
        flex: 1 !important;
    }

    /* Join button neben input */
    #screen-lobby-browser .panel > div:last-child {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #screen-lobby-browser .panel > div:last-child button {
        flex: unset !important;
        width: 100% !important;
    }

    /* Mission Erstellen Screen - Mobile */
    #screen-char-select {
        padding-top: 20px !important;
    }

    #screen-char-select .panel {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 0 !important;
        padding: 15px !important;
        margin: 10px auto !important;
    }

    #screen-char-select h2,
    #mission-screen-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .selected-char-preview {
        padding: 12px;
    }

    .char-preview-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .char-preview-label {
        font-size: 11px;
    }

    .char-change-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .char-preview-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .char-preview-icon {
        font-size: 36px;
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }

    .char-preview-info {
        text-align: center;
    }

    .char-preview-name {
        font-size: 18px;
    }

    .char-preview-desc {
        font-size: 11px;
    }

    .char-preview-stats {
        font-size: 10px;
    }

    /* Gamemode Selection - Mobile */
    #gamemode-select {
        padding: 12px !important;
        margin-top: 15px !important;
    }

    #gamemode-select > div:first-child {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    #gamemode-select > div:last-child {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .gamemode-btn {
        width: 100% !important;
        padding: 12px !important;
    }

    .gamemode-btn > div:first-child {
        font-size: 24px !important;
    }

    .gamemode-btn > div:nth-child(2) {
        font-size: 13px !important;
    }

    .gamemode-btn > div:nth-child(3) {
        font-size: 10px !important;
    }

    #btn-confirm-char {
        font-size: 14px !important;
        padding: 14px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    /* Lobby Waiting Screen - Mobile */
    #screen-waiting {
        padding-top: 20px !important;
    }

    #screen-waiting .panel,
    .lobby-panel {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 0 !important;
        padding: 15px !important;
    }

    .lobby-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .lobby-header h2 {
        font-size: 16px;
    }

    .invite-link-btn {
        font-size: 12px;
        padding: 8px 12px;
        width: 100%;
    }

    .lobby-section-title {
        font-size: 14px;
    }

    .lobby-pilots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .lobby-my-pilot {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .lobby-my-pilot label {
        font-size: 12px;
    }

    .lobby-my-pilot select {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    #ai-controls {
        padding: 10px;
    }

    /* Back buttons - Mobile - Position relativ statt absolut */
    #screen-lobby-browser > div:first-child,
    #screen-char-select > div:first-child,
    #screen-waiting > div:first-child {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    #screen-lobby-browser > div:first-child button,
    #screen-char-select > div:first-child button,
    #screen-waiting > div:first-child button {
        width: 100% !important;
        padding: 12px !important;
    }

    /* Game Over Screen */
    #screen-gameover {
        padding: 20px 10px !important;
    }

    #screen-gameover .panel {
        width: 95% !important;
        max-width: 95% !important;
        min-width: 0 !important;
    }

    #screen-gameover h1 {
        font-size: 24px !important;
    }
}

/* Small Mobile - Mission Screens */
@media (max-width: 480px) {
    .screen {
        padding: 15px 8px !important;
    }

    .panel {
        padding: 12px !important;
    }

    .screen h2 {
        font-size: 18px !important;
    }

    .mission-start-widget-title {
        font-size: 14px;
    }

    .mission-start-btn,
    .mission-start-btn-secondary {
        padding: 12px;
        font-size: 13px;
    }

    .daily-missions-widget-title {
        font-size: 13px;
    }

    .mission-widget-icon {
        font-size: 18px;
        width: 28px;
    }

    .mission-widget-name {
        font-size: 11px;
    }

    #screen-lobby-browser h2 {
        font-size: 18px !important;
    }

    #screen-char-select h2,
    #mission-screen-title {
        font-size: 16px !important;
    }

    .lobby-pilots-grid {
        grid-template-columns: 1fr !important;
    }

    .gamemode-btn {
        padding: 10px !important;
    }

    /* Server Browser Items - Mobile */
    #server-browser > div {
        padding: 8px !important;
        font-size: 11px !important;
    }

    /* Lobby Player Cards */
    .lobby-player-card {
        padding: 8px;
        font-size: 11px;
    }

    .lobby-player-card .player-icon {
        font-size: 20px;
    }

    /* Auth Screen */
    #screen-auth .panel {
        width: 95% !important;
        min-width: 0 !important;
        padding: 15px !important;
    }

    #screen-auth input {
        font-size: 14px !important;
        padding: 12px !important;
    }

    #screen-auth button {
        font-size: 14px !important;
        padding: 12px !important;
    }

    /* Labels */
    .screen label {
        font-size: 12px !important;
    }
}

/* Extra Small Mobile - Missions */
@media (max-width: 360px) {
    .screen {
        padding: 10px 5px !important;
    }

    .panel {
        padding: 10px !important;
        width: 98% !important;
    }

    .screen h2 {
        font-size: 16px !important;
    }

    .mission-start-widget {
        padding: 10px;
    }

    .mission-start-btn,
    .mission-start-btn-secondary {
        padding: 10px;
        font-size: 12px;
    }

    .daily-missions-widget {
        padding: 8px;
    }

    .mission-widget-item {
        padding: 8px;
    }

    #screen-lobby-browser .panel,
    #screen-char-select .panel,
    #screen-waiting .panel,
    #screen-auth .panel {
        padding: 10px !important;
    }

    .char-preview-icon {
        font-size: 30px;
        width: 48px;
        height: 48px;
    }

    .char-preview-name {
        font-size: 16px;
    }

    /* Buttons kleiner */
    .screen button {
        font-size: 12px !important;
        padding: 10px !important;
    }

    #server-browser {
        max-height: 150px !important;
        min-height: 100px !important;
    }
}

/* ====================================
   MOBILE IN-GAME UI OPTIMIZATION
   ==================================== */

/* Mobile Game UI - Kleiner und optimiert */
@media (max-width: 768px) {
    /* Steuerungsmodus-Indikator verstecken auf Mobile */
    #control-mode-indicator {
        display: none !important;
    }

    /* Level Display in Navbar - Sehr klein */
    .level-display {
        transform: scale(0.5) !important;
        transform-origin: left center !important;
        margin-right: -30px !important;
    }

    .level-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }

    .level-info {
        gap: 1px !important;
    }

    .level-info span:first-child {
        font-size: 8px !important;
    }

    .xp-bar-outer {
        height: 4px !important;
        max-width: 60px !important;
    }

    .xp-text {
        font-size: 6px !important;
    }

    /* Stats HUD - Kompakter oben links */
    #stats-hud {
        top: 10px !important;
        left: 10px !important;
        width: 120px !important;
        padding: 5px !important;
        font-size: 10px !important;
        background: rgba(0,0,0,0.8) !important;
    }

    #stats-hud .stat-row {
        margin-bottom: 2px;
    }

    #stats-hud .bar-cont {
        width: 50px;
        height: 8px;
    }

    #stats-hud .bar-text {
        font-size: 8px !important;
    }

    /* HP und Energie Bars - Kleiner */
    .hp-bar, .energy-bar {
        height: 8px !important;
    }

    /* Player List HUD - Kompakter oben rechts */
    #player-list-hud {
        top: 10px !important;
        right: 10px !important;
        width: 150px !important;
        padding: 6px !important;
        font-size: 10px !important;
        display: none; /* Verstecken auf Mobile für mehr Platz */
    }

    /* Top HUD - Wave/Score */
    #top-hud {
        top: 5px !important;
        font-size: 14px !important;
    }

    /* Inventory HUD - Oben, sehr kompakt */
    #inventory-hud {
        bottom: auto !important;
        top: 45px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.8) !important;
        transform-origin: center top !important;
        padding: 4px 8px !important;
        font-size: 8px !important;
        gap: 5px !important;
        background: rgba(0,0,0,0.85) !important;
        border-width: 1px !important;
    }

    #inventory-hud .powerup-slot {
        width: 26px;
        height: 26px;
        font-size: 12px;
        border-width: 1px;
        margin: 0 1px;
    }

    #inventory-hud .health-counter {
        padding: 2px 4px;
    }

    #inventory-hud .health-counter .heart-icon {
        font-size: 12px;
    }

    #inventory-hud .health-counter .heart-count {
        font-size: 10px;
    }

    #inventory-hud .inv-title {
        font-size: 8px !important;
    }

    /* Minimap - Kleiner und besser positioniert */
    #minimap-cont {
        bottom: 180px !important;
        left: 10px !important;
        width: 100px !important;
        height: 100px !important;
    }

    #minimap {
        width: 100px !important;
        height: 100px !important;
    }

    /* Ability Box - Verstecken (haben jetzt mobile buttons) */
    .ability-box {
        display: none !important;
    }

    /* Shop Modal - Fullscreen auf Mobile */
    #shop-modal {
        min-width: unset !important;
        width: 95% !important;
        max-width: 95% !important;
        max-height: 80vh !important;
        padding: 12px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    #shop-modal h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    /* Shop Grid - 2 Spalten auf Mobile */
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .shop-item {
        padding: 6px !important;
        min-height: 60px !important;
        font-size: 10px !important;
    }

    .shop-item .price {
        font-size: 10px !important;
    }

    /* Shop Kategorien */
    .shop-cat {
        padding: 8px 6px !important;
    }

    .shop-cat .cat-icon {
        font-size: 18px !important;
    }

    .shop-cat .cat-name {
        font-size: 8px !important;
    }

    /* Wave Announcement - Kleiner auf Mobile (Battlefield Style) */
    #wave-announcement .bf-countdown-container { padding: 12px 25px !important; }
    #wave-announcement .bf-countdown-number { font-size: 70px !important; }
    #wave-announcement .bf-wave-title { font-size: 36px !important; }
    #wave-announcement .bf-countdown-sub { font-size: 11px !important; letter-spacing: 3px !important; }
    #wave-announcement .bf-countdown-tag { font-size: 9px !important; padding: 3px 10px !important; }
    #wave-announcement .bf-go-text { font-size: 55px !important; }

    /* Tutorial und Hinweise */
    #tutorial-panel {
        font-size: 12px !important;
        padding: 10px !important;
    }
}

/* Extra kleine Mobile Geräte */
@media (max-width: 480px) {
    #stats-hud {
        width: 120px !important;
        font-size: 10px !important;
    }

    #inventory-hud {
        padding: 4px 8px !important;
        gap: 5px !important;
    }

    #inventory-hud .powerup-slot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    #minimap-cont {
        width: 80px !important;
        height: 80px !important;
        bottom: 180px !important;
    }

    #minimap {
        width: 80px !important;
        height: 80px !important;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .shop-item {
        min-height: 55px !important;
    }

    /* Wave Announcement - noch kleiner auf sehr kleinen Geräten (Battlefield Style) */
    #wave-announcement .bf-countdown-container { padding: 10px 18px !important; }
    #wave-announcement .bf-countdown-number { font-size: 50px !important; }
    #wave-announcement .bf-wave-title { font-size: 28px !important; }
    #wave-announcement .bf-countdown-sub { font-size: 9px !important; letter-spacing: 2px !important; }
    #wave-announcement .bf-countdown-tag { font-size: 8px !important; padding: 2px 8px !important; }
    #wave-announcement .bf-go-text { font-size: 45px !important; }

    /* Joystick etwas kleiner auf sehr kleinen Geräten */
    .joystick-zone {
        width: 120px !important;
        height: 120px !important;
        bottom: 20px !important;
    }

    .joystick-knob {
        width: 50px !important;
        height: 50px !important;
    }

    /* Shoot Button kleiner */
    .mobile-shoot-btn {
        width: 75px !important;
        height: 75px !important;
    }

    .mobile-shoot-btn .shoot-icon {
        font-size: 24px !important;
    }

    /* Ability Buttons kleiner */
    .mobile-ability-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .mobile-ability-btn .ability-icon {
        font-size: 18px !important;
    }
}

/* Landscape Mode auf Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #stats-hud {
        top: 5px !important;
        left: 5px !important;
        width: 100px !important;
        padding: 4px !important;
        font-size: 9px !important;
    }

    #inventory-hud {
        top: 5px !important;
    }

    #minimap-cont {
        width: 70px !important;
        height: 70px !important;
        bottom: 130px !important;
    }

    #minimap {
        width: 70px !important;
        height: 70px !important;
    }

    .joystick-zone {
        width: 100px !important;
        height: 100px !important;
        bottom: 15px !important;
    }

    .joystick-knob {
        width: 45px !important;
        height: 45px !important;
    }

    .mobile-shoot-btn {
        width: 70px !important;
        height: 70px !important;
    }

    .mobile-ability-btn {
        width: 42px !important;
        height: 42px !important;
    }

    .mobile-top-controls {
        top: 50px !important;
    }
}

/* ========================================
   LIVE AI TRAINING BANNER
   ======================================== */
.live-ai-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.15) 0%, rgba(255, 106, 0, 0.1) 50%, rgba(20, 10, 5, 0.9) 100%);
    border: 1px solid rgba(255, 50, 50, 0.4);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: live-banner-glow 2s ease-in-out infinite;
}

.live-ai-banner:hover {
    border-color: rgba(255, 50, 50, 0.7);
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.25) 0%, rgba(255, 106, 0, 0.15) 50%, rgba(20, 10, 5, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 50, 50, 0.3);
}

@keyframes live-banner-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 50, 50, 0.2); }
    50% { box-shadow: 0 0 35px rgba(255, 50, 50, 0.4); }
}

.live-ai-pulse {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.1), transparent);
    animation: live-pulse-sweep 3s ease-in-out infinite;
}

@keyframes live-pulse-sweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.live-ai-content {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.live-ai-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.live-ai-badge .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: live-dot-blink 1s infinite;
}

@keyframes live-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-ai-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.live-ai-stats {
    font-size: 13px;
    color: var(--bf-orange);
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.live-ai-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--bf-orange);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.live-ai-banner:hover .live-ai-cta {
    color: #fff;
    text-shadow: 0 0 10px var(--bf-orange);
}

@media (max-width: 768px) {
    .live-ai-banner {
        padding: 12px 16px;
    }

    .live-ai-content {
        gap: 10px;
    }

    .live-ai-text {
        font-size: 13px;
    }

    .live-ai-stats {
        font-size: 11px;
    }

    .live-ai-cta {
        display: none;
    }
}

/* ========================================
   LIVE AI TRAINING WIDGET (Multi-Model)
   ======================================== */
.live-ai-widget {
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.1) 0%, rgba(255, 106, 0, 0.08) 50%, rgba(20, 10, 5, 0.95) 100%);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 12px;
    overflow: hidden;
    animation: live-widget-glow 3s ease-in-out infinite;
}

@keyframes live-widget-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 50, 50, 0.15); }
    50% { box-shadow: 0 0 25px rgba(255, 50, 50, 0.25); }
}

.live-ai-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 50, 50, 0.2);
}

.live-ai-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.live-ai-pulse-small {
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 50, 50, 0.5), transparent);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.live-ai-badge-small {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.live-dot-small {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: live-dot-blink 1s infinite;
}

.live-ai-view-all {
    font-size: 12px;
    color: var(--bf-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.live-ai-view-all:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--bf-orange);
}

.live-ai-models-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.live-ai-model-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(20, 15, 10, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.live-ai-model-card:hover {
    background: rgba(255, 106, 0, 0.1);
}

.live-ai-model-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-ai-model-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.2), rgba(255, 50, 50, 0.1));
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 8px;
    font-size: 18px;
}

.live-ai-model-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-ai-model-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.live-ai-model-duration {
    font-size: 11px;
    color: var(--bf-text-dim, #888);
}

.live-ai-model-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-ai-model-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.live-ai-model-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--bf-orange, #ff6a00);
}

.live-ai-model-stat-label {
    font-size: 9px;
    color: var(--bf-text-dim, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-ai-model-arrow {
    font-size: 14px;
    color: var(--bf-text-dim, #666);
    transition: all 0.2s;
}

.live-ai-model-card:hover .live-ai-model-arrow {
    color: var(--bf-orange, #ff6a00);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .live-ai-widget-header {
        padding: 10px 12px;
    }

    .live-ai-widget-title {
        font-size: 12px;
    }

    .live-ai-model-card {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .live-ai-model-stats {
        width: 100%;
        justify-content: space-around;
    }
}

/* ========================================
   LANDING PAGE - LIVE AI BUTTON
   ======================================== */
.landing-live-ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(255, 50, 50, 0.15) 50%, rgba(255, 106, 0, 0.2) 100%);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: landing-ai-glow 3s ease-in-out infinite;
}

.landing-live-ai-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.3), 0 0 40px rgba(255, 106, 0, 0.2);
}

@keyframes landing-ai-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.2), 0 0 25px rgba(255, 106, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.35), 0 0 35px rgba(255, 106, 0, 0.2);
    }
}

.live-ai-btn-pulse {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: btn-pulse-sweep 2.5s ease-in-out infinite;
}

@keyframes btn-pulse-sweep {
    0% { left: -150%; }
    50%, 100% { left: 150%; }
}

.live-ai-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
}

.live-ai-btn-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.live-dot-small {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: live-dot-blink 1s infinite;
}

.live-ai-btn-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 6px rgba(138, 43, 226, 0.6));
}

.live-ai-btn-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.live-ai-btn-wave {
    padding: 3px 8px;
    background: rgba(255, 106, 0, 0.15);
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--bf-orange);
}

.landing-live-ai-btn:hover .live-ai-btn-text {
    color: #fff;
}

@media (max-width: 768px) {
    .landing-live-ai-btn {
        padding: 8px 14px;
        margin-bottom: 12px;
    }

    .live-ai-btn-content {
        gap: 6px;
    }

    .live-ai-btn-text {
        font-size: 11px;
    }

    .live-ai-btn-icon {
        font-size: 16px;
    }

    .live-ai-btn-wave {
        display: none;
    }
}

/* ============================================
   ADMIN WIDGET - Bottom Left
   ============================================ */

.admin-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 200px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #ff9900;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.admin-widget.hidden {
    display: none;
}

body.in-game .admin-widget {
    display: none !important;
}

.admin-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(180deg, rgba(255, 153, 0, 0.3) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    color: #ff9900;
    font-weight: bold;
    font-size: 12px;
}

.admin-widget-header:hover {
    background: linear-gradient(180deg, rgba(255, 153, 0, 0.4) 0%, transparent 100%);
}

.admin-widget-toggle {
    transition: transform 0.3s;
}

.admin-widget.collapsed .admin-widget-toggle {
    transform: rotate(-90deg);
}

.admin-widget.collapsed .admin-widget-content {
    display: none;
}

.admin-widget-content {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.admin-widget-link {
    display: block;
    padding: 8px 12px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 12px;
    border-radius: 5px;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.admin-widget-link:last-child {
    margin-bottom: 0;
}

.admin-widget-link:hover {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9900;
}

/* ========================================
   LOGIN LOGO ANIMATION OVERLAY
   ======================================== */
/* Hide scrollbar during logo animation */
body.logo-animating {
    overflow: hidden !important;
}

body.logo-animating::-webkit-scrollbar {
    display: none !important;
}

/* Hide scrollbar on landing intro page */
#screen-landing-intro {
    overflow: hidden;
}

.login-logo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: opacity;
}

.login-logo-overlay.active {
    opacity: 1;
}

.login-logo-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-logo-overlay.hidden {
    display: none;
}

.login-logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo-image {
    width: 300px;
    height: auto;
    max-width: 80vw;
    opacity: 0;
    transform: scale(0.7) translateY(30px);
    filter: drop-shadow(0 0 0px var(--bf-orange));
    z-index: 2;
    position: relative;
    will-change: transform, opacity, filter;
}

.login-logo-overlay.active .login-logo-image {
    animation: logoReveal 1.6s ease-out forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
        filter: drop-shadow(0 0 0px var(--bf-orange));
    }
    25% {
        opacity: 1;
        transform: scale(1.02) translateY(0);
        filter: drop-shadow(0 0 50px var(--bf-orange)) drop-shadow(0 0 80px rgba(255, 106, 0, 0.6));
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 60px var(--bf-orange)) drop-shadow(0 0 100px rgba(255, 106, 0, 0.5));
    }
    75% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 40px var(--bf-orange)) drop-shadow(0 0 60px rgba(255, 106, 0, 0.3));
    }
    100% {
        opacity: 0;
        transform: scale(1.05) translateY(-20px);
        filter: drop-shadow(0 0 20px var(--bf-orange));
    }
}

/* Glow Ring hinter dem Logo */
.login-logo-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.4) 0%, rgba(255, 106, 0, 0.15) 35%, transparent 65%);
    opacity: 0;
    transform: scale(0.5);
    z-index: 1;
    will-change: transform, opacity;
}

.login-logo-overlay.active .login-logo-glow {
    animation: glowPulse 1.6s ease-out forwards;
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    25% {
        opacity: 1;
        transform: scale(1.1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1);
    }
    75% {
        opacity: 0.6;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* Aufsteigende Ember-Partikel (wie auf Home) */
.login-logo-embers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.login-logo-embers .ember {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    background: var(--bf-orange);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px 2px rgba(255, 106, 0, 0.7);
    will-change: transform, opacity;
}

.login-logo-overlay.active .login-logo-embers .ember {
    animation: emberRiseLogin linear forwards;
}

.login-logo-embers .ember:nth-child(1) { left: 10%; animation-duration: 1.8s; animation-delay: 0s; }
.login-logo-embers .ember:nth-child(2) { left: 20%; animation-duration: 2s; animation-delay: 0.1s; }
.login-logo-embers .ember:nth-child(3) { left: 30%; animation-duration: 1.6s; animation-delay: 0.2s; }
.login-logo-embers .ember:nth-child(4) { left: 40%; animation-duration: 1.9s; animation-delay: 0.05s; }
.login-logo-embers .ember:nth-child(5) { left: 50%; animation-duration: 1.7s; animation-delay: 0.15s; }
.login-logo-embers .ember:nth-child(6) { left: 60%; animation-duration: 2.1s; animation-delay: 0.08s; }
.login-logo-embers .ember:nth-child(7) { left: 70%; animation-duration: 1.5s; animation-delay: 0.12s; }
.login-logo-embers .ember:nth-child(8) { left: 80%; animation-duration: 1.8s; animation-delay: 0.18s; }
.login-logo-embers .ember:nth-child(9) { left: 90%; animation-duration: 2s; animation-delay: 0.03s; }
.login-logo-embers .ember:nth-child(10) { left: 15%; animation-duration: 1.7s; animation-delay: 0.25s; }
.login-logo-embers .ember:nth-child(11) { left: 35%; animation-duration: 1.9s; animation-delay: 0.3s; }
.login-logo-embers .ember:nth-child(12) { left: 55%; animation-duration: 1.6s; animation-delay: 0.22s; }
.login-logo-embers .ember:nth-child(13) { left: 75%; animation-duration: 2.1s; animation-delay: 0.28s; }
.login-logo-embers .ember:nth-child(14) { left: 95%; animation-duration: 1.8s; animation-delay: 0.35s; }
.login-logo-embers .ember:nth-child(15) { left: 5%; animation-duration: 1.5s; animation-delay: 0.4s; }

/* Größen-Variationen */
.login-logo-embers .ember:nth-child(odd) { width: 3px; height: 3px; }
.login-logo-embers .ember:nth-child(3n) { width: 5px; height: 5px; box-shadow: 0 0 10px 3px rgba(255, 106, 0, 0.8); }
.login-logo-embers .ember:nth-child(5n) { background: var(--bf-orange-bright); }
.login-logo-embers .ember:nth-child(7n) { background: #ff4400; }

@keyframes emberRiseLogin {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(1);
    }
    10% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(calc(-20px + 40px * var(--drift, 0.5))) scale(0.5);
    }
}

.login-logo-embers .ember:nth-child(1) { --drift: 0.3; }
.login-logo-embers .ember:nth-child(2) { --drift: 0.7; }
.login-logo-embers .ember:nth-child(3) { --drift: 0.2; }
.login-logo-embers .ember:nth-child(4) { --drift: 0.8; }
.login-logo-embers .ember:nth-child(5) { --drift: 0.4; }
.login-logo-embers .ember:nth-child(6) { --drift: 0.6; }
.login-logo-embers .ember:nth-child(7) { --drift: 0.1; }
.login-logo-embers .ember:nth-child(8) { --drift: 0.9; }
.login-logo-embers .ember:nth-child(9) { --drift: 0.5; }
.login-logo-embers .ember:nth-child(10) { --drift: 0.35; }
.login-logo-embers .ember:nth-child(11) { --drift: 0.65; }
.login-logo-embers .ember:nth-child(12) { --drift: 0.25; }
.login-logo-embers .ember:nth-child(13) { --drift: 0.75; }
.login-logo-embers .ember:nth-child(14) { --drift: 0.15; }
.login-logo-embers .ember:nth-child(15) { --drift: 0.85; }

/* Burst-Partikel die vom Logo wegfliegen */
.login-logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.login-logo-particles span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--bf-orange);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px var(--bf-orange), 0 0 15px var(--bf-orange-bright);
    will-change: transform, opacity;
}

.login-logo-overlay.active .login-logo-particles span {
    animation: particleBurst 1.2s ease-out forwards;
}

.login-logo-particles span:nth-child(1) { animation-delay: 0.15s; }
.login-logo-particles span:nth-child(2) { animation-delay: 0.18s; }
.login-logo-particles span:nth-child(3) { animation-delay: 0.21s; }
.login-logo-particles span:nth-child(4) { animation-delay: 0.24s; }
.login-logo-particles span:nth-child(5) { animation-delay: 0.27s; }
.login-logo-particles span:nth-child(6) { animation-delay: 0.30s; }
.login-logo-particles span:nth-child(7) { animation-delay: 0.33s; }
.login-logo-particles span:nth-child(8) { animation-delay: 0.36s; }

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 100px), var(--ty, -100px)) scale(0.3);
    }
}

.login-logo-particles span:nth-child(1) { --tx: -100px; --ty: -60px; }
.login-logo-particles span:nth-child(2) { --tx: 110px; --ty: -50px; }
.login-logo-particles span:nth-child(3) { --tx: -80px; --ty: 70px; }
.login-logo-particles span:nth-child(4) { --tx: 90px; --ty: 80px; }
.login-logo-particles span:nth-child(5) { --tx: -50px; --ty: -90px; }
.login-logo-particles span:nth-child(6) { --tx: 60px; --ty: -85px; }
.login-logo-particles span:nth-child(7) { --tx: -120px; --ty: 15px; }
.login-logo-particles span:nth-child(8) { --tx: 130px; --ty: 20px; }
