/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: url('https://starpath-game.de/00030-129709930.png') center center / cover no-repeat fixed;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

#app {
    background: transparent;
    min-height: 100vh;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    background: transparent;
}

.screen.active {
    display: block;
}

/* Auth Screen */
#auth-screen {
    display: none;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

#auth-screen.active {
    display: block;
}

/* Floating Title - Top Left */
.floating-title {
    position: absolute;
    top: 3rem;
    left: 3rem;
    z-index: 10;
}

.floating-title h1 {
    font-family: 'Orbitron', monospace;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ffffff, #00d4ff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(0, 212, 255, 1.0);
    animation: titleGlow 4s ease-in-out infinite alternate, titleFloat 6s ease-in-out infinite;
    margin: 0;
    letter-spacing: 0.15em;
    transform-origin: center;
}

@keyframes titleGlow {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.4));
    }
    100% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 50px rgba(0, 212, 255, 1.0)) drop-shadow(0 0 100px rgba(0, 212, 255, 0.6));
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.dev-notice {
    margin-top: 1rem;
    text-align: center;
}

.dev-notice p {
    font-size: 1rem;
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
    margin: 0.2rem 0;
    font-weight: 600;
}

/* Story Corner - Bottom Left */
.story-corner {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    max-width: 500px;
    z-index: 10;
}

.story-content {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.story-content h3 {
    font-family: 'Orbitron', monospace;
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.welcome-message {
    background: rgba(0, 40, 20, 0.9);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.welcome-message h2 {
    font-family: 'Orbitron', monospace;
    color: #00ff88;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.welcome-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Login Corner - Bottom Right */
.login-corner {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 10;
}

.auth-forms {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00d4ff;
    border-radius: 20px;
    padding: 2.5rem;
    min-width: 350px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 40, 80, 0.8);
    border: 2px solid #0066cc;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.auth-form input::placeholder {
    color: #aaaaaa;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00b8e6, #007aa3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(100, 100, 100, 0.8);
    color: #ffffff;
    border: 2px solid #666666;
}

.btn-secondary:hover {
    background: rgba(120, 120, 120, 0.9);
    border-color: #888888;
}

.auth-form p {
    text-align: center;
    color: #cccccc;
    margin-top: 1rem;
}

.auth-form a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-form a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* Game Screen */
#game-screen {
    display: none;
    min-height: 100vh;
    background: transparent;
}

#game-screen.active {
    display: flex;
    flex-direction: column;
}

/* Game Header */
.game-header {
    background: rgba(0, 20, 40, 0.95);
    border-bottom: 2px solid #00d4ff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.3);
}

.header-left h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    margin-bottom: 0.5rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-info span {
    color: #ffffff;
    font-weight: 600;
}

.experience-bar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-text {
    font-size: 0.9rem;
    color: #cccccc;
}

.experience-progress {
    width: 200px;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #00d4ff;
}

.experience-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    width: 0%;
    transition: width 0.5s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.resources {
    display: flex;
    gap: 1.5rem;
}

.resource {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 40, 80, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #0066cc;
}

/* Resource classification colors */
.resource.common {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.3);
}

.resource.uncommon {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.3);
}

.resource.rare {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.3);
}

.resource.epic {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.3);
}

.resource.legendary {
    border-color: #FF5722;
    background: rgba(255, 87, 34, 0.3);
}

.resource-icon {
    font-size: 1.2rem;
}

.resource span:last-child {
    font-weight: 600;
    color: #ffffff;
}

/* Navigation */
.game-nav {
    background: rgba(0, 30, 60, 0.9);
    border-bottom: 1px solid #0066cc;
    padding: 0 2rem;
    backdrop-filter: blur(5px);
}

.unified-nav-container {
    display: flex;
    gap: 0;
}

.nav-item {
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.nav-item.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
}

/* Main Container */
.main-container {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 300px;
    background: rgba(0, 20, 40, 0.95);
    border-right: 2px solid #0066cc;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #0066cc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    font-weight: 600;
}

.online-count {
    background: #00ff88;
    color: #000000;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-controls {
    display: flex;
    gap: 0.5rem;
}

