/* Cosmic Dominion - Dark Space Theme CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

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

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

/* Landing Page Styles */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.landing-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 0;
}

.landing-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

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

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

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.auth-section {
    text-align: center;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.auth-info p {
    margin-bottom: 10px;
    color: #b0b0b0;
}

.auth-info a {
    color: #667eea;
    text-decoration: none;
}

.auth-info a:hover {
    text-decoration: underline;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #b0b0b0;
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.form-group input::placeholder {
    color: #888;
}

.auth-links {
    text-align: center;
}

.auth-links p {
    margin-bottom: 10px;
    color: #b0b0b0;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

/* Game Page Layout - Modern Sci-Fi Theme */
.game-page {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 25%, #16213e 50%, #0f1419 100%);
    position: relative;
    overflow-x: hidden;
    padding-top: 60px; /* Space for fixed header */
}

.game-header {
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%),
        rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000; /* Above modals */
    height: 60px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

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

.header-left h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.player-name {
    color: rgba(16, 185, 129, 0.8);
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-planet {
    display: flex;
    align-items: center;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)),
        rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.current-planet:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.planet-emoji {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.planet-name {
    font-weight: 600;
    color: rgba(16, 185, 129, 0.9);
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

.game-container {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* Left Panel - Resources */
.left-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.resource-display {
    text-align: center;
    margin-bottom: 30px;
}

.debris-counter {
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.debris-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.debris-amount {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.debris-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.income-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.income-label {
    color: #b0b0b0;
}

.income-value {
    font-weight: bold;
    color: #4caf50;
}

.discovery-points .income-value {
    color: #667eea;
}

.discovery-points .income-label {
    color: #b0b0b0;
}

/* Center Panel - Main Game */
.center-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.click-area {
    text-align: center;
}

.planet-display {
    margin-bottom: 40px;
}

.planet-visual {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 3px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(16, 185, 129, 0.3),
        inset 0 0 30px rgba(59, 130, 246, 0.1);
}

.planet-visual:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 50px rgba(16, 185, 129, 0.5),
        inset 0 0 40px rgba(59, 130, 246, 0.2);
}

/* Clickable Planet Styles - Enhanced Sci-Fi */
.clickable-planet {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.clickable-planet::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #10b981, #3b82f6, #8b5cf6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.clickable-planet:hover::before {
    opacity: 0.6;
}

.clickable-planet:hover {
    transform: scale(1.1);
    border-color: rgba(16, 185, 129, 0.8);
}

.clickable-planet:active {
    transform: scale(0.95);
    animation: planetPulse 0.6s ease-out;
}

.click-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(59, 130, 246, 0.9));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
}

.clickable-planet:hover .click-indicator {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px) scale(1.05);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.planet-instruction {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 10px;
    animation: fadeInOut 3s ease-in-out infinite;
}

/* Planet Pulse Animation - Enhanced Sci-Fi */
@keyframes planetPulse {
    0% {
        box-shadow:
            0 0 30px rgba(16, 185, 129, 0.3),
            inset 0 0 30px rgba(59, 130, 246, 0.1);
        border-color: rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow:
            0 0 80px rgba(16, 185, 129, 0.8),
            0 0 120px rgba(59, 130, 246, 0.6),
            inset 0 0 50px rgba(139, 92, 246, 0.3);
        border-color: rgba(16, 185, 129, 1);
        transform: scale(1.05);
    }
    100% {
        box-shadow:
            0 0 30px rgba(16, 185, 129, 0.3),
            inset 0 0 30px rgba(59, 130, 246, 0.1);
        border-color: rgba(16, 185, 129, 0.4);
    }
}

/* Rotating border animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Planet Selection Styles */
.planet-selection {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.planet-selection h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #10b981;
    font-size: 1.2rem;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.planet-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.planet-option:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.planet-option.current {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.planet-option.locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.planet-option.locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.planet-option-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.planet-option.locked .planet-option-emoji {
    filter: grayscale(100%) opacity(0.5);
}

.planet-option-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.2;
}

.planet-option.locked .planet-option-name {
    color: #888;
}

.planet-option-multiplier {
    font-size: 0.7rem;
    color: #10b981;
    margin-top: 4px;
    font-weight: 500;
}

.planet-option.locked .planet-option-multiplier {
    color: #666;
}

/* Prestige Points Display */
.prestige-points .income-label {
    color: #8b5cf6;
}

.prestige-points .income-value {
    color: #8b5cf6;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.prestige-multiplier-display .income-label {
    color: #3b82f6;
}

.prestige-multiplier-display .income-value {
    color: #3b82f6;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Notification System - Mobile Friendly */
.notification {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    padding: 12px 18px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 280px;
    min-width: 200px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(34, 197, 94, 0.9));
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.notification-achievement {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(147, 51, 234, 0.9));
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.notification-rare {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(219, 39, 119, 0.9));
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.notification-epic {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* Galaxy Modal Styles */
.galaxy-systems {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.galaxy-system {
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05)),
        rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.galaxy-system.unlocked {
    border-color: rgba(16, 185, 129, 0.5);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)),
        rgba(255, 255, 255, 0.05);
}

.galaxy-system.current {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.galaxy-system.can-unlock {
    border-color: rgba(34, 197, 94, 0.6);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1)),
        rgba(255, 255, 255, 0.05);
}

.galaxy-system.locked {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.system-header h3 {
    margin: 0;
    color: #10b981;
    font-size: 1.3rem;
    font-weight: 700;
}

.system-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.galaxy-system.unlocked .system-status {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.galaxy-system.can-unlock .system-status {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.galaxy-system.locked .system-status {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.2);
}

.system-requirements {
    margin: 15px 0;
}

.system-requirements h4 {
    margin: 0 0 10px 0;
    color: #e0e0e0;
    font-size: 1rem;
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.requirement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement.completed {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.requirement.incomplete {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.req-material {
    font-size: 0.9rem;
    font-weight: 600;
}

.req-amount {
    font-size: 0.8rem;
    font-weight: 700;
}

.requirement.completed .req-amount {
    color: #10b981;
}

.requirement.incomplete .req-amount {
    color: #ef4444;
}

.progress-bar {
    position: relative;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #22c55e);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.system-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-disabled {
    background: rgba(156, 163, 175, 0.3);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Materials Modal Styles */
.materials-inventory {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.empty-materials {
    text-align: center;
    padding: 40px 20px;
    color: #b0b0b0;
}

.empty-materials h3 {
    color: #10b981;
    margin-bottom: 15px;
}

.materials-rarity-section {
    margin-bottom: 25px;
}

.rarity-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rarity-header.rarity-common {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.rarity-header.rarity-uncommon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.rarity-header.rarity-rare {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.rarity-header.rarity-epic {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.rarity-header.rarity-legendary {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.material-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.material-item.rarity-common {
    border-color: rgba(156, 163, 175, 0.3);
}

.material-item.rarity-uncommon {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}

.material-item.rarity-rare {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.material-item.rarity-epic {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.material-item.rarity-legendary {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.material-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.material-info {
    flex: 1;
}

.material-name {
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.material-quantity {
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 3px;
}

.material-total {
    font-size: 0.8rem;
    color: #b0b0b0;
}

/* Rarity-specific quantity colors */
.material-item.rarity-uncommon .material-quantity {
    color: #22c55e;
}

.material-item.rarity-rare .material-quantity {
    color: #3b82f6;
}

.material-item.rarity-epic .material-quantity {
    color: #a855f7;
}

.material-item.rarity-legendary .material-quantity {
    color: #f59e0b;
}

/* Abilities Section Styles */
.abilities-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.laser-blast-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid #ef4444;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.laser-blast-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
    border-color: #f87171;
}

.laser-blast-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-color: #6b7280;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.laser-blast-btn:disabled:hover {
    transform: none;
}

.ability-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.ability-name {
    font-size: 0.9rem;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ability-cooldown {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Auto Burst Button */
.auto-burst-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.auto-burst-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    border-color: #60a5fa;
}

.auto-burst-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-color: #6b7280;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.auto-burst-btn:disabled:hover {
    transform: none;
}

.auto-burst-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    animation: autoBurstPulse 2s infinite;
}

@keyframes autoBurstPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    }
}

/* Laser Animation */
.laser-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
}

.laser-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 200px;
    background: linear-gradient(180deg,
        transparent 0%,
        #ef4444 20%,
        #ffffff 50%,
        #ef4444 80%,
        transparent 100%);
    transform: translate(-50%, -50%);
    border-radius: 4px;
    opacity: 0;
    animation: laserBlast 1s ease-out;
    box-shadow:
        0 0 20px #ef4444,
        0 0 40px #ef4444,
        0 0 60px #ef4444;
}

.laser-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle,
        #ffffff 0%,
        #ef4444 30%,
        #dc2626 60%,
        transparent 100%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    animation: laserImpact 0.8s ease-out 0.2s;
}

.laser-sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    animation: sparkFly 1.2s ease-out;
}

.spark:nth-child(1) { animation-delay: 0.3s; transform: rotate(0deg) translateX(50px); }
.spark:nth-child(2) { animation-delay: 0.35s; transform: rotate(45deg) translateX(40px); }
.spark:nth-child(3) { animation-delay: 0.4s; transform: rotate(90deg) translateX(45px); }
.spark:nth-child(4) { animation-delay: 0.45s; transform: rotate(135deg) translateX(35px); }
.spark:nth-child(5) { animation-delay: 0.5s; transform: rotate(180deg) translateX(50px); }
.spark:nth-child(6) { animation-delay: 0.55s; transform: rotate(225deg) translateX(40px); }
.spark:nth-child(7) { animation-delay: 0.6s; transform: rotate(270deg) translateX(45px); }
.spark:nth-child(8) { animation-delay: 0.65s; transform: rotate(315deg) translateX(35px); }

/* Laser Animations */
@keyframes laserBlast {
    0% {
        opacity: 0;
        height: 0;
        transform: translate(-50%, -50%) scaleY(0);
    }
    20% {
        opacity: 1;
        height: 200px;
        transform: translate(-50%, -50%) scaleY(1);
    }
    80% {
        opacity: 1;
        height: 200px;
        transform: translate(-50%, -50%) scaleY(1);
    }
    100% {
        opacity: 0;
        height: 200px;
        transform: translate(-50%, -50%) scaleY(1);
    }
}

@keyframes laserImpact {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

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

/* Auto-Click Animation */
@keyframes autoClickFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

/* Auto-Burst Animation */
@keyframes autoBurstFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.9);
    }
    15% {
        opacity: 1;
        transform: translateY(-15px) scale(1.1);
    }
    85% {
        opacity: 1;
        transform: translateY(-25px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
    }
}

/* Generator Modal Styles */
.generators-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.generator-category {
    margin-bottom: 30px;
}

.category-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
}

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

.generator-item {
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05)),
        rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.generator-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)),
        rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

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

.generator-item.unaffordable {
    opacity: 0.8;
}

.generator-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.generator-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.generator-info {
    flex: 1;
}

.generator-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.generator-level {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.generator-description {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.generator-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
}

.generator-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.generator-cost {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 5px;
}

.generator-actions .btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.generator-actions .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.generator-actions .btn-primary:hover:not(.btn-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.generator-actions .btn-secondary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.generator-actions .btn-secondary:hover:not(.btn-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.generator-actions .btn-disabled {
    background: rgba(156, 163, 175, 0.3);
    color: #9ca3af;
    cursor: not-allowed;
}

.unlock-requirement {
    text-align: center;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 600;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Auto Clicker Controls */
.auto-clicker-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.auto-clicker-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.status-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.status-value.active {
    color: #22c55e;
}

.status-value.inactive {
    color: #ef4444;
}

.auto-clicker-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.auto-clicker-controls .btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.auto-clicker-controls .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.auto-clicker-controls .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Galaxy Modal Styles */
.galaxy-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 600px;
}

.galaxy-tabs {
    display: flex;
    gap: 8px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    flex-shrink: 0;
}

.galaxy-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
}

.galaxy-tab:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.galaxy-tab.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.galaxy-tab.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
}

.tab-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.tab-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e0e0e0;
    text-align: center;
}

.tab-lock {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8rem;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.galaxy-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.system-info {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
    padding: 40px 20px;
}

.system-planets {
    height: 100%;
}

.system-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 20px;
    text-align: center;
}

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

.planet-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.planet-card:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.planet-card.current {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.planet-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
}

.planet-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.planet-info {
    flex: 1;
}

.planet-name {
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.planet-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.planet-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.stat-icon {
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: #10b981;
}

.planet-lock {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 600;
}

.planet-current {
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 600;
}

/* Instruction fade animation */
@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Planet clicked animation class */
.planet-clicked {
    animation: planetPulse 0.6s ease-out !important;
}

.planet-visual .planet-emoji {
    font-size: 4rem;
}

.click-button {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.click-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

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

.click-text {
    font-size: 1.1rem;
}

.click-reward {
    font-size: 1.5rem;
    color: #4caf50;
}

/* Right Panel - Upgrades */
.right-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.upgrades-section h3 {
    margin-bottom: 20px;
    text-align: center;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.upgrade-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.upgrade-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upgrade-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.upgrade-details {
    display: flex;
    flex-direction: column;
}

.upgrade-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.upgrade-level {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.upgrade-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.upgrade-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .landing-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .click-button {
        width: 200px;
        height: 200px;
        font-size: 1rem;
    }
    
    .planet-visual {
        width: 150px;
        height: 150px;
    }
    
    .planet-visual .planet-emoji {
        font-size: 3rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .click-button {
        width: 180px;
        height: 180px;
    }

    .upgrade-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .upgrade-info {
        justify-content: center;
    }
}

/* Idle Earnings Popup */
.idle-earnings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.idle-earnings-popup h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.idle-earnings-popup p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Achievements Panel */
.achievements-panel {
    margin-top: 30px;
}

.achievements-panel h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-icon {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.achievement-name {
    font-size: 0.85rem;
    color: #e0e0e0;
}

/* Planet Unlock Section */
.planet-unlock-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.planet-unlock-section h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.planet-unlock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

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

.planet-info .planet-emoji {
    font-size: 1.5rem;
}

.planet-info .planet-name {
    font-weight: bold;
    color: #e0e0e0;
}

.unlock-btn {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.unlock-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Click Effects */
.click-effects {
    position: relative;
    height: 50px;
    margin-top: 20px;
}

.click-effect {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
}

/* Landing Page Footer */
.landing-footer {
    margin-top: 40px;
    text-align: center;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.footer-text {
    color: #888;
    font-size: 0.9rem;
}

/* Login Info Card */
.login-info {
    margin-top: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.info-card h3 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 5px 0;
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   PHASE 2: MOBILE-FIRST DESIGN & MODALS
   ======================================== */

/* Mobile-First Game Layout */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 10px 80px 10px; /* Bottom padding for nav bar */
        min-height: calc(100vh - 140px);
    }

    .left-panel, .right-panel {
        display: none; /* Hide side panels on mobile */
    }

    .center-panel {
        width: 100%;
        padding: 20px 0;
    }

    /* Advanced Mobile HUD - Zero Overlap Design */
    .mobile-hud {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background:
            linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%),
            rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(25px);
        padding: 8px 10px;
        z-index: 1900;
        border-bottom: 1px solid rgba(16, 185, 129, 0.08);
        box-sizing: border-box;
        box-shadow: 0 1px 6px rgba(16, 185, 129, 0.04);
    }

    .hud-top-row, .hud-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin: 3px 0;
    }

    .hud-debris, .hud-click-info, .hud-income,
    .hud-discovery, .hud-material, .hud-prestige {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1;
        min-width: 0;
        background: rgba(255, 255, 255, 0.02);
        padding: 4px 6px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
    }

    .hud-debris:hover, .hud-click-info:hover, .hud-income:hover,
    .hud-discovery:hover, .hud-material:hover, .hud-prestige:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .hud-icon {
        font-size: 0.9rem;
        flex-shrink: 0;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    }

    .hud-values {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .hud-amount {
        font-size: 0.7rem;
        font-weight: 700;
        color: #e0e0e0;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hud-label {
        font-size: 0.5rem;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 500;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Specific HUD Item Colors */
    .hud-debris .hud-amount { color: #10b981; }
    .hud-click-info .hud-amount { color: #3b82f6; }
    .hud-income .hud-amount { color: #f59e0b; }
    .hud-discovery .hud-amount { color: #8b5cf6; }
    .hud-material .hud-amount { color: #ef4444; }
    .hud-prestige .hud-amount { color: #06b6d4; }

    /* Adjust main content for mobile resource bar */
    .game-page .center-panel {
        margin-top: 50px; /* Space for mobile resource bar */
    }

    .game-page {
        padding-top: 130px; /* Header (60px) + mobile HUD (70px) */
    }
}

/* Bottom Navigation Bar - Modern Sci-Fi */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%),
        rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 0;
    z-index: 1000;
    display: none; /* Hidden by default, shown on mobile */
    box-shadow: 0 -4px 20px rgba(16, 185, 129, 0.1);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.nav-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    min-width: 60px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.nav-tab:hover::before {
    opacity: 0.5;
}

.nav-tab.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.nav-tab.active::before {
    opacity: 1;
}

.nav-tab-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
}

.nav-tab.active .nav-tab-icon {
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
    transform: scale(1.1);
}

.nav-tab-label {
    font-size: 0.7rem;
    color: #b0b0b0;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.nav-tab.active .nav-tab-label {
    color: #10b981;
    font-weight: 600;
}

/* Modal System Base Styles - NO OVERLAY */
.modal-overlay {
    display: none; /* Completely remove overlay */
}

.modal {
    position: fixed;
    bottom: 80px; /* Above bottom navigation */
    left: 10px;
    right: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-height: 70vh;
    transform: translateY(calc(100% + 100px)); /* Completely off screen */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
}

.modal.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Desktop Modal Styles */
@media (min-width: 769px) {
    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.8);
        border-radius: 15px;
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
        opacity: 0;
        visibility: hidden;
    }

    .modal.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
}

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

.modal-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(70vh - 80px); /* Reduced height for better mobile experience */
}

/* Mobile modal content adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-height: calc(60vh - 60px); /* Even smaller on mobile */
        padding: 15px;
    }
}

/* Modal Drag Handle */
.modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 8px auto;
    cursor: grab;
}

.modal-handle:active {
    cursor: grabbing;
}

/* Achievements Modal Styles */
.achievements-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4caf50;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-card.unlocked {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.achievement-card.unlocked::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

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

.achievement-icon-large {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.achievement-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.achievement-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.achievement-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: bold;
}

.achievement-progress {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.7rem;
    color: #b0b0b0;
    margin-top: 5px;
}

/* Leaderboard Modal Styles */
.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.leaderboard-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.leaderboard-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
}

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

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item.current-user {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.leaderboard-rank {
    font-size: 1.2rem;
    font-weight: bold;
    width: 40px;
    text-align: center;
    color: #4caf50;
}

.leaderboard-rank.rank-1 { color: #ffd700; }
.leaderboard-rank.rank-2 { color: #c0c0c0; }
.leaderboard-rank.rank-3 { color: #cd7f32; }

.leaderboard-info {
    flex: 1;
    margin-left: 15px;
}

.leaderboard-username {
    font-weight: bold;
    margin-bottom: 2px;
}

.leaderboard-details {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.leaderboard-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4caf50;
}

/* Settings Modal Styles */
.settings-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-label {
    flex: 1;
}

.setting-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.setting-description {
    font-size: 0.8rem;
    color: #b0b0b0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #4caf50;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.language-dropdown:focus {
    outline: none;
    border-color: #667eea;
}

/* Upgrades Modal Styles */
.upgrades-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upgrade-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.upgrade-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

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

.upgrade-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.upgrade-card-details h4 {
    margin: 0 0 3px 0;
    font-size: 1.1rem;
}

.upgrade-card-level {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.upgrade-card-buy {
    background: linear-gradient(45deg, #4caf50, #45a049);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 80px;
}

.upgrade-card-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.upgrade-card-buy:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-card-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.upgrade-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #4caf50;
}

/* Charge Saver Mode */
.charge-saver-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    color: #4caf50;
    z-index: 3000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.charge-saver-mode.active {
    display: flex;
}

.charge-saver-content {
    max-width: 300px;
    padding: 20px;
}

.charge-saver-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4caf50;
}

.charge-saver-stats {
    margin-bottom: 30px;
}

.charge-saver-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.charge-saver-progress {
    width: 100%;
    height: 4px;
    background: #333;
    margin: 20px 0;
    border-radius: 2px;
    overflow: hidden;
}

.charge-saver-progress-bar {
    height: 100%;
    background: #4caf50;
    width: 0%;
    transition: width 1s ease;
}

.charge-saver-return {
    background: none;
    border: 1px solid #4caf50;
    color: #4caf50;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.charge-saver-return:hover {
    background: #4caf50;
    color: #000;
}

/* Swipe Gestures Indicator */
.swipe-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #b0b0b0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Loading States for Modals */
.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Language Text Classes */
.lang-en, .lang-tr {
    display: none;
}

.lang-en.active, .lang-tr.active {
    display: inline;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .modal {
        border-radius: 15px 15px 0 0;
    }

    .modal-content {
        padding: 15px;
    }

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

    .upgrade-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .upgrade-card-buy {
        width: 100%;
    }

    .leaderboard-item {
        padding: 10px;
    }

    .nav-tab-label {
        font-size: 0.6rem;
    }
}

/* Error States */
.error {
    text-align: center;
    padding: 20px;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    margin: 10px 0;
}

/* Achievement unlocked date */
.achievement-unlocked-date {
    font-size: 0.8rem;
    color: #4caf50;
    margin-top: 10px;
    text-align: center;
}

/* Setting value display */
.setting-value {
    font-weight: bold;
    color: #4caf50;
}

/* Leaderboard content area */
.leaderboard-content-area {
    margin-top: 10px;
}

/* Enhanced mobile click button */
@media (max-width: 768px) {
    .click-button {
        width: 220px;
        height: 220px;
        font-size: 1.1rem;
    }

    .planet-visual {
        width: 180px;
        height: 180px;
    }

    .planet-visual .planet-emoji {
        font-size: 3.5rem;
    }

    /* Ensure mobile resource bar is visible */
    .mobile-resource-bar {
        display: block;
    }

    /* Hide desktop panels on mobile */
    .left-panel, .right-panel {
        display: none !important;
    }

    /* Adjust game container for mobile */
    .game-container {
        padding-top: 70px; /* Account for mobile resource bar */
    }
}

/* Desktop hide mobile elements */
@media (min-width: 769px) {
    .mobile-resource-bar {
        display: none;
    }

    .bottom-nav {
        display: none;
    }
}

/* Smooth transitions for all interactive elements */
.nav-tab, .modal, .modal-overlay, .toggle-switch, .upgrade-card, .achievement-card, .leaderboard-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.nav-tab:focus, .modal-close:focus, .upgrade-card-buy:focus, .toggle-switch:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
