* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #030308;
    --bg-panel: rgba(8, 12, 25, 0.9);
    --border-color: rgba(0, 200, 255, 0.15);
    --border-glow: rgba(0, 200, 255, 0.4);
    --accent-cyan: #00d4ff;
    --accent-purple: #9d4edd;
    --accent-pink: #ff006e;
    --accent-orange: #ff6b35;
    --accent-green: #00ff88;
    --accent-gold: #ffd700;
    --text-primary: #e8f4ff;
    --text-secondary: #7a8899;
    --text-dim: #445566;
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-purple: 0 0 20px rgba(157, 78, 221, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ========== SPLASH SCREEN ========== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0a20 0%, #030308 70%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

#splash-screen.hidden {
    display: none;
}

.splash-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 100px 50px, #fff, transparent),
        radial-gradient(2px 2px at 200px 150px, #fff, transparent),
        radial-gradient(1px 1px at 300px 250px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 400px 100px, #fff, transparent),
        radial-gradient(1px 1px at 500px 300px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 50px 200px, #fff, transparent),
        radial-gradient(1px 1px at 150px 350px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 250px 50px, #fff, transparent),
        radial-gradient(1px 1px at 350px 180px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 450px 280px, #fff, transparent);
    background-size: 500px 400px;
    animation: starsMove 60s linear infinite;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-400px); }
}

.splash-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.splash-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.splash-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #9d4edd 50%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(157, 78, 221, 0.5));
    margin-bottom: 10px;
}

.splash-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 15px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.splash-prompt {
    margin-top: 40px;
}

.pulse-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.splash-version {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.splash-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.splash-particles::before,
.splash-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 10s ease-in-out infinite;
}

.splash-particles::before {
    background: rgba(0, 212, 255, 0.15);
    top: 20%;
    left: 10%;
}

.splash-particles::after {
    background: rgba(157, 78, 221, 0.15);
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
}




/* ========== SETTINGS MODAL ========== */
#settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

#settings-overlay.hidden {
    display: none;
}

#settings-modal {
    background: linear-gradient(135deg, rgba(15, 20, 40, 0.98), rgba(8, 12, 25, 0.98));
    border: 1px solid var(--accent-purple);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.3);
    animation: modalSlide 0.3s ease;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(157, 78, 221, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
}

#settings-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

#settings-close:hover {
    color: var(--accent-pink);
}

.settings-content {
    padding: 25px;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.slider-container span {
    min-width: 45px;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* ========== STARS BACKGROUND ========== */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 20% 50%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 30% 10%, rgba(255,255,255,1), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 50% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 80% 90%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 95% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 15% 35%, rgba(0, 212, 255, 0.8), transparent),
        radial-gradient(2px 2px at 85% 75%, rgba(157, 78, 221, 0.8), transparent);
    background-color: var(--bg-dark);
}

#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
    z-index: 1000;
}

#game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ========== HEADER ========== */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-left h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left h1 .glow {
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
    -webkit-text-fill-color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--accent-cyan)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--accent-cyan)); }
}

.subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

#resources {
    display: flex;
    gap: 15px;
}

.resource {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 20, 40, 0.3));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.resource::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
}

.resource-icon-wrap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(157, 78, 221, 0.1));
    border-radius: 10px;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.resource-data {
    display: flex;
    flex-direction: column;
}

.resource-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 600;
}

.resource-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.resource-rate {
    font-size: 0.7rem;
    color: var(--accent-green);
}

/* ========== MAIN LAYOUT ========== */
#main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 15px;
    flex: 1;
}

/* ========== LEFT PANEL ========== */
#left-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), transparent);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.panel-icon {
    font-size: 1.1rem;
}

.panel-content {
    padding: 15px;
}


/* ========== COLLECT BUTTON ========== */
#collect-btn {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.1s ease;
    box-shadow: 
        0 5px 20px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#collect-btn:hover {
    box-shadow: 
        0 8px 35px rgba(255, 107, 53, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#collect-btn:active {
    transform: scale(0.96);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

#collect-btn:active .btn-glow {
    width: 400px;
    height: 400px;
}

.btn-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% { width: 60px; height: 60px; opacity: 0.5; }
    100% { width: 150px; height: 150px; opacity: 0; }
}