.chat-btn {
    background: rgba(100, 100, 100, 0.5);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chat-btn:hover {
    background: rgba(150, 150, 150, 0.7);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.system-message {
    background: rgba(0, 100, 200, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
    text-align: center;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid #0066cc;
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid #0066cc;
    border-radius: 5px;
    color: #ffffff;
}

#chat-input::placeholder {
    color: #aaaaaa;
}

.send-btn {
    background: #00d4ff;
    border: none;
    color: #000000;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #00b8e6;
}

/* Game Content */
.game-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
}

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

.content-section h2 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

/* Dashboard Styles */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-card {
    background: rgba(0, 40, 80, 0.9);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.welcome-card h3 {
    font-family: 'Orbitron', monospace;
    color: #00ff88;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.quick-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 0.5rem;
}

.resources-section {
    margin-bottom: 2rem;
}

.resources-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resource-item {
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid #0066cc;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.resource-item .resource-icon {
    font-size: 2rem;
}

.resource-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.resource-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.activity-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.activity-feed {
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid #0066cc;
    border-radius: 10px;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
}

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

.activity-time {
    color: #cccccc;
    font-size: 0.9rem;
}

.activity-text {
    color: #ffffff;
}

/* Leaderboard Styles */
.leaderboard-grid {
    background: rgba(0, 40, 80, 0.9);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 212, 255, 0.3);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fixed Chat Input */
.fixed-chat-input {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background: rgba(0, 20, 40, 0.95);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00d4ff;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    z-index: 1000;
}

.chat-history-btn {
    background: #00d4ff;
    border: none;
    color: #000000;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chat-history-btn:hover {
    background: #00b8e6;
}

#chat-input-fixed {
    flex: 1;
    min-width: 300px;
    padding: 10px;
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid #0066cc;
    border-radius: 5px;
    color: #ffffff;
}

#chat-input-fixed::placeholder {
    color: #aaaaaa;
}

.send-btn-fixed {
    background: #00d4ff;
    border: none;
    color: #000000;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.send-btn-fixed:hover {
    background: #00b8e6;
}

/* Chat History Popup */
.chat-history-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-height: 600px;
    background: rgba(0, 20, 40, 0.98);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    z-index: 2000;
    display: none;
}

.chat-history-header {
    padding: 1rem;
    border-bottom: 1px solid #0066cc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-history-title {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.2rem;
}

.chat-history-close {
    background: rgba(255, 100, 100, 0.8);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.chat-history-close:hover {
    background: rgba(255, 100, 100, 1);
}

.chat-history-messages {
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Temporary Message Popup */
.temp-message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: rgba(0, 20, 40, 0.98);
    border: 2px solid #00ff88;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    z-index: 2500;
    display: none;
}

.temp-message-header {
    padding: 1rem;
    border-bottom: 1px solid #00ff88;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temp-message-title {
    color: #00ff88;
    font-weight: 600;
}

.temp-message-close {
    background: rgba(255, 100, 100, 0.8);
    border: none;
    color: #ffffff;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.temp-message-close:hover {
    background: rgba(255, 100, 100, 1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.loading-spinner {
    margin-bottom: 1rem;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
}

/* Activity Log */
.activity-log {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 300px;
    z-index: 1500;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 20, 40, 0.98);
    border-top: 2px solid #00d4ff;
    padding: 2rem;
    z-index: 4000;
    backdrop-filter: blur(15px);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.cookie-content p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-link {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    text-decoration: none;
}

.btn-link:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(0, 20, 40, 0.98);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 100, 100, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 100, 100, 1);
}

.imprint-content h2 {
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    margin-bottom: 2rem;
}

.imprint-content h3 {
    color: #00ff88;
    margin: 1.5rem 0 1rem 0;
}

.imprint-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-title {
        top: 1rem;
        left: 1rem;
    }
    
    .floating-title h1 {
        font-size: 3rem;
    }
    
    .story-corner,
    .login-corner {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 2rem;
        max-width: none;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 200px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .resources {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quick-stats {
        justify-content: center;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-chat-input {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1rem;
    }
    
    #chat-input-fixed {
        min-width: auto;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #00d4ff;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-consent.hidden {
    display: none !important;
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cookie-buttons .btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
}

.cookie-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #0099cc, #007399);
    transform: translateY(-2px);
}

.cookie-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cookie-buttons .btn-link {
    background: transparent;
    color: #00d4ff;
    text-decoration: underline;
}

.cookie-buttons .btn-link:hover {
    color: #ffffff;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid #00d4ff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #00d4ff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-content .close:hover {
    color: #ffffff;
}

.modal-content h2 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-content h3 {
    color: #ffffff;
    margin: 1.5rem 0 0.5rem 0;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    color: #00ffff;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}

/* ===== MODERN FUTURISTIC HANGAR STYLES ===== */
.ship-status-section {
    margin-bottom: 3rem;
}

.ship-card {
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.95), rgba(0, 20, 60, 0.9));
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.ship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00d4ff, #00ff88, #0099cc, #00d4ff);
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 2px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

.ship-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.95), rgba(0, 20, 60, 0.9));
    border-radius: 18px;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ship-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 60px rgba(0, 212, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 136, 0.15);
}