.btn-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    position: relative;
    z-index: 1;
}

.btn-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* Stats mini */
#stats-mini {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 20, 40, 0.2));
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

/* Empire status */
#empire-status .panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.empire-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 20, 40, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.empire-stat-icon {
    font-size: 1.3rem;
}

.empire-stat-info {
    display: flex;
    flex-direction: column;
}

.empire-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.empire-stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
}


/* ========== CENTER PANEL ========== */
#center-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Tabs */
#tabs {
    display: flex;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border-bottom: 1px solid var(--border-color);
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.05);
}

.tab:hover::after {
    width: 50%;
}

.tab.active {
    color: var(--accent-cyan);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent);
}

.tab.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.tab-icon {
    font-size: 1.1rem;
}

/* Tab contents */
#tab-contents {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.content-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.content-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.content-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Items grid */
.items-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Item cards */
.item-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 20, 40, 0.3));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.item-card:hover {
    border-color: var(--border-glow);
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.5), rgba(0, 30, 60, 0.4));
}

.item-card:hover::before {
    opacity: 1;
}

.item-card.locked {
    opacity: 0.5;
}

.item-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(157, 78, 221, 0.1));
    border-radius: 12px;
    font-size: 1.7rem;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.item-info {
    min-width: 0;
}

.item-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.item-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info .requirement {
    color: var(--accent-pink);
    font-size: 0.7rem;
    margin-top: 3px;
}

.item-stats {
    text-align: right;
    min-width: 80px;
}

.item-owned {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.item-production {
    font-size: 0.7rem;
    color: var(--accent-green);
}

/* Buy button */
.buy-btn {
    min-width: 115px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
    overflow: hidden;
}

.buy-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;
}

.buy-btn:hover:not(:disabled)::before {
    left: 100%;
}

.buy-btn:hover:not(:disabled) {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.buy-btn:active:not(:disabled) {
    opacity: 0.8;
}

.buy-btn:disabled {
    background: linear-gradient(135deg, #333, #222);
    cursor: not-allowed;
    opacity: 0.5;
}

.buy-btn.purchased {
    background: linear-gradient(135deg, #2a6a2a, #1a5a1a);
}


/* ========== ACHIEVEMENTS ========== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 20, 40, 0.3));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 20, 40, 0.3));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.achievement-icon {
    font-size: 1.8rem;
    filter: grayscale(100%);
}

.achievement-card.unlocked .achievement-icon {
    filter: none;
    animation: achieveGlow 2s ease-in-out infinite;
}

@keyframes achieveGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

.achievement-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.achievement-info p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ========== FOOTER ========== */
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.footer-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
}

.footer-btn.danger:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: var(--accent-pink);
}

/* ========== NOTIFICATION ========== */
#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    animation: notifSlide 0.3s ease;
}

#notification.hidden {
    display: none;
}

@keyframes notifSlide {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ========== CLICK EFFECT ========== */
.click-effect {
    position: fixed;
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    animation: floatUp 0.8s ease-out forwards;
    z-index: 100;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.4); }
}

/* ========== MODAL ========== */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}

#modal-overlay.hidden {
    display: none;
}

#modal {
    background: linear-gradient(135deg, rgba(15, 20, 40, 0.98), rgba(8, 12, 25, 0.98));
    border: 1px solid var(--accent-purple);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

#modal h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

#modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.modal-btn:first-child {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-btn:first-child:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-cyan);
}

.modal-btn.danger {
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: white;
    border-color: transparent;
}

.modal-btn.danger:hover {
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.5);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00e5ff, #b366ff);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(0, 0, 0, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    #main-layout {
        grid-template-columns: 1fr;
    }
    
    #left-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #left-panel .panel {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 700px) {
    #header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left {
        text-align: center;
    }
    
    #resources {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .resource {
        min-width: 130px;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab {
        padding: 12px;
    }
    
    .tab-icon {
        font-size: 1.3rem;
    }
    
    .item-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    
    .item-stats {
        grid-column: 2;
        text-align: left;
    }
    
    .buy-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    .splash-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .splash-subtitle {
        font-size: 0.9rem;
        letter-spacing: 8px;
    }
}