.ship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ship-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    margin: 0;
}

.ship-level {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.ship-stats {
    margin-bottom: 2rem;
}

.stat-bar {
    margin-bottom: 1.5rem;
}

.stat-bar label {
    display: block;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.health-bar, .exp-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 15px;
    height: 25px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666, #ff8888);
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc66, #00aa44);
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.health-bar span, .exp-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

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

.ship-actions .btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #666, #888);
    color: #fff;
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(136, 136, 136, 0.5);
}

/* ===== MODULES SECTION ===== */
.modules-section {
    margin-top: 3rem;
}

.modules-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00ff88;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.9), rgba(0, 15, 40, 0.8));
    border: 1px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% 100%;
    animation: moduleGlow 2s ease-in-out infinite;
}

@keyframes moduleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #00ff88;
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.3);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.module-info h4 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.module-level {
    color: #00ff88;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.max-level {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.upgrade-status {
    color: #ffaa00;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
}

.module-card.upgrading {
    border-color: #ffaa00;
    background: linear-gradient(135deg, rgba(60, 30, 0, 0.9), rgba(40, 15, 0, 0.8));
}

.module-card.upgrading::before {
    background: linear-gradient(90deg, #ffaa00, #ff6b6b, #ffaa00);
}

/* ===== MODERN MISSIONS STYLES ===== */
.mission-status-section {
    margin-bottom: 3rem;
}

.current-mission {
    background: linear-gradient(135deg, rgba(0, 60, 40, 0.9), rgba(0, 40, 20, 0.8));
    border: 2px solid #00ff88;
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.current-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: missionPulse 3s ease-in-out infinite;
}

@keyframes missionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.current-mission h3 {
    font-family: 'Orbitron', monospace;
    color: #00ff88;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.mission-card {
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.9), rgba(0, 20, 60, 0.8));
    border: 1px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    transform: translateY(-3px);
    border-color: #00ff88;
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.4);
}

.mission-info h4 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.mission-info p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mission-timer {
    margin-top: 1.5rem;
}

.timer-display {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00ff88;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.timer-progress {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    height: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.mission-rewards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.reward-info {
    color: #00ff88;
    font-weight: 600;
}

.mission-duration {
    color: #ffaa00;
    font-size: 0.9rem;
}

/* ===== MODERN STAFFEL STYLES ===== */
.staffel-status-section {
    margin-bottom: 3rem;
}

.staffel-card {
    background: linear-gradient(135deg, rgba(60, 0, 80, 0.9), rgba(40, 0, 60, 0.8));
    border: 2px solid #aa00ff;
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(170, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.staffel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(170, 0, 255, 0.1), transparent);
    animation: staffelPulse 4s ease-in-out infinite;
}

@keyframes staffelPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

.staffel-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.member-card {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 15, 40, 0.7));
    border: 1px solid #aa00ff;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.member-card:hover {
    transform: translateY(-2px);
    border-color: #cc44ff;
    box-shadow: 0 5px 25px rgba(170, 0, 255, 0.3);
}

/* ===== MODERN LEADERBOARD STYLES ===== */
.leaderboard-section {
    margin-bottom: 3rem;
}

.leaderboard-table {
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.9), rgba(0, 20, 60, 0.8));
    border: 2px solid #00d4ff;
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 1fr 80px 140px 120px 120px;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 140px 120px 120px;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.leaderboard-row:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    transform: translateX(5px);
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-badge.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.rank-badge.silver {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: #000;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
}

.rank-badge.bronze {
    background: linear-gradient(45deg, #cd7f32, #d4a574);
    color: #000;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.6);
}

.rank-badge.normal {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000;
}

.player-name {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.player-level, .player-exp, .player-score {
    color: #00ff88;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-rank {
    font-weight: 600;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-rank.special-rank {
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: none;
    animation: specialRankGlow 2s ease-in-out infinite alternate;
}

@keyframes specialRankGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 107, 107, 1.0));
    }
}

/* Responsive adjustments for cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        padding: 0 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .ship-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .ship-actions {
        justify-content: center;
    }
    
    .modules-grid, .missions-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-header, .leaderboard-row {
        grid-template-columns: 50px 1fr 80px 80px 80px;
        font-size: 0.9rem;
    }
    
    .staffel-members {
        grid-template-columns: 1fr;
    }
}

/* Notification System */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #00ff88;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 350px;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
    pointer-events: auto;
    font-size: 14px;
    line-height: 1.4;
}

.notification.error {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.notification.success {
    border-left-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.notification.warning {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.notification.info {
    border-left-color: #0088ff;
    background: rgba(0, 136, 255, 0.1);
}

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